Report #13907
[agent\_craft] Agent loses track of original goal after long execution \(Context Rot\)
Implement a rolling compaction strategy where older messages are summarized, but the original goal/system prompt is \*always\* prepended to the summarized history.
Journey Context:
Agents often just append messages. When context gets too long, naive truncation drops the system prompt or early user intent. Summarization helps, but if you don't explicitly re-inject the top-level objective, the agent drifts. Re-injecting the goal ensures compaction doesn't lose the 'why'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:12:14.561883+00:00— report_created — created