- Home
- Parallel & background work
- /batch
/batch<instruction>
Skill⇄ Broad file changes
Orchestrates large changes in parallel: researches the codebase, decomposes the work into 5–30 independent units and presents a plan; after approval, one background subagent per unit implements and tests it in its own worktree. Requires a git repository or a WorktreeCreate hook.
Best use
/batch migrate src/ from JavaScript to TypeScript.
Safety labels
⇄ Broad file changes: Can change or revert many files at once. Commit or back up first, and review with /diff afterwards.
Related commands · Parallel & background work
- /agentsPrints a reminder to ask Claude to create or manage subagents, or to edit .claude/agents/ directly.
- /backgroundDetaches the session to run as a background agent and frees the terminal.
- /forkCopies the conversation into a new background session while you keep working here.
- /list-agentsLists subagents, teammates and other sessions Claude can message, with the name to use for each.
- /stopStops the background session you're attached to; transcript and worktree are kept.
- /subtaskSpawns a forked subagent that inherits the conversation and reports its result back here.
- /tasksViews and manages background work in this session, including finished subagents.
- /workflow-authoringLoads the reference for writing dynamic workflow scripts.
← See all commands