Command line¶
| Command | Does |
|---|---|
agentplaykit play [scenario] |
Run a scenario; with no argument, a built-in demo |
agentplaykit play s.yaml --runs 20 |
Run 20 seeds and print a summary |
agentplaykit play s.yaml --live |
Run it and watch live in your browser |
agentplaykit view run.jsonl |
Write and open a replay page (a -summary.json gives the summary page) |
agentplaykit view --live run.jsonl |
Follow a run another process is writing |
agentplaykit play arena.yaml |
Play a tournament (a scenario with tournament:), then write the report |
agentplaykit report runs/ |
Compare agents across logs, summaries or folders: leaderboard, ratings, costs |
agentplaykit sandbox prune |
Remove leftover sandbox containers (only AgentPlay's) |
agentplaykit check s.yaml |
Report every problem in a scenario without running or importing code |
agentplaykit env list |
List available worlds |
agentplaykit test file.py [--world tic-tac-toe] |
Check a world or agent against the specs |
agentplaykit doctor |
Check the installation (never prints key values) |
play options: --seed N, --out PATH (a directory with --runs), --max-steps N,
--max-cost USD, --runs N, --live, --no-open. report options: --out DIR, --no-open,
--no-pages. Add --debug before the command to see tracebacks.
Exit codes¶
| Code | Meaning |
|---|---|
| 0 | The run ended and its log was written (also for forfeits and limits) |
| 1 | Run problem: the world crashed or a provider failed |
| 2 | Usage or scenario error |
| 3 | Environment problem (see doctor) |
Error messages¶
Every user mistake is one line that names the file, the field and the fix:
error: unknown world "tic-tac-tow": not a file, or a local, installed or built-in name (s.yaml:world.use) -> did you mean "tic-tac-toe"? run `agentplaykit env list`