We've updated /fork in Claude Code /fork now runs a background agent with your exact context (system prompt, tools, history, model) and prompt cache. The result gets returned to your session. /branch (the old /fork) still copies the transcript to a new session you drive. https://t.co/eMyFrk8PfR
Anthropic updates Claude Code to launch autonomous background agents via fork
/fork command in Claude Code, its terminal-based agentic coding tool (AI that autonomously writes and iterates on code), to launch autonomous background agents. These sub-agents inherit the exact context of the active session. The background agent executes tasks independently and returns results to the main session.- Inherited Context
- System prompt, tools, history, model, and prompt cache
- Manual Fork Behavior
- Copies transcript to a new user-driven session
This update streamlines parallel workflows by utilizing prompt caching (storing frequently used data to reduce latency) to make delegation nearly instantaneous. By allowing agents to fork with full state, Anthropic addresses context gaps that occur during task delegation. This follows a similar pattern seen when OpenAI introduced OpenAI parallel subagents.
Developers can now use /fork to offload sub-tasks, like debugging or running tests, while continuing work in the primary session. Manual forking is now available via the /branch command. These background tasks can be monitored through the agent view dashboard.
Still wondering? A few quick answers below.
Every HeadsUpAI update is written based on its original source and reviewed before it's published. Read our editorial standards →

