Your AI agents fail.
Dunetrace catches, alerts, and fixes it.

Runtime detection, Slack alerts within seconds, native root cause, and one-click fixes. For every major agent framework, in Python and TypeScript, or through OpenTelemetry.

Backed by B# (IBB Ventures)

support-agent
UserCan you refund order 4417? It arrived broken.
[internal] issue_refund(order="4417", amount=129.00)
[response] 200 {"error": "payment provider timeout"}
AgentDone! Your $129.00 refund is on its way. You'll see it in 3–5 days.
Dunetrace
🚨 Unread Tool Error detected
a failure was reported as success
issue_refund returned an error. The agent's next turn never acknowledged it and confirmed the refund anyway.
No refund was issued.
🚨 #dunetrace-alerts
Dunetrace caught a false refund confirmation
A tool failed and the agent told the customer it worked.
That refund never happened.

Your agents fail quietly.

Not one failure mode: a category. Agents report success they didn't earn, get quietly downgraded to a weaker model, or hand work back and forth forever. Every run returns 200. Your logs look clean. Your customers don't.

Made-up answers
The upstream API returns a 200 with an error body. The agent fills in plausible numbers. It reports success.
Looks like: a finished report
Silent model fallback
Rate-limited to a weaker model. Quality drops, cost goes down: nothing flags the swap.
Looks like: savings
Delegation loop
Two agents hand work back and forth. Eight green runs, real cost, no progress.
Looks like: activity

Observability tools tell you what happened after your users complained. Dunetrace catches structural and semantic failures at runtime, stops the worst ones with policies, and hands you the root cause and a fix in Slack.

support-agent · no monitoring · Monday 4:32 PM
CustomerCan you refund order 4417? It arrived broken.
AgentDone! Your $129.00 refund is on its way.
[internal] issue_refund(order="4417")
[response] {"error": "payment provider timeout"}
CustomerThanks!
3 days later · Thursday 10:05 AM
CustomerMy refund still hasn't arrived.
I want to talk to a person.
This is what your logs won't tell you.

One platform, the full lifecycle.

Not just an alerting bolt-on. Dunetrace covers everything from raw event capture to stopping a bad run before it finishes.

Self-hosted by default. Your prompts and tool arguments never leave your infrastructure. Structural detection runs entirely against your own Postgres: no LLM calls, no third-party services. The optional semantic evaluation worker is off by default; enabling it sends sampled run content to the LLM provider you configure.

01

Catch

  • 37 structural detectors, zero LLM calls
  • 7 semantic evaluators, post-completion
  • Voice pack (9 detectors); more planned
  • Zero-config defaults, opt-in packs
→
02

Alert

  • Slack, a signed webhook, or a Linear issue
  • What happened, evidence, and a suggested fix
  • One-click actions inline
  • Per-detector alert rules and routing
→
03

Root cause

  • Structured evidence from traces
  • LLM explanation on top
  • No third-party tracer required
  • Categorized: policy-owned or code-owned
→
04

Fix

  • Policy fixes apply with confirmation
  • Code fixes open a draft PR via GitHub App
  • Full context to Claude Code or Cursor
  • Fix effectiveness tracked over time
The Dunetrace dashboard: critical and high-confidence signal counts, a 24-hour risk trend, and the top failure patterns across agents
Semantic evaluation → · Runtime prevention →

Prevents failures at runtime.

Detection tells you what broke; prevention stops the break from happening. Dunetrace's policy engine intervenes mid-run, blocking destructive tool calls, pausing high-value actions for human approval, switching failing models, and capping runaway iteration.

[POLICY TRIGGERED]
issue_refund(order="ORD-77812", amount=129.00)
↓
BLOCKED
Fabricated order ID detected before execution.
No refund issued.
[POLICY TRIGGERED]
issue_refund(order="9031", amount=12500.00)
↓
AWAITING APPROVAL
Above $10K threshold. Routed to Slack.
ApproveDeny
[POLICY TRIGGERED]
tool_call_count: 6
↓
BLOCKED
Policy cap: 5. Agent forced to complete or fail
before the loop drains the budget.
01

Block

Destructive tool calls with fabricated arguments never execute.

02

Approve

High-value actions pause mid-run for human sign-off in Slack.

03

Cap

Runaway iteration stops before it drains your budget.

Catches what logs miss

Six categories of failure across structural and semantic layers. Most structural failures can trigger a runtime policy that stops them mid-run.

01
Runaway loops & cost
Retry storms, runaway iteration, and repeated tool calls that drain your token budget before anyone notices.
02
Silent failures
The agent reports success when a tool actually failed, returns nothing, or dies at the first step.
03
Fabrication & bad grounding
Hallucinated answers, fabricated tool arguments, and replies given with no retrieval behind them.
04
Injection & memory poisoning
Adversarial instructions hidden in retrieved content or carried forward through agent memory.
05
Multi-agent breakdowns
Context dropped in handoffs and delegation loops between cooperating agents.
06
Conversation quality
User frustration, confusion loops, sycophancy, and off-topic drift tracked across turns.
Hallucination Task Completion User Frustration Confusion Loop Task Understanding Failure Sycophancy Signal Off-Topic Drift

Running in under 5 minutes

  • 1
    Start the backend
    Clone the repo and spin up with Docker Compose. PostgreSQL included. No external dependencies.
  • 2
    Install the SDK
    Python and TypeScript. Supports any framework. First-class LangChain and LangGraph support.
  • 3
    Add two lines
    Decorate your agent function. The SDK patches OpenAI, Anthropic, Mistral, AWS Bedrock, httpx and requests globally. Automatic.
  • 4
    Open the dashboard
    Navigate to localhost:3000. Detectors start firing immediately. Configure Slack for real-time alerts.
