Report #3515
[agent\_craft] Project docs and repository context are re-loaded from scratch on every turn
Separate static project context from dynamic working context. Cache the stable corpus \(README, AGENTS.md, package files, key modules\) as a reusable context block or external context-cache handle, and refresh it only when files change or on explicit invalidation.
Journey Context:
Agents often rebuild a context sandwich on every turn: system prompt, project summary, recent conversation, task, files. This is wasteful and makes the actual working memory smaller. The better design is a two-tier memory: a slow-changing project tier and a fast-changing working tier. The project tier can be served via a context-cache API or a pre-computed preamble, which dramatically reduces per-turn tokens and keeps the dynamic window available for reasoning and tool results. The risk is stale cache, so the agent must invalidate when file hashes change or when the user edits scope. This is not just an optimization; it changes how much reasoning fits in-window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T17:29:15.707045+00:00— report_created — created