{"name":"\/batch","slug":"batch","family":"slash","title":"Slash commands","noun":"slash command","description":"**[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 approved, spawns one [background subagent](\/docs\/en\/sub-agents#run-subagents-in-foreground-or-background) per unit in an isolated [worktree](\/docs\/en\/worktrees). Each subagent implements its unit, runs tests, and publishes its change. Requires a git repository or a [`WorktreeCreate` hook](\/docs\/en\/worktrees#non-git-version-control) that creates the worktrees. Outside a git repository, `\/batch` requires Claude Code v2.1.281 or later. Example: `\/batch migrate src\/ from JavaScript to TypeScript`","description_source":"docs","described_by":{"doc":"claude-code\/commands","title":"Commands"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":{"version":"2.1.281","released_at":"2026-09-23 17:01:17","spans":1}},"aliases":[],"entries":[{"version":"2.1.281","anchor":"batch-works-outside-a-git-repository-when-a-worktreecreate","heading":"\/batch works outside a git repository when a WorktreeCreate hook is configured","line":"`\/batch` now runs outside a git repository when a `WorktreeCreate` hook is configured, publishing through the project's own version control","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.265","anchor":"artifact-database-str-replace-edit-op-gated-off-by-default","heading":"Artifact-database str_replace edit op, gated off by default","line":"Artifact database gains a targeted str_replace edit operation, currently gated off","released_at":"2026-09-08 19:05:16","reason":"found in this entry's text"},{"version":"2.1.227","anchor":"large-bundled-skill-and-docs-blocks-moved-not-deleted","heading":"Large bundled skill and docs blocks moved, not deleted","line":"Big skill and docs blocks that look deleted were only moved; nothing was dropped.","released_at":"2026-08-10 20:56:57","reason":"named in this entry, found in this entry's text"},{"version":"2.1.63","anchor":"batch-command","heading":"\/batch Command","line":null,"released_at":"2026-02-28 02:43:42","reason":"found in this entry's text"},{"version":"1.0.0","anchor":"removed-features","heading":"Removed Features","line":null,"released_at":"2025-05-22 16:57:18","reason":"found in this entry's text"}],"entries_total":5,"docs":[{"source":"claude-code","path":"commands","title":"Commands","documented":true},{"source":"api","path":"about-claude\/api-credits-for-subscribers","title":"api-credits-for-subscribers","documented":false},{"source":"api","path":"about-claude\/models\/migration-guide","title":"Or, for the model with the same capabilities and no access approval requirement:","documented":false},{"source":"api","path":"about-claude\/models\/optimizing-for-cost-and-intelligence","title":"optimizing-for-cost-and-intelligence","documented":false},{"source":"api","path":"about-claude\/pricing","title":"pricing","documented":false},{"source":"api","path":"agents-and-tools\/mcp-connector","title":"mcp-connector","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/advisor-tool","title":"advisor-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/code-execution-tool","title":"code-execution-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/server-tools","title":"server-tools","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/tool-search-tool","title":"tool-search-tool","documented":false}],"docs_total":13,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/slash\/batch","family_url":"https:\/\/changelogs.core-directive.com\/reference\/slash.json"}