RepositoryTypeScriptUSHoa Kỳ
traceroot-ai

traceroot-ai/traceroot

traceroot: the open-source platform that continuously improves your ai agents.

1.5ksao
392fork
422issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: llm-observability

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: agent-observability

#1 Repository của tuần

2
TINIX TRENDING·Chủ đề: ai-observability

#2 Repository của tuần

TraceRoot Logo

TraceRoot is an open-source observability platform for AI agents — Capture traces, monitors production issues, and debug with AI that sees your source code and Github history.

Y Combinator License X (Twitter) Discord Documentation PyPI SDK Downloads Ask DeepWiki

README in English 简体中文版自述文件 한국어 README

Features

Agentic Debugging - Root Cause Analysis

FeatureDescription
DetectorsLLM-as-judge evaluator monitors incoming trace for hallucinations, tool/logic failures, safety violations, and intent drift — surfaces findings and auto-triggers root cause analysis with email and slack alerts.
Agentic DebuggingAI that sees all your traces, connects to a sandbox with your production source code, identifies the exact failing line, and correlates the failure with your GitHub commits, PRs, and issues. BYOK support for any model provider.
TracingCapture LLM calls, agent actions, and tool usage via OpenTelemetry-compatible SDK. Intelligently surfaces the traces that matter — noise filtered, signal prioritized.

Why TraceRoot?

  • Traces alone don't scale.

    As AI agent systems grow more complex, manually sifting through every trace is unsustainable. TraceRoot's Detectors selectively screen incoming traces — flagging hallucinations, tool failures, logic errors, and safety issues automatically, so you spend time fixing problems, not hunting for them.

  • Debugging AI agent systems is painful.

    Root-causing failures across agent hallucinations, tool call instabilities, and version changes is hard. TraceRoot's AI connects to a sandbox running your production source code, identifies the exact failing line, and cross-references your GitHub history — commits, PRs, open issues and creates PR to fix it.

  • Fully open source, no vendor lock-in.

    Both the observability platform and the AI debugging layer are open source. BYOK support for any model provider — OpenAI, Anthropic, Gemini, xAI, DeepSeek, OpenRouter, Kimi, GLM and more.

Documentation

Full documentation available at traceroot.ai/docs.

Getting Started

TraceRoot Cloud

The fastest way to get started. Ample storage and LLM tokens for testing, no credit card needed. Sign up here!

Self-Hosting

  • Developer mode: Run TraceRoot locally to contribute.

    # Get a copy of the latest repo
    git clone https://github.com/traceroot-ai/traceroot.git
    cd traceroot
    
    # Host the infra in Docker and the app itself locally
    make dev
    

    For more details, see CONTRIBUTING.md.

  • Local docker mode: Run TraceRoot locally to test.

    # Get a copy of the latest repo
    git clone https://github.com/traceroot-ai/traceroot.git
    cd traceroot
    
    # Host everything in Docker
    make prod
    
  • Terraform (AWS): Run TraceRoot on k8s with Helm and Terraform. This is for production hosting. Still in experimental stage.

Integrations

Native SDKs

LanguageRepository
Pythontraceroot-py
TypeScripttraceroot-ts

Agent Frameworks

IntegrationSupportsDescription
AgnoPythonAutomated instrumentation of agent runs, tool calls, and multi-step reasoning.
AutoGenPythonAutomated instrumentation of multi-agent conversations, agent loops, and tool calls.
Claude Agent SDKPython, JS/TSAutomated instrumentation of agent invocations, subagent delegations, tool calls, and token usage.
CrewAIPythonAutomated instrumentation of multi-agent collaborative workflows and task executions.
DSPyPythonAutomated instrumentation of module executions, signature predictions, and underlying LLM calls.
Google ADKPythonAutomated instrumentation of agent runs, tool executions, and the multi-turn agent loop.
LangChain & LangGraphPython, JS/TSAutomated instrumentation by passing callback handler to LangChain application.
LangChain DeepAgentsPython, JS/TSAutomated instrumentation by passing callback handler to DeepAgents pipeline.
LlamaIndexPythonAutomated instrumentation of RAG pipelines, document ingestion, retrieval, and LLM synthesis.
MastraJS/TSAutomated instrumentation via the TraceRoot OTLP exporter.
OpenAI Agents SDKPython, JS/TSAutomated instrumentation of agent runs, tool executions, and handoff transitions.
Pydantic AIPythonAutomated instrumentation of agent runs, LLM calls, and tool invocations via pydantic-ai's native OpenTelemetry support.
Vercel AI SDKJS/TSNative OpenTelemetry tracing via experimental_telemetry — no instrumentModules config required.

