Claude Code 2.1.299 adds idle compaction for 200K+ token sessions before cache expiry and fixes sandboxed writes into --plugin-dir
Anthropic released Claude Code 2.1.299 on Oct 14. A new default compacts a 200K+ token terminal conversation after about 54 idle minutes, before its one-hour prompt cache expires, so the next message doesn't reprocess everything; tune it with CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS or turn it off with "idleCompaction": false. The release also fixes sandboxed shell commands being able to write into a --plugin-dir folder whose code Claude Code reloads outside the sandbox, and adds --disallow-tools to claude plugin eval.
Key Takeaways
- Idle compaction: triggers at 200K+ tokens after ~54 idle minutes, before the one-hour prompt cache expires
- Configurable: CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS changes the 200K floor; "idleCompaction": false in settings.json disables it
- Security fix: sandboxed commands could write into a --plugin-dir folder whose code is reloaded and run outside the sandbox
- Custom ANTHROPIC_BASE_URL streams now wait 300 s instead of 180 s with no data; gateway-specific model names no longer fail compaction near 200K tokens
- claude plugin eval gains --disallow-tools and a disallowed_tools case field to keep built-ins such as Agent out of eval runs