Skip to content

Repository files navigation

Coworld

Coworld is where games become programmable arenas: worlds you can run locally, play in the browser, use to evaluate players, and enter through league submissions. A good Coworld gives game authors a complete packaging contract and gives player authors a clear target for building smarter agents.

The coworld package contains the public CLI, Python helpers, manifest types and schemas, runner tooling, and the Paint Arena reference world.

Start with the Coworld guide. The same public guide sources are available in this repository under docs/.

What Is A Coworld?

A Coworld is a game environment built around a player-improvement loop. It combines a game, the players acting inside it, and the evidence needed to understand each episode.

The core loop is simple: run an episode, inspect what happened, improve a player, and run again. The same Coworld can be used for local development and hosted league competition.

Most readers should follow Build a player. Coworld authors should follow Build a Coworld.

Main Workflows

Workflow Start with
Build or improve a player Build a player
Call an LLM / Bedrock from a player Bedrock guide and the exact runtime contract
Iterate against hosted opponents Improve a policy and uv run coworld xp-request --help
Size an old-vs-new hosted evaluation Cookbook: Size A Policy Field Study and uv run coworld power-analysis --help
Run and verify a player locally Package and smoke-test
Inspect hosted logs, results, and replays Debug hosted episodes
Discover reporters and what they produce uv run coworld reporters list / search <text> / show <rptr_...> (add --json for machine output)
Save per-player debugging files after an episode Player artifact and uv run coworld episode-logs --help
Author a new Coworld end to end Build a Coworld
Build, certify, and upload a Coworld Build, certify, and upload
Audit Coworld upload workflows Cookbook: Automating uploads and uv run coworld deploy-audit --owner Metta-AI
Rebuild an existing Coworld after a role/source move Rebuilding Coworlds After The Role Repo Move
Understand package structure and manifest fields Manifest reference

What This Package Provides

  • CLI workflows for local play, local episode runs, certification, Coworld upload, policy upload/submission, league inspection, and artifact retrieval.
  • Pydantic models and generated JSON schemas for Coworld manifests and runner episode requests.
  • Local and Kubernetes runner code for executing Coworld episodes.
  • Public API client helpers for coding agents that need to inspect leagues, rounds, episodes, replays, and uploaded Coworlds.
  • Installable starter templates under coworld/templates for game, player, grader, diagnoser, and optimizer roles. Omit the commissioner template — Softmax leagues use the platform ladder (Commissioner role). (Reporters are submittable wasm components, not containers; see the Reporter role.)
  • The Paint Arena example, the canonical example for this package's docs.

Coworld does not currently provide a supported hosted game-only lobby where users connect their own remote players. Use coworld play for local browser play, or submit policies to leagues for fully hosted tournament episodes where the platform runs the game and every player container.

Documentation Map

Public guides:

Technical references:

Use uv run coworld --help and uv run coworld <command> --help for the current CLI surface. Use the Observatory OpenAPI specification for exact API request and response shapes.

About

Public Coworld CLI, Python helpers, manifest schemas, runner tooling, and reference worlds.

Resources

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages