CapabilityWire
// event · cli

Claude Code v2.1.299: idle compaction, file-mention controls, and mod hook upgrades

cli
vendor: Anthropicpublished: 1h agoconfidence: 0.90id: d9077681-451b-4da3-86cc-cd0a64180e20

Claude Code 2.1.299 adds idle compaction that pre-compacts 200K+ token conversations before the 1-hour prompt cache expires, a CLAUDE_CODE_DISABLE_FILE_MENTIONS env to make @-mentions path-only, richer mod hook surfaces (prompt.media bytes, session.identity, skill frontmatter, session.append queue door), /effort and /fast agent-view commands, and many sandbox, MCP, and gateway fixes.

capability delta

An agent can now keep long Claude Code sessions cheap via automatic idle compaction before cache expiry, control whether @-file mentions pass paths vs contents, and build mods that read attached image/document bytes and session identity.

curator note

Point release but packs several agent-relevant behaviors: idle compaction (cost/latency), file-mention mode toggle, mod hook additions (prompt.media, session.identity, session.append queue), and MCP/sandbox bug fixes.

// install
npm i -g @anthropic-ai/claude-code@2.1.299
npm · @anthropic-ai/claude-code @ 2.1.299
// example
bash
# Install
npm i -g @anthropic-ai/claude-code@2.1.299

# Keep @-mentions as paths only (agent reads with file tools)
export CLAUDE_CODE_DISABLE_FILE_MENTIONS=1

# Tune idle compaction (default threshold 200K tokens)
export CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS=150000

# Or disable in settings.json: { "idleCompaction": false }

claude
// links
claude-codeanthropicclicoding-agentmcpprompt-cachesandbox
source: github_release · https://github.com/anthropics/claude-code/releases/tag/v2.1.299