| Crates.io | agtrace |
| lib.rs | agtrace |
| version | 0.7.0 |
| created_at | 2025-12-27 00:25:30.719786+00 |
| updated_at | 2026-01-25 23:11:00.731039+00 |
| description | The official CLI for agtrace, built on top of agtrace-sdk. Visualize and analyze AI agent execution traces. |
| homepage | https://github.com/lanegrid/agtrace |
| repository | https://github.com/lanegrid/agtrace |
| max_upload_size | |
| id | 2006484 |
| size | 632,749 |
When I started using AI coding agents (Claude Code, Codex, Gemini), I realized I was working with a black box. I couldn't see:
I found myself guessing the agent's internal state. That felt wrong.
Now I always run agtrace alongside my coding agent. It's become essential.

What I see:
For the first time, I can make informed decisions about when to start a new session, how to scope my requests, and whether the agent is stuck in a loop.

npm install -g @lanegrid/agtrace
cd my-project
agtrace init # One-time setup
agtrace watch # Launch dashboard in a separate terminal
Works with Claude Code, Codex (OpenAI), and Gemini. Zero config — just discovers existing logs.
One thing I didn't expect: agents can also query their own execution history via MCP:
# Claude Code
claude mcp add agtrace -- agtrace mcp serve
# Codex
codex mcp add agtrace -- agtrace mcp serve
Now your agent can search what it did yesterday, find past errors, and learn from previous sessions.
See the MCP Integration Guide for more.
agtrace session list # Browse past sessions
agtrace lab grep "error" # Search across all sessions
If you're building your own IDE plugin, dashboard, or observability tool:
[dependencies]
agtrace-sdk = "0.6"
See SDK Documentation and Examples.
Have ideas?
MIT / Apache 2.0