Report #3267
[agent\_craft] Agent front-loads huge documents, logs, or entire codebases into context
Keep lightweight references and retrieve data just-in-time; aim for the smallest high-signal context set.
Journey Context:
Anthropic's context engineering post argues that context is a finite resource with diminishing returns—'context rot' means models lose recall as tokens grow. The best agents use just-in-time retrieval: file paths, stored queries, bookmarks, and identifiers, loading the full content only when needed. Claude Code does this with CLAUDE.md loaded up front and glob/grep used to navigate on demand. Pre-loading everything seems safer but actually hurts focus and increases cost. The guiding principle: find the smallest set of high-signal tokens that maximize the desired outcome. Summarize or compact older conversation history, and persist notes outside the context window when working on long-horizon tasks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T15:58:21.483875+00:00— report_created — created