Claude Discovery

← All discoveries

Close-up of a hand holding a smartphone displaying app updates on a light background.
Photo by Andrey Matveev on Pexels
tool

Claude Code 2.1.212 splits /fork into background sessions and adds runaway-loop caps

2026-07-17 ยท source:

Claude Code 2.1.212 changes /fork to copy a conversation into a new background session, renames the old in-session subagent behavior to /subtask, and adds per-session caps on WebSearch calls and subagent spawns.

What it is

A new release of Claude Code, Anthropic's CLI coding agent.

What it does

It redefines `/fork` to copy your current conversation into a fresh background session, viewable as its own row in `claude agents`, while your original session keeps running; the old behavior of launching an in-session subagent moves to a new `/subtask` command. It also adds a `claude auto-mode reset` command to restore default auto-mode settings, plus two new session-wide limits: a WebSearch call cap (default 200, tunable via `CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION`) and a subagent spawn cap (default 200, tunable via `CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION`), both aimed at stopping runaway loops.

Why it matters

Unbounded search or subagent loops can quietly burn through API budget and time before anyone notices; hard caps turn that into a fail-fast error instead. Splitting /fork from /subtask also clears up a command that had been doing two different jobs under one name.

How to use it

Update to v2.1.212, use `/fork` when you want a parallel background session and `/subtask` for the old in-session behavior, and set `CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION` or `CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION` if the 200 defaults are too tight for your workflow.

Go to source →
claude-coderelease-notesautomation