推出 FDE 服务 了解更多

Y获 Y Combinator 投资

traceroot:开源平台,
持续改进你的 AI agent。

开源的 Braintrust 替代方案。找出 agent 线上问题背后的规律,再用你的 coding agent 上线经过验证的修复。

开始使用

需要有人一起动手? 和我们的 FDE 合作

真实的 agent,真实的流量,真实的数字。

数据来自所有工作空间的线上流量。

01 已处理的 trace8.4M+过去 90 天内,所有工作空间处理的总量。
02 质量+31%修复第一批 signal 之后,成功率的提升。
03 延迟−42%重试更少,上下文更精简,工具循环更少。
04 节省的成本$100K+按年折算,每个大型工作流。
traceroot 给它监测的 agent 带来的变化,基于过去 90 天的线上流量。

你的 agent 通过了测试。
线上却暴露了漏洞。

agent 很少直接崩溃。它们以三种不易察觉的方式出错。

01意料之外的输入

用户会问你从没测过的问题。

02无声的失败

它说完成了,其实没有。

03悄悄退化

每次发版,都差一点。

图 1. 线上暴露出测试漏掉的问题,有三种方式。

把线上故障变成经过测试的改进。

后台 coding agent 在沙箱里结合 GitHub 代码排查线上 signal,并给出修复建议。在 Slack 收到告警后,用你的 coding agent 和离线 eval 应用并验证改动。

traceroot
你的 agentv12v13signals11 个未解决12 个未解决traceroot agent复现修补测试evals通过traces通过已标记触发验证改进代码
traceroot你的 agentv12v13signals11 个未解决12 个未解决traceroot agent复现修补测试evals通过traces通过已标记触发验证改进代码
detector 评判你的 agent 的 trace,被标记的运行会聚合成 signal。traceroot agent 接手每个 signal,在连接了你的 GitHub 仓库的沙箱里复现并修补故障,用你的 eval 验证修复,然后改进你的 agent 代码。

工作原理

01. Trace

查看每一次模型调用、工具调用和响应,以及对应的输入、输出、延迟和成本。

Tracecaf8d705e1c94b2a8f03d6b1a7e5c2d9
Trace时间线Detectors
  • support_agent.run38.2s
  • anthropic.messages.create1.4s
  • get_order120ms
  • lookup_policy95ms
  • anthropic.messages.create2.1s
  • issue_refund310ms
  • anthropic.messages.create1.2s
  • send_reply80ms
  • update_ticket60ms
issue_refund
Span 类型:tool延迟:310ms
order A-2291policy limit $500
Input
{ order: "A-2291", amount: 840 }
Output
{ status: "refunded",
  approved_by: null }

02. Detect

定义什么是好的行为。detector 用 LLM judge 标记出不符合预期的线上运行。

Detectors›Failure Detector最近 24 小时
运行Trace已识别摘要
8be456047352f817否–
4297fab58975d50d否–
418109b1caf8d705是退款 $840,政策上限是 $500
1189a28c6964cc49是未经主管批准退款 $1,200
a96b7f8eac80a1a6否–
c37c853792d84278否–
958cf4327cf8f869否–
dd41c2b75a3e90f1否–
8 条中 2 条被标记 · 根因相同

03. Signals

后台 coding agent 在沙箱里排查 trace 和你的 GitHub 代码,把修复位置精确到 commit、文件和行。

Signal退款金额超出政策上限未解决
14已归组的 trace
2detector 判定一致
Oct 14首次出现
$9.6K超出上限

出现次数 · 最近 7 天

PR #179 已合并
Oct 12131415161718

已归组的 trace 3 of 14

caf8d70538.2s退款 $840
6964cc4941.0s退款 $1,200
e41b09a229.7s退款 $650

根因 由 coding agent 分析

PR #179 把 key 改名为 refund_max,
政策查询仍在读取旧的 key,
所以上限回退成了 none。

位置

support/policy.ts:12 · PR #179

修改建议 fix/refund-limit

-从 refund_max 读取上限。

