<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: traceroot</title>
    <description>The latest articles on DEV Community by traceroot (traceroot-ai).</description>
    <link>https://dev.to/traceroot-ai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F15652%2Fdf01e784-ffec-4466-a048-a380975c44ee.png</url>
      <title>DEV Community: traceroot</title>
      <link>https://dev.to/traceroot-ai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/traceroot-ai"/>
    <language>en</language>
    <item>
      <title>An agent evaluation framework you can trust</title>
      <dc:creator>Leilei</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:00:14 +0000</pubDate>
      <link>https://dev.to/traceroot-ai/an-agent-evaluation-framework-you-can-trust-51ab</link>
      <guid>https://dev.to/traceroot-ai/an-agent-evaluation-framework-you-can-trust-51ab</guid>
      <description>&lt;p&gt;We ran the same 16 test cases against three versions of a support agent: a healthy one, one with a bug, and one with the bug fixed.&lt;/p&gt;

&lt;p&gt;The fix worked. It brought one score back up by 6.3 points. But on a different score, the buggy version came out 6.3 points ahead of the healthy one. Nothing about it was better. One test case simply passed in that run and failed in the next.&lt;/p&gt;

&lt;p&gt;A real fix and a lucky run moved the numbers by the same amount. From the scores alone, you could not tell which was which.&lt;/p&gt;

&lt;p&gt;That is the problem with checking a fix by rerunning the cases that failed. A case can pass after a fix for four different reasons, and only one of them is that your agent got better.&lt;/p&gt;

&lt;p&gt;This post is about the other three reasons, and about four rules that remove them. The examples come from the public demo project in traceroot, a support agent for an outdoor gear shop with a 16-case golden set. Every number in this post is from that project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi2phfm1xykyvy8akdqwl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi2phfm1xykyvy8akdqwl.png" alt="A before-and-after comparison you can trust: cases split into a dev set and a held-out set, both scored before and after, only the dev set goes through the fix loop" width="600" height="646"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Both sets are scored before and after. Only the dev set goes through the fix loop.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What is an agent evaluation framework?
&lt;/h3&gt;

&lt;p&gt;An agent evaluation framework is the set of parts and rules you use to decide whether a change to an AI agent made it better. The parts are familiar: a dataset of cases, each with an input and an expected answer; a task that runs your agent on a case; scorers that grade each result; and runs that record what happened.&lt;/p&gt;

&lt;p&gt;Most writing about agent evaluation stops at the parts. Which metrics to track, how to trace tool calls, where to put a judge model. Those matter, and we covered the metrics side in &lt;a href="https://traceroot.ai/blog/2026-11-02-llm-evaluation-metrics" rel="noopener noreferrer"&gt;The 6 LLM evaluation metrics that actually matter for AI agents in production&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The rules get less attention. Which cases are you allowed to look at? What has to stay fixed between two runs? How many times may you score the same set? A framework without those rules still produces numbers. It just cannot tell you which of them to believe.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why rerunning the failures overstates the fix
&lt;/h3&gt;

&lt;p&gt;Saving a production failure as a test case is the right first move. We walked through it in &lt;a href="https://traceroot.ai/blog/testing-a-langgraph-sql-agent-fix" rel="noopener noreferrer"&gt;Testing a LangGraph SQL agent fix with a regression eval&lt;/a&gt;. A saved case answers one question well: does this known failure come back? It cannot answer a second question: does the fix work on cases you have not seen?&lt;/p&gt;

