/batch Command Worktree Orchestration
- Entity ID:
ent-20260419-dc24bd7e8383 - Type:
concept - Scope:
shared - Status:
active - Aliases: /batch, batch worktrees, parallel worktree agents
Description
Primary production multi-agent path: /batch breaks a refactoring or analysis task into 5-30 parallel git worktree agents, each in an isolated filesystem copy. Each agent opens its own pull request. Agents coordinate through file-based JSON mailboxes secured by file locks with 10-retry backoff. Fork pattern creates byte-identical parent-context copies so all siblings hit the API prompt cache simultaneously. Pricing tier gate: Free = 1 agent, Max/Team = 3 agents.
Key claims
- Fork economics make 5-agent parallel barely more expensive than 1-agent
- Agents in /batch coordinate via JSON mailboxes with file locks
- /batch agent count is the paid-tier monetization dimension
Relations
- /batch Command Worktree Orchestration --[uses]--> Worktree Isolation
- /batch Command Worktree Orchestration --[depends_on]--> Forked Agent Cache-Sharing Economics