agtrace provides a unified timeline and analysis layer for fragmented AI agent logs. Use the CLI for instant visualization, or build custom monitoring tools with the SDK.
- Universal Normalization: Converts diverse provider logs (Claude, Gemini, etc.) into a standard
AgentEventmodel. - Schema-on-Read: Resilient to provider updates. No database migrations needed.
- Local-First: 100% offline. Privacy by design.
- Zero-Instrumentation: Automatically detects and watches logs from standard locations (
~/.claude/projects,~/.codex/sessions,~/.gemini/tmp). No code changes required.
The reference implementation of the agtrace platform.
npm install -g @lanegrid/agtrace
cd my-project
agtrace init # initialize workspace (XDG data directory)
agtrace watch # live dashboardEmbed agent observability into your own tools (vital-checkers, IDE plugins, dashboards).
[dependencies]
agtrace-sdk = "0.3"use agtrace_sdk::{Client, Lens, types::SessionFilter};
let client = Client::connect_default().await?;
let sessions = client.sessions().list(SessionFilter::all())?;
if let Some(summary) = sessions.first() {
let handle = client.sessions().get(&summary.id)?;
let report = handle.analyze()?.through(Lens::Failures).report()?;
println!("Health: {}/100", report.score);
}See also: SDK Documentation | Examples | SDK README
- Why agtrace? - Understanding the problem and solution
- Getting Started - Detailed installation and usage guide
- Architecture - Platform design and principles
- SDK Documentation - Building custom tools
- Full Documentation - Commands, FAQs, and more
- Claude Code (Anthropic)
- Codex (OpenAI)
- Gemini (Google)
graph TD
CLI[agtrace-cli] --> SDK[agtrace-sdk]
YourApp[Your Tool] --> SDK
SDK --> Core[Core Engine & Providers]
- Core SDK:
agtrace-sdk,agtrace-engine,agtrace-providers - Applications:
agtrace-cli(Reference Implementation)
Dual-licensed under the MIT and Apache 2.0 licenses.
