Fixing Claude Opus 5.5 long-context drift with an external SESSION_STATE.md protocol

dr_cintas · x · 2026-09-28

The author found Claude Opus 5.5 breaks down when running freely across a 200k context window on complex features: context fills up, the model forgets earlier tool outputs, and produces hallucinated file states or circular diffs.

The fix is an "Agent Experience" external state protocol: force the model to maintain a SESSIONSTATE.md file before touching any code, with copy-paste instructions for CLAUDE.md:

This moves working memory to disk, keeps the 200k window clean for reasoning, prevents premature completion claims, and lets compacted or sub-agent runs resume instantly by reading the file instead of the full repo.

Original post →

More from coding & agent

coding & agent channel →