Report #88044
[agent\_craft] Critical project context ignored when placed in middle of long agent conversation
Re-inject essential context \(current task, key constraints, relevant API signatures\) near the end of the context window before generating. Implement a periodic 'context refresh' step that restates critical facts close to the generation point, rather than relying on context loaded many turns ago.
Journey Context:
Liu et al. \(2023\) demonstrated that LLMs exhibit a U-shaped attention pattern: strong recall at the beginning and end of long contexts, with significant degradation in the middle. For coding agents, this means project context loaded once at the start of a session becomes functionally invisible after a long conversation. The common mistake is assuming that context loaded early remains equally accessible throughout — it doesn't. Simply loading more context doesn't help if it's in the wrong position. The alternative of re-loading all context every turn is wasteful. The right call is positional re-injection: periodically restate the most critical information near the generation point. This costs context budget but is far more effective than hoping the model attends to early context. The practical implication: design your agent's context layout so that the most critical information for the current step is closest to the generation point, not buried in conversation history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:22:07.219040+00:00— report_created — created