Culpa: Open Source Deterministic Replay Engine for AI Agent Debugging

Culpa is an open source deterministic replay engine designed specifically for debugging AI agent sessions. The core problem it addresses is the nondeterministic nature of LLM agents—when they fail, you can't reproduce the exact failure by simply re-running the session.
How It Works
The tool records every LLM call along with the full execution context during an agent session. When you need to debug a failure, it replays the session using the recorded responses as stubs instead of making new API calls. This makes the replay fully deterministic and costs nothing since it doesn't hit the real APIs.
Key Features
- Proxy Mode: Works with tools like Claude Code and Cursor without requiring any code changes
- Python SDK: Available for developers building their own agents
- API Support: Compatible with Anthropic and OpenAI APIs
- Forking Capability: You can fork at any recorded decision point, inject a different response, and see what would have happened
Practical Benefits
Since the replay uses recorded responses instead of making actual API calls, debugging sessions incur zero API costs. The deterministic nature of replays makes it possible to reliably reproduce and analyze failures that would otherwise be impossible to recreate due to the inherent randomness in LLM responses.
The project is actively seeking feedback, particularly from developers building agent workflows. The creator notes they're a CS freshman and looking to improve the tool.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Hipocampus: A Persistent Memory System for AI Agents Using Compaction Trees
Hipocampus addresses the problem of AI agents forgetting context between sessions by implementing a compaction tree that compresses conversation history through five levels: raw → daily → weekly → monthly → root, with a topic index called ROOT.md.

Freestyle Launches Sandboxes for AI Coding Agents with Live Forking
Freestyle provides cloud sandboxes for AI coding agents that start in ~500ms and feature live forking with <400ms pause, allowing full VM clones including memory state. They run full Debian with hardware virtualization on bare metal infrastructure.

Bernstein: A Kubernetes-like orchestrator for AI coding agents with verification and model policies
Bernstein is an orchestrator for AI coding agents that includes independent verification of agent outputs, model policy controls, 13 agent adapters, and deterministic Python-based scheduling. The project has 5000+ tests and features like circuit breakers, cost anomaly detection, and PII scanning.

Local Tool Visualizes Claude Code Session Data
A Python script reads Claude Code session data stored locally in ~/.claude/ and generates a scroll-driven visualization with D3.js charts showing daily activity, project breakdown, tool usage, and coding rhythm heatmaps.