ainewsblitz.com

Breaking

Claude Code revamps /fork for full-context parallel runs

Anthropic's official developer account @ClaudeDevs announced on June 2, 2026 that it had revamped the /fork command in Claude Code, its terminal-based AI coding tool. The new /fork now launches a background agent that inherits the current session's exact context—system prompt, tool definitions, conversation history, model settings, and the prompt cache—and returns the result to the original session once it completes.

The behavior previously handled by /fork—copying the conversation transcript into a new, independent session that the user drives manually—has been moved to a newly introduced /branch command. Users can now choose between a branch they steer themselves (/branch) and parallel execution that quietly works in the background (/fork).

Claude Code is Anthropic's agentic coding tool (CLI) that runs in the terminal, understanding codebases and performing file edits, Git operations, and task execution through natural language. It has long offered session-management commands such as /fork (branching a conversation) and /btw (asking a side question without polluting context). The latest change sits in the lineage of these "context hygiene" tools, but its aim is to improve cost and speed efficiency when running parallel agents. The official documentation also describes the design philosophy behind session resume/fork and checkpointing.

Conventional subagents had to rebuild their context from scratch every time, consuming large amounts of tokens. The new /fork sharply reduces this recomputation by sharing the prompt cache. In one user's measured example, with a shared context of about 48,500 tokens, the old approach required roughly 48,700 tokens per agent, whereas the new /fork lets the second agent onward run on about 5,050 tokens thanks to cache hits. Running five agents in parallel, the total drops from about 243,500 tokens to about 68,900—an estimated 72% reduction.

Continue reading

The rest of this article is for AI News Blitz readers. Choose an option below to keep reading.

$20
Read this article
$29/month
Unlimited — all 5,794 articles, the full archive, and comprehension quizzes
Save 72%
$98/year
≈ $8.17/month
Unlimited, billed once a year