Interactive Debugging and Steering of Multi-Agent AI Systems

Will Epperson, Gagan Bansal, Victor Dibia, Adam Fourney, Jack Gerrits, Erkang Zhu, Saleema AmershiarXiv 2025 · DOI

TL;DR

As LLM applications shift from single prompts to autonomous multi-agent teams, debugging them has become a developer's nightmare of endless, non-deterministic log files. To solve this, researchers introduced AGDebugger, an interactive debugging tool that lets developers pause, rewind, and edit multi-agent conversations in real-time. By checkpointing agent states and visualizing conversation forks like Git branches, AGDebugger enables developers to interactively steer agent teams toward successful outcomes.

What Problem Does This Paper Address?

While single-prompt engineering has well-established debugging workflows, multi-agent systems introduce a new layer of complexity. In these systems, specialized agents (e.g., planners, coders, web surfers) collaborate over long, multi-turn conversations to solve complex tasks.

When something goes wrong, developers face several unique challenges:

  • Information Overload: A single task can generate over 100 text-heavy messages (thousands of words), making manual log inspection incredibly tedious.
  • Cascading Errors: Fixing a prompt for one agent might inadvertently break the downstream logic of another.
  • Lack of Interactivity: Current frameworks require developers to restart entire workflows from scratch to test a minor prompt tweak, wasting time and API costs due to the stochastic nature of LLMs.

Methods

The authors developed AGDebugger, an interactive debugging tool built on top of the open-source AutoGen framework.

Figure 3: AGDebugger helps users interactively debug and steer their agent teams. (A) Users can interactively send new messages, control the flow of messages, and see the history of agent messages (Section 5.1). (B) Users can revert to earlier points in the workflow by resetting and editing messages (Section 5.2). (C) The overview visualization helps users make sense of long conversations and the history of edits in an interactive visualization (Section 5.3).

Its novel architecture relies on three core pillars:

  1. Fine-Grained Conversation Control: Developers can step through agent messages one by one (similar to traditional code debuggers like pdb) or pause execution mid-run to inject new instructions.
  2. State Checkpointing and Forking: Before any message is processed, AGDebugger captures a snapshot of each agent's internal state (e.g., the Web Surfer's current URL and browser viewport position). If a failure occurs, the user can edit a past message inline, and the system "forks" the conversation into a new session, restoring the exact agent states from that timestamp.
  3. Git-like Overview Visualization: To prevent developers from getting lost in complex edit histories, the tool features a visual timeline inspired by code commit graphs. Each conversation session is displayed as a column of colored blocks representing different message types, making it easy to compare how different interventions alter the agents' behavior.

Datasets

The system was evaluated using complex tasks from the GAIA (General AI Assistants) Benchmark (specifically Level-1 validation tasks). These tasks require agents to synthesize information across multiple web pages, write code, and parse local files. The authors utilized Magentic-One, a state-of-the-art generalist multi-agent team consisting of an Orchestrator, Coder, Executor, File Surfer, and Web Surfer.

Key Insights and Ideas

  • The Power of Early Interventions: The study revealed that editing messages earlier in the conversation was significantly more effective than making edits near the failure point. Due to LLM context window dynamics ("lost in the middle" effects), agents respond much better to structural plan changes made early on.
  • Three Core Steering Strategies: When given the power to edit agent histories, developers naturally fell into three behavioral patterns:
  • Adding specific instructions (58% of edits): Breaking down high-level agent plans into concrete, actionable steps.
  • Simplifying instructions: Stripping out verbose text to help the LLM focus on a single sub-task.
  • Modifying the plan: Completely changing the agents' approach (e.g., forcing them to use a Python script instead of browsing the web).
  • Debugging is Mostly Reading: Even with advanced tools, participants spent roughly 10 out of their allocated 15 minutes simply reading through logs to localize the error before attempting their first edit.

Key Results

The authors conducted a two-part user study with 14 participants (graduate students and research scientists):

  • High Feature Satisfaction: Participants overwhelmingly preferred AGDebugger over traditional static log viewers. The backtracking and message editing feature was the highest-rated component, scoring a mean usability rating of 4.9 / 5.
  • Improved Mental Models: While steering agents to the exact correct benchmark answer within a strict 30-minute window proved difficult (2 out of 8 participants achieved the perfect final output), the interactive loop drastically improved developers' understanding of why the agents were failing and how they interpreted instructions.

Limitations and Future Work

  • Non-Resettable Actions: AGDebugger can roll back internal agent states, but it cannot undo external real-world side effects, such as an agent sending an email or making a financial transaction.
  • Implementation Blindness: Users occasionally struggled when they attempted to inject plans that exceeded an individual agent's hardcoded capabilities (e.g., asking a Web Surfer designed for single-step tasks to visit three sites at once).
  • Future Directions: The authors suggest integrating automated "LLM-as-a-judge" error localization to reduce log-reading time, and developing methods to run edits multiple times automatically to ensure fixes are robust against LLM non-determinism.

Summary updated

BibTeX
@misc{epperson2025interactive,
  author = {Will Epperson and Gagan Bansal and Victor Dibia and Adam Fourney and Jack Gerrits and Erkang Zhu and Saleema Amershi},
  title = {{Interactive Debugging and Steering of Multi-Agent AI Systems}},
  year = {2025},
  eprint = {2503.02068},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.02068},
}
Figure