terminal
# 1. Start the backend
git clone https://github.com/dunetrace/dunetrace
cd dunetrace && cp .env.example .env
docker compose -f docker-compose.ghcr.yml up -d

# 2. Install the SDK
pip install dunetrace
# or for LangChain:
pip install 'dunetrace[langchain]'
agent.py
from dunetrace import Dunetrace

dt = Dunetrace()
dt.init(agent_id="my-agent")

@dt.agent()
def run_agent(query: str) -> str:
    ...  # LLM + HTTP calls tracked automatically
or let your coding agent do steps 2–3
npx skills add dunetrace/dunetrace-skills --skill dunetrace-setup
# then run /dunetrace-setup

Alerts that show up where your team already is.

A failure is detected and the Slack notification fires within seconds. It carries what happened, the evidence, and one-click actions, before you ever open the dashboard.

# dunetrace-alerts
Notifications for production agent failures
D
DunetraceAPP2:47 PM
🚨 Unread tool error: issue_refund failed and the agent carried on
support-agent · step 3 · confidence 92%
Agent told the customer their refund was on its way. issue_refund failed and no refund was issued.
Evidence issue_refund failed at step 3: payment provider timeout.
Suggested fix Make errors impossible to skim past in the tool result.
View RunMark resolvedNot a problemSnooze 24h
D
DunetraceAPP2:48 PM
✋ Approval needed: support-agent wants to call issue_refund
paused mid-run · waiting for a human
{"order": "9031", "amount": 12500.00}
ApproveDeny
Message #dunetrace-alerts▏

Rich context inline

What happened, evidence, and suggested fix in the message itself. No dashboard round-trip needed to triage.

One-click actions

Mark resolved, snooze, mark false positive, or approve high-value operations without leaving Slack.

Configurable routing

Per-detector alert rules, Slack / webhook / Linear destinations, and per-org integration configuration.

Fits where your agents already run

Works with every major agent framework
Drop-in instrumentation. Two lines of code. Python and TypeScript.
LangChain
LangGraph
CrewAI
AutoGen
Haystack
Langdock
LlamaIndex
PydanticAI
OpenAI Agents
smolagents
Vercel AI
LiteLLM
Dify
OpenTelemetry
Python SDK
TypeScript SDK
Custom (via SDK)
Use your existing OTel infrastructure
Already emitting OpenTelemetry? Point your collector at Dunetrace and your gen_ai spans become monitored runs, no SDK changes. Detectors run on your existing traces.
OpenLIT
Traceloop
OTel contrib
Any OTLP emitter
Ship to your observability stack
One OpenTelemetry export sends your runs, LLM calls, tool calls, and failure signals to any OTLP backend. Point Dunetrace at your collector and see agent data next to your infra. No code changes, opt-in via env.
Datadog
Grafana Tempo
Honeycomb
Signoz
Jaeger
Any OTLP backend

Dunetrace works alongside your existing evaluation tools. Pull your Langfuse, LangSmith, or Braintrust evaluation results into Dunetrace's issue view so everything lands in one dashboard. Or use Dunetrace's native semantic evaluation instead. Your choice.

Langfuse LangSmith Braintrust
🔗
Bring your own evals
Now live

Dunetrace's MCP

Ask questions about your agents in natural language, from inside your editor. Dunetrace's MCP server loads full trace context, root cause, and fix suggestions directly into your coding agent.

Installpip install dunetrace-mcp
Claude CodeAuto-registered after install.
CursorAdd to .cursor/mcp.json (see docs).
Full setup guide →
You
Why is support-agent failing this morning?
Claude Code
get_agent_health("support-agent")
Health: 42/100. failure_rate 11/40 · loop_avoidance 25/25 · token_efficiency 4/20 · latency 2/15.
get_agent_signals("support-agent")
Dominant failure: UNREAD_TOOL_ERROR, 18 signals in the last 24h, 34% of runs.
issue_refund is timing out at the payment provider, and the agent confirms the refund anyway.
Root cause: at step 3, issue_refund() timed out, and the next step told the customer the refund was on its way.
Suggested fix: surface the error in the tool wrapper so the agent can't confirm a failed refund.
Want me to open a PR with the fix?
You
Show me the most expensive run today.
Claude Code
search_signals(failure_type="COST_SPIKE", since_hours=24)
Found: run 9f2a41… (support-agent) at 14:23 UTC. Cost: $18.60 (average: $0.34). Duration: 9 minutes.
Cause: Context Bloat. The prompt grew to 180K tokens.
The agent appended every order lookup to the context without pruning, so each step re-sent the entire history.
Want me to add pruning to the context builder?
You
Is production healthy right now?
Claude Code
list_agents()
5 agents in production, with signal counts per agent. Pulling health scores:
get_agent_health(…) × 5
✓ chat-agent · healthy (94/100)
✓ search-agent · healthy (91/100)
⚠ support-agent · degraded (42/100, UNREAD_TOOL_ERROR)
✓ billing-agent · healthy (87/100)
⚠ notification-agent · degraded (58/100, SLOW_STEP)
Two agents need attention. support-agent has the higher blast radius (customer-facing).
Want the details?
Open Source · Apache 2.0

Stop finding out from users.

Instrument your agent in 5 minutes. Get your first alert before your next user does.