Skip to main content

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).
  • _nim aliases exist when there is a Nim implementation alongside Python.
  • See docs/scripted-agent-registry.md for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cogames_agents-0.0.0.7.tar.gz (379.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_x86_64.whl (588.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_aarch64.whl (590.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

cogames_agents-0.0.0.7-cp312-cp312-macosx_11_0_arm64.whl (512.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Hashes for cogames_agents-0.0.0.7.tar.gz
Algorithm Hash digest
SHA256 fe4c6e79d8194fa6d3d208ebd5e9d36c36214ebf6d8d3f2afbc8aff54a6d229c
MD5 b4cd4732e5ec34aff202b942bce0b44c
BLAKE2b-256 dd8117a972a1f4ac7be80dd2d9123db7dd074892d2786ae4da45107df429c9e2

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7baab3cff5ae1dfe33bd14f09a9b15c6d6b332f941b63ebfb5927f75a1472a1f
MD5 07ae096bb68fbaf53b30f8752e1a4007
BLAKE2b-256 75f49309e9db4f6e62a6e765c3d0d9dd2495a8ec832ee34c8a9b774bc3415907

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for cogames_agents-0.0.0.7-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 70e28692b08b1af5b7dbe70caa73e34461cd237875fe07a108c577cb6ff8bc43
MD5 631b94925d3f304a20d3324d3163c10c
BLAKE2b-256 bee2da4150c6bcd105fc6ebf857e394eb76edc885f0cb9593548cfd77cdfa870

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cogames_agents-0.0.0.7-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cogames_agents-0.0.0.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e36c0d663add496f19016a75e2ef49578aa12bc174c3e3e1d4df59bd733a70a
MD5 9897d3971dbfa3f765f8444af4803a24
BLAKE2b-256 1e0735cffa87d9680770c226e761dd54fbdc9c21d23c98bfdd93254560b39210

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page