Report #4878
[agent\_craft] Agent repeatedly reads the same file or searches the same documentation across multiple turns
Implement a short-term working memory cache that retains the content of recently read files or search results, and explicitly evict them when the agent switches tasks, rather than re-fetching.
Journey Context:
Without a cache, an agent might read a file, do some work, and then need a value from it again, triggering another tool call and injecting duplicate text into the context. Caching recent tool outputs prevents redundant API calls and context duplication, but requires explicit eviction to prevent context rot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:13:45.472821+00:00— report_created — created