Blog
Your AI agent keeps making a mistake. Check the tool before its memory
When an AI agent gets something wrong, the reflex is to add a rule to its memory. Sometimes that is right. Often the mistake was never the agent's, and a remembered workaround only hides a broken tool. How we decide where each fix goes.
Melvin Salas5 December 20264 min readVerified 5 December 2026
Our reading, from building the AI agents that do Riibon's client work: when an agent makes the same mistake twice, the instinct is to teach it. Add a line to its instructions, save a lesson to its memory, and move on. That fixes one kind of mistake. For another kind it is a patch that every future session pays for, because the agent was never the thing that was broken.
So before we fix anything, we ask where the fix removes the problem. In our system there are four answers.
Four places a fix can go
If the agent did not know something, the fix is knowledge: a lesson saved to memory or a change to a playbook. In our system it passes an automated verifier before it is saved, and it can be undone with one call.
If the tool is broken or confusing, the fix is in the tool. We file it as a tool papercut on the engineering fix list, with its evidence attached: the sessions, the error text and how often it happened.
If a lesson holds for similar businesses, or for all of them, it is raised to a shared level. Before it travels, an automatic audit strips names, web addresses, figures, quotes and contact details, and the redacted lesson then reaches the agents working for similar businesses.
If the finding is not real or cannot be fixed, we record no change, with the reason, so the same finding is not re-raised as news.
| What went wrong | The sign | Where the fix goes |
|---|---|---|
| The agent did not know something | Different sessions make the same wrong claim about a fact | A lesson in memory or a playbook change |
| The tool is broken or confusing | The same tool fails the same way for different agents | The tool itself, through a tool papercut |
| The lesson is true for many businesses | The same lesson is learned separately on several accounts | A shared lesson, with identifying details removed |
| Nothing real, or nothing fixable | One odd session, or a cause outside the system | No change, recorded with the reason |
Two examples, and why they go to different places
Two illustrative examples, not real incidents. First: a reporting tool rejects a date format in five sessions across three businesses. Saving a lesson that says "use the other format" would work, and every agent would carry that line for ever. The tool should accept the format or say plainly what it wants. That is a tool fix.
Second: three sessions on two accounts each misstate a platform's default attribution window. Nothing failed; the agents believed something wrong. That is knowledge: it belongs in memory, checked against the platform's own documentation before it is saved, and because it holds on more than one account it is raised to a shared lesson.
Our reading: the difference shows only when sessions are read side by side. Inside one session, both look like one agent having a bad moment.
Why a remembered workaround is a patch
Workarounds have their place. Anthropic's launch post for dreaming describes a customer whose agents, with dreaming, remember what they learned between sessions, including filetype workarounds and tool-specific patterns.
Our reading is that each of those workarounds is also a note of something someone could fix. A workaround in memory is read by every session that might need it, has to be learned by every new agent, and keeps being followed after the tool changes. A fix in the tool is made once and works for every agent at the same moment.
So our rule is that when a pattern is plainly a tool bug, it becomes a papercut, not a lesson. Those findings skip the model entirely in our nightly review, because the fix is obvious and costs nothing to propose.
How to tell which one you are looking at
We only act on a pattern once it appears in at least three separate sessions, because one bad session is an anecdote. Then three questions settle most of them.
Does the same tool fail the same way for different agents? Then the tool is the problem. Did the agent have the right fact available and still get it wrong, or was the fact never there? A missing fact is knowledge; a fact present and ignored points at how it is given to the agent. And does the error the agent saw say what to do next? An error with no useful text pushes agents into guessing, and the fix is the error message.
What we cannot tell you yet is how much this saves. The nightly review that routes these findings is new, and we have no before and after figures to publish. When we do, they will come with how they were measured.
Why does my AI agent keep making the same mistake?
Our reading: two of the commonest causes are that it does not know something, in which case the fix is knowledge in its memory, or that a tool it uses is broken or unclear, in which case the fix belongs in the tool. Reading several sessions side by side usually shows which.
Should I add the fix to my agent's prompt?
Only when the agent lacked a fact. If the same tool fails the same way for different agents, a line in the prompt is a workaround every session pays for, and fixing the tool removes the problem for all of them.
How many times should a mistake happen before I act on it?
Our rule is at least three separate sessions. One bad session is an anecdote, and a fix built on one can do more harm than the mistake.
This is how we work, not only what we write about
Riibon's AI surfaces what it finds with the evidence attached, and a person decides. Recommendations are stress-tested before anyone acts on them, and every change is recorded with what happened afterwards.
Ask the Riibon app what changed in your account, and what happened next. Access starts with a short call: we look at your ads together, then run them for you or set the app up with you.