Fetching from the wire…
Public story · 2026-09-12 · high
Claude Code reused the git status from session start after every compaction, so long runs saw already-committed files as still unedited.
Why now: Claude Code 2.1.269 documents the fix in its changelog, now public.
Claude Code kept showing agents a stale git status after every compaction, reusing the snapshot from session start no matter how long the run went. In a long autonomous run that compacts several times, the agent reasons about a working tree that no longer exists, including files it already committed.
Anthropic fixed it in Claude Code 2.1.269, which now re-reads git status at compaction time instead of reusing the old snapshot. The model never saw its own commit happen, so a file it had checked in still looked untouched, and it reopened it to edit again.
I've watched this exact failure happen in my own long runs, and I blamed it on the model losing track of state. It wasn't losing track. It was working from a snapshot that predated its commits.
The changelog doesn't say how far back the bug goes or how many releases carried it. That leaves open how much of the 'agent forgot what it did' behavior in past sessions traces to this specific bug.
Each link below shares sources, entities, or timing with this story.
- Source: GitHub (ykdojo/claude-code-tips) The most comprehensive single resource for power-user tips. Highlights: (1) proactive context compaction via HANDOFF.md documents; (2) Gemini CLI as fallback when WebFetch fails on blocked sites; (3) skills vs. CLAUDE.md optimization...
claude-mem hit 80,189 stars at v12.6.4, with 1,840 commits and 109 contributors. It hooks five agent lifecycle events to capture observations, compresses them through Claude's agent SDK into SQLite, and reinjects relevant context on new sessions. No manual tagging. One npx com...
wanshuiyin/HERO-Anti-OverDefense went from creation to 68 stars in a single day. HERO is Hashing, Edge cases, Rubrics, Overbuild, and the claim is that agent over-engineering isn't diffuse but falls into four recognizable shapes suppressible with a portable prompt contract acr...
A GitHub repo cataloging Claude Code tips doesn't normally warrant a top story. But shanraisshan/claude-code-best-practice at 53.4K stars isn't a tips list anymore. It's the de facto reference for how an entire generation of developers is learning to work with AI coding agents...
The IDE market is fragmenting, and this week drew the sharpest lines yet. Cursor 3 launched as a rebuilt agent-orchestration platform in Rust and TypeScript, replacing the VS Code fork with an Agents Window for dispatching and monitoring multiple AI coding agents. Anysphere hi...
Issue 6235 on anthropics/claude-code asks Claude Code to read AGENTS.md, the config file that Codex, Amp, Cursor and most other harnesses already load, rather than only CLAUDE.md. It has been open since August 2025. It has accumulated over 5,200 reactions and 300+ comments, ma...
MindPattern daily
One email a day at 7 AM. Sources and a take on every story. Unsubscribe anytime.