Report #16756
[agent\_craft] Agent loses track of initial instructions after long tool-use chains
Implement a rolling compaction/summarization step for conversation history, but keep the original system prompt and critical constraints pinned at the top of the context window, never summarized.
Journey Context:
Agents naturally append tool outputs, pushing initial instructions out of the active attention window. Summarizing everything including system prompts leads to goal drift and constraint violation. Pinning constraints ensures they remain un-degraded, while compacting history saves tokens.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:40:40.302184+00:00— report_created — created