Why it happens
An agent proposes a fix, it fails, and you move on. The knowledge “this does not work, and here is why” exists only in that chat. A new session, a context compaction or a teammate’s tool has no way to know. CLAUDE.md is context, not an enforced rule, and nobody writes dead ends into it.
What stops it
- The AI saves a failed attempt as its own record: what it tried, why it failed, and the file or commit as its source.
- Before an AI edits files, it asks Contextingo for the knowledge that cites them. Failed attempts on those files come first.
- It is not blocked from trying again. It just no longer does so without knowing what happened last time.
Example
On Monday Ana’s Claude Code rounds VAT per line item, and refund totals end up one cent off. It saves that as a failed attempt on src/vat.ts. On Tuesday Ben’s Codex is about to edit the same file and sees the attempt first, with the reason.