Trace every agent run.
Ship the fix automatically.

Causal traces every LLM and tool call, catches failures with an LLM judge, blocks unsafe tool calls before they run, and traces each incident to the commit that caused it. Then it opens the fix as a pull request.

No signup. The real product, on an example incident, with a guided tour.

An example incident, PD-8890, in four steps. Observe: the agent run's trace, 34 spans. Detect: the judge flags tool.resolve_rollout_flag as tool_failure, 96% confidence. Heal: traced three hops upstream to commit b91f0ac4, "refactor(checkout): simplify flag resolution", and fixed in pull request #2213, verified by unit, integration, causal-replay. Improve: the run becomes regression case di-4471 in checkout-regressions.

Every LLM call, tool call and request the run made: 34 spans in one tree.

Works with the stack you already run

OpenTelemetryClaude Agent SDKAnthropicOpenAIVercel AI SDKLangGraphCrewAILlamaIndex
The product

Walk a real incident

Not a screenshot: the explorer itself, running in your browser on an example incident. Open the failing span, read the verdict, follow it to the commit.

causal.app/incidents/PD-8890
Trace96386d1613d16dfcP1Tool failure96%
34 spansDurationTokensCost
How it works

One loop, from failure to fix

Observe the run, judge it, guard it, trace it to the commit, and keep it fixed. Every panel is rendered by the product from the example incident's own data.

PD-8890 · storefront-checkout · trace 96386d1613d16dfc

The call path that raised, root to failure

checkout-assistant.run2m 30s
Agent28.3s
rollout_resolver28.0s
tool.resolve_rollout_flag8.5s
Error

AttributeError: module 'services.checkout.flags' has no attribute 'checkout_v2_enabled' (raised at services/checkout/flags.py:42 in resolve_rollout)

services/checkout/flags.py:42commit b91f0ac4
spans in trace
34
wall clock
2m 30s
tokens
46.0K → 8.9K
cost
$0.14
model
claude-sonnet-5
New · Runtime guardrails

Stop the bad tool call
before it runs.

CausalGuard runs inside your agent and checks every tool call against where its text came from. A page the agent read can't reach your shell, and customer data can't leave through a URL a ticket smuggled in.

Decision log171 calls · p50 24µs
Blocked
8
Approvals
3
Redacted
1
Rules
12
  • Blocked
    send_report
    TB-01 · Data-leak path (lethal trifecta)
  • Blocked
    mcp__repo-tools__repo_read
    TB-09 · Tool definition changed (rug pull)
  • Blocked
    shell_exec
    GR-04 · Argument injection
  • Approval
    db_query
    GR-03 · Destructive action
  • Redacted
    send_email
    GR-02 · Personal data sent out
  • Blocked
    http_post
    TB-14 · Decoy credential sent out
  • Blocked
    web_search
    GR-05 · Loop and rate limit
  • Twelve rules: prompt-injected flows, rug-pulled tools, leaked secrets and personal data, destructive SQL, loops
  • Block, ask a human, or redact, with monitor and canary modes to try a rule first
  • Dry-run any rule against last week's traces before you arm it
  • One line for the Claude Agent SDK, or wrap any tool function
agent.ts
import { CausalGuard } from "@causal/sdk";
const guard = new CausalGuard({ tools });
const session = guard.session({ agent: "support-triage" });
// Claude Agent SDK: deny, ask and redact map onto PreToolUse
query({ prompt, options: {
hooks: guard.claudeAgentHooks(session),
} });
// Or any tool: a blocked call throws and never runs
const send = guard.wrap(session, "send_report", api.sendReport);
Get started

Set up in minutes

Causal is in early access, and the packages ship with it. This is what setup looks like, by CLI, by prompt or by Agent Skill.

npm install -g @causal/cli

Then `causal instrument` adds tracing to your repo and `causal doctor` checks the setup. Packages ship with your early-access invite.

See it on a real incident.

No signup and no backend. The whole product, running on an example incident.