Optional agent policies for CoGames
Project description
cogames-agents
Optional scripted policies for CoGames. Use them for quick baselines, play/eval smoke tests, or as teacher policies.
Scripted policy registry
The registry at cogames_agents.policy.scripted_registry maps policy short_names to metta://policy/... URIs.
Scripted agents and teachers share these identifiers, so the same name works for evaluation, play, and
TeacherConfig.policy_uri.
To list the current names:
python -c "from cogames_agents.policy.scripted_registry import list_scripted_agent_names; print(list_scripted_agent_names())"
Common scripted policy names include:
- Baselines:
baseline,tiny_baseline,ladybug_py - Nim baselines:
thinky,race_car,ladybug,nim_random - CogsGuard core:
role,role_py,wombo - CogsGuard variants:
alignall,cogsguard_control,cogsguard_targeted,cogsguard_v2 - CogsGuard roles:
miner,scout,aligner,scrambler - Teacher:
teacher - Pinky:
pinky
For the full registry snapshot, see docs/scripted-agent-registry.md.
Role-specific policies are exposed via role names (miner/scout/aligner/scrambler). For the teacher policy, you can pass
role_vibes as a comma-separated list:
metta://policy/teacher?role_vibes=miner,scout
Fixed-role mixes and explicit orderings are configured via role_py parameters:
Examples:
metta://policy/role_py?role_cycle=aligner,miner,scrambler,scout
metta://policy/role_py?role_order=aligner,miner,aligner,miner,scout
Pinky role counts are applied in a different order than CogsGuard:
- Pinky order: miner -> scout -> aligner -> scrambler, and any remaining agents stay default/noop.
- CogsGuard order: scrambler -> aligner -> miner -> scout, then fills remaining agents with gear.
Examples:
metta://policy/pinky?miner=4&aligner=2&scrambler=4
metta://policy/pinky?miner=2&scout=2&aligner=1&scrambler=1&debug=1
Recipe usage
The recipes.experiment.scripted_agents recipe accepts the same scripted policy names:
./tools/run.py recipes.experiment.scripted_agents.play agent=thinky suite=cvc_arena
./tools/run.py recipes.experiment.scripted_agents.play agent=miner suite=cogsguard
Included policies
- Short names map to the fastest implementation (Nim when available, otherwise Python).
_nimaliases exist when there is a Nim implementation alongside Python.- See
docs/scripted-agent-registry.mdfor the canonical short-name list. - Teacher wrapper:
teacher(teacher_nim) forces an initial role/vibe, then delegates to the Nim policy.
Docs
docs/mettaboxes.md(mettabox usage guide)docs/aws-sso-on-mettabox.md(AWS SSO login from inside mettabox containers)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cogames_agents-0.0.0.7.tar.gz.
File metadata
- Download URL: cogames_agents-0.0.0.7.tar.gz
- Upload date:
- Size: 379.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe4c6e79d8194fa6d3d208ebd5e9d36c36214ebf6d8d3f2afbc8aff54a6d229c
|
|
| MD5 |
b4cd4732e5ec34aff202b942bce0b44c
|
|
| BLAKE2b-256 |
dd8117a972a1f4ac7be80dd2d9123db7dd074892d2786ae4da45107df429c9e2
|
Provenance
The following attestation bundles were made for cogames_agents-0.0.0.7.tar.gz:
Publisher:
release-cogames-agents.yml on Metta-AI/metta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogames_agents-0.0.0.7.tar.gz -
Subject digest:
fe4c6e79d8194fa6d3d208ebd5e9d36c36214ebf6d8d3f2afbc8aff54a6d229c - Sigstore transparency entry: 896349119
- Sigstore integration time:
-
Permalink:
Metta-AI/metta@d916ac60ddd5e446fd4a508e315b7a4cda55a0d6 -
Branch / Tag:
refs/tags/cogames-agents-v0.0.0.7 - Owner: https://github.com/Metta-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-cogames-agents.yml@d916ac60ddd5e446fd4a508e315b7a4cda55a0d6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 588.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7baab3cff5ae1dfe33bd14f09a9b15c6d6b332f941b63ebfb5927f75a1472a1f
|
|
| MD5 |
07ae096bb68fbaf53b30f8752e1a4007
|
|
| BLAKE2b-256 |
75f49309e9db4f6e62a6e765c3d0d9dd2495a8ec832ee34c8a9b774bc3415907
|
Provenance
The following attestation bundles were made for cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_x86_64.whl:
Publisher:
release-cogames-agents.yml on Metta-AI/metta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_x86_64.whl -
Subject digest:
7baab3cff5ae1dfe33bd14f09a9b15c6d6b332f941b63ebfb5927f75a1472a1f - Sigstore transparency entry: 896349249
- Sigstore integration time:
-
Permalink:
Metta-AI/metta@d916ac60ddd5e446fd4a508e315b7a4cda55a0d6 -
Branch / Tag:
refs/tags/cogames-agents-v0.0.0.7 - Owner: https://github.com/Metta-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-cogames-agents.yml@d916ac60ddd5e446fd4a508e315b7a4cda55a0d6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 590.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70e28692b08b1af5b7dbe70caa73e34461cd237875fe07a108c577cb6ff8bc43
|
|
| MD5 |
631b94925d3f304a20d3324d3163c10c
|
|
| BLAKE2b-256 |
bee2da4150c6bcd105fc6ebf857e394eb76edc885f0cb9593548cfd77cdfa870
|
Provenance
The following attestation bundles were made for cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_aarch64.whl:
Publisher:
release-cogames-agents.yml on Metta-AI/metta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_aarch64.whl -
Subject digest:
70e28692b08b1af5b7dbe70caa73e34461cd237875fe07a108c577cb6ff8bc43 - Sigstore transparency entry: 896349300
- Sigstore integration time:
-
Permalink:
Metta-AI/metta@d916ac60ddd5e446fd4a508e315b7a4cda55a0d6 -
Branch / Tag:
refs/tags/cogames-agents-v0.0.0.7 - Owner: https://github.com/Metta-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-cogames-agents.yml@d916ac60ddd5e446fd4a508e315b7a4cda55a0d6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cogames_agents-0.0.0.7-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: cogames_agents-0.0.0.7-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 512.3 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e36c0d663add496f19016a75e2ef49578aa12bc174c3e3e1d4df59bd733a70a
|
|
| MD5 |
9897d3971dbfa3f765f8444af4803a24
|
|
| BLAKE2b-256 |
1e0735cffa87d9680770c226e761dd54fbdc9c21d23c98bfdd93254560b39210
|
Provenance
The following attestation bundles were made for cogames_agents-0.0.0.7-cp312-cp312-macosx_11_0_arm64.whl:
Publisher:
release-cogames-agents.yml on Metta-AI/metta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogames_agents-0.0.0.7-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
7e36c0d663add496f19016a75e2ef49578aa12bc174c3e3e1d4df59bd733a70a - Sigstore transparency entry: 896349193
- Sigstore integration time:
-
Permalink:
Metta-AI/metta@d916ac60ddd5e446fd4a508e315b7a4cda55a0d6 -
Branch / Tag:
refs/tags/cogames-agents-v0.0.0.7 - Owner: https://github.com/Metta-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-cogames-agents.yml@d916ac60ddd5e446fd4a508e315b7a4cda55a0d6 -
Trigger Event:
push
-
Statement type: