Claude Code v2.1.206: Smarter Reviews, Cleaner CLAUDE.md
Claude Code v2.1.206 dropped a couple days ago with 27 changes total — one major feature upgrade, one new command that fixes a pain point I’ve been complaining about, and 18 bug fixes that address issues ranging from authentication failures to MCP server timeouts. The release isn’t seismic, but two changes in particular make this worth upgrading immediately.
The headliner: /code-review got a significant quality boost when running on Claude Opus 4. The new /doctor command diagnoses and trims bloated CLAUDE.md files. If you’ve been using Claude Code heavily for more than a month, your CLAUDE.md has probably accumulated cruft that’s silently hurting your results. /doctor fixes that.
/code-review on Opus 4: what changed
Claude Code’s /code-review command has been useful but inconsistent. On smaller PRs (under 200 lines), it was decent. On anything bigger, it would miss architectural issues, suggest superficial variable name changes, and occasionally hallucinate problems that didn’t exist.
The v2.1.206 update specifically targets review quality when the underlying model is Claude Opus 4 (via claude-opus-4-8). Anthropic retooled the review prompt to work with Opus 4’s longer effective context and stronger reasoning.
From my testing over the past 48 hours, the improvements fall into three buckets:
Better architectural awareness. v2.1.205 would flag “this function is too long” without understanding why it was long. v2.1.206 on Opus 4 looks at call patterns across files, identifies when refactoring would break existing interfaces, and suggests changes that respect the codebase’s design patterns. On a PR I reviewed that touched 14 files in a React + Express app, it correctly identified that a new API endpoint should use the existing error handling middleware instead of implementing its own — something the previous version missed entirely.
Fewer false positives. The old review would flag any console.log as a bug and suggest converting every == to === regardless of whether type coercion was intentional. v2.1.206 is much better at recognizing intentional patterns. It still flags actual issues, but the signal-to-noise ratio improved noticeably.
Actionable suggestions with code. Instead of “consider improving error handling,” you now get something like “this catch block swallows the error — add error logging and re-throw or handle gracefully” with a concrete code suggestion. The suggestions aren’t always correct (more on that below), but they’re specific enough to evaluate quickly.
The tradeoff is that /code-review on Opus 4 is slower than on Sonnet or Haiku — expect 30-60 seconds for a 500-line PR instead of 10-20 seconds. Whether that’s worth it depends on how much you trust automated review. For my workflow, I run /code-review as a pre-filter before human review, and the Opus 4 version catches enough real issues that I’m willing to wait the extra seconds.
/doctor: fixing CLAUDE.md bloat
This is the change I’m most excited about, and it’s not even the headliner. /doctor analyzes your CLAUDE.md file for bloat and suggests what to trim.
If you’ve used Claude Code for more than a few weeks, you’ve probably experienced this: you start adding rules and preferences to CLAUDE.md. A coding convention here, a deployment note there. Before long, the file is 500 lines, and Claude Code starts missing things because the context window is diluted with instructions that haven’t been relevant for months.
/doctor runs a set of diagnostics:
- Redundancy check: flags rules that say the same thing in different words
- Staleness detection: identifies rules that reference old APIs, deprecated tools, or team members who left
- Conflict detection: finds rules that contradict each other (e.g., “always use TypeScript strict mode” alongside “prefer implicit types for brevity”)
- Impact analysis: estimates how much each section affects prompt context usage
The output looks like this:
🔍 CLAUDE.md Doctor — v2.1.206
─────────────────────────────────
CLAUDE.md: 487 lines, ~1200 tokens
⚠️ REDUNDANT (3 found)
L142-148 and L312-319: Both specify React component structure rules
Suggestion: Keep one, remove the other
⚠️ STALE (2 found)
L201: References "deploy to staging-v1" — staging-v1 retired May 2026
L289: Mentions "Alice (frontend lead)" — Alice left team June 2026
⚠️ CONFLICT (1 found)
L45: "Always use TypeScript strict mode"
L167: "Prefer implicit return types for brevity"
📊 IMPACT: 487 lines → ~340 lines estimated after cleanup
Token savings: ~200 tokens per session
After running /doctor and trimming, your CLAUDE.md gets smaller and more focused. In my case, I went from 487 lines to 312, and Claude Code felt noticeably more responsive to my actual instructions. It’s one of those changes where the benefit is hard to quantify but easy to feel.
How to use /doctor effectively
Don’t just run /doctor and accept all suggestions blindly. A few things I learned:
Keep team conventions you still follow. /doctor flagged three of my rules as redundant, but two of those were deliberately restated in different contexts (a coding style section and a PR review checklist). I kept both because the context matters.
Don’t trim rules you rely on but rarely trigger. If you have a rule like “when deploying to production, always create a rollback plan first” — /doctor might flag it as low-impact because you don’t deploy daily. But when that rule fires, it’s critical. Judge by importance, not frequency.
Run it after onboarding new team members. New hires often add rules to CLAUDE.md as they figure things out. After the first month, run /doctor to clean up what they added before they understood the full codebase.
Schedule it monthly. CLAUDE.md rot is gradual. Set a monthly calendar reminder to run /doctor and keep things clean. Or add it to your CI pipeline if you’re using Claude Code programmatically.
The 18 bug fixes: what’s actually fixed
The release notes list 18 fixes. Here are the ones that matter most if you’re using Claude Code daily:
Authentication fixes (3 fixes). If you’ve been getting “authentication expired” errors mid-session, this should be resolved. The root cause was OAuth token refresh not retrying on transient network errors. Also fixed: API key auth in environments with strict proxy configurations.
MCP server improvements (5 fixes). MCP (Model Context Protocol) servers were crashing on timeout in v2.1.205 — Claude Code would lose connection to tools like filesystem or database MCP servers mid-task. v2.1.206 adds automatic reconnection with exponential backoff. Also fixed: MCP servers started with relative paths in claude.json now resolve correctly.
Terminal output handling (3 fixes). Long-running terminal commands (builds, test suites) would sometimes truncate output at 10,000 lines. The limit is now configurable via terminalOutputMaxLines and defaults to 50,000. Also fixed: ANSI escape codes in terminal output were sometimes rendered as raw text instead of colors.
Git diff parsing (4 fixes). Binary file detection was broken when files had no extension. Staged hunks with empty lines at boundaries would sometimes fail to apply. Both fixed. More importantly, Claude Code now handles merge conflict markers gracefully — previously it would crash if it encountered <<<<<<< in a file it was editing.
Session recovery (3 fixes). If Claude Code crashed or your terminal closed unexpectedly, session recovery would sometimes resume from the wrong checkpoint, causing duplicated work. v2.1.206 stores snapshots at finer granularity (every 5 tool calls, down from every 20) and validates snapshot integrity before restoring.
What’s still not fixed
A few pain points persist. I’m documenting these partly as notes to myself, partly in the hope that Anthropic sees them:
Progressive web app support is still missing. You can’t use Claude Code on ChromeOS or iPad through a web interface. The v2.1 branch was rumored to include a PWA, but it’s not in this release.
Multi-repo projects still require manual context switching. If you work across multiple repos (e.g., a monorepo-within-multirepo setup where frontend and backend are separate git repos), Claude Code doesn’t share context between them. Each repo gets its own CLAUDE.md with no cross-repo awareness. You can work around this with MCP tools, but it’s clunky.
The Opus 4 dependency for /code-review is expensive. Running code reviews on Opus 4 costs about 5-8x more per token than Sonnet. If you’re reviewing PRs heavily, the cost adds up fast. A 500-line PR on Opus 4 can cost $0.50-1.00 in API credits depending on the review depth. That’s fine for occasional use but unsustainable for every PR.
Claude Code vs the competition in July 2026
Here’s where Claude Code stands against the other major coding agents as of mid-2026:
| Feature | Claude Code 2.1.206 | Cursor 0.48 | GitHub Copilot | Codex CLI |
|---|---|---|---|---|
| Terminal-native | ✅ | ❌ (IDE) | ❌ (IDE plugin) | ✅ |
| Model flexibility | Opus/Sonnet/Haiku | GPT/Claude | GPT/Claude | GPT/Claude |
| CLAUDE.md rules | ✅ Rich | ✅ .cursorrules | ⚠️ Basic | ❌ |
| Multi-file edits | ✅ | ✅ | ⚠️ | ✅ |
| MCP support | ✅ Native | ✅ | ❌ | ❌ |
| Session recovery | ✅ Improved | ✅ | ❌ | ❌ |
| Cost (per heavy PR) | $0.50-1.00 | $20/mo flat | $10-39/mo flat | API pricing |
Claude Code’s main advantage remains the terminal-native workflow and the CLAUDE.md rules system. If you spend most of your day in the terminal and want an agent that feels like part of your shell rather than a separate app, there’s still nothing better. The MCP support is also ahead of the competition — being able to give Claude Code access to your database, your issue tracker, and your deployment pipeline through MCP servers is genuinely powerful.
Cursor is better if you want a GUI and don’t want to manage API keys. Copilot is better if you want deep IDE integration with minimal configuration. Codex CLI (OpenAI’s terminal agent) is catching up fast but doesn’t have the rules system or MCP ecosystem yet.
Tips for getting the most out of v2.1.206
After a few days with the new version, my recommendations:
Switch /code-review to Opus 4 for architecture changes, Sonnet for everything else. Don’t default to Opus 4 for every review — it’s expensive and slow. Reserve it for PRs that touch core architecture, data models, or security-sensitive code. For UI tweaks, documentation updates, and small bug fixes, Sonnet is more than sufficient.
Run /doctor this week, then set a calendar reminder. CLAUDE.md bloat is the kind of problem that builds up slowly and silently degrades your results. Fix it now while it’s top of mind.
Check your MCP server configurations. The reconnection fixes mean MCP is more reliable now. If you disabled MCP servers because they were flaky, try re-enabling them. claude mcp list shows what’s configured, and claude mcp test <server> validates the connection.
Upgrade your CLAUDE.md with explicit model preferences. v2.1.206 respects model routing hints in CLAUDE.md. You can add something like:
## Model routing
- Use claude-sonnet-4-20250514 for routine edits and quick questions
- Use claude-opus-4-20250514 for code review, architecture decisions, and refactoring
This gives you fine-grained control over cost vs quality without switching models manually for every task.
Set terminalOutputMaxLines to something reasonable for your workflow. The default 10,000 was too low for anyone running test suites or builds. 50,000 is the new default, which should cover most use cases. If you routinely run commands that generate more output (full integration test suites, large build logs), bump it to 100,000.
Bottom line
v2.1.206 is a refinement release, not a revolution. But the refinements are in the right places — code review quality on Opus 4 is genuinely better, and /doctor fixes a problem that’s been silently degrading Claude Code’s performance for heavy users. The 18 bug fixes collectively make the tool more reliable, especially around MCP and session recovery.
If you’re already on Claude Code, upgrade. If you’re evaluating coding agents and live in the terminal, Claude Code with v2.1.206 is the strongest terminal-native option right now. It rewards the investment in setting up a good CLAUDE.md more than any other tool rewards its equivalent configuration.
Just don’t let that CLAUDE.md get bloated. /doctor exists now. Use it.