Observed since 20 Oct, 23:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Open-source runtime tracing and diagnostics for AI agent execution flows.
Open-source runtime tracing and diagnostics for AI agent execution flows.
AgentTrace helps you understand what your agent actually did at runtime — not just whether the final answer looks good.
It is built for people who want to answer questions like:
If you want something closer to pprof + tracing + agent diagnostics, AgentTrace is designed for that.
Most agent tooling focuses on one of two things:
AgentTrace focuses on a different question:
What exactly happened during execution, and why did the agent behave that way?
That makes it especially useful for:
LLM / Tool / Skill execution flowsPrompt / Response / Context / Plan / Execution snapshotsAgentTrace records a runtime trace for each run, including:
For LLM spans, AgentTrace can capture:
ContextSnapshotMemorySnapshotPlanSnapshotDecisionSnapshotResumeSnapshotExecutionSnapshotAgentTrace builds a diagnostics layer on top of the raw trace:
After each run, AgentTrace can ask an LLM to review the recorded execution flow and flag:
Review strictness is configurable:
review_level=1 → tolerantreview_level=2 → balanced (default)review_level=3 → strictAt review_level=1/2, the UI hides low severity findings by default.
At review_level=3, all findings are shown.
AgentTrace includes a local dashboard at:
http://localhost:3500Current UI features include:
git clone https://github.com/happli-sys/AgentTrace.git
cd AgentTrace
pip install -e .
import agenttrace
from my_agent import run
agenttrace.patch(
"my_agent.tools",
"my_agent.skills",
"my_agent.llm",
llm_modules=["my_agent.llm"],
skill_modules=["my_agent.skills"],
review_level=2,
)
output = agenttrace.session("查北京天气并计算 1+2")(run)("查北京天气并计算 1+2")
print(output)
print(agenttrace.last_result().summary())
from agenttrace.dashboard.server import start_server
start_server(port=3500)
Open:
http://localhost:3500This repo includes a demo agent that intentionally exercises multiple tracing scenarios:
bashreadgrepcalculateget_weatherflaky_weatherweather_report_skillRun it:
python examples/demo_agent/main.py
Stress prompt:
分析当前目录下的项目;bash pwd;read examples/demo_agent/tools.py;grep calculate examples/demo_agent;查北京和西安的天气,并计算1123123123+1283123;生成北京天气播报;最后总结。
AgentTrace works best for:
The default integration style is intentionally lightweight:
session(...)AgentTrace is currently optimized as:
It is not currently focused on being:
AgentTrace is especially useful for:
Current direction is intentionally focused:
The goal is to keep AgentTrace useful as a general execution-flow listener, not to turn it into a bloated all-in-one platform too early.
Although AgentTrace centers on tracing and diagnostics, it still retains objective runtime metrics such as:
expected_output is provided)Contributions are welcome — especially around:
For local development:
git clone https://github.com/happli-sys/AgentTrace.git
cd AgentTrace
pip install -e ".[dev]"
pytest tests/
If you want to contribute, small focused improvements are preferred over large platform-style expansions.
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 10 Jun 2026 | 9 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:25298ac78c78d56c33a64e974b8a8272fdec3c6daed7f64607729feb79b8b304