Agent Debugger — AI skill for Claude Code
A specialized AI debugging agent using Llama3 (Ollama) that performs root cause analysis, generates minimal code fixes, and validates them via execution.
How to install Agent Debugger
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sayandebnath-creator/agent-debugger and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Debugger does
A specialized AI debugging agent using Llama3 (Ollama) that performs root cause analysis, generates minimal code fixes, and validates them via execution. Includes custom evaluation metrics and benchmark comparison with Claude.
Alternatives in AI
- Ccstatusline — by sirmalloc - A highly customizable status line formatter for Claude Code CLI that displays model info, git b 5.5k ★
- CoreCoder — Minimal AI coding agent (~1,400 LoC Python) inspired by Claude Code 616 ★
- Maestro Companion — Quick execution for small tasks — minimal run lifecycle (start + done) with evidence recording 530 ★
README
AI Debugging Agent (Ollama + Llama3)
Overview
Specialized AI agent for debugging Python errors using structured reasoning and execution validation.
Features
- Root cause detection
- Minimal fixes
- JSON structured outputs
- Execution validation (sandboxed)
Problem Specialization
This agent is specialized for debugging runtime errors in Python code.
Why this problem?
Debugging consumes a significant portion of developer time and is highly repetitive.
Why prioritize it?
- High frequency in real-world development
- Measurable outcomes (code runs or fails)
- Existing LLMs are generic and not execution-validated
This agent focuses on:
- Root cause identification
- Minimal code fixes
- Execution validation
Setup
pip install -r requirements.txt
cp .env.example .env
uvicorn src.main:app --reload
Example
Input: { "code": "print(x)", "error": "NameError" }
Output: { "root_cause": "x is not defined", "fix": "define x before use", "corrected_code": "x = 0\nprint(x)" }
Evaluation Method
Score = (0.4 × Fix Accuracy) + (0.2 × Execution Success) + (0.2 × Token Efficiency) + (0.2 × Latency)
Scaled to 10,000
Benchmark vs Claude (Example)
| Case | Claude | Agent |
|---|---|---|
| IndexError | try/except | fixed loop bound |
| NameError | vague hint | explicit fix |
| ZeroDivision | explanation | safe guard |
Design Decisions
- Ollama for local inference
- Structured JSON output for deterministic evaluation
- Execution-based validation to reduce hallucinations
Cursor Integration
Uses `.cursorrules` to enforce minimal, safe, and testable fixes
API Usage
curl -X POST http://127.0.0.1:8000/debug \
-H "Content-Type: application/json" \
-d '{"code":"print(x)","error":"NameError"}'
---
Create `.gitignore` (root folder) or already given in this repo
Paste:
.env
__pycache__/
*.pyc
evaluation_results.json
detailed_results.json
Related Skills
Autonomous Debugger
Evidence-driven debugging skill for Claude Code and AI coding agents. Investigates codebases, reproduces failu
Bug Report Agent Skills
AI agent skill for automated bug report processing and systematic debugging. Enforces Detective Methodology wo
Secondmate Reason
Ask a read-only reasoning model (via secondmate) a hard analysis question — root-cause, triage, plan review, p
NOC Copilot
NOC-Copilot: an AI agent that ingests Prometheus/Alertmanager alerts and drafts a plain-language root-cause na
Recon Dispute Agent
AI agentic workflow (Claude + tool-calling) that consumes reconciliation discrepancies, investigates each case
Elevate Your Campaign
AI marketing campaign diagnosis agent. Upload a campaign CSV and it finds anomalies, explains the root cause w
Related Agents
Hub Debugger
Thoughtbox Hub DEBUGGER agent. Joins workspaces, claims bug problems, performs root cause analysis using five-
Hawk Debugger
Use this agent to trace bugs to their root cause and produce minimal fixes. Hawk reproduces before investigati
Code Debugger
Systematically identify, diagnose, and resolve bugs using advanced debugging techniques. Specializes in root c