Report #18076
[agent\_craft] Agent repeatedly making the same mistakes or re-reading the same docs in a session
Maintain an in-window mutable scratchpad that accumulates hard-won facts \(e.g., 'project uses pytest', 'API endpoint is /v2'\) and prepend it to every subsequent prompt.
Journey Context:
Agents discover project constraints through errors \(e.g., a failed build command\). If this is only in the past conversation history, it gets pushed out or summarized away. By maintaining an active, mutable scratchpad in the system prompt or context head, the agent preserves discovered constraints as immutable facts for the rest of the task, preventing infinite loops of the same error.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T07:13:11.194843+00:00— report_created — created