The flight recorder that sees failure coming.
A trace database for AI agents: it learns which paths fail and can stop a run heading down one.
Prompt for your coding agent
Set up Traza Cloud for the agent in this repository. Docs: https://www.trazadb.com/docs/quickstart/ and https://www.trazadb.com/docs/otel/
1. A project API key is in $TRAZA_API_KEY (created at app.trazadb.com, on the project's Keys tab).
2. Instrument the agent with OpenTelemetry (the GenAI conventions, OpenLLMetry or OpenInference all work) and export to Traza Cloud with three variables:
export OTEL_EXPORTER_OTLP_ENDPOINT=https://api.trazadb.com
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer%20$TRAZA_API_KEY"
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
3. Put session.id on every span of a run, children included: a run is a session, and Guard and Replay act on runs.
4. Keep prompts and completions on the spans, so any run can be replayed.
5. Add Traza's MCP server, then run the agent once and read its run back through it:
claude mcp add --transport http traza https://api.trazadb.com/v1/mcp --header "Authorization: Bearer $TRAZA_API_KEY" Apache-2.0, one binary · Free: 1M spans a month, no card
-
llm:gpt-6.1-sol search_orders llm:gpt-6.1-sol issue_refund llm:gpt-6.1-sol
90% -
llm:gpt-6.1-sol search_orders llm:gpt-6.1-sol issue_refund×2 llm:gpt-6.1-sol
50%fatal fork
-
llm:gpt-6.1-sol search_orders×3-5 stop llm:gpt-6.1-sol
10%fatal fork
-
llm:gpt-6.1-sol lookup_customer llm:gpt-6.1-sol escalate_ticket llm:gpt-6.1-sol
60%
likely_failure Runs that took this path succeeded 5 of 50 times.
What else the recording does
-
Stop the step before it runs.
Your agent asks before each step, and a fuse on cost, loops, errors or failing odds can answer stop.
Control -
Replay a run with zero model calls.
Point the OpenAI or Anthropic SDK at a recorded run, and its model answers come from the recording.
Debug -
Prove what your agents did.
A hash chain over every trace Traza stores: change one entry and every later link breaks.
Prove -
Claude Code and Codex, on the record.
Traza imports the sessions they already save to disk, with no SDK or proxy.
Coding agents
Record your first run in five minutes.
Sign in, create a project, copy a key, set three environment variables.