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

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

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.10.tar.gz (343.3 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.10-cp312-cp312-manylinux_2_34_x86_64.whl (527.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

cogames_agents-0.0.0.10-cp312-cp312-manylinux_2_34_aarch64.whl (530.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

cogames_agents-0.0.0.10-cp312-cp312-macosx_11_0_arm64.whl (460.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file cogames_agents-0.0.0.10.tar.gz.

File metadata

  • Download URL: cogames_agents-0.0.0.10.tar.gz
  • Upload date:
  • Size: 343.3 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.10.tar.gz
Algorithm Hash digest
SHA256 3b87bf3c9f892ada216043f8ae825feaf8a5970a95f6988ba2df95c06aeeb8c6
MD5 794d90f24aa27f4b062c9639a4d47609
BLAKE2b-256 94c553f75a283f4a1750bd44eeeef2bc70c3c8dcd7a6612a7d0b70c27bef0f5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cogames_agents-0.0.0.10-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 563f1bc65065bdfa31c18a285cba5b1d6f606478ee0097d9c9fee832aec5892b
MD5 57d2d19127430ef1f08559c9452f1bc4
BLAKE2b-256 5a92145384d0e8963a9d9d834d5892d393caa68bfef215f5f6142b8b2a6dcbae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cogames_agents-0.0.0.10-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 c933d499d1af3c6744087845d77e32d65c8b3ce2a0e4266bbae67407c9efd710
MD5 3b2b84d771e75833c1198da73c3a8276
BLAKE2b-256 81b1d655a6ea692a607ff78fdfca73ed9d87cdd6601099d19468bbca91bbc63e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cogames_agents-0.0.0.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e8e130a450e825477a7eaae35f34a6b47e1fa4adc4b6435bd5d6e45e80149db
MD5 a3a559ddd50c3cdbe4d3d4a8e27a8719
BLAKE2b-256 cc905e78b4618ff9777251e0cd0fb4236204b9b0cac0b79555d902d51ca14c13

See more details on using hashes here.

Provenance

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