Anthropic updates Claude Code to launch autonomous background agents via fork

AnthropicAnthropic

· Updated

Anthropic redesigned the /fork command in Claude Code to run background agents that inherit the user's exact session state and prompt cache. This allows developers to delegate sub-tasks to autonomous agents without interrupting their primary terminal session. The update shifts the tool from manual session management toward automated multi-agent orchestration.

Anthropic updated the /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—system prompt, tools, history, and model. The background agent executes its task independently and returns the result 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 inheriting the session's prompt cache (storing frequently used data to reduce latency) to make delegation nearly instantaneous. By allowing an agent to fork with full state, Anthropic closes the context gaps that occur during task delegation. This follows a similar pattern seen when OpenAI introduced parallel subagents.

Developers can now use /fork to offload sub-tasks—such as debugging a race condition or scanning for similar issues across the codebase—while continuing work in the primary session. The previous behavior, which copies the conversation transcript to a new session you drive manually, is now available under the /branch command.

ClaudeDevs
ClaudeDevs
@ClaudeDevs
X

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

256retweets4.4klikes
View on X

Still wondering? A few quick answers below.

The updated /fork command in Claude Code allows developers to launch an autonomous background agent that inherits the full context of the current session. This agent works independently on a delegated task and returns the results directly to the primary session, enabling parallel workflows without requiring the user to manually manage multiple terminal windows.

In the updated Claude Code, /fork now launches an autonomous background agent that inherits the session state and returns results automatically. The previous behavior, which copies the conversation transcript to a new session for the user to drive manually, has been renamed to the /branch command to distinguish it from autonomous background tasks.

A forked agent inherits the exact state of the primary session, including the system prompt, available tools, conversation history, and the specific model being used. Crucially, it also inherits the prompt cache, which allows the background agent to begin working immediately without the latency or cost of reprocessing the entire history.

Every HeadsUpAI update is written based on its original source and reviewed before it's published. Read our editorial standards →

Share this update