Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

/batch works outside a git repository when a WorktreeCreate hook is configured

/batch now runs outside a git repository when a WorktreeCreate hook is configured, publishing through the project's own version control

Use it now Improvements
JSON All of v2.1.281
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Slash CommandsArea: what it touches
ImprovementsKind: in v2.1.281,
What probably matters to youSection of the release
What

/batch splits a large change across several workers, each in its own worktree, a separate working copy of the project. It no longer needs git. It now refuses only when the directory is not in a git repository and no WorktreeCreate hook (a user-set command that creates worktrees) is configured, and says so in a new message.

When worktrees come from the hook instead of git, a "Version control" section is added to the batch instructions. It tells the model:

  • git and gh commands will not work.
  • Each worker should replace the commit, push and pull request step with the project's own version-control commands.
  • A worker that reports PR: none along with what it published instead counts as done.
Why

Projects that use a version-control system other than git can use /batch by providing a WorktreeCreate hook.

Read from
Names in the bundle/batchWorktreeCreate
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up /batch, on Message Batches API. The Message Batch's `processing_status` field indicates the stage of processing the batch is in. It starts as `in_progress`, then updates to `ended` once all the requests in the batch have finished processing, and results are ready. You ca… build-with-claude/batch-processing see the edit
Added since A small documentation edit on Commands touched a line naming WorktreeCreate after this was published. | `/batch <instruction>` | **[Skill](/docs/en/skills#bundled-skills).** Orchestrate large-scale changes across a codebase in parallel. Researches the codebase, decomposes the work into 5 to 30 independent units, and presents a plan. Once a… commands see the edit
Added since A small documentation edit on thinking touched a line naming /batch after this was published. The SDKs require streaming when `max_tokens` is greater than 21,333, to avoid HTTP timeouts on long-running requests. This is a client-side validation, not an API restriction. If you don't need to process events incrementally, use `.stream… build-with-claude/thinking see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesA small documentation edit on thinking touched a line naming /batch after this was published.
Anthropic's release notes agreeImproved /batch to run where a WorktreeCreate hook provides the agent worktrees, not only inside a git repository

See this entry in the whole of v2.1.281 →

Feedback