+读取 refunds.max_amount;如果缺失,转交人工处理。

04. Verify

用你的数据集跑 eval,对比不同版本,衡量改进、发现回归。新的线上流量会再次启动这个循环。

Evals›support-golden-set53 个用例
指标main b20f09efix/refund-limitΔ
通过率89%98%+9
通过的用例47 / 5352 / 53+5
违反政策6%0%−6
退款正确91%100%+9
延迟 p504.1s4.0s−0.1s
Tokens / 次运行21K21K0
成本 / 次运行$0.03$0.030
回归–0
0 个回归 · 可以合并

为你的 coding agent 而建。

读取 trace、signal 和工作空间上下文;管理 detector、数据集、eval、仪表盘和告警,全部通过一个为 agent 设计的 CLI 完成。让你的 coding agent 拿到足够的上下文,去修改并验证。

claude codecodexcursoropencodepiantigravitytracesdetectorssignalsevals数据集告警traceroot
claude codecodexcursoropencodepiantigravitytracerootclaude codetraces
图 3. coding agent 通过 traceroot 把请求发到它需要的各个工作空间功能。

适配你的技术栈。

Python 和 TypeScript 原生 SDK,对你已经在用的框架和模型供应商自动埋点,全部基于 OpenTelemetry。

图 4. 每个集成都有文档,并链接到对应的配置指南。

企业级安全。

从设计之初就考虑安全。你的数据受业界领先的标准保护。可以用 traceroot Cloud,也可以用 Docker 自托管整套系统,由你决定数据放在哪里。

SOC 2 Type II、HIPAA、ISO 27001,由 Oneleet 审计。

简单透明的价格。

免费开始,无需信用卡。所有套餐都可以自带模型 key,也可以用托管模型。

Free
$0每月

从核心功能开始。

  • 2 个席位
  • 每月含 50k events
  • 数据保留 15 天
  • 每月 100 次 detector 运行
  • 每月 30 次 chat + 30 次 RCA
  • Slack 告警 · 自带 key 或托管 LLM
  • Discord 支持
开始使用
Starter
$30每月

适合小团队。

  • 包含 Free 的全部功能
  • 席位不限
  • 每月 150k events,超出部分每 50k $4
  • 数据保留 30 天
  • 每月 100 次 chat + 100 次 RCA
  • detector 运行次数不限
  • Discord 支持
开始使用
Pro热门
$200每月

适合成长中的团队。

  • 包含 Starter 的全部功能
  • 数据保留 90 天
  • 更高的速率限制
  • SOC 2 报告和 HIPAA BAA
  • Discord + Slack 支持
开始使用
Enterprise
定制

适合规模化的组织。

  • 包含 Pro 的全部功能
  • 自定义保留期
  • SLA 支持
  • Discord + Slack + SLA
和创始人聊聊

一起把它做得更好。

感谢 90 位贡献者帮助 traceroot 成长。

dark-sorcerorXinweiHeGabrielDraporka1kqilqiu03zechengzshirleyai-coInleiPrasad8830sundaram2021Gaurav-meena95sidgaikwadJ-jxrVictoriakaeyJasonHonKLprakharsingh-74Fizza-MukhtarSatyam296gbsierraGujiasshRaulgooorakshityadav1868codebreaker77poojagosikaMohil-AhujashashwatraajsinghShabiShett07AbdulSamad94Haoping-Xiaounfitcoder101lokeswaran-ajMritunjay2103SaisharathchandranandnethaDivineAviPrinceThummar011Rajesh-Nagarajan-11TanZeyukashish00208anshikasharmaa1517syncnjRitwijParmarkashifalikhan36mohdUwaish59TanishValeshaAvngrstark62zycaskevinPepito79kiranannadatha8ApexYash11uATriskRika321harshitsharmaaaaAshAnand34sidgaikwad-labelblindwarun7VAIBHAVSINGMuhammadAashirAslammuhammadtahamirzaManas-Kengeanishkumar0504Harshvardhan-91GouravSingal-codeAshhhh010101adityasingh345shrijackedroyalpinto007farhann-saleemclaygeoYashManek1sanjayontechKayvan-ZahiriDivyamTalwardrvcodentaAmeysrAdarsh-Raj-JaiswalsuperezzdevmeAmitPatildattang12YakshithKchiliecTarif205prayanshchhJacksonXue200457hemanthnahuel007ngLex-Ashuarnavsharma09AreebEhsanAdityai1411AarnavNoble

