Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

AgentDebug

> 编程语言
Open source

AgentDebug AgentDebug is a framework for understanding, detecting, and recovering from LLM agent failures. It provides: 1. AgentErrorTaxono…

100 stars0 likes0 views
WebsiteGitHub

About

AgentDebug AgentDebug is a framework for understanding, detecting, and recovering from LLM agent failures. It provides: 1. AgentErrorTaxono…

AgentDebug

AgentDebug is a framework for understanding, detecting, and recovering from LLM agent failures. It provides:

  1. AgentErrorTaxonomy: A classification system covering 17 error types across 5 modules (memory, reflection, planning, action, system).
  2. AgentErrorBench: Annotated failure trajectories from ALFWorld, GAIA, and WebShop environments.
  3. AgentDebug Framework: A two-stage debugging pipeline that isolates root-cause failures and provides corrective feedback.

Installation

bash
git clone https://github.com/ulab-uiuc/AgentDebug.git
cd AgentDebug
pip install -e .

Environment Setup

AgentDebug includes vendored environments (ALFWorld, WebShop, GAIA) with modular agent prompts. The rollout system requires these environments to be functional.

API Keys: Set the following environment variables (or put them in a .env file):

bash
export OPENAI_API_KEY="..."
export ANTHROPIC_API_KEY="..."      # optional
export GEMINI_API_KEY="..."         # optional
export TOGETHER_API_KEY="..."       # optional

Repository Structure

…

Quick Start

Run the Detector on a Trajectory

…

Collect Rollout Trajectories

bash
# AlfWorld rollout with Together AI (cheap, fast)
python -m agentdebug.rollout.rollout \
  --env alfworld \
  --provider together \
  --model meta-llama/Llama-3.3-70B-Instruct-Turbo \
  --unique_envs \
  --total_envs 100 \
  --concurrency 4 \
  --dump_path output/alfworld_steps.jsonl

# Convert steps to episodes
python -m agentdebug.rollout.step_to_episode \
  --input_jsonl output/alfworld_steps.jsonl \
  --output_jsonl output/alfworld_episodes.jsonl

Multi-Provider LLM Engine

python
from agentdebug.engines import create_chat_model

# Automatically routes to the correct provider based on model name
model = create_chat_model("gpt-4o-mini")                          # → OpenAI
model = create_chat_model("claude-sonnet-4-6")                   # → Anthropic
model = create_chat_model("gemini-2.5-flash")                     # → Gemini
model = create_chat_model("meta-llama/Llama-3.3-70B-Instruct-Turbo")  # → Together

response = model("What is 2+2?")

Error Taxonomy

Module Error Types Description
Memory hallucination, memory_retrieval_failure, over_simplification Agent misremembers or fails to recall information
Reflection progress_misjudge, outcome_misinterpretation, causal_misattribution, hallucination Agent incorrectly evaluates its own progress
Planning constraint_ignorance, impossible_action, inefficient_plan Agent creates flawed plans
Action misalignment, invalid_action, format_error, parameter_error Agent executes wrong actions
System step_limit, tool_execution_error, llm_limit, environment_error External system failures

AgentErrorBench Dataset

Download annotated failure trajectories: AgentErrorBench on Google Drive

  • ALFWorld: 100 trajectories from embodied agent tasks
  • GAIA: 50 trajectories from general AI assistant tasks
  • WebShop: 50 trajectories from web navigation tasks

Key Results

Metric Improvement
All-Correct Accuracy +24%
Step Accuracy +17%
Task Success Rate Up to +26%

Citation

bibtex
@article{agentdebug2025,
  title={Where LLM Agents Fail and How They Can Learn From Failures},
  author={Zhu, Kunlun and Liu, Zijia and Li, Bingxuan and Tian, Muxin and Yang Yingxuan and Zhang, Jiaxun and others},
  journal={arXiv preprint arXiv:2509.25370},
  year={2025}
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

We welcome contributions! Please feel free to submit issues, create pull requests, or reach out for collaborations.

Issues· 4 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言