releaseintermediate
[Release] anthropics/claude-code v2.1.142: v2.1.142
By ashwin-antgithub
View original on githubClaude Code v2.1.142 introduces enhanced agent configuration flags for background sessions, upgrades fast mode to Opus 4.7, improves plugin skill surfacing and LSP server visibility, and fixes critical issues with daemon stability, background session persistence, and cross-platform compatibility. Key improvements include better MCP tool timeout handling, macOS sleep/wake resilience, Windows network drive support, and numerous UI/UX refinements for plugin management and session handling.
Key Points
- •New `claude agents` flags (`--add-dir`, `--settings`, `--mcp-config`, `--plugin-dir`, `--permission-mode`, `--model`, `--effort`, `--dangerously-skip-permissions`) enable fine-grained configuration of dispatched background sessions
- •Fast mode now defaults to Opus 4.7 (from 4.6); use `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1` environment variable to revert to previous model
- •Plugins with root-level `SKILL.md` and no `skills/` subdirectory are now automatically surfaced as skills, improving plugin discoverability
- •Fixed critical daemon stability issue where binary upgrades (e.g., `brew upgrade`) caused daemon to exit uncleanly, leading to dispatched agent crash-loops
- •Fixed macOS sleep/wake bug where daemon treated clock jumps as idle time, causing background sessions to disappear and reconnection to fail
- •Resolved Windows network-drive deadlock issue and improved Ctrl+C responsiveness during startup for better cross-platform reliability
- •Fixed MCP tool timeout configuration not applying to remote HTTP and SSE servers, which were capped at 60 seconds regardless of `MCP_TOOL_TIMEOUT` setting
- •Enhanced plugin management: fixed cache cleanup deleting active versions, improved advisory messaging for shadowed `plugin.json` keys, and corrected install count display
- •Improved reactive compaction by seeding first summarize attempt from original request's overflow size, reducing wasted near-full-context retries
- •Fixed background session git worktree recognition, allowing Edit operations while preventing EnterWorktree duplicate creation
Found this useful? Add it to a playbook for a step-by-step implementation guide.
Workflow Diagram
Start Process
Step A
Step B
Step C
Complete
Concepts
Artifacts (2)
Environment Variable Overridebashconfig
CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1Claude Agents Configuration Flagsbashcommand
claude agents --add-dir <dir> --settings <settings> --mcp-config <config> --plugin-dir <dir> --permission-mode <mode> --model <model> --effort <level> --dangerously-skip-permissions