Debug AI Agents
Like Software.
Replay any failed execution. Inspect state transitions. Fork traces and test fixes safely.
npm i tracepilot-openaiSELECT * FROM devices WHERE battery_charge < 10
PostgresError: relation "battery_charge" does not exist
LINE 1: SELECT * FROM devices WHERE battery_charge < 10
^
HINT: Did you mean "battery_level"?Agents fail in ways logs can't explain.
A prompt loop doesn't look like a bug in your logs. A hallucinated schema doesn't surface in Datadog. Token costs spiral without triggering alerts. These are AI-specific failure modes that require AI-specific tooling.
"Traditional metrics notify you when your stack breaks. TracePilot allows you to freeze the execution frame, rewind model states, correct variables, and replay securely."
Learn about Time-Travel DebuggingReplay from any step. Edit state. Fork the timeline.
Open a failed trace, select the failing span, modify the input or model output, and replay execution forward. The original trace stays untouched — your fork runs in an isolated sandbox.
SELECT * FROM devices WHERE battery_charge < 10
SELECT * FROM devices WHERE battery_level < 10
Three Steps to Full Agent Control
Drop-in Integration
Replace your existing OpenAI or Vercel AI call with our drop-in wrapper. Zero refactoring. Full observability instantly active in production.
Branching Graph
Trace variables, system messages, database schemas, and tool outcomes displayed on a single, high-fidelity tree timeline.
Time-Travel Replay
Open failed traces, hot-swap values in our interactive sandbox console, and replay the agent execution onwards instantly.
const res = await openai.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: prompt }]
});import { traceOpenAI } from 'tracepilot-openai'; const res = await traceOpenAI(tp, openai, { model: "gpt-4o", messages: [{ role: "user", content: prompt }] }); // → trace captured, tokens logged, errors surfaced
Two packages. One line each.
import { traceOpenAI } from 'tracepilot-openai'; const res = await traceOpenAI(tp, openai, { model: "gpt-4o", messages: [{ role: "user", content: prompt }] });
import { traceVercel } from 'tracepilot-vercel'; const result = await traceVercel(tp, { model: "gpt-4o", messages, tools: { searchWeb, queryDatabase }, maxSteps: 5, });
How it works.
Your Code
Your code calls an LLM or tool.
TracePilot SDK
TracePilot SDK wraps the call, captures input, output, tokens, latency, and errors.
TracePilot API
Data is sent to the TracePilot API over encrypted HTTP.
Dashboard
The dashboard renders the trace tree, waterfall, and span details in real time.
Trusted by AI teams in production
Start tracing in two minutes.
Generate an API key, install the SDK, and see your first trace in the dashboard.
OAuth login required. No anonymous keys.
