Debug AI agents like distributed systems
— not black boxes.

Capture every decision, tool call, and LLM interaction as a queryable event timeline. Inspect live, replay from checkpoints, search across sessions.

CI PyPI peaky-peek PyPI peaky-peek-server Python 3.10+ License MIT Downloads
pip install peaky-peek-server
★ GitHub ↗ PyPI

Why Peaky Peek?

Traditional observability tools weren't built for agent-native debugging.

🏠
Local-first by default

No external telemetry. No SaaS lock-in. Your agent data stays on your machine unless you explicitly configure cloud mode.

🧠
Agent-decision-aware

Captures the causal chain behind every action — reasoning steps, confidence, evidence, and chosen action — not just function calls.

Interactive replay

Time-travel through any session. Play, pause, step, and seek to any checkpoint. Replay the exact state before a failure occurred.

Tool Focus Limitation
LangSmith LLM tracing SaaS-first, no local-first option
OpenTelemetry Infra observability Not agent-decision-aware
Sentry Error tracking No reasoning-level insight
Peaky Peek Agent-native debugging ✓ Local-first & open source

Feature Highlights

Everything you need to understand why your agent did what it did.

Decision Tree Visualization
Decision Tree Visualization

Navigate agent reasoning as an interactive tree. Click nodes to inspect events and trace the causal chain from policy to tool call.

Checkpoint Replay
Checkpoint Replay

Time-travel through agent execution. Play, pause, step, and seek to any point. Checkpoints ranked by restore value.

Trace Search
Trace Search

Find specific events across all sessions. Search by keyword, filter by event type, and jump directly to results.

Failure Clustering
Failure Clustering

Adaptive analysis groups similar failures. Surface highest-severity, highest-novelty events. Click a cluster to focus the timeline.

Get Started in 2 Steps

Requires Python 3.10+ and a cloned repo. No config files needed to start.

Step 1 — Install

pip install peaky-peek-server

Step 2 — Run (from repo root after cloning)

git clone https://github.com/acailic/agent_debugger
cd agent_debugger
uvicorn api.main:app --reload --port 8000

API available at http://localhost:8000 · Full documentation →