Skip to content

batch

batch applies one intent to many targets at once. You describe the change once; it runs that prompt against each target in its own isolated git worktree, in parallel, then merges the results back โ€” so a sweep across a monorepo doesnโ€™t become a serial slog or a pile of conflicting edits.

What it solves

Some changes are the same edit repeated across many independent units: bump a config in every package, apply a lint fix across modules, migrate an API call in a dozen directories. Done serially itโ€™s slow; done all in one working tree the parallel edits collide. You end up either waiting or untangling conflicts.

How it works

  • Fan-out โ€” the prompt is dispatched once per target, across the files, modules, or directories you point it at.
  • Worktree isolation โ€” each target runs in its own git worktree, so parallel changes never share a working directory and canโ€™t corrupt each other.
  • Merge back โ€” once each unit finishes, the results are merged back together, giving you one combined change to review instead of N detached branches.

Itโ€™s aimed at monorepo / workspace layouts (packages/**, modules/**, apps/**) where the same intent legitimately spans many independent units.

When to use

When a single, well-defined change must be applied to many independent targets and you want them done in parallel without conflicts โ€” a workspace-wide bump, a repeated migration, a cross-module fix.