Claude Code v2.1.206: /doctor Trims CLAUDE.md, /commit-push-pr Auto-Allow Git Push, Background Agent Upgrade

Anthropic shipped Claude Code v2.1.206 with a stack of quality-of-life improvements and critical fixes for MCP servers, background agents, and git integrations.
New Features
/cdpath suggestions: The/cdcommand now shows directory path completions, matching/add-dirbehavior./doctortrim proposal: A new check suggests cutting content from checked-inCLAUDE.mdfiles that Claude can derive directly from the codebase./commit-push-prauto-allow git push: Now automatically allowsgit pushto the repo's configured push remote (remote.pushDefault, or the sole remote when only one is configured) in addition toorigin.- Gateway
/login: Now supports Anthropic-operated public gateway endpoints. - EnterWorktree confirmation: Prompts before entering a git worktree outside
.claude/worktrees/. - Background agent upgrade: Background agents now upgrade in the background immediately after a Claude Code update, avoiding the slow stale-session upgrade on attach.
Fixes
- Expired login error message — now properly prompts for
/logininstead of showingThere's an issue with the selected model
. claude --resume/--continue— keyboard input now works on startup.- MCP
request_timeout_ms— per-server timeout settings from--mcp-configor.mcp.jsonare now respected; long-running MCP tool calls no longer time out at the 60s default in fresh sessions. CLAUDE_CODE_EXTRA_BODY— now correctly passed toclaude agents/--bgbackground workers.- OAuth MCP servers — no longer require manual re-authentication after a single failed token refresh.
--permission-prompt-tool— no longer crashes withMCP tool not found
on cold start before the server connects./modelpicker — fixed rows showing wrong price, stopped quoting first-party list prices on providers that don't bill them, and fixed misplaced server-provided rows when entitlement/allowlist restrictions drop a reference row.- Desktop sessions — no longer stuck showing
running
after mid-turn slash commands. - Windows agents view — keyboard input no longer ignored when a setup prompt appears before bare
claude --resume. claude rm— now properly removes the job from the daemon roster; deleted jobs stay deleted./remote-control— now explains how to sign in instead of showingUnknown command
when logged out.- Left arrow — now steps back out of a phase or agent in the workflow detail view.
/status— no longer lists the same broken-install warning twice.- LSP plugins — false
disused plugin
tips and skewed telemetry fixed. /doctorupdate check — for Homebrew installs, now compares against the cask's channel instead of the settings channel.- Fullscreen jump-to-bottom pill — fixed Ctrl+End suggestion on macOS, rebound chords now show, and the pill no longer wraps over the transcript.
- Bedrock — fixed multi-minute startup hang when using
awsCredentialExporthelper on networks with restricted egress.
Improvements
/code-review— findings quality improved onclaude-opus-4-8across all effort levels.- Agents view status column — now uses full terminal width instead of truncating at 64 characters.
- Ctrl+X in agents view permanently removes a completed session; deleted background jobs stay deleted. Sessions no longer render twice.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Open-Source Web UI for Parallel Claude Code Sessions Using Git Worktree
A developer has built an open-source web UI called CCUI that enables running multiple Claude Code sessions in parallel using git worktree. It runs as a local web server accessible via browser and supports SSH port forwarding for remote development.

Exploring macOS's sandbox-exec for Secure Application Execution
sandbox-exec is a macOS command-line utility that allows applications to run in a restricted environment. Learn how to utilize it with custom sandbox profiles.

Claude Sleuth: A 56-Task Investigation Workflow for Claude AI
Claude Sleuth is a structured investigation workflow for Claude AI with 6 phases and 56 tasks, featuring persistent state storage via Cloudflare D1 and standardized output conventions including ISO 8601 timestamps, POLE entity records, and ICD 203 probability language.

CC-Ledger: Track Claude Code Costs Per Session and Per PR with Local SQLite
CC-Ledger is a Rust binary that hooks into Claude Code, logging each turn to local SQLite. Catch runaway sessions live and see per-PR cost without an API key. Includes macOS menu bar, web dashboard, and CLI views.