/fork
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.
Copy the current conversation into a new background session and keep working here. Pass a prompt and the copy starts working on it immediately; without one it waits in agent view for its first prompt. Except when the copy edits in place, Claude Code instructs it to create a worktree of its own before making code changes; the isolation instruction requires Claude Code v2.1.221 or later. To hand a side task to a subagent whose result comes back into this conversation, use /subtask; to switch into a copy yourself, use /branch. Requires Claude Code v2.1.212 or later; on v2.1.161 through v2.1.211, and whenever agent view is turned off, /fork starts a forked subagent instead
Anthropic's own wording. Read off Commands, captured 2026-09-28.
In the changelogs
8Releases whose published page names /fork.
-
v2.1.292
/forkcan send a repository address when no git address is foundWhen forking a session finds no git repository address, Claude Code now falls back to another repository address
named in this entry, found in this entry's text
-
v2.1.212
/fork Command
found in this entry's text
-
v2.1.212
Fork Session Safety Checks
found in this entry's text
-
v2.1.212
CLAUDE_CODE_SIMPLE Environment Variable
found in this entry's text
-
v2.1.117
/fork Command
found in this entry's text
-
v2.1.117
Fork Subagent Feature Gate [Gradual Rollout]
found in this entry's text
-
v2.1.77
/branchCommand (renamed from/fork)found in this entry's text
-
v2.1.8
/fork Command
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.