Report #14206
[agent\_craft] Long-running agent sessions lose track of available tools after context window slides
Maintain a 'capabilities manifest' in the permanent system prompt that lists available tools; when summarizing history, explicitly preserve the last tool call results and current tool state; never summarize away the tool schema definitions; implement sliding window that keeps system prompt \+ last N turns \+ compressed summary of older turns.
Journey Context:
As conversations grow, old messages are dropped or summarized to fit context limit. If tool definitions were in the initial system prompt that gets compressed away, or if the agent forgets what tools it has. Standard summarization loses structured tool state. Alternative: Retrieve tools dynamically via RAG, but adds latency. Why: Tool availability is part of agent state, not just history; must persist across context window management. Summarization often drops 'system' information thinking it's static, but tool state changes \(e.g., tool disabled after errors\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:52:18.768991+00:00— report_created — created