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.8.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.8-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.8-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.8-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.8.tar.gz.

File metadata

  • Download URL: cogames_agents-0.0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 f675f85b5ab46f4757072fe9d868b353a6e77095184059c81f7082ccbf3fcf5d
MD5 c11628450ea60cafeab1837d4126e9ae
BLAKE2b-256 f85aa3f73b1694175486ecb6a023e420167bd7414a68311b316ee02769b10947

See more details on using hashes here.

Provenance

The following attestation bundles were made for cogames_agents-0.0.0.8.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.8-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cogames_agents-0.0.0.8-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 563a865c1785276d1b447d21aa93c2197fb0a0302e525126323d96569b9a90dc
MD5 e7f0cf89163871464b6fef9ce0009482
BLAKE2b-256 3e887572a169bb4952caaffe826bf9b7ae89ed3d8f8d8d641cf8ed83cca92520

See more details on using hashes here.

Provenance

The following attestation bundles were made for cogames_agents-0.0.0.8-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.8-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for cogames_agents-0.0.0.8-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 c67f23c466b946f43fd5b662764c654a982eaa4b6b0c5d25858caf1336512a2c
MD5 cc98f6cd519b68064e3861ed06cf2df7
BLAKE2b-256 186b2cb913ad911a8707c834ed5c3000c553efc28f9d224230d3cdef46ca77ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for cogames_agents-0.0.0.8-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.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cogames_agents-0.0.0.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26373f21150a9183778f153002a0a910204a37d6fcbb7f11c9450ed96ae73c15
MD5 78bf16aa7c8cf36f94b822a537ff57fd
BLAKE2b-256 540808d34083d36b050213b6ad32db52f2ba3c3f1ac2c14910760b779a69a852

See more details on using hashes here.

Provenance

The following attestation bundles were made for cogames_agents-0.0.0.8-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