常见问题

01traceroot 是什么?

traceroot 是一个开源平台,用线上的真实数据持续改进你的 AI agent。记录 agent 运行的 trace,检测故障,排查 signal,用 eval 对比改动前后。再通过 traceroot CLI 把这些上下文交给你的 coding agent。

02改进循环是怎么运作的?

traceroot 自动检测线上 agent 流量里的故障和低效环节,再把相关的 judge 输出聚合成改进 signal。你的 coding agent 通过 traceroot CLI 排查这些 signal,并在本地 worktree 里修改代码。对比离线 agent eval 的结果来验证修复、发现回归,然后在新的线上流量上重复这个循环。

03detector 和 eval 是怎么配合的?

detector 对线上 trace 做在线评估,找出故障和低效环节。judge 输出里反复出现的模式会成为改进 signal。离线 agent eval 再用数据集测试你的改动,并和基线对比,验证修复、发现回归。

04traceroot 能和我的 coding agent 一起用吗?

可以。traceroot CLI 让你的 coding agent 能访问线上 trace、detector、数据集、eval、仪表盘和告警。配置仓库时运行 npx -y traceroot-cli@latest setup,或者把安装提示词粘贴给你的 coding agent,它会执行同样的配置。CLI 配置

05traceroot 支持我的 agent 技术栈吗?

traceroot 提供 Python 和 JavaScript/TypeScript SDK、兼容 OpenTelemetry 的 tracing,以及和 LangGraph、Vercel AI SDK、CrewAI 等框架的集成。先从你的应用发送 trace,再按需添加 detector 和 eval。查看文档

06traceroot 开源吗?可以自托管吗?

开源,也可以自托管。你可以用 traceroot Cloud,或者用 Docker 自托管。名为 ee 的目录之外的代码采用 Apache 2.0 许可;这些 enterprise 目录使用单独的 Enterprise License。自托管和源代码

07可以免费开始吗?

可以。traceroot Cloud 有免费套餐,无需信用卡。可以自带模型 API key,也可以用托管模型。查看价格,了解包含的用量和付费套餐。

index.md · text/markdown · agent 拿到的内容
# traceroot: the open-source platform that continuously improves your ai agents.

Find the patterns in your agent's production issues. Ship verified fixes
with your coding agent. Everything here runs from the traceroot CLI;
add --json to any command for one machine-readable document on stdout
on success, or a JSON error on stderr on failure.

## Start here

Run setup from the root of the repository to trace. In a terminal, it
signs you in, creates a project API key, has Claude Code or Codex add
the SDK, and waits for the first trace:

    npx -y traceroot-cli@latest setup

From a coding agent, run it without prompts:

    npx -y traceroot-cli@latest setup --no-input
    npx -y traceroot-cli@latest login     # if setup reports no credential;
                                          # show the user the URL and code
    # carry out .traceroot/prompts/setup-instrument.md, then rerun the
    # same setup command, keeping all flags, and add --resume
    npx -y traceroot-cli@latest setup --no-input --resume
                                          # prints the first trace's link

To keep the traceroot command for everything below:

    npm install -g traceroot-cli
    traceroot doctor                      # credentials, repo, env, skills

## Make your coding agent traceroot-aware

    traceroot skills list            # skills and install status per agent

    # add tracing to an app
    traceroot skills install traceroot-instrument-repo --agent claude
    # one runnable trace in minutes
    traceroot skills install traceroot-quickstart --agent codex
    # offline evals
    npx skills add traceroot-ai/traceroot-skills --skill traceroot-eval

