Playing-coach CLI for orchestrating Claude Code, Codex and Antigravity sub-agents in parallel.
Project description
playmaker
Run Claude Code, Codex and Antigravity as parallel sub-agents from one terminal — and spend three separate quotas instead of one.
You stay in your Claude Code session doing the part only you can do. playmaker
fans the rest out to other agent CLIs as detached processes, tracks them,
parses their native session files, and pings you when they land.
$ B=dashboard # one label for the whole fan-out
$ playmaker dispatch codex --batch $B --model gpt-5-codex -p "Add PATCH /users/:id …"
session: 9f2c1a4e-… pid: 48211 (detached)
$ playmaker dispatch agy --batch $B --model "Gemini 3.5 Flash (High)" -p "pytest coverage for …"
session: 4b1f9c02-… pid: 48219 (detached)
$ playmaker dispatch claude --batch $B --model sonnet -p "Update the API docs for …"
session: c07d5511-… pid: 48244 (detached)
# …you keep working in your own session while those three run
$ playmaker list
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ id ┃ agent ┃ status ┃ started ┃ prompt ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 9f2c1a4e │ codex │ running │ 2026-07-27T18:02:09 │ Add PATCH /users/:id … │
│ 4b1f9c02 │ agy │ done │ 2026-07-27T18:02:11 │ pytest coverage for … │
│ c07d5511 │ claude │ done │ 2026-07-27T18:02:14 │ Update the API docs … │
└──────────┴────────┴─────────┴─────────────────────┴────────────────────────┘
🔔 playmaker — batch done # one ping for the whole fan-out…
3/3 done · codex ✓ · agy ✓ · claude ✓ # …click it to open every output
$ playmaker summary 9f2c1a4e # what codex says it did
$ playmaker continue 9f2c1a4e -p "the 404 branch is missing a test"
Why
Three reasons to fan work out across agent CLIs instead of grinding through it in one serial session:
- Wall-clock speed. A task that decomposes into 3–5 independent work-streams (schema, backend, frontend, tests, docs) finishes 2–4× faster when each stream runs as its own parallel agent.
- Provider arbitrage. Codex and Antigravity quotas are entirely separate pools from your Anthropic plan. Every slice you hand them is capacity your main session never spends — and Antigravity's roster includes Claude Sonnet/Opus, so even Claude-quality work can run on Google's pool.
- Bucket arbitrage inside one plan. Headless
claude -pdraws on the same subscription as your interactive session, but per-model weekly buckets are separate — dispatching--model sonnetspends Sonnet's usually-idle bucket instead of the scarce Opus one.
The catch: doing this by hand — terminal tabs, jumping between tools,
copy-pasting context — is friction. playmaker removes the friction; the
coach skill provides the discipline.
⚠️ Sub-agents skip permission prompts by default
By default, playmaker launches Claude and Antigravity sub-agents with
--dangerously-skip-permissions (and Gemini with --yolo). This is
deliberate: a headless agent has no human at the keyboard, so without these
flags a detached run stalls at the first tool-approval prompt and finishes
having written nothing.
It also means a dispatched agent can run commands and edit files without asking. Only dispatch prompts you'd be comfortable running unattended, in working directories you trust.
To opt out for Claude, set this in ~/.playmaker/config.toml:
[agents.claude]
skip_permissions = false
— with the caveat above: detached runs will then stall on the first permission
prompt, so this only really makes sense alongside --sync workflows or
allowlist rules you've configured in Claude Code itself.
Install
uv tool install playmaker-cli # or: pipx install playmaker-cli
From source
git clone https://github.com/vladsafedev/playmaker
cd playmaker
uv tool install --editable .
Then set up the data directory and install the coach skill:
playmaker init # creates ~/.playmaker/ (state.db, logs/, outputs/, config.toml)
playmaker skill install # drops playmaker-coach into ~/.claude/skills/
playmaker agents # which agent CLIs are reachable
Prerequisites
playmaker orchestrates external CLIs — install whichever you have access to:
| Agent | Install | Notes |
|---|---|---|
| Claude Code | npm i -g @anthropic-ai/claude-code |
--model sonnet / opus / haiku |
| Codex CLI | npm i -g @openai/codex |
--model gpt-5-codex |
Antigravity (agy) |
bundled with Antigravity | models are display names: --model "Claude Opus 4.6 (Thinking)" — see agy models |
| Gemini CLI (legacy) | npm i -g @google/gemini-cli |
still supported, superseded by agy |
At least one is required; playmaker agents tells you which it can see.
The coach skill
playmaker is the runner. The decision-making — when delegation beats doing
it yourself, which agent gets which slice, how to size a subtask so
reviewing it is cheap — lives in
playmaker-coach, a Claude Code skill
that ships with the package:
playmaker skill install # ~/.claude/skills/playmaker-coach/SKILL.md
Then give any Claude Code session a multi-component task and it activates: proposes a split with per-model quota rationale, waits for your approval, fans out, and reviews what comes back.
Commands
playmaker agents # who's installed
playmaker quotas [--refresh] # capacity per provider, per model
playmaker dispatch <agent> --prompt "..." # detached by default
[--model NAME] # forwarded to the agent's own CLI
[--cwd DIR]
[--files PATH...]
[--sync] # block and print the final answer
[--parent ID] # link lineage to an earlier session
[--batch LABEL] # group a fan-out; one summary ping
playmaker continue <id> --prompt "..." # follow-up inside the live session
[--model NAME] [--files PATH...] [--sync]
playmaker list [--status running|done|failed] [--agent NAME] [--limit N]
playmaker get <id> [--wait] [--poll SECONDS]
playmaker summary <id> # last 2 assistant messages
playmaker thread <id> [--last N] [--all] [--role assistant|user|tool]
[--include-tools] [--max-bytes N] [--follow]
playmaker logs <id> [--follow] # subprocess stdout for detached runs
playmaker kill <id>
playmaker watch # live TUI of sessions
playmaker skill install [--dir PATH] [--force]
dispatch, continue, list, get, thread and quotas all take --json
for scripting.
continue vs a fresh dispatch. continue sends a follow-up into the
agent's existing session, so its reasoning, tool history and file context are
still live — that's the cheap path for "almost right, fix Y". Start fresh with
--parent <id> only when the old context has become a liability.
How it works
flowchart LR
C["🧑🏫 coach<br/>your Claude Code session"] -->|dispatch| P(("playmaker"))
P --> A1["claude -p<br/><i>--model sonnet</i>"]
P --> A2["codex exec"]
P --> A3["agy -p"]
A1 & A2 & A3 --> S[("state.db<br/>outputs/ · logs/")]
S -->|list · thread · summary| C
S -.->|batch drained| N["🔔 one ping"]
Each dispatch is a detached OS process with its own quota; playmaker owns the bookkeeping in between.
~/.playmaker/
├── state.db SQLite — sessions, status, pids, models, output paths
├── config.toml
├── agents/ optional agent profile markdown (claude.md, codex.md, agy.md…)
├── outputs/ final output per session — .md, or .json if the agent returned JSON
├── logs/ subprocess stdout for detached runs
└── quotas.json latest capacity snapshot
dispatch runs the agent's CLI non-interactively, parses its native output,
and locates the session file the tool writes locally. Empirically:
| Agent | Session transcript |
|---|---|
| Claude | ~/.claude/projects/<cwd-with-slashes-as-dashes>/<id>.jsonl |
| Codex | ~/.codex/sessions/<YYYY>/<MM>/<DD>/rollout-<ts>-<thread_id>.jsonl |
| Antigravity | ~/.gemini/antigravity-cli/brain/<conversation-id>/.system_generated/logs/transcript_full.jsonl |
| Gemini | ~/.gemini/tmp/<cwd-basename>/chats/session-<ts>-<short_id>.{json,jsonl} |
thread and summary normalize all of them into the same turn list, so every
agent reads back in one shape.
Profiles are optional and discovered, not shipped: drop
~/.playmaker/agents/<name>.md (or ./.playmaker/agents/<name>.md next to a
repo, which wins) and it is prepended to every dispatch for that agent.
Two quirks worth knowing: agy's shell cwd is a private scratch dir rather
than your workspace, so playmaker prepends a workspace preamble to every agy
dispatch; and a wrong --model is a silent failure on both codex (reports
turn.failed while exiting 0) and agy (runs its default model instead) —
playmaker turns both into real errors.
Notifications
Every detached dispatch pings when it finishes. With
terminal-notifier installed
(brew install terminal-notifier), the notification is clickable and opens
the agent's output file in your editor:
[notifications]
editor = "Zed" # any app name `open -a` accepts
Without terminal-notifier, playmaker falls back to plain osascript banners,
which can't be clicked.
Batches. Pass the same --batch <label> to every dispatch in a fan-out and
per-dispatch success pings are suppressed — one "N/N done" summary fires when
the whole batch drains. Failures are the actionable event, so they still ping
immediately, with a distinct sound (Basso vs. the usual Blow).
Each session's final output lands in ~/.playmaker/outputs/<id>.md (or .json
when the agent returned genuine JSON), so the notification click — and
playmaker get — always have a stable file to open.
Quotas
playmaker quotas is token-based: it reads the credentials each CLI already
stores, no scraping and no browser.
$ playmaker quotas --refresh
Claude Max 20x
Session ████████████████░░░░ 80% left resets in 3h 12m
Weekly ███████████░░░░░░░░░ 55% left resets in 4d 6h
Sonnet ███████████████████░ 95% left resets in 4d 6h
Codex Plus
Session ██████████████████░░ 90% left resets in 1h 40m
Weekly █████████████░░░░░░░ 65% left resets in 2d 9h
Antigravity (agy)
Gemini 5h ████████████████████ 100% left
Gemini weekly ███████████████████░ 95% left
Claude/GPT 5h ██████████████████░░ 90% left resets in 2h 05m
Claude/GPT weekly ██████████████░░░░░░ 70% left resets in 5d 1h
The Weekly and Sonnet rows above are the point: they are separate
buckets. So is every agy row. Routing a subtask is choosing which of them to
spend.
- Claude — OAuth usage API; token from the Claude Code Keychain entry.
- Codex — ChatGPT
wham/usageAPI; token from~/.codex/auth.json. - Antigravity — prefers agy's local daemon
(
RetrieveUserQuotaSummaryover its embedded gRPC-web endpoint), which is the only source for the full categorized breakdown above. Works whenever any agy process has the singleton daemon up. Falls back to the OAuthretrieveUserQuotaon the Antigravity backend, which surfaces only coarse Gemini buckets and is flagged daemon offline. Approach ported from steipete/CodexBar.
Reading these at model granularity is the point: they are the load-balancing input the coach skill uses to route each subtask.
Limitations
- macOS-only for the Claude quota probe (reads the Claude Code Keychain entry) and for notifications. Everything else works on Linux.
- No remote agents — everything runs as a local subprocess on your machine.
- Quota probes read undocumented endpoints the vendors can change at any time.
Contributing
Handlers for other agent CLIs are especially welcome — see
CONTRIBUTING.md for the AgentHandler contract and what you
need to know about a CLI before writing one.
uv run pytest
uv run ruff check .
License
MIT. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file playmaker_cli-0.4.0.tar.gz.
File metadata
- Download URL: playmaker_cli-0.4.0.tar.gz
- Upload date:
- Size: 58.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18947619162b2cce86f3cd71e8792e185886e4b3799d8dbebd0ff101f93aeb1e
|
|
| MD5 |
e8b5dde41b659d064a57a9f4c15326b9
|
|
| BLAKE2b-256 |
8a7e084d9f6428dc373507eb5487ba7b42f2a3aabf15d9d69bf4d6024ec9fc70
|
Provenance
The following attestation bundles were made for playmaker_cli-0.4.0.tar.gz:
Publisher:
publish.yml on vladsafedev/playmaker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
playmaker_cli-0.4.0.tar.gz -
Subject digest:
18947619162b2cce86f3cd71e8792e185886e4b3799d8dbebd0ff101f93aeb1e - Sigstore transparency entry: 2260728295
- Sigstore integration time:
-
Permalink:
vladsafedev/playmaker@9deb3271112fabd5e2fdef910190c6db8f4e3959 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/vladsafedev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9deb3271112fabd5e2fdef910190c6db8f4e3959 -
Trigger Event:
release
-
Statement type:
File details
Details for the file playmaker_cli-0.4.0-py3-none-any.whl.
File metadata
- Download URL: playmaker_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 62.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b60dd6a927228fae4935fbc4c3776329fa6c59b341b7f86b0df9d12bd2c338
|
|
| MD5 |
e78379e946804729f08abe9c88790de3
|
|
| BLAKE2b-256 |
77b5543f73d988c8ba9bc09efa133cc4c41e99ed3ddef728e3aabc14a2a44bc9
|
Provenance
The following attestation bundles were made for playmaker_cli-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on vladsafedev/playmaker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
playmaker_cli-0.4.0-py3-none-any.whl -
Subject digest:
28b60dd6a927228fae4935fbc4c3776329fa6c59b341b7f86b0df9d12bd2c338 - Sigstore transparency entry: 2260728868
- Sigstore integration time:
-
Permalink:
vladsafedev/playmaker@9deb3271112fabd5e2fdef910190c6db8f4e3959 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/vladsafedev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9deb3271112fabd5e2fdef910190c6db8f4e3959 -
Trigger Event:
release
-
Statement type: