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. AgentErrorTaxono…
AgentDebug is a framework for understanding, detecting, and recovering from LLM agent failures. It provides:
git clone https://github.com/ulab-uiuc/AgentDebug.git
cd AgentDebug
pip install -e .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):
export OPENAI_API_KEY="..."
export ANTHROPIC_API_KEY="..." # optional
export GEMINI_API_KEY="..." # optional
export TOGETHER_API_KEY="..." # optional……# 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.jsonlfrom 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?")| 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 |
Download annotated failure trajectories: AgentErrorBench on Google Drive
| Metric | Improvement |
|---|---|
| All-Correct Accuracy | +24% |
| Step Accuracy | +17% |
| Task Success Rate | Up to +26% |
@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}
}This project is licensed under the MIT License - see the LICENSE file for details.
We welcome contributions! Please feel free to submit issues, create pull requests, or reach out for collaborations.
No open issues yet, or sync has not completed.