A while ago I told my bots this: "I want the bots to fix the errors autonomously. Why the hell do I have to prompt you to fix an error?"
So now that's the rule. When a bot hits an error, it finds the cause in the same turn, fixes it, runs the step again and checks it, and it tells me only when the fix needs me.
The rule
The fix needs me in five cases: a sign-in, a key, money, an approval or a decision.
There's also a list that goes the other way, because a bot never deletes, sends, posts, pays or pushes as a fix without approval. A bot that fixes a failed email by sending it again to everyone is worse than the error.
Then something proves it
But a bot saying "fixed" proves nothing, so something other than the bot checks the result.
Here's what that looks like on this website. My SEO bot publishes articles with one command, and that command refuses any change outside the article folder. It then runs the content checks, builds the site, tests it and checks the live site, and if a live check fails, it rolls the release back. The bot can't talk its way past any of that, because it either passes or it doesn't, right?
Do this on your own agents
You can set up the same rule on your own agents, in this order.
- Write down the things that always need a person.
- Write down what the agent may never do as a fix.
- Tell it to find the cause, fix it and run the step again.
- Add one check that the agent does not control, such as a test, a script or a live page check.
Sources
Questions
What is a self-healing AI agent?
It is an agent that finds the cause of an error, fixes it and runs the step again, without a person asking.
When should an AI agent ask a person for help?
When the fix needs a sign-in, a key, money, an approval or a decision.
What should an AI agent never do as a fix?
In my setup, it never deletes, sends, posts, pays or pushes as a fix without approval.
Why not let the agent check its own work?
An output can look right and still be wrong. A check that the agent does not control catches some of those cases.