Claude Code is shifting from “smart prompt box” to a policy-controlled execution layer: the biggest wins now come from routing, sandboxing, and making agents auditable instead of just smarter.
95.8% SWE-bench in 119s
Trending Now
🔥 Headroom Compression: 15–81% Fewer Tokens on Long SessionsIf your Claude Code sessions sprawl, compressing redundant context before it hits Anthropic’s API is now a direct cost lever. Wrap sessions with `headroom wrap claude`, then inspect `headroom_stats` to see whether your repo/workflow is actually compressible. 📈 Agent Routing by `description`: Fix Subagents That Never Fire
Subagents fail less because of model quality and more because the router can’t match intent. Treat `description` as the trigger condition, run `/doctor` for collisions, and validate `tools` lists so specialists get picked instead of ignored. 🔥 Stateless + Auditable Agents Beat “Memory” Hype
The strongest pattern this week is to keep agents disposable, loggable, and narrowly scoped. That means pushing state into config, hooks, and explicit workflows instead of hoping the model “learns” from corrections.
Best Practices
Do route work across Opus, Sonnet, and Haiku to cut spendBefore: Opus burns expensive tokens on trivial tasks. After: one developer reported 35% lower Claude API spend while quality improved because heavyweight models only handled genuinely hard problems. Do update to `v2.1.221` for masked credentials and the zsh fix
Before: secrets could leak into mode output and zsh permission handling had a bypass issue. After: `mode:"mask"` protects credentials, Focus view speeds review, and you pick up 20 security fixes. Do kill stuck background sessions with `claude --kill-all`
Before: hidden processes keep draining your Pro quota every 5-hour reset. After: background sessions stop consuming usage, and `claude.ai/usage` becomes a real signal instead of a mystery.
Tools & MCP
Headroom — Local context compressor that trims redundant session state before API calls — cuts token usage 15–81% on long runs. MCP Workbench — Browser-based MCP debugger that lets you paste a command, inspect tools, and verify protocol compliance in minutes instead of guessing from logs. SurrealDB hosted MCP — One URL MCP endpoint for querying, deploying, and managing SurrealDB instances — no local server setup, plus Spectron memory support.Multi-Agent Patterns
Headless persistent agent with Gateway + approvalsRun Claude Code as `claude -p --input-format stream-json` behind a Gateway, gate dangerous steps with `PreToolUse` approvals, and add OS-level sandboxing so the agent can stay persistent without becoming unbounded. Model-router swarm: Opus for hard reasoning, Haiku for busywork
Split the loop so expensive reasoning models only touch ambiguous tasks while cheaper models handle search, extraction, and routine edits. That reduces spend and improves throughput because the bottleneck shifts from model cost to orchestration quality. Retry-aware MCP design with backpressure before connection acquisition
Instead of letting eager agents hammer a slow DB, shed work early and avoid retry storms that multiply outages. The key is preserving recovery capacity, not maximizing immediate retry rate.
Community Requests
- Native MCP server benchmarking tool with latency, retry, and token-cost counters
- Better subagent router diagnostics that show why `description`/`tools` matching failed
- First-class persistent-agent runtime with built-in sandboxing, approvals, and session recovery








