Report #70305
[agent\_craft] Agent tries to maintain complex state purely within the text of the chat history, leading to double-counting or lost state upon summarization
Externalize state to a structured artifact \(e.g., a JSON file on disk, a database, or a scratchpad tool\). The agent reads/writes to this artifact instead of relying on its context window to remember the state.
Journey Context:
Chat history is a linear narrative, not a database. When the context is compacted, intermediate state updates are often lost or conflated. Writing state to a file makes it durable, queryable, and immune to context rot. The agent trades a file I/O operation for perfect state recall.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:35:11.854021+00:00— report_created — created