Claude Codeparallel-agents

/batch

Orchestrate large-scale changes across a codebase in parallel. Decomposes work into 5–30 independent units, each in its own git worktree with its own PR.

Syntax

/batch <instruction>

Example

/batch migrate src/ from Solid to React

About

Workflow. Researches the codebase, decomposes the work into 5 to 30 independent units, and presents a plan. Once approved, spawns one background subagent per unit in an isolated git worktree. Each subagent implements its unit, runs tests, and opens a pull request. Requires a git repository.

When to use

  • Large-scale migrations (e.g. framework swap, API version upgrades)
  • Applying a consistent change pattern across many files in parallel
  • Automating a refactor that would take days manually

More Claude Code commands