Anthropic Adds Git-Style /fork Command And New CLI To Claude Code

During Microsoft Build 2026, Anthropic shipped a /fork command and a new command-line interface for Claude Code, bringing git-style session branching to AI-assisted coding.

Anthropic Adds Git-Style /fork Command And New CLI To Claude Code

Anthropic has shipped a git-style /fork command and a new command-line interface for Claude Code, landing the updates during the same window as Microsoft Build 2026 in a deliberate counter-move that keeps developer attention on Claude's coding stack while Redmond runs its own keynote.

What The /fork Command Actually Does

The new /fork command lets a developer branch an active Claude Code session into a parallel variant, preserving the original session's context, files and history while running a separate experimental thread in isolation. Engineers can A/B two prompting strategies or two implementation approaches against the same shared context, compare results, then keep the winner without re-establishing the workspace from scratch. The pattern mirrors how teams already work with git branches and lowers the learning curve for developers comfortable with version control workflows.

Anthropic Claude Code build week update including /fork command and new CLI

Layered On Top Of Nested Sub-Agents

The fork primitive sits on top of an earlier update that introduced nested sub-agents inside Claude Code, smarter model and region handling, and a redesigned plugin search interface. Combined, the two features give Claude Code a session-management model that resembles git workflows backed by parallel agent orchestration, an architecture that Anthropic is explicitly aiming at engineering teams already running multi-step agentic pipelines through products like OpenAI's confidential S-1 filing wave and rivals such as Microsoft's MAI Thinking One.

Why The Timing Matters

Claude Code is now the fastest-growing product in Anthropic's history, and a key reason the company overtook OpenAI on US business adoption in the Ramp AI Index for the first time, per coverage in our earlier piece on the Ramp AI Index. Independent analysis estimated 4 percent of all public GitHub commits were authored by Claude Code as of the most recent measurement, double the share recorded a month earlier. Shipping a /fork primitive and a cleaner CLI during Microsoft Build is a direct play to keep that compounding flywheel intact ahead of the company's targeted Q4 2026 IPO window.

The Practical Takeaway For Engineering Teams

For teams already running Claude Code, the new CLI consolidates configuration that previously lived across multiple files into a single entry point, while the /fork command gives them a low-friction way to keep exploring without polluting a production session. For teams still on Codex or GitHub Copilot, the move tightens the gap on session-state management, an area where Claude Code had previously trailed competitors that exposed richer workspace primitives.

Reporting based on coverage from TechTimes, Geeky Gadgets and Releasebot.

Category: Machine Learning

Tags: Robotics Machine Learning AI Partnership

Related Articles