/branch
A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
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 instead of switching into it, use /fork; to hand a side task to a subagent that reports back into this conversation, use /subtask
Anthropic's own wording. Read off Commands, captured 2026-09-28.
In the changelogs
4Releases whose published page names /branch.
-
v2.1.318
Branching a conversation now keeps its REPL mode
When you branch a conversation with /branch, the new copy now keeps the original session's REPL mode instead of losing it
named in this entry, found in this entry's text
-
v2.1.212
/subtask Command
found in this entry's text
- v2.1.122
-
v2.1.77
/branchCommand (renamed from/fork)found in this entry's text
First cited
0No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.