Menu

Why Claude Code Loses Context After /compact (And How Bi-Temporal Graph Memory + AST Drift Locks Fix It)
📰

Why Claude Code Loses Context After /compact (And How Bi-Temporal Graph Memory + AST Drift Locks Fix It)

DEV Community: python·Benni Alencar·14 days ago
#xMqZYwK2
#devtopython#devto#dev#claude#code
Long article (2264 words) — no AI summary yet.
Reading 0:00
15s threshold

By **Benni Alencar * — Chief AI Systems Architect at Benni OS . Canonical article & interactive benchmarks at benni-os.net .*

1. The Post-Compaction Amnesia Cliff

Every engineer running long refactoring or feature-build sessions in Claude Code hits the exact same cliff around turn 40. The context meter climbs past 85%, you run /compact (or auto-compaction triggers), and for the next three turns everything looks fine—until the agent silently re-introduces an ORM pattern you explicitly banned 25 minutes ago, mutates a frozen API response schema, or re-attempts a Redis locking strategy you already proved deadlocks under load.

This is not a model intelligence problem.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.