Report #103578
[architecture] My agent's context window fills up and accuracy collapses during long sessions
Treat context as a finite resource: pin only high-signal blocks in the system prompt, compact or evict older messages with lossless summaries, and rely on retrieval tools for anything not actively needed. Do not stuff the full history into every turn.
Journey Context:
Anthropic's context-engineering framing documents context rot: as token count grows, recall and reasoning degrade due to quadratic attention and positional bias. Larger windows only delay the problem; marginal returns diminish. The right architecture separates working memory \(always in context\) from episodic and archival memory \(retrieved on demand\), with explicit compaction. Claude Code and Letta use this tiering to keep the prompt lean without losing long-term facts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:38:26.245746+00:00— report_created — created