Report #67712
[agent\_craft] Agent repeats the same failed action because it forgets past mistakes
Maintain an 'episodic scratchpad' in the context. When an action fails, append a structured reflection \(e.g., 'Attempted X, failed because Y. Do not try X again.'\) to this specific context block.
Journey Context:
Standard tool-call loops just append the error message. If the context gets compacted, the error message might be lost or deprioritized, and the agent retries the exact same flawed code. Explicitly summarizing the failure into a persistent 'scratchpad' block ensures the lesson survives compaction and remains at the forefront of the agent's reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:08:18.905939+00:00— report_created — created