Claude Code 2.1.76 adds MCP elicitation, worktree improvements, and fixes for context limits

Version 2.1.76 Updates
Claude Code 2.1.76 adds several new features and fixes multiple issues from the previous release.
New Features
- MCP elicitation support – MCP servers can now request structured input mid-task via interactive dialog (form fields or browser URL)
- New hooks – Added
ElicitationandElicitationResulthooks to intercept and override responses before they're sent back - Session naming – Added
-n/--name <name>CLI flag to set a display name for the session at startup - Worktree optimization – Added
worktree.sparsePathssetting forclaude --worktreein large monorepos to check out only needed directories via git sparse-checkout - Post-compaction hook – Added
PostCompacthook that fires after compaction completes - Effort control – Added
/effortslash command to set model effort level - Session surveys – Added session quality survey; enterprise admins can configure sample rate via
feedbackSurveyRatesetting
Key Fixes
- Fixed deferred tools (loaded via
ToolSearch) losing input schemas after conversation compaction, which caused array and number parameters to be rejected with type errors - Fixed spurious "Context limit reached" when invoking a skill with
model:frontmatter on a 1M-context session - Fixed "adaptive thinking is not supported on this model" error when using non-standard model strings
- Fixed
Bash(cmd:*)permission rules not matching when a quoted argument contains# - Fixed auto-compaction retrying indefinitely after consecutive failures – now stops after 3 attempts with a circuit breaker
- Fixed clipboard copying in tmux over SSH – now attempts both direct terminal write and tmux clipboard integration
- Fixed slash commands not found when typing the exact name of a soft-hidden command
- Fixed several Remote Control issues: sessions silently dying when server reaps idle environment, rapid message queuing, and stale work items causing redelivery after JWT refresh
Improvements
- Improved
--worktreestartup performance by reading git refs directly and skipping redundantgit fetchwhen remote branch is already available locally - Improved background agent behavior – killing a background agent now preserves its partial results in conversation context
- Improved model fallback notifications – now always visible instead of hidden behind verbose mode, with human-friendly model names
- Improved blockquote readability on dark terminal themes – text is now italic with a left bar instead of dim
- Improved stale worktree cleanup – worktrees left behind after interrupted parallel runs are now automatically cleaned up
- Improved Remote Control session titles – now derived from your first prompt instead of showing "Interactive session"
- Updated
--plugin-dirto only accept one path to support subcommands – use repeated--plugin-dirfor multiple directories
Version 2.1.75 Highlights
The previous release 2.1.75 included:
- Added 1M context window for Opus 4.6 by default for Max, Team, and Enterprise plans (previously required extra usage)
- Added
/colorcommand for all users to set a prompt-bar color for your session - Added session name display on the prompt bar when using
/rename - Added last-modified timestamps to memory files, helping Claude reason about which memories are fresh vs. stale
- Added hook source display (settings/plugin/skill) in permission prompts when a hook requires confirmation
- Fixed token estimation over-counting for thinking and
tool_useblocks, preventing premature context compaction
These updates are particularly relevant for developers working with large codebases who need better context management and more reliable tool interactions.
📖 Read the full source: HN AI Agents
👀 See Also

An Open Standard for Agent Run Records: The Case for a Shared Log Schema
Every agent runtime has its own log format, causing fragmentation in debugging, auditing, and tool portability. The fields already converge on a core schema — it's time to standardize.

Tokenmaxxing Is the New Stopwatch: Why Your AI Policy Needs to Be Coherent
Brian Meeker argues against vanity metrics like tokenmaxxing and shares his team's four-point AI policy: no mandate, understand generated code, survive without AI tools, care about teammates and customers.

Andrej Karpathy Joins Anthropic's Pre-Training Team to Drive Recursive Self-Improvement Using Claude
Andrej Karpathy, former OpenAI cofounder, joins Anthropic's pre-training team under Nick Josef to build a new team focused on using Claude to accelerate pre-training research, enabling recursive self-improvement.

Anthropic's circuit-tracing research reveals Claude 3.5 Haiku's internal mechanisms
Anthropic published circuit-tracing research on a simplified Claude 3.5 Haiku, revealing six specific behaviors including its default "I don't know" state, backward poem writing, and dual-path math processing.