Run Claude Code, Codex, Antigravity, Kimi Code, Muse Code, Manus and opencode as parallel sub-agents from one terminal — and spend 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 -p "Add PATCH /users/:id …"
session: 9f2c1a4e-… pid: 48211 (detached)
$ playmaker dispatch agy --batch $B --model gemini-3.6-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"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, Antigravity, Kimi Code, Muse Code and
opencode 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. Kimi Code brings its own subscription with
the senior-tier K3; Muse Code adds Meta's senior-tier Muse Spark on its own
login.
opencodewidens this the most: one CLI fronting ~75 providers, from a z.ai GLM coding plan to models running locally on your own machine. - 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.
A detached agent has nobody at the keyboard to approve a tool prompt, so you decide up front what it may do. Left alone, a headless Claude simply answers "I need your permission" and finishes having changed nothing — so the choice is real, not a formality.
By default playmaker asks for the weakest setting that still lets the work finish: the agent is free inside the directory you dispatched it to, and Claude itself refuses anything outside it.
[agents.claude] permission_mode |
inside --cwd |
outside --cwd |
|---|---|---|
"plan" |
reads and plans, no writes | — |
"acceptEdits" (default) |
edits files, runs commands | refused |
"bypassPermissions" |
anything | anything |
Narrow it further with an allowlist — Claude Code's own tool syntax:
[agents.claude]
permission_mode = "acceptEdits"
allowed_tools = ["Read", "Edit", "Write", "Bash(pytest:*)"]
disallowed_tools = ["WebFetch"]Or skip the whole thing. One line, no boundary, including the working-directory one:
[agents.claude]
yolo = trueThat is a reasonable trade for prompts and directories you'd run unattended anyway — just make it a decision rather than a default you inherited.
The other agents differ, because their CLIs do:
-
codex needs none of this.
codex execis already non-interactive and sandboxes the model's shell itself, so playmaker passes no bypass flag at all. Override its policy withsandbox = "read-only" | "workspace-write" | "danger-full-access". -
agy has no middle tier — no per-mode flag exists, so a detached run either auto-approves or comes back having done nothing. It therefore defaults to
yolo = true; layersandbox = trueon top for agy's own terminal restrictions. -
opencode is the same story: its only lever is
--auto, so it also defaults toyolo = true. The granular control lives in opencode's own config rather than in playmaker — and--autostill honours it, because it auto-approves only what you have not explicitly denied: -
kimi has no permission flags at all in headless mode —
kimi -prefuses--auto,--yoloand--plan, and already runs with auto-approval, so there is no read-only mode below the prompt. -
muse runs sandboxed by default with approval off and the workspace trusted (
--disable-approval --trust-workspace). The sandbox denies writes outside the repo, souv run, npm and similar caches fail inside it — setyolo = trueif workers must run such gates. -
gemini (legacy) runs with
--yolo.
uv tool install playmaker-cli # or: pipx install playmaker-cliFrom 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 reachableplaymaker 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 |
the model roster depends on your plan; omit --model to use the account default |
Antigravity (agy) |
bundled with Antigravity | --model claude-opus-4-6-thinking — the roster moves, so read it from agy models |
| opencode | brew install sst/tap/opencode (or see opencode.ai) |
--model provider/model, e.g. zai-coding-plan/glm-5.2; roster from opencode models, providers from opencode auth login |
| Kimi Code CLI | npm i -g @moonshot-ai/kimi-code |
needs Node ≥ 22.19 (a wrapper that pins a newer Node is fine — point [agents.kimi] binary at it); --model kimi-code/k3-256k — 256k window at half the quota cost of k3; log in once with kimi login --region global; model ids from ~/.kimi-code/config.toml |
| Muse Code CLI | curl -fsSL https://dev.meta.ai/install.sh | sh |
self-updating launcher in ~/.local/bin (point [agents.muse] binary at it if a detached dispatch can't find it); log in once with muse login or set META_API_KEY; [agents.muse] credential_backend = "file" (with TBH_CREDENTIAL_BACKEND=file in your shell and muse login under it) keeps the login in ~/.config/muse/auth.json instead of the Keychain, so quota probes and CodexBar never raise a Keychain password dialog; --model muse-spark-1.3 — omit it and Muse's own default from ~/.config/muse/settings.json applies |
Manus (manus) |
Manus API v2 cloud agent — no CLI; add its key with security add-generic-password -s playmaker-manus-api -a playmaker -w or set MANUS_API_KEY |
always --read-only; --model is the agent profile: lite, standard (default), max, max-medium, max-high, max-extra, or max-ultra |
Perplexity (perplexity) |
Perplexity Agent API cloud research — no CLI; add its key with security add-generic-password -s playmaker-perplexity-api -a playmaker -w or set PERPLEXITY_API_KEY |
always --read-only; --model is the Agent API effort |
| 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.
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/Then give any Claude Code session a task that changes code and it activates: proposes a split into work packages with per-model quota rationale, waits for your approval, fans out, and — this is the second half of the loop — puts every resulting diff through a review board before it lands.
The skill installs as a directory: SKILL.md is the protocol, references/
holds the parts the coach loads on demand, and scripts/review-board.sh is the
review fan-out.
Reviewing a diff carefully is the most expensive thing a coach can do with its own context, and it has an objective output — findings with evidence. So it is delegated too. One command snapshots the work package's diff, hands it to independent reviewer agents on different lanes (each with a distinct lens: correctness, contracts, risk, conventions), and asks each to refute the implementation against its acceptance criteria:
review-board.sh <wp> <base-ref> --risk normal --gate "npm run typecheck" --impl-agent codex
review-board.sh --collect <wp>Reviewers run --read-only and return a fixed JSON verdict — severity, file,
line, and a concrete failure scenario per finding. The coach reads verdicts
rather than code, arbitrates, and sends a numbered fix list back into the
implementer's live session with playmaker continue. Which lanes review which
risk class is configuration, in .playmaker/reviewers.conf.
Before planning, the coach reads ./.playmaker/policy.md (repo) and
~/.playmaker/policy.md (personal) and lets them override the skill's defaults
— which quotas to spare, which lanes are contended, what juniors may never
touch in this repo, which commands are the acceptance gates. Keep your own
rules there and playmaker skill install --force stays a safe upgrade.
A Claude Code mod that puts playmaker in a pane next to the conversation: every
quota window of every lane, and every recent worker by batch with its state and
what its session is doing. It also wakes the coach with a short brief when a
batch this session started finishes, shows the quota line beside each
playmaker dispatch result, and carries the policy tiers into the system prompt.
It decides nothing: no dispatch is ever refused, no lane picked.
Install it from GitHub, at a Claude Code prompt:
/plugin install pm --marketplace vladsafedev/playmaker
then /reload-plugins (or a new session) and /pm board. From a pip/uv install of
playmaker, playmaker mod install puts in a copy that matches the CLI's version.
Details: mods/pm/README.md.
playmaker agents # who's installed
playmaker quotas [--refresh] # capacity per provider, per model
playmaker dispatch <agent> --prompt "..." # detached by default
[--prompt-file PATH] # read a UTF-8 prompt from a file
[--model NAME] # forwarded to the agent's own CLI
[--effort LEVEL] # reasoning effort, claude and codex lanes
[--coach narrow|full] # coach profile (codex|claude; no-op for agy|muse)
[--cwd DIR]
[--files PATH...]
[--expect-changes|--read-only]
[--sync] # block and print the final answer
[--parent ID] # link lineage to an earlier session
[--batch LABEL] # group a fan-out; one summary ping
[--worktree NAME] [--worktree-base REF]
[--gate CMD] [--fallback LANE[,LANE]] [--force]
playmaker continue <id> --prompt "..." # follow-up inside the live session
[--prompt-file PATH] [--after|--now] [--gate CMD] [--force]
[--model NAME] [--effort LEVEL] [--coach narrow|full]
[--files PATH...] [--expect-changes|--read-only] [--sync]
playmaker list [--status running|done|failed|no_changes] [--agent NAME] [--limit N]
[--spawned-by ID] # only sessions spawned by ID (prefix)
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> # also stops the Manus cloud task
playmaker watch # live TUI of sessions
playmaker events [--follow] [--batch LABEL] [--session ID] [--kind KIND]
[--last N] [--since ISO] [--interval SECONDS] # JSON lines only
playmaker worktree ls [--repo DIR] [--size]
playmaker worktree rm <NAME|PATH> [--force]
playmaker worktree prune-done [--into REF] [--dry-run]
playmaker queue ls [--thread ID] [--all]
playmaker queue show|edit|rm <item>
playmaker queue add <session-id> --prompt "..." [--prompt-file PATH]
[--files PATH...] [--gate CMD] [--model NAME]
[--expect-changes|--read-only] [--first|--position N]
playmaker queue clear <session-id|thread>
playmaker queue move <item> --first|--last|--to N
playmaker queue drain [--thread ID] [--force]
playmaker limits [--json] # current parallelism and RAM headroom
playmaker skill install [--dir PATH] [--force]dispatch, continue, list, get, thread, quotas, queue, worktree ls and limits take --json for scripting; events always prints JSON
lines.
--worktree makes a branch-local working directory for a dispatch and runs the
repository's .playmaker/wt-setup.sh or scripts/playmaker/wt-setup.sh hook
when present. A --gate runs after the agent and its gate_status is shown by
get; configure hook and gate deadlines with [worktree] setup_timeout and
[gate] timeout. --fallback moves quota, authentication, binary or model
refusals to the next named lane. [fallback] window only bounds how long after
start an unknown failure still counts as a refusal.
Use continue --after to leave a follow-up on a running thread; it is delivered
by the finishing worker, rather than lost to a second live writer. queue lets
you change or cancel waiting work, while events --follow and watch also
pick up an eligible idle thread. [events] interval controls the follow cadence.
Set [limits] max_parallel and min_free_ram_gb to keep a fan-out within the
machine's capacity. ledger.py add|fix --from-session <id> fills the lane,
model, wall time, first gate result and cycle count from that session's thread.
Write-shaped prompts are checked for file changes at completion. A zero-change
write task becomes no_changes; use --read-only for recon or answer-only
work, or --expect-changes to force the check for an otherwise ambiguous prompt.
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.
Coach sessions. A decider reads the repo and writes one decision record
(playmaker wave add): pass --coach narrow|full on dispatch or an
immediate continue. narrow gives codex workspace-write with network
access off and a single writable root — the wave registry
(~/.playmaker/registry), plus [coach] extra_writable_roots when
configured. No Codex home, no Muse session store, no Git directory, no
network; paths retain their exact characters and are escaped as TOML
strings. For claude, narrow keeps the configured permission mode,
overrides the global yolo shortcut, and extends --allowedTools with
read-only playmaker wave / get / list plus read-only git
(status/diff/log/show). Its --disallowedTools additionally denies the
acting wave commands (wave tick, wave schedule, and wave do — including
the option-terminated wave -- form — until pm-wave-tick's decision-only
handling lands), nested
dispatch/continue, git push/commit/reset/clean and git -C, plus
pm-review and python3 — so a narrow decider cannot commit, push, or run
anything outside that boundary. full removes the boundary entirely
(danger-full-access / --dangerously-skip-permissions). agy and muse accept
--coach as a no-op; every other lane refuses it. The stored coach field
is informational, visible in get and list --json: profiles never inherit,
including through dispatch --parent or continue without --coach.
continue --after --coach and any automatically queued coached continuation
are refused because a coach profile applies only to an immediate turn;
dispatch --coach --fallback is refused because a profile cannot ride a
fallback lane. Queue delivery and fallback sessions always run without a
profile. The profile travels as a flag, never through the environment.
Each agent process receives its own PLAYMAKER_SESSION_ID at spawn time;
the detached wrapper does not receive that override. Fresh dispatches and
immediate continuations store the calling environment's value as spawned_by
only when it exactly matches an existing session ID. Queued follow-ups and
fallback sessions have null spawned_by. This lineage does not change thread
membership and appears in get, list --json, list --spawned-by <id-prefix>
and the dispatch event detail. Accepted residual risks remain: a configured
[coach] extra_writable_roots entry widens codex narrow beyond the registry
by operator choice, and the tick still runs workers under the regular
profiles — full (and any lane outside this boundary) can push, so the
never-push rule for ticks remains necessary.
flowchart LR
C["coach<br/>your Claude Code session"] -->|dispatch| P(("playmaker"))
P --> A1["claude -p<br/>--model sonnet"]
P --> A2["codex exec"]
P --> A3["agy -p"]
P --> A4["opencode run<br/>-m zai-coding-plan/glm-5.2"]
A1 --> S[("state.db<br/>outputs/ + logs/")]
A2 --> S
A3 --> S
A4 --> S
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,
│ plus batch-<label>.md, every output in one fan-out combined
├── logs/ subprocess stdout for detached runs
├── opencode/ pointer per opencode session (its transcript lives in SQLite)
└── 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 |
| opencode | SQLite — ~/.local/share/opencode/opencode.db (session / message / part); playmaker keeps a pointer at ~/.playmaker/opencode/<id>.session |
| kimi | ~/.kimi-code/sessions/wd_<cwd-basename>_<hash>/session_<id>/agents/main/wire.jsonl (per-cwd; KIMI_CODE_HOME overrides the root) |
| muse | ${XDG_DATA_HOME:-~/.local/share}/muse/sessions/YYYY/MM/DD/<session-uuid>/session.jsonl (the date directory is the session's creation date; a resume appends to the same file) |
| 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.
playmaker wave keeps coordination outside disposable coach sessions. Each wave is an append-only
registry at ~/.playmaker/registry/<wave>.jsonl; package state is derived from those records,
playmaker sessions, review-board output, and git rather than cached in the coach's context.
playmaker wave init demo --repo . --base development --packages packages.json
playmaker wave now demo
playmaker wave tick demo # one stateless pass
playmaker wave schedule install # every minute via launchd
playmaker wave claim demo --by coach # uses PLAYMAKER_SESSION_ID
playmaker wave do demo api dispatch --by coach --agent codex --model gpt-5.3-codexwave init --branch release selects the branch packages land on (default:
development). The existing --base records the wave's comparison baseline.
Each package may also specify "base": "v1.0" in packages.json; its worker
worktree starts at that ref, or at the target branch tip when omitted. wave now
shows the target and each package's base, including in JSON output.
The stateless tick executes the wave; models only decide. playmaker wave tick [<wave>]
takes a non-blocking lock per wave, derives every package from the registry and reality
(playmaker sessions, board files, git), starts what is ready as detached processes — workers,
boards, serialized landings — appends intent before and effect after each start, and exits
without waiting. A second concurrent tick prints «another tick is running» and skips. The
tick refuses inside agent sessions (PLAYMAKER_SESSION_ID or CODEX_SANDBOX): workers
must never become descendants of a sandboxed decider. --dry-run prints the actions and
writes nothing.
wave do no longer executes: it appends the matching decision (reroute with the lane,
retry with the fix file, ruling «board now» / «land now») and prints «queued for the
next tick». now still prints the derived next step per package, plus a
running: workers N/3, boards N/2, deciders N/1; deferred: <reason> since <time> line and
the last pass time. Every tick intent carries a ref.op uuid that travels with the step
(worker prompt, decider call file, board attempt dir, Wave-Op landing trailer), so a pass
that died mid-step is reconciled against reality and never repeated blindly.
Where the rules cannot decide — impl-failed, stopped, an unrecoverable board, a land
failure — the tick starts ONE decider (playmaker dispatch <lane> --coach narrow with a
self-contained call file under <registry>/<wave>/calls/, built from the packaged
DECIDER.md plus package, evidence, verdicts, capped diff and policy excerpts). Deciders
rotate over [wave] deciders only when --coach narrow confines that agent (currently Codex
and Claude), and answer with one decision record; the next tick executes
it. decision answer, accept and return are refused inside agent sessions — only the
owner or the coordinator, outside, approves. A commit-word yes binds to ref.paths_hash,
the stable hash of the package paths' blob IDs; ref.sha is retained for display. Target
advances outside those paths preserve approval. Changed package content requires a new
answer when the final diff still requires the owner's word.
Landing is a detached step under a repo-wide lock: it merges the current target into
the package (also for a custom base), re-runs the package gate, and re-checks the commit
rule on the final diff. It builds and verifies a squash commit in a temporary detached
worktree at the target tip, then advances the target with compare-and-swap. A moved
target restarts the merge and checks, up to three attempts. The temporary worktree is removed.
The commit carries Wave-Package, Wave-Op, and
Wave-Hooks: skipped (gate + commit rule) trailers; landing disables Git hooks.
Landing never switches the shared checkout's branch. When that checkout has the target checked out, any staged, unstaged, or untracked change in the package's paths defers landing with the filename; a later tick retries. Only the package's changed paths are written to the index and working tree, including deletions. Foreign staged and unstaged changes are retained, and their status is checked before and after. If the target is not checked out anywhere, only its ref moves; a target checked out in another worktree is refused. No blanket staging is used.
Right after landing or abandoning, board files are
archived and verified below ~/.playmaker/registry/<wave>/<package>/, then the worktree is removed with
playmaker worktree rm, so wave now <wave> <package> still reports attempt summaries
and verdicts afterwards. Only <wave>--<pkg> worktrees are ever touched; owner-blocked
and exception packages keep theirs but do not count toward [wave] max_worktrees.
Every non-terminal worktree is retained regardless of age; its board files are archived,
and wave now lists its age for manual coordinator cleanup. A failed archive verification
retains even a terminal package's worktree and records preservation-failed.
Limits the tick never exceeds: [wave] max_workers (3), max_boards (2), max_deciders
(1) counted from live processes, never records; free-RAM admission below
min_free_ram_gb (6) with per-step reservations against memory_budget_gb (12); free-disk
admission for worker/land steps; per-step deadlines (a whole process tree is killed, an
event timed-out recorded, the package needs a decision); two implementer rounds per
package, then exception until a decider or the owner moves it; a wave.stop STOP file
starts nothing. wave now names the stall reason, and after stall_minutes (60) without
progress the tick runs [wave] notify_command once per period. While the wave has running
work each pass holds a short overlapping caffeinate; a closed lid is NOT covered.
Each package is also limited to [wave] max_decisions_per_package (3) decider calls without
an owner decision, green board, or landing; at the cap it waits for the owner.
Every [wave] setting the tick reads resolves without touching the machine's config:
a tick flag of the same name (--max-workers 2, --notify-command '["tg", "send"]')
wins, then <repo>/.playmaker/wave.toml [wave], then ~/.playmaker/config.toml
[wave], then the built-in default. wave now prints each non-default effective value
with its source (setting max_workers=2 (repo)). Deciders rotate per wave: each new
decider runs on the lane after the last decider launched in that wave.
Decider policy excerpts use coach_context (--coach-context '["rules.md#Gate"]'),
and pass-record throttling uses pass_record_minutes (--pass-record-minutes 10),
with the same precedence.
A [wave.lanes] entry ("<class>.<risk>") may be a single {agent, model, effort?, fallback?}
table or an ordered list of candidate tables. When <repo>/.playmaker/accounts.toml is present,
the tick builds the role-eligible candidates (after a reroute decision, the rerouted lane
comes first for a worker; deciders pass their rotated [wave] deciders order; board seat
exclusion stays in pm-review) and calls accounts.pick(candidates, repo, role="worker"|"decider")
so every eligible project-pool profile with headroom is spent before any personal login. The
selected named profile travels as --account <name> (omitted for the default login, and repos
without accounts.toml keep their previous behaviour with no --account flag). Each dispatched
and decider intent record stores ref.account, ref.pool and ref.reason (including why
project profiles were skipped when personal is chosen); when no candidate has confirmed headroom,
the tick records event deferred with reason = "quota" naming the lanes. wave now prints the
wave's starts per pool (pools: project 7 / personal 2) and the first profile per lane.
wave coach launches a self-contained coach with the packaged COACH.md and configured policy
excerpts embedded in its prompt. It defaults to --coach narrow; [wave] coach_file replaces the
instructions and [wave] coach_context is a list of path or path#Heading excerpts. Coaches
launched outside playmaker can use --token as a fallback claim identity.
Use wave add ... --dry-run to validate a note or decision without appending it. Records are
append-only: a mistaken record is neutralized with a decision void that references its line id.
Packages may declare open questions and owner_word: true; the latter prevents landing until the
owner answers the generated commit-word question with choice=yes.
The board executable defaults to pm-review and can be changed with
[wave] pm_review = "/path/to/pm-review" in config.toml.
Commits from a wave land without the owner only when a deterministic check says so. Migration SQL classification is not enabled: every change to a migrations/<dir>/migration.sql file waits for the owner's word, regardless of its contents or change type. owner_word_required also asks the owner for paths, risks, and classes listed in commit-rule.toml and for anything the package definition flags; the definition can only add that requirement, never remove it.
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.
opencode deserves its own note, because one CLI is many providers. Models
are provider/model strings from opencode models, and if you don't pass
--model opencode falls back to the default in its config — often whatever
you last picked interactively. Set the lane's default once:
[agents.opencode]
model = "zai-coding-plan/glm-5.2"It also has agy's working-directory problem in a different costume: opencode
reads process.env.PWD, which a subprocess cwd does not update, so left
alone it would ignore --cwd and write into the directory you were standing
in. playmaker passes --dir and fixes up PWD, so --cwd means what it says.
And it is the agent most likely to need binary, which every lane accepts:
[agents.opencode]
binary = "~/.opencode/bin/opencode"A bare name is resolved on PATH; a path is used as-is. opencode installs to
~/.opencode/bin, which reaches PATH only via a line in an interactive
.zshrc — so a dispatch from cron, an editor, or the coach can't find it
otherwise, and playmaker would report the agent as unavailable.
claude also accepts an effort level — Claude Code's --effort low|medium|high|xhigh|max, which trades speed for reasoning depth (the
motivating case: running Opus review boards at xhigh). Set the lane default
once with effort = "xhigh" under [agents.claude]; playmaker dispatch claude --effort <level> and playmaker continue <id> --effort <level>
override it for one run without persisting anything. The flag is accepted and
ignored on every lane but claude and codex so scripts can pass it uniformly,
and when it is unset everywhere no --effort flag is sent at all — Claude
Code's own default applies.
codex takes the same flag with one more level — --effort low|medium|high|xhigh|max|ultra — passed to codex exec and codex exec resume as -c model_reasoning_effort="<value>". The value is checked against
the model's supported_reasoning_levels in $CODEX_HOME/models_cache.json
when that file describes the model; precedence on dispatch is --effort,
then PLAYMAKER_CODEX_EFFORT, then reasoning_effort = "…" under
[agents.codex]; on continue (queued or not) the parent session's effort
comes right after --effort, ahead of the env var. Unset everywhere, Codex's own
~/.codex/config.toml applies. The effective effort is stored on the session
and shown by playmaker get (an effort: line; effort in --json).
On the codex lane, --files entries ending in .png/.jpg/.jpeg/.webp
go as --image= attachments, on dispatch and on resume (continue --files);
every other file stays an @path reference in the prompt. On agy and the
claude lanes the path travels in the prompt text and the agent opens the
image with its own file tool.
claude-api is the same agent on an API key, through the
Claude Agent SDK:
a runner shipped in the package (playmaker/runners/claude_sdk.mjs) calls the
SDK's query() on Node and prints the stream-json claude -p prints, so
cost_usd, session_id, get, thread and continue work as on the claude
lane. Auth is ANTHROPIC_API_KEY alone — the runner stops a run whose SDK
reports any other credential — so this lane spends Console credits (the promo
credit included: it pays for Agent SDK traffic and not for Claude Code's) and
leaves the subscription pool the claude lane runs on untouched. The key never
lives in config.toml: key_source = "keychain" reads the macOS Keychain item
added with security add-generic-password -s playmaker-anthropic-api -a playmaker -w, and key_source = "file" reads ANTHROPIC_API_KEY=... from
~/.playmaker/secrets.env (mode 600). The key goes into the worker's
environment only — never on the command line, never in a log — and every other
CLAUDE* / ANTHROPIC_* variable the launching shell carries is dropped.
The SDK is not in the wheel. Install it once, pinned, with npm from the lane's
own Node (binary, Node 18.14+, default node on PATH):
playmaker sdk install # → ~/.playmaker/sdk-runnerA lane without Node, without the pinned SDK or without its key refuses the
dispatch (exit 2) before any session row exists, with the fix spelled out. No
settings files, hooks, MCP servers, auto-memory or CLAUDE.md reach the
worker, so the prompt carries its own context; pass --model explicitly
(fable, opus, sonnet, haiku), and max_turns caps a run. Console
exposes no usage endpoint for a key, so playmaker quotas keeps a local
counter instead — the sum of cost_usd over the lane's sessions since
credit_reset_day — marks the lane low when less than warn_below_usd is
left, and dispatch / continue refuse (exit 3, --force overrides) once it
reaches stop_at_usd. An API answer of «credit balance is too low» counts as a
quota refusal, so --fallback reroutes the work:
[agents.claude-api]
binary = "node"
key_source = "keychain"
max_turns = 50
credit_reset_day = 4
monthly_cap_usd = 200
stop_at_usd = 200
warn_below_usd = 15Every 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` acceptsWithout 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.
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
Weekly · Fable ██████░░░░░░░░░░░░░░ 28% 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
Codex — Spark
Session ████████████████████ 100% left resets in 4h 59m
Weekly ██░░░░░░░░░░░░░░░░░░ 8% left resets in 5d 22h
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
Z.ai (GLM, via opencode) Max
Session ████████████████████ 100% left
Weekly ███████████████████░ 95% left resets in 1d 11h
MCP tools ███████████████████░ 99% left resets in 25d 11hThe Weekly, Weekly · Fable and Sonnet rows above are the point: they are
separate buckets. So is the Codex — Spark block, every agy row, and the
whole Z.ai block. Routing a subtask is choosing which of them to spend.
- Claude — OAuth usage API; token from the Claude Code Keychain entry. When
it expires, Claude Code itself refreshes it; the quota probe never rotates the
shared refresh token.
Model-scoped weekly buckets come from the usage API's
limits[]array and print asWeekly · <model>.[quotas] claude_refresh_via_clidefaults totrue; set it tofalseto reportlogin expired — run: claude auth loginwithout spawningclaude. - Codex — ChatGPT
wham/usageAPI; token from~/.codex/auth.json. The Spark model's own 5-hour and weekly windows come fromadditional_rate_limits[]and print as their ownCodex — Sparkblock. - 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. - Z.ai — GLM Coding Plan usage API; key from opencode's
~/.local/share/opencode/auth.json(or$ZAI_API_KEY). Reported as its own provider because the quota belongs to the plan, not to opencode — an opencode lane pointed at a local model spends nothing here. Shows unsupported rather than an error when no Z.ai credential exists.MCP toolsis the monthly web-search/reader pool, not inference. - Kimi Code — managed usage API; OAuth token from
~/.kimi-code/credentials/kimi-code-env-*.json($KIMI_CODE_HOMEoverrides the root). Its 5-hourSessionand weekly rows are separate percentage buckets; no credential reads as unsupported rather than a failed probe. - Muse Code — the same call the
museCLI uses to mint its inference key (POST api.meta.ai/muse-code/key) also reports subscription usage; the minted key and the payment fields in the response are discarded, nothing is written back. The login is read-only: an inlineproviders.meta.access_tokenin~/.config/muse/auth.json($MUSE_AUTH_PATH/$XDG_CONFIG_HOMErespected), else the macOS Keychain itemai.meta.dev.credentialsviasecurity find-generic-password— the first Keychain read can raise a macOS "allow access" dialog, and "Always Allow" makes later probes silent. ShowsMuse Code <plan name>withSession(the 5-hour window) andWeeklyas separate percentage buckets with reset times; Meta omits usage while the 5-hour window is idle, and the block then shows the plan with a note instead of bars. No login reads as skipped rather than a failed probe. - Perplexity — a local sum of session
cost_usdfor this cycle against[agents.perplexity] monthly_cap_usd, not the prepaid USD balance (there is no balance API).[agents.perplexity] stop_at_usdmakes dispatch refuse.
Reading these at model granularity is the point: they are the load-balancing input the coach skill uses to route each subtask.
- 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.
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.
SECURITY.md covers which credentials the quota probes read and
what a dispatched agent is allowed to do.
uv run pytest
uv run ruff check .MIT. See LICENSE.
Run personal and work logins side by side with dispatch --account work.
continue keeps the thread's account. A repository's .playmaker/accounts.toml
can order profiles, with ask by default or explicitly authorized next on
exhaustion. See Accounts for configuration, login commands,
project-first selection across eligible lanes, pool headroom summaries, costs,
and switching boundaries.