Show HN: Agent Debugger – local-first failure debugger for AI agents A developer released Agent Debugger, a local-first open-source tool that turns a failed AI agent trace into a "Cause Package" of observed evidence, rule-based cause candidates each paired with a falsifier, reproduction steps, and a handoff pointer to the developer's existing debugger. The tool, installable via git clone and npm run dev, imports NDJSON/JSON traces into a versioned event schema (schemaVersion: 2), runs entirely on the user's machine with no account, cloud, or external AI service, and applies redaction on ingest, stream, export, and bundle creation. Its author positions it as a narrow complement to observability platforms such as Langfuse, Phoenix, and LangSmith rather than a replacement, explicitly excluding evals, datasets, scores, live pause/inject, and cloud sync. Failed agent trace → evidence → reproduction → debugger handoff. Agent Debugger is a local-first developer tool for investigating failed agent runs. It does not try to replace observability platforms such as Langfuse, Phoenix, or LangSmith. Instead, it takes a trace you already have and builds a Cause Package : - Observed evidence — directly visible facts with event IDs - Cause candidates — rule-based hypotheses, each with a falsifier - Reproduction steps — what to replay and what to compare - Next debugger action — where to stop and what to inspect in your existing debugger Everything runs on your machine. No account, no cloud, no external AI service. | This build | Not included | |---|---| | Versioned event schema schemaVersion: 2 | Live pause / inject | | NDJSON / JSON trace import | Evals, datasets, scores | | File-backed local event store | Cloud sync or accounts | | Deterministic, rule-only Cause Package | External AI explanations | | Portable redacted Cause Package bundles | Custom DAP/debugger implementation | | Case comparison across two local traces | Cloud case storage | | Browser-based local desktop shell | Native Electron/Tauri binary | Cause candidates are hypotheses derived from rules , not verified root causes. The UI keeps observed facts, rule flags, hypotheses, reproduction steps, and handoff suggestions in separate sections. Most agent observability tools answer what happened . Agent Debugger answers the narrower question a developer has when a run fails: what should I inspect next, and how can I prove that hypothesis wrong? - Evidence is separated from interpretation. A rule flag never becomes a root cause on its own. - Every cause candidate carries a falsifier, so a hypothesis can be challenged instead of trusted. - The handoff step points at your existing debugger and source location. This project does not invent another debug protocol. - Privacy is structural: redaction runs on ingest, stream, export, and bundle creation, and usage data is allowlist-sanitized before it reaches disk. - The scope is intentionally narrow: one failed run, compared against another when useful, then handed off. If you need dashboards, evaluation suites, or team-wide trace retention, use an observability platform. Agent Debugger is the local step you take before or after that platform. git clone https://github.com/woxlo1/agent-debugger.git cd agent-debugger npm install npm run dev This starts: - the local API on http://127.0.0.1:4317 - the Web UI on http://localhost:5173 Open http://localhost:5173 . The Cause Package view is selected by default. For a one-command app-style launch, use the browser-based desktop shell instead: npm run desktop It starts the local API and serves the built UI from one loopback origin, then opens your default browser. See docs/DESKTOP SHELL.md . In a second terminal while npm run dev is running: npm run demo The demo emits a fake failed checkout trace. Select it in the trace list and inspect its Cause Package, or switch to the Replay tab for the original timeline view. A checked-in version of the same failure is available at docs/examples/failed-trace.ndjson for repeatable procedure checks. It is synthetic and contains no real customer data. python NDJSON / JSON Lines agent-debugger import failed-run.jsonl From stdin cat failed-run.jsonl | agent-debugger import Print the Cause Package as JSON agent-debugger analyze