Boris Cherny11/ Use /batch to Fan Out Massive Changesets
Source snapshot: 2026-11-09Independent editorial note
When this pattern helps
Use this when work can be split into independent tasks with clear boundaries. Keep shared-file ownership explicit and require a review step before combining results; parallelism is not automatically faster when tasks depend on one another.
适合可以拆成相互独立子任务的工作。先划清文件与任务边界,再约定合并前的复核步骤;任务之间高度依赖时,并行未必更快。
/batch interviews you, then has Claude fan out the work to as many worktree agents as it takes (dozens, hundreds, even thousands) to get it done.
- Use it for large code migrations and other kinds of parallelizable work
- Each worktree agent works independently on its own copy of the codebase
Original source on X