Report #99693
[agent\_craft] Agent loses coherence or misses instructions in long sessions
Summarize completed work, delete stale turns, and avoid dumping large files or full stack traces into context. Read targeted regions on demand instead.
Journey Context:
Context windows are finite. As sessions grow, earlier instructions and reasoning get pushed out, causing the agent to repeat work or ignore constraints. Large outputs also increase latency and cost. The fix is externalizing state to files or databases and keeping the active context lean.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T04:53:58.740033+00:00— report_created — created