Cmd. /batch
Parallelize a large change across worktree subagents (skill).
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Parallelize a large change across worktree subagents (skill).
- Check the input surface and availability before using the examples below.
Purpose
Parallelize a large change across worktree subagents (skill).
/batch <instruction>Availability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Bundled skill |
| Status | Conditional |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-10-23 · Claude Code 2.1.308 |
| Release evidence | v2.1.281 |
Requires a Git repository or a WorktreeCreate hook that creates the worktrees (outside Git: v2.1.281+); worktree tasks start after the proposed plan is approved.
Examples
/batch migrate src/utils from JavaScript to TypeScriptEffects and persistence
After plan approval, each unit runs in an isolated worktree, implements its change, runs tests, and publishes the change.
Cautions
Review the proposed units before approval. Worktrees isolate edits but do not eliminate integration conflicts. /batch needs a Git repository or a WorktreeCreate hook that creates the worktrees; running outside a Git repository through that hook requires Claude Code v2.1.281 or later.