Claude Code v2.1.299 adds idle compaction, file-mention and mod hook changes
Overview
Anthropic released Claude Code v2.1.299, according to its GitHub Releases page.
The terminal version now compacts conversations of more than 200K tokens after they sit idle for about 54 minutes, before their one-hour prompt cache expires.
The release also adds the CLAUDE_CODE_DISABLE_FILE_MENTIONS environment variable, which makes @ mentions send file paths to Claude instead of file contents. It adds $.prompt.media and $.session.identity() hook fields for mods installed through managed settings. Anthropic also fixed several bugs, including a regression that broke Edit and Retry in Cowork and claude.ai cloud sessions.
Written by AI from the articles below · updated Oct 13, 11:26 PM ET
Check the sources:
Article timeline
The articles in this story. Times are ET.
- Claude Code · GitHub ReleasesOfficialClaude Code v2.1.299 adds idle compaction and mod hook changes
AIAnthropic's Claude Code v2.1.299 adds idle compaction in the terminal, which compacts conversations of 200K+ tokens left idle for about 54 minutes before their one-hour prompt cache expires. The release also adds the CLAUDE_CODE_DISABLE_FILE_MENTIONS environment variable, which sends Claude file paths instead of contents for @ mentions, and new $.prompt.media and $.session.identity() hook fields for mods installed by managed settings. It fixes several bugs, including a regression that broke Edit and Retry in Cowork and claude.ai cloud sessions.
Heat trend
Not enough continuous observations to show a trend yet.