Claude Code /fork spawns background agents
Anthropic has updated the /fork command in its terminal-based coding assistant, Claude Code, to spawn background agents that inherit the user's exact current context and prompt cache. Meanwhile, the previous behavior of copying transcripts to a new session has been renamed and migrated to the /branch command.
While background agents are a natural progression for CLI coding tools, the integration of prompt caching here is the real game-changer, dramatically lowering the cost and latency barriers for developers spinning up asynchronous subtasks in their terminal.
* Retaining prompt caching and exact context allows developers to spin up background subagents without losing momentum or paying a massive token startup cost.
* Migrating manual transcript copying to the /branch command clarifies the terminal interface's mental model.
* This update makes Claude Code a more viable orchestrator of autonomous workflows, though it increases the need for developer guardrails to prevent background loop token burn.
DISCOVERED
1h ago
2026-06-02
PUBLISHED
1h ago
2026-06-02
RELEVANCE
AUTHOR
ClaudeDevs