{"name":"\/branch","slug":"branch","family":"slash","title":"Slash commands","noun":"slash command","description":"Create a branch of the current conversation at this point, so you can try a different direction without losing the conversation as it stands. Switches you into the branch and preserves the original, which you can return to with `\/resume`. To run a copy as a separate [background session](\/docs\/en\/agent-view) instead of switching into it, use `\/fork`; to hand a side task to a [subagent](\/docs\/en\/sub-agents) that reports back into this conversation, use `\/subtask`","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.318","builds":0,"mined_builds":158,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.318","anchor":"forkbranch-now-persists-repl-mode-into-the-new-session","heading":"Branching a conversation now keeps its REPL mode","line":"When you branch a conversation with \/branch, the new copy now keeps the original session's REPL mode instead of losing it","released_at":"2026-11-03 21:55:17","reason":"named in this entry, found in this entry's text"},{"version":"2.1.212","anchor":"subtask-command","heading":"\/subtask Command","line":null,"released_at":"2026-07-16 19:20:24","reason":"found in this entry's text"},{"version":"2.1.122","anchor":"bug-fixes","heading":"","line":null,"released_at":"2026-04-28 17:35:53","reason":"found in this entry's text"},{"version":"2.1.77","anchor":"branch-command-renamed-from-fork","heading":"\/branch Command (renamed from \/fork )","line":null,"released_at":"2026-03-16 22:16:52","reason":"found in this entry's text"}],"entries_total":4,"docs":[{"source":"claude-code","path":"commands","title":"Commands","documented":true},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"checkpointing","title":"Checkpointing","documented":false},{"source":"claude-code","path":"hooks","title":"Hooks reference","documented":false},{"source":"claude-code","path":"how-claude-code-works","title":"How Claude Code works","documented":false},{"source":"claude-code","path":"mcp","title":"Connect Claude Code to tools via MCP","documented":false},{"source":"claude-code","path":"plugins\/mods\/interface","title":"Draw in the interface with a mod","documented":false},{"source":"claude-code","path":"plugins\/mods\/reference","title":"Mods reference","documented":false},{"source":"claude-code","path":"plugins\/mods\/troubleshoot","title":"Troubleshoot a mod","documented":false},{"source":"claude-code","path":"sessions","title":"Manage sessions","documented":false}],"docs_total":10,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/slash\/branch","family_url":"https:\/\/changelogs.core-directive.com\/reference\/slash.json"}