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.

Start free
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

Fate Map of support-agent Fate Map of support-agent: 180 completed runs over the last 30 days, base rate 54%. Branch search_orders, issue_refund: 54 of 60 succeeded. Branch search_orders, issue_refund×2: 15 of 30 succeeded; a fatal fork at issue_refund×2, against 90% for its siblings, Fisher p = 5.1 × 10⁻⁵. Branch search_orders×3-5: 5 of 50 succeeded; a fatal fork at search_orders×3-5, against 72% for its siblings, Fisher p = 2.2 × 10⁻¹⁴. Branch lookup_customer, escalate_ticket: 24 of 40 succeeded. The run in flight live-doomed-0 walks down the map: likely_failure. The predictive fuse answers stop.
  1. llm:gpt-6.1-sol search_orders llm:gpt-6.1-sol issue_refund llm:gpt-6.1-sol

    90%
  2. llm:gpt-6.1-sol search_orders llm:gpt-6.1-sol issue_refund×2 llm:gpt-6.1-sol

    50%

    fatal fork

  3. llm:gpt-6.1-sol search_orders×3-5 stop llm:gpt-6.1-sol

    10%

    fatal fork

  4. 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.

How Foresight sees it coming

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.