AI Agents Can Now Tell When They're About to Fail
This could stop AI from silently messing up your bookings, code, and emails.
AI agents are programs that don't just chat — they take actions. They book your meetings, query databases, write and run code, and click through websites on your behalf. That's useful, but also risky: when an agent quietly fails halfway through a task, you might not notice until something is broken. Right now, most systems have no reliable way to say "I'm not sure this is going to work."
A new paper from three researchers tackles exactly that. Instead of asking the AI to rate its own confidence — which is often unreliable, because chatbots tend to sound sure of themselves either way — they looked at the model's internal activity. They built two methods: one tracks how the AI's inner state changes over a whole task, and the other checks the moment it decides on each action. Together, these act like a smoke detector for AI work: a cheap early warning that something is going wrong.
The results held up across three different AI model families (including Qwen and DeepSeek) and three kinds of tasks: running command-line scripts, writing database queries, and writing Python code. Their approach consistently beat simpler methods that only look at the AI's written output. Importantly, it adds no extra cost — no rewording of prompts, no running the task several times to compare answers. That matters because the usual ways to double-check AI work are slow and expensive.
For everyday users, this points toward AI assistants that flag uncertainty instead of bluffing. A travel agent bot might say, "I couldn't confirm this booking — please check." A coding assistant might warn you before shipping broken code. The catch: this is early research, not a product you can use today, and it was tested in controlled settings rather than the messy real world.
- AI agents (software that takes actions for you) often fail quietly — and most can't tell you when they're unsure
- Instead of asking the AI how confident it feels, researchers read signals inside the model, which proved far more accurate
- It adds no extra cost or delay, and was tested on three model families and three real task types
Why It Matters
Future AI assistants could warn you before they mess up a booking, a payment, or your code.