Model Providers

IntegrationSupportsDescription
AnthropicPython, JS/TSAutomated instrumentation of the Messages API.
Google GeminiPythonAutomated instrumentation via the Google GenAI SDK.
MistralPythonAutomated instrumentation of Mistral chat completions, tool calls, and streaming responses.
OpenAIPython, JS/TSAutomated instrumentation of Chat Completions and Responses API.
OpenRouterPython, JS/TSOpenAI-compatible tracing via the OpenAI SDK base URL; see the Python and TypeScript examples.

Don't see your framework or provider? Request an integration.

Python SDK Quickstart

pip install traceroot openai
import traceroot
from traceroot import Integration, observe
from openai import OpenAI

traceroot.initialize(integrations=[Integration.OPENAI])
client = OpenAI()

@observe(name="my_agent", type="agent")
def my_agent(query: str) -> str:
    response = client.chat.completions.create(
        model="gpt-4o",
        messages=[{"role": "user", "content": query}],
    )
    return response.choices[0].message.content

if __name__ == "__main__":
    my_agent("What's the weather in SF?")

TypeScript SDK Quickstart

npm install @traceroot-ai/traceroot openai
import OpenAI from 'openai';
import { TraceRoot, observe } from '@traceroot-ai/traceroot';

TraceRoot.initialize({ instrumentModules: { openAI: OpenAI } });
const openai = new OpenAI();

const myAgent = observe({ name: 'my_agent', type: 'agent' }, async (query: string) => {
  const response = await openai.chat.completions.create({
    model: 'gpt-4o',
    messages: [{ role: 'user', content: query }],
  });
  return response.choices[0].message.content;
});

async function main() {
  try {
    await myAgent("What's the weather in SF?");
  } finally {
    await TraceRoot.shutdown();
  }
}

main().catch(console.error);

Security & Privacy

Your data security and privacy are our top priorities. Learn more in our Security and Privacy documentation.

Community

Special Thanks for pi-mono project, which powers the foundation of our agentic debugging runtime!

Contributing 🤝: If you're interested in contributing, you can check out our guide here. All types of help are appreciated :)

Support 💬: If you need any type of support, we're typically most responsive on our Discord channel, but feel free to email us founders@traceroot.ai too!

License

This project is licensed under Apache 2.0 with additional Enterprise features.

Contributors

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
langfuse/langfuse

🪢 Open source AI engineering platform: AI Gateway, agent observability, evals, and prompt/skill management, built on OpenTelemetry. One open platform for every AI call and every agent. Self-host or use Langfuse Cloud.

38.1k
Dec 1, 2026
RepositoryTypeScript
latitude-dev/latitude-llm

Open-source observability for AI agents. Find where your agents fail, dispatch your coding agent to fix it, and verify the fix against real traces.

4.8k
Dec 2, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

203.5k
Nov 22, 2026
RepositoryRust
rtk-ai/rtk

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

88.5k
Dec 2, 2026
RepositoryGo
netdata/netdata

Full-stack observability · Metrics · Logs · Traces · Flows · Topology · Infrastructure · APM · NPM · DBM · RUM · Synthetics · Cloud · AI SRE · OpenTelemetry · SNMP · NetFlow/IPFIX/sFlow · IPMI · Redfish · 2000+ integrations

81.7k
Nov 30, 2026
RepositoryTypeScript
continuedev/continue

open-source coding agent

36.6k
Nov 27, 2026
RepositoryTypeScript
QwenLM/qwen-code

An open-source AI coding agent that lives in your terminal.

31.1k
Dec 2, 2026
RepositoryTypeScript
voideditor/void

No description provided.

28.7k
Jun 2, 2026