AI Research

Microsoft Debugs AI Agents with AgentRx

Microsoft Research launches AgentRx, an open-source framework and benchmark for systematically debugging AI agent failures, improving accuracy by over 23%.

Daniel Singer

By Daniel Singer, Editor, StartupHub.ai

2 min read

Microsoft Debugs AI Agents with AgentRx
Credit: Microsoft Reesarch
Contents(3)

Debugging AI agents is becoming a significant hurdle as they move beyond simple chatbots to manage complex tasks. When these systems fail, tracing the root cause through long, probabilistic, and sometimes multi-agent interactions is an arduous manual process. Microsoft Research aims to solve this with the introduction of the AgentRx framework, an automated system designed to pinpoint the exact moment an agent's trajectory becomes unrecoverable.

Traditional metrics like task completion are insufficient for understanding agent failures. To build reliable and safe AI, developers need to identify the precise failure point and gather evidence. This is crucial for advancing capabilities in areas like managing cloud incidents and navigating complex web interfaces, moving beyond simple debugging AI agents.

AgentRx: A Structured Diagnostic Approach

AgentRx treats agent execution as a traceable system. Instead of relying on a single large language model to guess errors, it employs a multi-stage pipeline. This process begins with normalizing logs from various domains into a common format.

The core innovation lies in constraint synthesis. AgentRx automatically generates executable constraints from tool schemas and domain policies, such as ensuring API responses are valid JSON or that sensitive data isn't deleted without confirmation. These constraints are then evaluated step-by-step, only when their guard conditions apply, producing an auditable log of evidence-backed violations.

Finally, an LLM judge analyzes this validation log and a grounded nine-category failure taxonomy to identify the critical failure step and its root cause. This systematic approach allows for more precise identification of issues compared to current methods for autonomous systems debugging.

The daily brief

Get the free daily brief with the day's AI news, new AI startups and funding rounds every morning.

Join 64,000 other subscribers.

A New Benchmark for Agent Failures

To evaluate AgentRx, Microsoft Research developed a benchmark comprising 115 manually annotated failed trajectories. These cover diverse domains including structured API workflows (τ-bench), real-world incident management (Flash), and multi-agent web tasks (Magentic-One).

The researchers also derived a nine-category failure taxonomy, categorizing issues like 'Plan Adherence Failure' and 'Invention of New Information' (hallucination). This taxonomy helps distinguish subtle differences in how agents go wrong, contributing to greater AI agent transparency.

Key Results and Open Source Release

In experiments, AgentRx demonstrated significant improvements over prompting baselines, achieving a +23.6% increase in failure localization accuracy and a +22.9% improvement in root-cause attribution. The framework and the benchmark dataset are now open-sourced to foster community development of more reliable AI agents.

Mentioned in this story

Markets

MicrosoftNASDAQ:MSFT

Sources

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 64,000 other subscribers.

TopicsAgentRxAI AgentsDebuggingMicrosoft ResearchOpen SourceMachine LearningArtificial Intelligence

Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute, free.

Watch

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.