Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pitboss

Pitboss is a Rust toolkit for running and observing parallel Claude Code sessions. A dispatcher (pitboss) fans out claude subprocesses under a concurrency cap, captures structured artifacts per run, and — in hierarchical mode — lets a lead dynamically spawn more workers via MCP. The TUI (pitboss-tui) gives the floor view: tile grid, live log tailing, budget and token counters.

Language models are stochastic. A well-run pit is not.

What pitboss does

PrimitiveDescription
Flat dispatchDeclare N tasks up front; pitboss runs them in parallel under a concurrency cap. Each task runs in its own git worktree on its own branch.
Hierarchical dispatchDeclare one lead; the lead observes the situation and dynamically spawns workers via MCP tools, under budget and worker-cap guardrails you set.
Depth-2 sub-leads(v0.6+) A root lead may spawn sub-leads, each with its own envelope and isolated coordination layer. Useful for multi-phase projects that each need their own context.
Operator controlCancel, pause, freeze, or reprompt workers live. Gate actions on operator approval. The TUI shows everything in real time.
Structured artifactsEvery run produces per-task logs, token usage, session ids, and a summary.json. Nothing disappears when the terminal closes.

Quick orientation

Current version

v0.7.0 — headless-mode hardening. Bundled-claude container variant (ghcr.io/sds-mode/pitboss-with-claude), CLAUDE_CODE_ENTRYPOINT=sdk-ts permission default (closes the “silent 7-second success” sub-lead failure), ApprovalRejected/ApprovalTimedOut terminal states, spawn_sublead gains optional env + tools parameters, dispatch-time TTY warning when approval gates are configured without an operator surface, pitboss agents-md subcommand + /usr/share/doc/pitboss/AGENTS.md in container images, native multi-arch CI (62 min → 5 min), GHA action bumps for Node 24 compatibility.

See Changelog for the full version history.