Agents: claude (.claude/skills), codex (~/.codex/skills),
generic (.agents/skills).

## Investigate production

    traceroot traces list --since 1h --limit 10
    traceroot traces get <trace-id> --fields full    # span tree with I/O
    traceroot traces export <trace-id> --output ./out
    traceroot findings list --since 24h              # detector findings
    traceroot findings get --trace <trace-id>        # results and root cause
    traceroot sql "SELECT model_name, avg(duration_ms) FROM spans
                   GROUP BY model_name"

## Close the loop

    traceroot detectors create --from-file detector.json
    traceroot alerts create --from-file rule.json
    traceroot datasets versions get <version-id>     # cases and source traces
    traceroot evals runs list --evaluation-id <id>
    traceroot evals runs get <run-id>                # scores, cost, duration

Also: projects, workspaces, dashboards, widgets, sql schema. Run
traceroot <command> --help for every flag.

## Scripting

    traceroot traces list --since 24h --json | jq '.data[].trace_id'

Exit codes: 0 ok · 1 internal · 2 usage · 3 auth · 4 not found ·
5 network (retry).
Env: TRACEROOT_API_KEY, TRACEROOT_HOST_URL, TRACEROOT_PROJECT_ID.

## Instrument your app

    pip install traceroot                 # Python
    npm install @traceroot-ai/traceroot   # TypeScript

Then initialize it in Python where the app starts, not at module scope,
so a test that imports the module doesn't send traces:

    import traceroot
    from traceroot import Integration

    def main():
        ...  # your application

    if __name__ == "__main__":
        traceroot.initialize(integrations=[Integration.OPENAI])
        main()

Run your tests with TRACEROOT_ENABLED=false so they don't send traces.

OpenTelemetry-based, 22 integrations:
https://traceroot.ai/docs/integrations/overview

## Trace your coding agent

    claude plugin marketplace add \
      traceroot-ai/traceroot-claude-code-plugin
    claude plugin install \
      traceroot-observability@traceroot-claude-code-plugin

    codex plugin marketplace add traceroot-ai/traceroot-codex-plugin
    codex plugin add tracing@traceroot-codex-plugin

    pi install npm:@traceroot-ai/pi-extension

## How it works

1. Trace: model and tool calls from your agent, with inputs, outputs,
   latency and cost.
2. Detect: LLM judges score production runs against what good looks like.
3. Signals: judge outputs are clustered; a background coding agent
   investigates traces and GitHub code in a sandbox and pinpoints the
   commit, file and line. Alerts go to Slack.
4. Verify: offline evals compare the fix with a baseline before it ships.
   New production traffic starts the cycle again.

## Pricing

Free $0 · Starter $30/mo · Pro $200/mo · Enterprise custom.
Free: 2 seats, 50k events/mo, 15-day retention, 100 detector runs/mo.
BYOK or hosted LLM on every plan. https://traceroot.ai/pricing

## Security and self-host

SOC 2 Type II, HIPAA, ISO 27001 audited by Oneleet. https://traceroot.ai/security

    git clone https://github.com/traceroot-ai/traceroot.git
    cd traceroot && make prod        # full stack in Docker Compose

Kubernetes: traceroot-ai/traceroot-k8s (Helm chart)
AWS: traceroot-ai/traceroot-terraform-aws (experimental)
Apache-2.0 outside ee/ directories, which use the Enterprise License.

## Links

- CLI docs:   https://traceroot.ai/docs/cli/get-started
- CLI source: https://github.com/traceroot-ai/traceroot-cli
- Docs index: https://traceroot.ai/docs/llms.txt
- Platform:   https://github.com/traceroot-ai/traceroot
- Skills:     https://github.com/traceroot-ai/traceroot-skills
- Python SDK: https://github.com/traceroot-ai/traceroot-py
- TS SDK:     https://github.com/traceroot-ai/traceroot-ts
- App:        https://app.traceroot.ai

agent(或 curl)访问 /index.md 拿到的内容:本页以 CLI 为主的版本。/llms.txt 列出了所有页面。