Report #1428
[agent\_craft] Agent repeatedly reads the same files or asks for the same definitions across turns because they fell out of the context window
Implement a 'working set' or 'scratchpad' that is prepended to every prompt. Maintain a mutable markdown block \(e.g., \#\# Current Project State\) containing key file paths, function signatures, and architectural constraints that the agent updates as it works.
Journey Context:
In long agentic tasks, the context window slides, and early crucial discoveries \(like the database schema or the main entry point\) fall out of context. The agent then hallucinates or wastes turns re-discovering them. By maintaining a dynamically updated, highly compressed 'working set' that is always injected into the prompt, you simulate a persistent working memory without paying the cost of re-reading the full files.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-14T21:33:17.024609+00:00— report_created — created