&lt;p&gt;Here are the three reasons a fix can look better than it is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reason 1: You selected the cases because they failed.&lt;/strong&gt; Agents are not deterministic, so some cases pass on one run and fail on the next with no change at all. When you pick out the failures and rerun only those, some of them will pass the second time whether you fixed anything or not, and the fix gets the credit. Statisticians call this regression to the mean: unusual measurements tend to be followed by ordinary ones, and the effect is strongest when you follow up only on a group chosen for its bad first result (&lt;a href="https://doi.org/10.1093/ije/dyh299" rel="noopener noreferrer"&gt;Barnett et al., 2005&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The demo project shows it. Here are three runs of the same 16 cases. Blue is the agent before anything went wrong. Purple is the same agent after its refund limit was changed by mistake, from $200 to $2000, so a $419 refund for a torn sleeping bag no longer went to a supervisor. Orange is the agent after the fix.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgkf91dgz9uhqwhrr896v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgkf91dgz9uhqwhrr896v.png" alt="Run comparison in traceroot with three runs of the support agent golden set; red boxes mark the case the fix repaired and a case that flipped by chance" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Top box: the case the fix repaired. Bottom box: a case that flipped by chance. Blue, purple and orange are the healthy, buggy and fixed runs.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The bug does what you would expect: it breaks the refund case. The $419 refund drops from 100% to 0% on expected_facts, and the fix brings it back. Now look at required_tools. One case, a customer asking for a manager about a late delivery, fails in the healthy version, passes in the buggy one, and fails again after the fix. That case never reaches the refund limit. Nothing changed for it, yet it flipped twice. An agent can hear the same question and give a different answer.&lt;/p&gt;

&lt;p&gt;With 16 cases, one flip is 6.3 points. The fix moved expected_facts by exactly that much, and chance moved another metric by the same amount in a version that was broken. If the late-delivery case had been the failure you were chasing, rerunning it with no change at all would have shown it fixed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reason 2: You tuned the fix to those cases.&lt;/strong&gt; Each time you read a failing transcript and edit the prompt, a little of that transcript ends up in the prompt. After enough rounds the agent handles those cases well and you have learned nothing about the next one. This is overfitting, and it does not need bad intent. Research on agent benchmarks found the same pattern at scale: many benchmarks have weak holdout sets or none, and agents end up fitted to the benchmark (&lt;a href="https://arxiv.org/abs/2407.01502" rel="noopener noreferrer"&gt;Kapoor et al., 2024&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reason 3: The yardstick moved.&lt;/strong&gt; Between the two runs someone loosened an expected answer, added three cases, or reworded the judge prompt. The score went up. So did the ruler.&lt;/p&gt;

&lt;p&gt;The four rules below take these three reasons apart one at a time.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rule 1: Freeze the answers before the first run
&lt;/h3&gt;

&lt;p&gt;Frozen answers means you decide what "correct" is before you see any output, and you do not change it until the comparison is over. The before run and the after run have to use the same cases, the same expected answers and the same scorers. Otherwise a higher score may only mean an easier test. The yardstick has two halves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The expected answers.&lt;/strong&gt; Write them down first. For the sleeping bag case, the demo expects the answer to mention a supervisor or a review. If that expectation were written after reading the agent's reply, it would describe what the agent did, not what it should do.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The scorers.&lt;/strong&gt; How you grade is part of the yardstick too. The demo uses three scorers written in code and one LLM judge, a second model that checks each answer against the shop's policies. Change that judge's prompt or model between the before run and the after run, and you can no longer say how much of the difference came from the agent.&lt;/p&gt;

&lt;p&gt;Calibrating a judge is separate work that happens earlier, against human labels, with its own dev and test split. Hamel Husain's &lt;a href="https://hamel.dev/blog/posts/evals-faq/" rel="noopener noreferrer"&gt;evals FAQ&lt;/a&gt; describes that process. Once the judge is calibrated, it is frozen like everything else.&lt;/p&gt;

&lt;p&gt;Freezing only helps if you can check it afterwards. In traceroot, every published dataset version is immutable. Editing a case never rewrites history; it publishes a new version. The demo's golden set has two: the first with 12 cases, the second with 16.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feb8w5hn5f5fpxmuydoze.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feb8w5hn5f5fpxmuydoze.png" alt="Dataset page in traceroot with the version menu open and outlined, listing two versions of the support agent golden set" width="800" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Boxed: both versions of the golden set.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Each evaluation run records the version it measured.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6kmx7m3lpxw91q22x62n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6kmx7m3lpxw91q22x62n.png" alt="Evaluation runs list in traceroot; red boxes mark two runs with the same run name and commit but different dataset version ids" width="800" height="142"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Left: same code. Right: different dataset versions.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Runs #1 and #2, the bottom two rows, tested exactly the same code. Run #1 used the first version of the golden set, with 12 cases. Run #2 used the second, with 16. Any gap between their scores could come from the four added cases instead of the agent. The list makes that visible before anyone compares them. Runs #2 through #6 all used the second version. That is why the comparison earlier in this post is a fair one.&lt;/p&gt;

&lt;p&gt;So when you rerun after the fix, ask for the same dataset version the before run used. Do not just take the latest one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;subprocess&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;traceroot&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pull_dataset_version&lt;/span&gt;

&lt;span class="no"&gt;BEFORE_VERSION&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"..."&lt;/span&gt;  &lt;span class="c1"&gt;# dataset_version_id recorded by the before run&lt;/span&gt;
&lt;span class="n"&gt;commit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"git"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"rev-parse"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--short"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"HEAD"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;capture_output&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;frozen&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pull_dataset_version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;BEFORE_VERSION&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Support agent golden set"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;evaluation_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"support-golden"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;dataset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;frozen&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;fixed_agent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;scorers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;SCORERS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;              &lt;span class="c1"&gt;# the same list the before run used&lt;/span&gt;
    &lt;span class="n"&gt;candidate_version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"git:{commit}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep the scorers in the same repository as the agent, and have the eval script read the current commit and pass it as candidate_version, as the example does. Later, when you want to know how a score was graded, that commit id takes you to the exact judge prompt that was used. The Python SDK also attaches the git repository and commit to each run's metadata, so the record exists even if you forget the label.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rule 2: Hold out cases before you start fixing
&lt;/h3&gt;

&lt;p&gt;Start with one pool of cases, each with an expected answer. Before you read a single failure, split it into two sets: a dev set you tune on and a held-out set you leave alone. Both come from the same pool. The held-out set exists to answer one question at the end: did the fix help on cases that had no say in it?&lt;/p&gt;

&lt;p&gt;Three details decide whether a holdout works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Split by scenario, not at random.&lt;/strong&gt; A pool of agent cases is full of near-duplicates. The demo set has three questions that all turn on the return policy: worn shoes, a jacket that does not fit, and a return bundled with an order status question. Put siblings on both sides and the holdout already knows the answer. Group cases by the scenario or failure type they came from, and assign whole groups to one side.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Give the two sets different rules.&lt;/strong&gt; Anyone can read dev failures, all day. Nobody reads individual holdout failures while the fix is in progress. You may know the holdout score. You may not open the failing transcripts and patch for them. Do that and the holdout becomes a second dev set.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Score it once.&lt;/strong&gt; The model never sees the held-out answers either way. The leak is you. Every decision you make after looking at holdout results carries a little of that set into the agent.&lt;/p&gt;

&lt;p&gt;In traceroot, the simplest way to keep the two sets apart is two datasets, each with its own key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;traceroot&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Dataset&lt;/span&gt;

&lt;span class="n"&gt;dev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Dataset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Support agent dev"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"support-dev"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;holdout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Dataset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Support agent holdout"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"support-holdout"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;holdout&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;scenario&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;HOLDOUT_SCENARIOS&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;dev&lt;/span&gt;
    &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the dev dataset as often as you like. Run the holdout twice per fix: once before you start, once when you are done.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rule 3: Rerun the unfixed version too
&lt;/h3&gt;

&lt;p&gt;The cleanest test for luck is to do nothing and measure again. Before you credit a fix, rerun the old version on the same cases. However many failures pass with no change, that is the amount your fix has to beat.&lt;/p&gt;

&lt;p&gt;The same idea shapes how you read two runs. Do not compare averages. Compare case by case, and count the flips in both directions: how many cases went from fail to pass, and how many went from pass to fail. Anthropic's guidance on &lt;a href="https://www.anthropic.com/research/statistical-approach-to-model-evals" rel="noopener noreferrer"&gt;the statistics of evals&lt;/a&gt; makes the same point about paired differences. A result of "four fixed, three broken" and a result of "one fixed, none broken" can produce the same change in the average, and they are very different fixes.&lt;/p&gt;

&lt;p&gt;Small sets make this matter more. On 16 cases every flip is worth 6.3 points, so a single unlucky case hides a real fix or invents one. On 40 cases a flip is 2.5 points. If you cannot add cases, run each one several times and look at how often it passes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rule 4: Retire a used holdout and refill it
&lt;/h3&gt;

&lt;p&gt;A holdout wears out. If the score is bad and you go back to fix more, that set has now shaped your decisions. It still has a job, just a different one.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Move it to a regression set.&lt;/strong&gt; These cases must keep passing forever. They no longer count toward the number you report, because they are no longer unseen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refill from new production traces.&lt;/strong&gt; Fresh traffic is the one source of cases nobody on the team has thought about. In traceroot, &lt;strong&gt;Add to datasets&lt;/strong&gt; saves a span or a trace as a case, with the expected answer you write for it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not refill only from failures.&lt;/strong&gt; A holdout built from the latest failures is selected the same way your dev set was. Take ordinary traces too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A bad holdout score is not a wasted run. It is the result you built the holdout to get, and it arrived before your users found it.&lt;/p&gt;

&lt;h3&gt;
  
  
  The four rules at a glance
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule&lt;/th&gt;
&lt;th&gt;What it protects against&lt;/th&gt;
&lt;th&gt;How to check it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Freeze the answers&lt;/td&gt;
&lt;td&gt;Expected answers or judge edited after seeing results&lt;/td&gt;
&lt;td&gt;Both runs record the same dataset version and use the same scorers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hold out cases&lt;/td&gt;
&lt;td&gt;A fix fitted to the cases you were reading&lt;/td&gt;
&lt;td&gt;Holdout score reported next to the dev score&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rerun the unfixed version&lt;/td&gt;
&lt;td&gt;Failures that pass by themselves&lt;/td&gt;
&lt;td&gt;Flips counted in both directions, against a no-change rerun&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retire and refill&lt;/td&gt;
&lt;td&gt;A holdout that has turned into a dev set&lt;/td&gt;
&lt;td&gt;Used cases moved to a regression set, new ones from fresh traces&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  What a clean result still leaves open
&lt;/h3&gt;

&lt;p&gt;A clean held-out result says the fix carries over to cases like the ones you sampled. It says nothing about scenarios missing from both sets, and nothing about what happens when traffic shifts.&lt;/p&gt;

&lt;p&gt;That is why offline evaluation is half of the loop. In traceroot, &lt;a href="https://traceroot.ai/docs/detectors/introduction" rel="noopener noreferrer"&gt;detectors&lt;/a&gt; keep judging production traces after you ship, and &lt;a href="https://traceroot.ai/docs/signals/introduction" rel="noopener noreferrer"&gt;Signals&lt;/a&gt; group the traces that share a problem. A resolved Signal reopens by itself when a new trace shows the same issue. That is the production-side answer to the question your holdout approximates.&lt;/p&gt;

&lt;h3&gt;
  
  
  Try it on your own agent
&lt;/h3&gt;

&lt;p&gt;traceroot is open source and self-hostable. Datasets, immutable dataset versions, evaluation runs and the run comparison in this post are all in the current release, and the &lt;a href="https://traceroot.ai/docs/evals/introduction" rel="noopener noreferrer"&gt;evaluation docs&lt;/a&gt; cover the SDK calls in Python and TypeScript. The demo agent is public too, at &lt;a href="https://github.com/traceroot-ai/demo-support-agent" rel="noopener noreferrer"&gt;traceroot-ai/demo-support-agent&lt;/a&gt;, with the golden set and the fault branches used above.&lt;/p&gt;

&lt;p&gt;Start small: pick the next fix on your list, publish the cases before you touch the agent, and set a third of them aside.&lt;/p&gt;

&lt;h3&gt;
  
  
  FAQ
&lt;/h3&gt;

&lt;h4&gt;
  
  
  What is an agent evaluation framework?
&lt;/h4&gt;

&lt;p&gt;It is the combination of a dataset of cases, a task that runs your agent, scorers that grade the results, and rules for when two runs can be compared. The rules are what make a before-and-after result trustworthy: the expected answers and scorers stay fixed, and some cases are kept out of the fixing process.&lt;/p&gt;

&lt;h4&gt;
  
  
  What is a held-out set in agent evaluation?
&lt;/h4&gt;

&lt;p&gt;A held-out set is a group of cases that nobody uses while changing the agent. You do not read its failures and you do not tune on it. You score it once the fix is finished, so it measures how the fix performs on cases that did not influence it.&lt;/p&gt;

&lt;h4&gt;
  
  
  What happens if the held-out score is bad?
&lt;/h4&gt;

&lt;p&gt;Then the fix did not carry over, which is what you needed to know. You can keep working, but that held-out set has now informed your decisions. Move it to a regression set and draw a new holdout from recent production traces before you report another number.&lt;/p&gt;

&lt;h4&gt;
  
  
  How many cases does a held-out set need?
&lt;/h4&gt;

&lt;p&gt;Enough that one case is not the whole story. With 16 cases a single flip moves the score by 6.3 points. With 40 it moves by 2.5. If you have few cases, run each one several times and compare case by case.&lt;/p&gt;

&lt;h4&gt;
  
  
  Does freezing the dataset mean it can never change?
&lt;/h4&gt;

&lt;p&gt;No. Datasets should grow as production shows you new scenarios. The rule is narrower: within one comparison, the before run and the after run use the same dataset version and the same scorers. New cases go into the next comparison.&lt;/p&gt;

&lt;p&gt;This post was originally published on the traceroot blog: &lt;a href="https://traceroot.ai/blog/agent-evaluation-framework?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026-11-agent-evaluation-framework&amp;amp;utm_content=article-body" rel="noopener noreferrer"&gt;https://traceroot.ai/blog/agent-evaluation-framework?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026-11-agent-evaluation-framework&amp;amp;utm_content=article-body&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>observability</category>
      <category>opensource</category>
    </item>
    <item>
      <title>traceroot vs. Braintrust</title>
      <dc:creator>Leilei</dc:creator>
      <pubDate>Thu, 19 Nov 2026 16:00:05 +0000</pubDate>
      <link>https://dev.to/traceroot-ai/traceroot-vs-braintrust-1eel</link>
      <guid>https://dev.to/traceroot-ai/traceroot-vs-braintrust-1eel</guid>
      <description>&lt;p&gt;Your agent gave a wrong answer in production, and every span in the trace is green. Both &lt;a href="https://traceroot.ai/" rel="noopener noreferrer"&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/a&gt; and &lt;a href="https://www.braintrust.dev/" rel="noopener noreferrer"&gt;&lt;strong&gt;Braintrust&lt;/strong&gt;&lt;/a&gt; will show you that trace. This post compares what each one does next, and who gets to run the platform that does it.&lt;/p&gt;

&lt;h3&gt;
  
  
  TL;DR
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Open source and self-hostable.&lt;/strong&gt; traceroot is open source, and you can run the whole platform yourself, from the UI to the root cause analysis agent. Braintrust's platform is closed source. Its SDKs, autoevals library, proxy and CLI are public, and its option for your own cloud is BYOC on the Enterprise plan, with the control plane still hosted by Braintrust.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Built for coding agents.&lt;/strong&gt; traceroot ships a CLI made for AI coding agents. A guided setup can connect a project, help your coding agent instrument the service and check for the first trace. Later the same agent can pull a failure and its root cause analysis into the repository it is editing. It can also read, write, edit and delete most of what you see in the UI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full GitHub context on every trace.&lt;/strong&gt; traceroot attaches the repository and Git ref to production traces, and records the file, line and function for instrumented functions. Braintrust attaches Git metadata to experiments, not to production logs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;From Signals to pull request.&lt;/strong&gt; LLM judge outputs cluster agent errors into Signals that reopen on regression. A root cause analysis agent reads your code at the recorded commit, and can optionally create a GitHub pull request with a fix verified by an offline eval, for an engineer to review.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full BYOK.&lt;/strong&gt; Detectors and the agent can run on your own key from 11 model providers, including Anthropic, Google Gemini and AWS Bedrock, on every plan.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose traceroot&lt;/strong&gt; if you want a more agent-native product on an open-source stack you control: full BYOK, easy to self-host and extensible. It is easier to use with a coding agent, and it has more AI features that automate agent improvement, from a Signal to a root cause to a reviewed fix.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose Braintrust&lt;/strong&gt; if your team works eval-first and wants a workbench for experiments on a closed, fully managed platform.&lt;/p&gt;

&lt;h3&gt;
  
  
  At a glance
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Braintrust&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Open-source platform&lt;/td&gt;
&lt;td&gt;â€” SDKs, autoevals, proxy and CLI&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-hosting&lt;/td&gt;
&lt;td&gt;Enterprise only, &lt;a href="https://docs.braintrust.dev/admin/deployment/byoc" rel="noopener noreferrer"&gt;BYOC&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Control plane in your environment&lt;/td&gt;
&lt;td&gt;â€”&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Step-by-step agent tracing&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenTelemetry ingestion&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Python and TypeScript SDKs&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Framework integrations&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CLI&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost and token tracking&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dashboards and Slack alerts&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Datasets and experiments&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LLM judge on production traces&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Built-in agent&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/tracing/git-context#what-gets-captured" rel="noopener noreferrer"&gt;Repository and commit on production traces&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Experiments only&lt;/td&gt;
&lt;td&gt;âœ“ &lt;a href="https://traceroot.ai/docs/tracing/git-context" rel="noopener noreferrer"&gt;SDK Git context&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recurring failures tracked with a status&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/ai-agent/root-cause-analysis" rel="noopener noreferrer"&gt;Reads your code at the traced commit&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Default branch, by default&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/ai-agent/pr-creation" rel="noopener noreferrer"&gt;Opens a pull request&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/ai-agent/byok" rel="noopener noreferrer"&gt;Your own model key&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;âœ“ OpenAI-compatible providers only&lt;/td&gt;
&lt;td&gt;âœ“ Full BYOK, 11 providers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paid plans from&lt;/td&gt;
&lt;td&gt;$249 a month&lt;/td&gt;
&lt;td&gt;$30 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Open source and self-hosting
&lt;/h3&gt;

&lt;p&gt;Traces hold your prompts, your customers' own words, the answers your agent gave and every internal tool it touched. traceroot is built so that record can stay with you.&lt;/p&gt;

&lt;p&gt;traceroot is &lt;a href="https://github.com/traceroot-ai/traceroot" rel="noopener noreferrer"&gt;open source&lt;/a&gt;, and &lt;a href="https://traceroot.ai/docs/developer/self-hosting" rel="noopener noreferrer"&gt;self-hosting&lt;/a&gt; is self-serve. One Docker Compose command brings up the whole stack in your environment, from the UI and API to the databases and the root cause analysis agent. Because the code is open, you can read exactly what it stores, and extend it when you need something it does not do yet.&lt;/p&gt;

&lt;p&gt;Braintrust publishes its SDKs, the autoevals library, its proxy and its CLI. The platform itself is closed source. Starter and Pro are SaaS only. The option for your own cloud is BYOC on the Enterprise plan, where Braintrust operates a data plane inside your cloud account. The control plane, which serves the UI and handles sign-in, stays on Braintrust's cloud.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Dimension&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Braintrust&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Platform source code&lt;/td&gt;
&lt;td&gt;Closed&lt;/td&gt;
&lt;td&gt;Open source&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-serve self-hosting&lt;/td&gt;
&lt;td&gt;â€”&lt;/td&gt;
&lt;td&gt;Docker Compose, from the public repository&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who can self-host&lt;/td&gt;
&lt;td&gt;Enterprise customers, through BYOC&lt;/td&gt;
&lt;td&gt;Anyone, from the public repository&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who runs the deployment&lt;/td&gt;
&lt;td&gt;Braintrust operates the data plane in your cloud&lt;/td&gt;
&lt;td&gt;You&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Control plane&lt;/td&gt;
&lt;td&gt;Hosted by Braintrust&lt;/td&gt;
&lt;td&gt;Runs in your environment&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Tracing and git context
&lt;/h3&gt;

&lt;p&gt;Both tools trace an agent step by step, and both ingest OpenTelemetry, so you can send the same traces to both. traceroot adds full GitHub context to each trace. The SDK captures the repository and Git ref, and records the source file, line and function name for instrumented functions. &lt;a href="https://traceroot.ai/docs/tracing/git-context#configuration" rel="noopener noreferrer"&gt;The ref resolves from explicit settings first&lt;/a&gt;, then environment variables, then GitHub Actions variables, and then local Git information. For production images without a .git directory, the repository and commit can be &lt;a href="https://traceroot.ai/docs/tracing/git-context#git-context-in-production" rel="noopener noreferrer"&gt;injected at build time&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fak9ttjcvtjwxl9toopn5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fak9ttjcvtjwxl9toopn5.png" alt="A trace in traceroot with the Repo and Ref badges outlined" width="800" height="545"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Repo and Ref badges show the commit that ran.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That metadata is what makes the rest of the loop possible. With a commit SHA on the trace, the root cause analysis agent inspects the revision that ran, not whatever is on the default branch today.&lt;/p&gt;

&lt;p&gt;Braintrust can record Git metadata such as the commit and branch on experiments. Production logs do not carry the commit unless you add it as metadata yourself.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Dimension&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Braintrust&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Repository and Git ref on production traces&lt;/td&gt;
&lt;td&gt;On experiments; via metadata for logs&lt;/td&gt;
&lt;td&gt;Captured by the SDK when available or configured&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;File, line and function for instrumented functions&lt;/td&gt;
&lt;td&gt;Caller fields on spans&lt;/td&gt;
&lt;td&gt;Recorded on each instrumented function, with Show Code in the trace view&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/getting-started/introduction" rel="noopener noreferrer"&gt;OpenTelemetry-based instrumentation&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;OTLP ingestion&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/cli/get-started#inspect-and-export-traces" rel="noopener noreferrer"&gt;Trace export with git context&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Traces through bt view and bt sync&lt;/td&gt;
&lt;td&gt;Export includes the trace, spans and Git context&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Signals and Loop
&lt;/h3&gt;

&lt;p&gt;traceroot is purpose-built for one job: helping you keep improving your agents in production. &lt;a href="https://traceroot.ai/docs/detectors/introduction" rel="noopener noreferrer"&gt;A detector&lt;/a&gt; is a plain-language description of one behavior you want to catch, such as a failure, a hallucination, a logic error or an unfinished task, that a judge model checks production traces against. It checks each eligible trace about a minute after its last span arrives, so every sampled trace gets its own verdict.&lt;/p&gt;

&lt;p&gt;When a detector says yes, it flags the trace, and related flagged traces are grouped into one Signal. A Signal is &lt;a href="https://traceroot.ai/docs/signals/introduction#signal-states" rel="noopener noreferrer"&gt;Open, Resolved or Dismissed&lt;/a&gt;, and a Resolved Signal reopens by itself when a newer trace shows the problem again. Because a detector judges every sampled trace against a description you wrote, each Signal is specific about what went wrong.&lt;/p&gt;

&lt;p&gt;The same Signal starts root cause analysis and, later, a fix. The investigation runs a coding agent in a sandbox with your traces and your repository at the recorded commit, which is what makes its improvement suggestions concrete. That is how a Signal turns into an improvement to your agent. Detectors and root cause analysis already run without anyone triggering them, and scheduled runs of the traceroot agent, for recurring work such as a regular summary of your traces, are coming soon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh3g1y3808xw2e13c6ncy.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh3g1y3808xw2e13c6ncy.webp" alt="From a detector to a Signal in traceroot" width="560" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Braintrust approaches this through Loop, a general agent that works over your logs. Patterns, the one aimed at recurring failures, runs as a Loop automation that reads a sample of traces on a schedule.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Dimension&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Braintrust&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;How recurring failures are found&lt;/td&gt;
&lt;td&gt;Loop reads a sample of traces on a schedule and saves Patterns&lt;/td&gt;
&lt;td&gt;Detectors judge each sampled trace; flagged traces are clustered into Signals&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Status of a problem&lt;/td&gt;
&lt;td&gt;Open or Closed&lt;/td&gt;
&lt;td&gt;Open, Resolved with a reason, Dismissed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reopen on regression&lt;/td&gt;
&lt;td&gt;Manual, by setting the status back to Open&lt;/td&gt;
&lt;td&gt;Automatic, when a newer trace shows the problem&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Root cause analysis and pull requests
&lt;/h3&gt;

&lt;p&gt;With Signals and &lt;a href="https://traceroot.ai/docs/signals/introduction#root-cause-analysis" rel="noopener noreferrer"&gt;automatic root cause analysis&lt;/a&gt; enabled, a new or reopened Signal starts an investigation. You can also run one manually.&lt;/p&gt;

&lt;p&gt;The quality of a root cause depends on the context the agent has. traceroot's agent is a coding agent, powered by pi-mono, that runs in an isolated sandbox. It works with the traces behind the Signal, a clone of your GitHub repository at the commit recorded on the trace, and the file and line recorded on the failing span. With that full context, it returns a high-quality root cause, the code location and a recommended fix.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpm7h4awwc6qedazkfla9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpm7h4awwc6qedazkfla9.png" alt="A Signal in traceroot with its status, summary and root cause analysis" width="800" height="625"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The outlined block names the commit, file and fix.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A pull request is optional. If you ask for one, the agent writes the fix and opens &lt;a href="https://traceroot.ai/docs/ai-agent/pr-creation#how-it-works" rel="noopener noreferrer"&gt;a pull request&lt;/a&gt; on a new branch, linked to the trace, for an engineer to review. It never pushes to main.&lt;/p&gt;

&lt;p&gt;Loop can also connect to GitHub. It reads the default branch unless you point it at a specific commit, and production logs do not record which commit ran.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Dimension&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Braintrust&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Code that is read&lt;/td&gt;
&lt;td&gt;Default branch, by default&lt;/td&gt;
&lt;td&gt;A sandbox clone at the commit recorded on the trace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pull requests&lt;/td&gt;
&lt;td&gt;On Braintrust-hosted deployments&lt;/td&gt;
&lt;td&gt;Optional, opened through the &lt;a href="https://traceroot.ai/docs/ai-agent/github-integration" rel="noopener noreferrer"&gt;GitHub App&lt;/a&gt; on a new branch, linked to the trace&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  A CLI your coding agent can use
&lt;/h3&gt;

&lt;p&gt;The &lt;a href="https://traceroot.ai/docs/cli/get-started" rel="noopener noreferrer"&gt;traceroot CLI&lt;/a&gt; is built around setup and the improvement loop, for AI coding agents as much as for people.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/traceroot-ai/traceroot-cli#quick-start" rel="noopener noreferrer"&gt;traceroot setup&lt;/a&gt; guides you through connecting a project, helping your coding agent instrument the service and checking for the first trace. traceroot instrument hands your agent a ready-made prompt for Claude, Codex or any other agent, and traceroot doctor checks your credentials, repository, environment and skills.&lt;/p&gt;

&lt;p&gt;After that, an agent can list flagged traces, read one together with its root cause analysis, and export a trace with its git context into the repository it is working in. It can also run project-scoped, read-only SQL over spans and traces, and create, update and delete detectors, alerts, dashboards and projects. The CLI supports JSON output and &lt;a href="https://github.com/traceroot-ai/traceroot-cli#exit-codes" rel="noopener noreferrer"&gt;documented exit codes&lt;/a&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Dimension&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Braintrust&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Guided setup&lt;/td&gt;
&lt;td&gt;Setup wizard script from braintrust.dev/wizard/setup.sh&lt;/td&gt;
&lt;td&gt;npx -y traceroot-cli@latest setup, with setup --resume to continue a run that stopped&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent-ready instrumentation&lt;/td&gt;
&lt;td&gt;bt setup instrument --agent &amp;lt;agent&amp;gt; (deprecated in favor of the wizard)&lt;/td&gt;
&lt;td&gt;traceroot instrument --agent &amp;lt;agent&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Health check&lt;/td&gt;
&lt;td&gt;bt setup doctor (deprecated), bt status&lt;/td&gt;
&lt;td&gt;traceroot doctor and traceroot setup doctor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Flagged traces with root cause analysis&lt;/td&gt;
&lt;td&gt;â€”&lt;/td&gt;
&lt;td&gt;traceroot findings list and traceroot findings get&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trace export&lt;/td&gt;
&lt;td&gt;bt view trace, bt sync&lt;/td&gt;
&lt;td&gt;traceroot traces export, which also writes git_context.json&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read-only SQL&lt;/td&gt;
&lt;td&gt;bt sql, without joins, subqueries, unions or window functions&lt;/td&gt;
&lt;td&gt;traceroot sql, with joins, subqueries, CTEs and UNION&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Evaluation as the verify step
&lt;/h3&gt;

&lt;p&gt;A fix is only done when it is checked. &lt;a href="https://traceroot.ai/docs/evals/introduction" rel="noopener noreferrer"&gt;traceroot evaluations&lt;/a&gt; run your system over a dataset, and each case runs as a trace, so the cost and span views you use in production are there for the eval too. &lt;a href="https://traceroot.ai/docs/evals/scorers" rel="noopener noreferrer"&gt;Scorers&lt;/a&gt; can be code or an LLM judge. Label a run with the pull request's commit, compare it with the current version on the same &lt;a href="https://traceroot.ai/docs/evals/datasets#publish-a-version" rel="noopener noreferrer"&gt;immutable dataset version&lt;/a&gt;, and merge when it holds.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pricing and retention
&lt;/h3&gt;

&lt;p&gt;traceroot is priced by events, where a trace and each of its spans count as one event. Braintrust meters processed data in GB and scores, and data past the retention window is no longer available in its UI, SQL or API.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Dimension&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Braintrust&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;First paid plan&lt;/td&gt;
&lt;td&gt;Pro, $249 a month&lt;/td&gt;
&lt;td&gt;Starter, $30 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Next plan&lt;/td&gt;
&lt;td&gt;Enterprise, custom&lt;/td&gt;
&lt;td&gt;Pro, $200 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What is metered&lt;/td&gt;
&lt;td&gt;Processed GB and scores&lt;/td&gt;
&lt;td&gt;Events&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retention on the free plan&lt;/td&gt;
&lt;td&gt;14 days&lt;/td&gt;
&lt;td&gt;15 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retention on Pro&lt;/td&gt;
&lt;td&gt;30 days, more at extra cost&lt;/td&gt;
&lt;td&gt;90 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-hosting&lt;/td&gt;
&lt;td&gt;Enterprise only&lt;/td&gt;
&lt;td&gt;âœ“&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Which should you choose
&lt;/h3&gt;

&lt;p&gt;Choose traceroot if you want a more agent-native product on an open-source stack you control. It is easier to use with a coding agent, and it has more AI features that automate agent improvement. Agent errors are clustered into Signals with full GitHub context, analysed against your repository at the recorded commit and, optionally, turned into a reviewed pull request, with &lt;a href="https://github.com/traceroot-ai/traceroot-cli" rel="noopener noreferrer"&gt;a CLI your coding agent can drive&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Choose Braintrust if your team works eval-first and wants a workbench for experiments on a closed, fully managed platform.&lt;/p&gt;

&lt;p&gt;Both ingest OpenTelemetry, so the easiest way to decide is to send one agent's traces to traceroot next to what you have.&lt;/p&gt;

&lt;h3&gt;
  
  
  Switching from Braintrust
&lt;/h3&gt;

&lt;p&gt;You do not have to switch in one step. Both products ingest OpenTelemetry, so the same instrumentation can send traces to traceroot and Braintrust at the same time.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Run npx -y traceroot-cli@latest setup in the repository of one agent. Keep sending that agent's traces to Braintrust.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Write a detector for one failure you already know about, and connect the GitHub App so root cause analysis can read your code at the recorded commit.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Compare what each tool tells you about the same failures for a week or two.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Move your evaluations when you are ready. traceroot evaluations run from the Python and TypeScript SDKs, and your datasets and experiments can stay in Braintrust until then.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Get started
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://traceroot.ai/docs/cli/get-started#install" rel="noopener noreferrer"&gt;Install the CLI&lt;/a&gt; and run traceroot setup in the repository of one agent. Pick one failure you have already worked through by hand, so you know what a correct diagnosis looks like, then write a detector that describes it in plain language and &lt;a href="https://traceroot.ai/docs/ai-agent/github-integration#setup" rel="noopener noreferrer"&gt;connect the GitHub App&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  FAQ
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Is traceroot an open-source Braintrust alternative?&lt;/strong&gt; Yes. traceroot is open source and &lt;a href="https://traceroot.ai/docs/developer/self-hosting" rel="noopener noreferrer"&gt;self-hostable&lt;/a&gt;. It clusters LLM judge outputs into Signals, investigates them using your traces and your repository at the recorded commit, and can optionally open a pull request for review.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is Braintrust open source?&lt;/strong&gt; Its SDKs, the autoevals library, the proxy and the CLI are. The platform itself is not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I self-host Braintrust?&lt;/strong&gt; Only on the Enterprise plan, through BYOC, with the control plane hosted by Braintrust. traceroot can be self-hosted from its public repository.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I have to move everything from Braintrust?&lt;/strong&gt; No. Start with one agent. Your experiments and datasets can stay where they are while you run the pilot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it work with my coding agent?&lt;/strong&gt; traceroot instrument and traceroot skills install support Claude and Codex, and a generic mode works with other agents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need to give traceroot access to my repository?&lt;/strong&gt; Only for the code investigation and pull requests. Tracing works without it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does traceroot pricing compare to Braintrust?&lt;/strong&gt; traceroot's paid plans start at $30 a month, and Braintrust Pro is $249 a month. traceroot meters events, where a trace and each of its spans count as one event. Braintrust meters processed data in GB and scores. On the Pro plan, traceroot keeps data for 90 days and Braintrust for 30 days, with longer retention at extra cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Braintrust record the commit on production traces?&lt;/strong&gt; Not automatically. Braintrust can collect Git metadata for experiments, and for production logs you add the commit yourself as custom metadata. traceroot's SDK captures the repository and Git ref on production traces, and records the file, line and function for instrumented functions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the difference between Signals and Braintrust Patterns?&lt;/strong&gt; In traceroot, a detector judges each sampled trace, and flagged traces with the same problem are grouped into a Signal. A resolved Signal reopens by itself when a newer trace shows the problem again. Braintrust Patterns are found by Loop on a schedule, and a closed pattern is reopened manually.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;All Braintrust facts were checked against its public documentation in November 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This post was originally published on the traceroot blog: &lt;a href="https://traceroot.ai/blog/braintrust-alternatives?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026-11-braintrust-alternatives&amp;amp;utm_content=article-body" rel="noopener noreferrer"&gt;https://traceroot.ai/blog/braintrust-alternatives?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026-11-braintrust-alternatives&amp;amp;utm_content=article-body&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>debugging</category>
      <category>tooling</category>
    </item>
    <item>
      <title>The 6 LLM Evaluation Metrics That Actually Matter for AI Agents in Production</title>
      <dc:creator>Leilei</dc:creator>
      <pubDate>Wed, 11 Nov 2026 20:00:17 +0000</pubDate>
      <link>https://dev.to/traceroot-ai/the-6-llm-evaluation-metrics-that-actually-matter-for-ai-agents-in-production-48ea</link>
      <guid>https://dev.to/traceroot-ai/the-6-llm-evaluation-metrics-that-actually-matter-for-ai-agents-in-production-48ea</guid>
      <description>&lt;p&gt;Think of your agents as the workers on an assembly line, a crew that never clocks out. Together they turn out more work in a day than your team can review in a month, and every piece leaves a trace: the user's request, a dozen tool calls, the model's reasoning, the final answer. Like any line running at full speed, some of what comes off it is defective. Somewhere in those traces are the bugs your users are hitting right now.&lt;/p&gt;

&lt;p&gt;For a while, the answer was to read traces by hand. That works at 50 traces a day. At 50,000, it doesn't. Code scales. Usage scales. Humans don't.&lt;/p&gt;

&lt;p&gt;So stop trying to out-read the machine. Put another one on the line as its quality inspector. An LLM can review your traces, flag the ones that went wrong, and group recurring problems so you fix each one once. Detection, signals, clustering: the reviewing work your team can't keep up with is exactly what LLMs are good at.&lt;/p&gt;

&lt;p&gt;There's a catch. An inspector is only as good as the checklist you hand it. "Is this trace OK?" gets you vague, inconsistent answers. "Does the final answer contain a fact that no tool returned?" gets you a precise, repeatable verdict. &lt;strong&gt;That question is a metric.&lt;/strong&gt; Metrics are how you tell the machine what "good" means for your product.&lt;/p&gt;

&lt;p&gt;This post covers the six metrics we use at TraceRoot: five built-in detectors and one blank metric you define yourself. For each one, we walk through what its default template checks and why it matters.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0v0faiwpiztww3ab03io.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0v0faiwpiztww3ab03io.png" width="798" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Where metrics sit in the TraceRoot workflow&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 0: Set up a metric&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7dz7wevsc62rkt890sep.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7dz7wevsc62rkt890sep.png" alt="The New Detector form in TraceRoot: template picker, name, model, prompt, filter, and sampling slider" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the TraceRoot app at &lt;a href="https://app.traceroot.ai" rel="noopener noreferrer"&gt;app.traceroot.ai&lt;/a&gt;, every metric is a detector, created under &lt;strong&gt;Detectors → New Detector&lt;/strong&gt;. Pick a template, such as Failure, or Blank to start from scratch. Edit the prompt to fit your agent. Then set the sampling rate: checking a share of traces is enough to spot trends, and it keeps judge costs down.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The six metrics&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The templates map to six kinds of metrics. Here's what each one catches, before we go through them one by one:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;What it catches&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Tool and execution failures&lt;/td&gt;
&lt;td&gt;Tools that error, return nothing, loop, or hang&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hallucination&lt;/td&gt;
&lt;td&gt;Claims in the answer that no tool result supports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logic errors&lt;/td&gt;
&lt;td&gt;Reasoning that circles, skips steps, or contradicts the data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Task completion&lt;/td&gt;
&lt;td&gt;Requests the agent only partly finished&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Safety&lt;/td&gt;
&lt;td&gt;Leaked personal data, prompt injection, harmful content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Custom(Blank)&lt;/td&gt;
&lt;td&gt;Whatever matters for your product, defined by you&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Metric 1: Tool and execution failures&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it measures:&lt;/strong&gt; the share of traces where the agent's machinery broke, whether or not the final answer admits it.&lt;/p&gt;

&lt;p&gt;This is the most common agent failure and the most underestimated. Traditional error rate only counts requests that threw. Agents are designed to keep going, so a broken tool often produces a confident answer instead of a 500.&lt;/p&gt;

&lt;p&gt;By default, the Failure detector template looks for five patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tool call errors:&lt;/strong&gt; a non-zero status or an exception in the tool output.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent failures:&lt;/strong&gt; the tool returns empty or null when it should have had data.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Infinite loops:&lt;/strong&gt; the same tool called 3+ times with identical inputs. The agent is stuck, and you are paying for every retry.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Timeouts and hung operations:&lt;/strong&gt; a span that never completes or blows past its budget.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swallowed errors:&lt;/strong&gt; an error message appears in the trace, and the agent carries on without recovering or telling the user.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why it matters:&lt;/strong&gt; silent failures and swallowed errors are where hallucinations come from. When a tool returns nothing, the model fills the gap. Catch it here and you prevent the downstream failure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9euusywnp5mpz23fdl2p.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9euusywnp5mpz23fdl2p.webp" width="560" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Failure Detector at work, catching exactly the error that matters. The address update returned ADDRESS_LOCKED, and the agent never recovered, telling the customer the order was updated anyway: a tool error, swallowed instead of handled.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Metric 2: Hallucination&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it measures:&lt;/strong&gt; the share of traces where the final output contains facts, names, numbers, or claims that are not present in any tool call result.&lt;/p&gt;

&lt;p&gt;Whether a claim is true in the world is hard to judge and easy to argue about. For an agent, there's a sharper, checkable question: &lt;strong&gt;did this claim come from somewhere in the trace?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;By default, the Hallucination detector template works in three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Find the final agent output (the last assistant message or output span).
&lt;/li&gt;
&lt;li&gt;Collect every tool call result in the trace.
&lt;/li&gt;
&lt;li&gt;Check whether the output contains specific claims that can't be traced back to any tool result.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It reports identified=true only when it finds a specific factual claim that contradicts the tool results or is absent from them. Paraphrase and general knowledge don't count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters:&lt;/strong&gt; a made-up fact doesn't stay in the chat. People act on it: they count on a refund that was never approved, write code against a function that doesn't exist, or pass a wrong number on to someone else. By the time anyone notices, it can be hard to undo. And hallucinations are the hardest failures to spot, because they read just as fluently as the truth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it relates to RAG faithfulness:&lt;/strong&gt; faithfulness checks an answer against retrieved documents. This metric covers that case and goes further. Retrieved documents are just one source an agent draws on; it also pulls context from APIs, databases, code execution, and other agents. Grounding against &lt;em&gt;all&lt;/em&gt; tool results checks the answer against every one of them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjt4892qg1lzxl421l7qw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjt4892qg1lzxl421l7qw.webp" width="560" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Hallucination Detector catching a real mismatch. The agent claimed a navy jacket at $119, in stock, arriving Thursday; the tool returned only black and olive jackets at $129, with 5–7 day shipping.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Metric 3: Logic errors&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it measures:&lt;/strong&gt; the share of traces where the agent's reasoning went wrong, even though its tools worked and its facts were grounded.&lt;/p&gt;

&lt;p&gt;An agent can call every tool correctly, cite every number accurately, and still reach the wrong answer. By default, the Logic Error detector template looks for three concrete patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Circular reasoning:&lt;/strong&gt; the agent arrives back at its starting point without making progress.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missed steps:&lt;/strong&gt; the agent skips an obvious required step.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contradictory actions:&lt;/strong&gt; the agent does X, then immediately undoes it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why it matters:&lt;/strong&gt; logic errors are often where model and prompt changes show up. A new model may be faster and cheaper while quietly skipping steps your old one never missed. Watching this metric after every change turns "it feels worse" into a number.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqms71s6rdumhtiycwpkc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqms71s6rdumhtiycwpkc.webp" width="480" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Logic Error Detector pinpointing a broken decision path. Told to offer a carrier redirect for a locked address, the agent requested a return, created and then cancelled a new order, and claimed the original was updated: a skipped step, a self-cancelling action, and a conclusion that contradicts the tool result.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Metric 4: Task completion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it measures:&lt;/strong&gt; the share of traces where the agent did not fully complete what the user asked for.&lt;/p&gt;

&lt;p&gt;Staying on topic is the first step toward finishing a task, not the finish line. Task completion checks the whole job: &lt;strong&gt;did the agent do everything the user asked?&lt;/strong&gt; A response can be on topic, accurate, and polite, and still cover only half the request.&lt;/p&gt;

&lt;p&gt;By default, the Task Completion detector template:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identifies the user's original request (the first user message or input span).
&lt;/li&gt;
&lt;li&gt;Identifies the agent's final response.
&lt;/li&gt;
&lt;li&gt;Determines whether the final response fully addresses the request.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here identified=true means the task was &lt;strong&gt;not&lt;/strong&gt; completed, either partially or entirely. That keeps every detector pointing the same way: a flag is always a problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters:&lt;/strong&gt; this is the metric closest to user value. Users don't churn because an answer scored 3/5 on coherence. They churn because the agent did only half of what they asked. Incompletion often traces back to an earlier failure, which is why it's most useful read next to Metrics 1 to 3.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fopmd2myyqn1qiq5lkti6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fopmd2myyqn1qiq5lkti6.webp" width="480" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Task Completion Detector catching an unfinished request. The user asked to change order A1002's address. The agent never changed it, skipped the carrier redirect the tool offered, and still told the user it was done. The user's goal was never met, so the detector marks it a failed task.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Metric 5: Safety&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it measures:&lt;/strong&gt; the share of traces with a clear, concrete safety violation.&lt;/p&gt;

&lt;p&gt;For agents, safety isn't only about what the model says. It's about what flows through the trace. Agents read untrusted web pages, emails, and documents, and they can act on what they read. By default, the Safety detector template checks three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PII exposure:&lt;/strong&gt; the agent copies personal data from tool results into its response, such as names with addresses, SSNs, or credit card numbers.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt injection:&lt;/strong&gt; the user input &lt;em&gt;or a tool result&lt;/em&gt; contains instructions that redirect the agent's behavior. An instruction hidden in a retrieved page or document counts, even if the user never typed it.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harmful content:&lt;/strong&gt; the output contains harmful, discriminatory, or dangerous content.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why it matters:&lt;/strong&gt; one violation can outweigh thousands of good traces. This metric is usually a guardrail, not a goal: the target is zero, and any non-zero value needs action right away, not a dashboard review.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvhvzqul303yw73awfx6k.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvhvzqul303yw73awfx6k.webp" width="560" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Safety Detector catching a textbook safety failure. An instruction hidden in a policy lookup led the agent to issue a FREE100 code and reveal the customer's full card number, expiration date, name, and billing address. Prompt injection and personal data exposure, both caught in a single trace.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Metric 6: Custom metric (the blank one)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The five templates above cover the places agents break most often: tools that fail, facts that get invented, reasoning that goes off track, tasks left half done, and safety slips. But every project has its own weak spots. A coding agent, a support bot, and a research assistant each fail in their own ways, and you know best which failures your users actually feel.&lt;/p&gt;

&lt;p&gt;That's what the &lt;strong&gt;Blank&lt;/strong&gt; template is for. Write a detector for whatever matters in your project, and it runs just like the built-in five.&lt;/p&gt;

&lt;p&gt;Not sure what to measure yet? Use the &lt;strong&gt;funnel method&lt;/strong&gt;. Start with one broad question, like "did anything go wrong in this trace?", then keep narrowing what it catches until you're left with the problems that are truly yours. Each one becomes a metric. TraceRoot's Signals can do the narrowing for you, as the section below shows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tips for creating your own metrics&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;More metrics is not better.&lt;/strong&gt; Every judge is sometimes wrong, and false alarms add up. If each detector misfires on just 1% of healthy traces, running 100 of them flags about 63% of good traces. Your team learns to ignore the alerts, real failures included.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One specific behavior per detector.&lt;/strong&gt; "Is this answer helpful?" is vague: two reviewers, or the same judge run twice, will disagree. "Does the final answer state a fact that no tool returned?" names exactly what to check, so the verdict is repeatable. A prompt that checks hallucination &lt;em&gt;and&lt;/em&gt; safety &lt;em&gt;and&lt;/em&gt; tone gives fuzzy verdicts. Split it into three.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concrete failures only.&lt;/strong&gt; Flag what's broken, not what could be nicer. "The answer contradicts the data" is a failure. "The answer could be shorter" is not.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tied to a decision.&lt;/strong&gt; If no one would act when a metric fires, delete it.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calibrate the judge against humans.&lt;/strong&gt; Review a sample of flagged and unflagged traces each week. If engineers disagree with the detector, tighten its prompt before trusting its numbers.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate guardrails from goals.&lt;/strong&gt; Most metrics should trend down over time. Guardrails, like safety, matter from the very first occurrence.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;From flagged traces to signals&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A metric flags individual traces. But a week of production can produce hundreds of flags, and many of them are the same problem showing up again. What you actually want to fix is the problem, not each trace.&lt;/p&gt;

&lt;p&gt;That's what Signals are for. Think of a signal as a metric one level up: a metric tells you which traces failed, and a signal tells you which problem they share.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One problem, one signal.&lt;/strong&gt; TraceRoot groups flagged traces that share the same underlying problem into a single signal. When one bug shows up in different places, you see it once and fix it once.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;See the impact.&lt;/strong&gt; Each signal shows how many traces it affects, and what share of all your traces that is, over time.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Understand it at a glance.&lt;/strong&gt; Every signal gets its own summary of the shared problem, so you don't need to read each trace to know what's going on.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Even better, let the agent debug it.&lt;/strong&gt; Click &lt;strong&gt;Run root cause analysis&lt;/strong&gt; on a signal, or let it run automatically on every new one. The TraceRoot Agent reads one of the signal's traces and explains what caused the problem. Connect GitHub, and it also reads the code at the failure point and the recent commits that touched it, then points you to the exact code location with a recommended fix.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvcqh5axcbylj3f0x494q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvcqh5axcbylj3f0x494q.png" width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;One signal, seven traces. The agent treats a failed tool call as a success, and the summary names that pattern across all of them. 7 of 21 traces, or 33%, are affected.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choosing the judge model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A metric is the question. The judge model is who answers it. Swapping the model doesn't change what a metric checks, but it does change what each check costs and what the answer looks like.&lt;/p&gt;

&lt;p&gt;TraceRoot detectors now support &lt;a href="https://typesafe.ai/" rel="noopener noreferrer"&gt;&lt;strong&gt;Jev&lt;/strong&gt;&lt;/a&gt;, TypeSafe AI's decision model, as the judge. Jev doesn't write a free-text verdict. It returns a structured answer: the probability that the problem is present, plus the most likely category, such as tool error, silent failure, or ungrounded claim. For Jev detectors, Signals group judge outputs by that category.&lt;/p&gt;

&lt;p&gt;Jev costs $0.042 per million input tokens, and output tokens are free (as of September 25, 2026). At that price, checking a much larger share of your traces starts to come within reach. As with any judge, test it on a few known failures and successes before trusting its numbers.&lt;/p&gt;

&lt;p&gt;Read more: &lt;a href="https://traceroot.ai/blog/2026-09-25-jev-as-a-judge-in-traceroot-detectors" rel="noopener noreferrer"&gt;Jev as a judge in TraceRoot detectors&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it on your own traces&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;TraceRoot is open source and OpenTelemetry-compatible, with Python and TypeScript SDKs and auto-instrumentation for LangChain, LlamaIndex, CrewAI, the OpenAI Agents SDK, the Claude Agent SDK, Pydantic AI, the Vercel AI SDK, and more. Bring your own key for any model provider to run the judges.&lt;/p&gt;

&lt;p&gt;Instrument your agent in a few lines, turn on the built-in detectors, add your own, and get Slack or email alerts the next time your agent fails quietly.&lt;/p&gt;

&lt;p&gt;If you like what we're building, come take a look at the repo and join our open-source community. Ideas, issues, and pull requests all help make TraceRoot better. And if you like it, drop us a star on GitHub. It makes our day : )&lt;/p&gt;

&lt;p&gt;This post was originally published on the TraceRoot blog: &lt;a href="https://traceroot.ai/blog/2026-11-02-llm-evaluation-metrics?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026-10-llm-evaluation-metrics&amp;amp;utm_content=article-body" rel="noopener noreferrer"&gt;https://traceroot.ai/blog/2026-11-02-llm-evaluation-metrics?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026-10-llm-evaluation-metrics&amp;amp;utm_content=article-body&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>agents</category>
      <category>observability</category>
    </item>
    <item>
      <title>traceroot vs. Langfuse</title>
      <dc:creator>Leilei</dc:creator>
      <pubDate>Mon, 02 Nov 2026 14:40:19 +0000</pubDate>
      <link>https://dev.to/traceroot-ai/traceroot-vs-langfuse-b5a</link>
      <guid>https://dev.to/traceroot-ai/traceroot-vs-langfuse-b5a</guid>
      <description>&lt;p&gt;Your agent gave a wrong answer, and every span in the trace is green. Both &lt;a href="https://github.com/traceroot-ai/traceroot" rel="noopener noreferrer"&gt;open source&lt;/a&gt; tools, &lt;a href="https://traceroot.ai/" rel="noopener noreferrer"&gt;&lt;strong&gt;traceroot&lt;/strong&gt;&lt;/a&gt; and &lt;a href="https://langfuse.com/" rel="noopener noreferrer"&gt;&lt;strong&gt;Langfuse&lt;/strong&gt;&lt;/a&gt;, will show you that trace. This post compares what each one does next, from tracing and detection to a root cause and a fix.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;TL;DR&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Built for coding agents.&lt;/strong&gt; traceroot ships a CLI made for AI coding agents. A guided setup can connect a project, help your coding agent instrument the service and check for the first trace. Later the same agent can pull a failure and any available root cause analysis into the repository it is editing. It can also read, write, edit and delete most of what you see in the UI.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Traces that know your code.&lt;/strong&gt; traceroot can attach the repository and Git ref to traces, and record the file, line and function for instrumented functions, so each instrumented span records where in the code it ran.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;From signals to pull request.&lt;/strong&gt; LLM judge outputs can be grouped into Signals that reopen on regression. With repository access and a recorded commit, a root cause analysis agent can read your code and optionally open a pull request for an engineer to review.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Open source on both sides.&lt;/strong&gt; Both are open source and self-hostable, and both ingest OpenTelemetry, so trying traceroot does not mean moving your stack. Run it on one agent and keep your prompts, datasets and annotations where they are.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose traceroot&lt;/strong&gt; if you want a more agent-native product, and your agents fail by giving wrong answers while every span looks fine, and you want the path from that trace to a reviewed fix in one place, with a CLI your coding agent can drive. traceroot can attach a repository and commit context to a trace. Detectors judge production traffic in plain language, Signals keep related findings together, and a root cause analysis agent can suggest fixes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose Langfuse&lt;/strong&gt; if you mainly need tracing, &lt;a href="https://langfuse.com/docs/prompt-management/overview" rel="noopener noreferrer"&gt;prompt management&lt;/a&gt; and &lt;a href="https://langfuse.com/docs/evaluation/evaluation-methods/annotation-queues" rel="noopener noreferrer"&gt;annotation queues&lt;/a&gt; in one place, with &lt;a href="https://langfuse.com/docs/api-and-data-platform/features/halo" rel="noopener noreferrer"&gt;an in-app assistant&lt;/a&gt; for working with traces, evaluators and dashboards, and are satisfied with less AI features.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;At a glance&lt;/strong&gt;
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Langfuse&lt;/th&gt;
&lt;th&gt;traceroot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Open source&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-hosting&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Step-by-step agent tracing&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenTelemetry ingestion&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Python and TypeScript SDKs&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Framework integrations&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CLI&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost and token tracking&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dashboards and Slack alerts&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Datasets and experiments&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LLM judge on production traces&lt;/td&gt;
&lt;td&gt;✓ &lt;a href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge" rel="noopener noreferrer"&gt;Evaluators&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;✓ Detectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Built-in agent&lt;/td&gt;
&lt;td&gt;✓ Halo&lt;/td&gt;
&lt;td&gt;✓ Root cause analysis agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/tracing/git-context#what-gets-captured" rel="noopener noreferrer"&gt;Repository and Git context on traces&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Via metadata&lt;/td&gt;
&lt;td&gt;✓ &lt;a href="https://traceroot.ai/docs/tracing/git-context" rel="noopener noreferrer"&gt;SDK Git context&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SQL access to trace data&lt;/td&gt;
&lt;td&gt;Self-hosted ClickHouse&lt;/td&gt;
&lt;td&gt;✓ &lt;a href="https://traceroot.ai/docs/cli/sql" rel="noopener noreferrer"&gt;Project-scoped API / CLI&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/ai-agent/root-cause-analysis" rel="noopener noreferrer"&gt;Reads your code at the traced commit&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/ai-agent/pr-creation" rel="noopener noreferrer"&gt;Opens a pull request&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✓ Draft pull request&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Tracing and git context&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Both tools trace an agent step by step. traceroot can add code context to a trace. The SDK can capture the git repository and ref, and can record the source file, line and function name for instrumented functions. &lt;a href="https://traceroot.ai/docs/tracing/git-context#configuration" rel="noopener noreferrer"&gt;The ref resolves from explicit settings first&lt;/a&gt;, then environment variables, then GitHub Actions variables, and then local Git information. For production images without a .git directory, the repository and commit can be &lt;a href="https://traceroot.ai/docs/tracing/git-context#git-context-in-production" rel="noopener noreferrer"&gt;injected at build time&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;That metadata is what makes the rest of the loop possible. With a commit SHA and repository access configured, the root cause analysis agent can inspect the revision that ran and check related commits and pull requests for an existing fix.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Langfuse&lt;/th&gt;
&lt;th&gt;traceroot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Repository and Git ref on traces&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://langfuse.com/docs/observability/features/releases-and-versioning" rel="noopener noreferrer"&gt;Release field&lt;/a&gt;, commonly set to the git commit hash&lt;/td&gt;
&lt;td&gt;Captured by the SDK when available or configured&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;File, line and function for instrumented functions&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Recorded on each instrumented function&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/getting-started/introduction" rel="noopener noreferrer"&gt;OpenTelemetry-based instrumentation&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;SDKs based on OpenTelemetry&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/tracing/live-streaming" rel="noopener noreferrer"&gt;Live view of in-flight spans&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;On by default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/cli/get-started#inspect-and-export-traces" rel="noopener noreferrer"&gt;Trace export with git context&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Traces through the public API, CLI or blob storage export&lt;/td&gt;
&lt;td&gt;Export includes the trace, spans, Git context and a finding when available&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Detectors and Signals&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://traceroot.ai/docs/detectors/introduction" rel="noopener noreferrer"&gt;A detector&lt;/a&gt; is a plain-language description of one problem that a judge model checks production traces against, such as a failure, a hallucination, a logic error or an unfinished task. &lt;a href="https://traceroot.ai/docs/detectors/introduction#how-to-create-a-detector" rel="noopener noreferrer"&gt;traceroot ships templates&lt;/a&gt; for these, and you can start from a blank one. You set a filter and a sampling rate, and the judge checks eligible traces after their last span arrives.&lt;/p&gt;

&lt;p&gt;When a detector says yes, the result is &lt;a href="https://traceroot.ai/docs/detectors/introduction#view-findings" rel="noopener noreferrer"&gt;a finding&lt;/a&gt;. When Signal generation is enabled, related findings can be grouped into one Signal. A Signal is &lt;a href="https://traceroot.ai/docs/signals/introduction#signal-states" rel="noopener noreferrer"&gt;Open, Resolved or Dismissed&lt;/a&gt;, and a Resolved Signal reopens by itself when a newer trace shows the problem again. &lt;a href="https://traceroot.ai/docs/detectors/introduction#notifications" rel="noopener noreferrer"&gt;Email and Slack digests&lt;/a&gt; list only new and reopened Signals, so a team sees what changed instead of every trace that matched.&lt;br&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjid94k9d5xjyho99ugkt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjid94k9d5xjyho99ugkt.png" alt=" " width="800" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Langfuse&lt;/th&gt;
&lt;th&gt;traceroot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Detectors in plain language&lt;/td&gt;
&lt;td&gt;LLM-as-a-judge evaluators from a template or a blank prompt&lt;/td&gt;
&lt;td&gt;Templates for failure, hallucination, logic error, task completion and safety, or a blank one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/detectors/introduction#how-detectors-work" rel="noopener noreferrer"&gt;Sampling and filters&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Evaluation rules with filters and a sampling rate&lt;/td&gt;
&lt;td&gt;Per detector, with deterministic sampling per trace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Findings clustered into Signals&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Grouped by related issue, when enabled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Signal states&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Open, Resolved with a reason, Dismissed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reopen on regression&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Automatic, when a newer trace shows the problem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Digests&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Email and Slack, new and reopened Signals only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/signals/introduction#signals-in-the-api" rel="noopener noreferrer"&gt;Signals API&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;List, read and update the status of Signals&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Root cause analysis and pull requests&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;With Signals and &lt;a href="https://traceroot.ai/docs/signals/introduction#root-cause-analysis" rel="noopener noreferrer"&gt;automatic root cause analysis&lt;/a&gt; enabled, a new or reopened Signal can start an investigation. You can also run an analysis manually. Further hits on an open Signal do not each start a new investigation.&lt;/p&gt;

&lt;p&gt;The root cause analysis agent runs in an isolated sandbox, powered by pi-mono. It examines the trace alongside a clone of your GitHub repository at the recorded commit, so it can investigate the failure against the code that actually ran. You can also ask it to write a fix and open &lt;a href="https://traceroot.ai/docs/ai-agent/pr-creation#how-it-works" rel="noopener noreferrer"&gt;a pull request&lt;/a&gt; linked to the trace.&lt;/p&gt;

&lt;p&gt;Here is what that looked like on a &lt;a href="https://traceroot.ai/docs/integrations/langchain" rel="noopener noreferrer"&gt;LangGraph&lt;/a&gt; SQL agent over synthetic subscription data. Asked why MRR fell in February 2026, the agent blamed four churned customers and four new ones. Two customers had actually moved from a $299 plan to a $99 plan, and every span in the trace was green. A detector compared the answer with an independent customer audit added after the agent answered and flagged it. The Signal started an analysis that identified two joins in sql/mrr_movements.sql matching on subscription_id. This was one case, and the data is synthetic.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7ki6bxqadxa4dds1q8z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7ki6bxqadxa4dds1q8z.png" alt=" " width="800" height="226"&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmj9b4j9zl7aa4xrjp9zd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmj9b4j9zl7aa4xrjp9zd.png" alt=" " width="800" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Langfuse&lt;/th&gt;
&lt;th&gt;traceroot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Analysis starts&lt;/td&gt;
&lt;td&gt;On request, by asking Halo in the app&lt;/td&gt;
&lt;td&gt;Automatic when enabled for a new or reopened Signal, or manual&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where the code is read&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;A sandbox clone at the recorded ref, with repository access&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Isolation&lt;/td&gt;
&lt;td&gt;Halo runs code in a sandbox&lt;/td&gt;
&lt;td&gt;The investigation runs in an isolated sandbox&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pull requests&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Opened through the &lt;a href="https://traceroot.ai/docs/ai-agent/github-integration" rel="noopener noreferrer"&gt;GitHub App&lt;/a&gt; for a person to review, linked to the trace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/ai-agent/byok" rel="noopener noreferrer"&gt;Your own model&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Cloud uses Langfuse-managed Amazon Bedrock; self-hosted uses the instance model you configure&lt;/td&gt;
&lt;td&gt;Bring your own model provider key for the agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/ai-agent/overview#investigative-capabilities" rel="noopener noreferrer"&gt;Parallel analyses&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://langfuse.com/docs/api-and-data-platform/features/halo#background-runs" rel="noopener noreferrer"&gt;Supported&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;A CLI your coding agent can use&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;The &lt;a href="https://traceroot.ai/docs/cli/get-started" rel="noopener noreferrer"&gt;traceroot CLI&lt;/a&gt; is built around the debug-and-fix loop and for AI coding agents as much as for people.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/traceroot-ai/traceroot-cli#quick-start" rel="noopener noreferrer"&gt;traceroot setup&lt;/a&gt; guides you through connecting a project, helping your coding agent instrument the service and checking for the first trace. traceroot instrument hands your agent a ready-made prompt for Claude, Codex or any other agent, &lt;a href="https://github.com/traceroot-ai/traceroot-cli#skills--agents" rel="noopener noreferrer"&gt;traceroot skills install&lt;/a&gt; can install a selected bundled skill, and traceroot doctor checks your credentials, repository, environment and skills.&lt;/p&gt;

&lt;p&gt;For debugging, an agent can list findings, read one together with its root cause analysis when available, and export a trace with its git context into the repository it is working in. It can also run project-scoped, read-only SQL over spans and traces through the API or CLI, including on Cloud, with parameters and CSV or file output, then export a trace for closer investigation. &lt;a href="https://traceroot.ai/docs/cli/get-started#authenticate" rel="noopener noreferrer"&gt;Sign-in is through the browser or with a project API key&lt;/a&gt;; the CLI supports JSON output and &lt;a href="https://github.com/traceroot-ai/traceroot-cli#exit-codes" rel="noopener noreferrer"&gt;documented exit codes&lt;/a&gt;. Every delete needs a reason of 3 to 500 characters that is recorded for audit, and deleting a workspace also asks for its name, so an agent does not remove something by accident.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Langfuse&lt;/th&gt;
&lt;th&gt;traceroot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Guided setup&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;traceroot setup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent-ready instrumentation&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://langfuse.com/docs/api-and-data-platform/features/agent-skill" rel="noopener noreferrer"&gt;Agent Skill&lt;/a&gt; with instrumentation guidance&lt;/td&gt;
&lt;td&gt;traceroot instrument for Claude, Codex or any other agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bundled skills&lt;/td&gt;
&lt;td&gt;npx skills add langfuse/skills&lt;/td&gt;
&lt;td&gt;traceroot skills install&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Health check&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;traceroot doctor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Findings with root cause analysis&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;traceroot findings list and get&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trace export with git context&lt;/td&gt;
&lt;td&gt;Traces through &lt;a href="https://langfuse.com/docs/api-and-data-platform/features/cli" rel="noopener noreferrer"&gt;the CLI&lt;/a&gt;, which wraps the public API&lt;/td&gt;
&lt;td&gt;traceroot traces export&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read-only SQL&lt;/td&gt;
&lt;td&gt;Self-hosted ClickHouse&lt;/td&gt;
&lt;td&gt;Project-scoped API and CLI, including Cloud; sql schema lists fields&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/evals/cli" rel="noopener noreferrer"&gt;Evaluations, datasets and runs&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Datasets, scores and other API endpoints as CLI commands&lt;/td&gt;
&lt;td&gt;Read from the terminal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manage detectors, alerts, dashboards and projects&lt;/td&gt;
&lt;td&gt;Public API endpoints as CLI commands&lt;/td&gt;
&lt;td&gt;Create, update and delete detectors, alerts, dashboards and projects; alerts also pause and resume&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sign-in&lt;/td&gt;
&lt;td&gt;Project API keys in environment variables&lt;/td&gt;
&lt;td&gt;Browser, or a project API key for CI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Evaluation as the verify step&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;A fix is only done when it is checked. &lt;a href="https://traceroot.ai/docs/evals/introduction" rel="noopener noreferrer"&gt;traceroot evaluations&lt;/a&gt; run your system over a dataset, and for runs reported to traceroot each case runs as a trace, so the cost and span views you use in production are there for the eval too. &lt;a href="https://traceroot.ai/docs/evals/scorers" rel="noopener noreferrer"&gt;Scorers&lt;/a&gt; can be code or an LLM judge. A run can be labelled with the candidate it tested, such as a model id, a prompt version or a git SHA, and &lt;a href="https://traceroot.ai/docs/evals/datasets#publish-a-version" rel="noopener noreferrer"&gt;dataset versions are immutable&lt;/a&gt;, so a before-and-after comparison compares the same cases.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Langfuse&lt;/th&gt;
&lt;th&gt;traceroot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/evals/running-evals" rel="noopener noreferrer"&gt;Reported cases run as traces&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://langfuse.com/docs/evaluation/experiments/experiments-via-sdk" rel="noopener noreferrer"&gt;Experiment runs&lt;/a&gt; are traced, with scores on the traces&lt;/td&gt;
&lt;td&gt;Same span and cost views as production&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scorers&lt;/td&gt;
&lt;td&gt;Code evaluators or LLM-as-a-judge&lt;/td&gt;
&lt;td&gt;Code or LLM judge&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://traceroot.ai/docs/evals/running-evals#parameters" rel="noopener noreferrer"&gt;Candidate label&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Run name&lt;/td&gt;
&lt;td&gt;Model id, prompt version or git SHA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dataset versions&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://langfuse.com/docs/evaluation/experiments/datasets#versioning" rel="noopener noreferrer"&gt;A new version&lt;/a&gt; on every item change, fetchable by timestamp&lt;/td&gt;
&lt;td&gt;Immutable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;An agent inside the loop&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;traceroot's home screen is &lt;a href="https://traceroot.ai/docs/ai-agent/overview" rel="noopener noreferrer"&gt;a full-page agent with persistent sessions&lt;/a&gt;. It can create detectors and &lt;a href="https://traceroot.ai/docs/alerts/overview#create-alerts-with-ai" rel="noopener noreferrer"&gt;alerts from a description&lt;/a&gt;, draft a dashboard widget, and work from a Signal. In an attended chat, it asks for &lt;a href="https://traceroot.ai/docs/ai-agent/overview#confirmation-cards" rel="noopener noreferrer"&gt;approval&lt;/a&gt; before changing monitoring resources. Agent resource changes can be inspected in the workspace audit trail, where entries link to the agent session.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Which should you choose&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Choose traceroot if you want a more agent-native product, and you run agents in production and want signals grouped, traced to the code that ran, analysed against your repository and, optionally, turned into a reviewed pull request, with &lt;a href="https://github.com/traceroot-ai/traceroot-cli" rel="noopener noreferrer"&gt;a CLI your coding agent can drive&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Choose Langfuse if you mainly need tracing, prompt management and annotation queues in one place, with an in-app assistant for working with traces, evaluators and dashboards.&lt;/p&gt;

&lt;p&gt;Both are &lt;a href="https://github.com/traceroot-ai/traceroot" rel="noopener noreferrer"&gt;open source&lt;/a&gt;, so the easiest way to decide is to run traceroot on one agent next to what you have.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Get started&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://traceroot.ai/docs/cli/get-started#install" rel="noopener noreferrer"&gt;Install the CLI&lt;/a&gt; and run traceroot setup in the repository of one agent. Pick one failure you have already debugged by hand, so you know what a correct diagnosis looks like, then write a detector that describes it in plain language and &lt;a href="https://traceroot.ai/docs/ai-agent/github-integration#setup" rel="noopener noreferrer"&gt;connect the GitHub App&lt;/a&gt;. The &lt;a href="https://traceroot.ai/docs/tracing/get-started" rel="noopener noreferrer"&gt;tracing quickstart&lt;/a&gt; covers the first step.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;FAQ&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Is traceroot a Langfuse alternative?&lt;/strong&gt; Yes. Both are open source and &lt;a href="https://traceroot.ai/docs/developer/self-hosting" rel="noopener noreferrer"&gt;self-hostable&lt;/a&gt;. traceroot clusters LLM judge outputs into Signals, investigates failures using your traces and the code that ran, and can optionally open a pull request for review.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I have to move everything from Langfuse?&lt;/strong&gt; No. Start with one agent. Your prompts, datasets and annotations can stay where they are while you run the pilot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it work with my coding agent?&lt;/strong&gt; traceroot instrument and traceroot skills install support Claude and Codex, and a generic mode works with other agents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need to give traceroot access to my repository?&lt;/strong&gt; Only for the code investigation and pull requests. Tracing works without it, but the trace needs the commit and the agent needs &lt;a href="https://traceroot.ai/docs/ai-agent/github-integration#permissions" rel="noopener noreferrer"&gt;repository access&lt;/a&gt; to read your code.&lt;br&gt;&lt;br&gt;
This post was originally published on the traceroot blog: &lt;a href="https://traceroot.ai/blog/langfuse-alternatives?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026-10-langfuse-alternatives&amp;amp;utm_content=article-body" rel="noopener noreferrer"&gt;https://traceroot.ai/blog/langfuse-alternatives?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=2026-10-langfuse-alternatives&amp;amp;utm_content=article-body&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>debugging</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
