New release
Claude Code 2.1.312 protects very large CLAUDE.md files
Claude Code 2.1.312 stops Claude overwriting a very large CLAUDE.md or rules file after seeing only its start. Limit messages now say 5-hour limit.
- Date
- Works with
- Claude Code
What’s new
Claude Code 2.1.312 came out on 27 October 2026. Its changelog says it "Fixed Claude overwriting a very large CLAUDE.md, rules file or @-included file in a subdirectory after seeing only its start; Write now asks Claude to read it all or edit in place".
Usage limit messages now call the 5-hour window the "5-hour limit" instead of the "session limit".
Version 2.1.311 came out one day earlier. It fixes standard-context sessions "stopping with "Usage credits required for 1M context" when a request ran over 200K tokens". Claude Code now compacts the conversation and continues. It also fixes long freezes when a CLAUDE.md file holds a very long list item, and Claude seeing old MEMORY.md and CLAUDE.md content right after automatic compaction when you edited those files earlier in the session.
Why it matters
CLAUDE.md and rules files hold the instructions that Claude follows in your project. Before this fix, Claude could replace a very large one after it read only the start, so the rest of your rules could be lost. If you see a usage message about the "5-hour limit", it is the same limit that was called the "session limit" before.
How to try it
Run this command: see the command below. Then run claude --version. It should show 2.1.312 or later. Version 2.1.312 is on the default "latest" channel. The "stable" channel still gives 2.1.308, which does not have these fixes yet.
claude updateRelated
Source
Checked against the source on 28 Oct 2026