
agtrace monitors AI agent sessions in real-time and lets agents query their own execution history via MCP.
- Zero instrumentation — Auto-discovers provider logs
- 100% local — Privacy by design, no cloud dependencies
- Universal timeline — Unified view across all providers
Quick Start
MCP: Let Agents Query Their Own History
Connect your AI assistant to search past sessions via Model Context Protocol:
Claude Code:
Codex (OpenAI):
Claude Desktop:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Your agent can now:
- Search past sessions for tool calls and errors
- Retrieve tool calls and results from previous work
- Analyze failure patterns
Example queries:
- "Show me sessions with failures in the last hour"
- "Search for tool calls that modified the database schema"
- "Analyze the most recent session for performance issues"
For detailed setup and examples, see the MCP Integration Guide.
CLI Commands
Debug and inspect agent behavior manually:
Building with the SDK
Embed agent observability into your own tools (vital-checkers, IDE plugins, dashboards).
[]
= "0.5"
use ;
let client = connect_default.await?;
let sessions = client.sessions.list?;
if let Some = sessions.first
See SDK Documentation, Examples, and SDK README.
Supported Providers
- Claude Code (Anthropic)
- Codex (OpenAI)
- Gemini (Google)
Documentation
- Getting Started - Detailed installation and usage guide
- MCP Integration - Connect agents to their execution history
- Architecture - Platform design and principles
- Why agtrace? - Understanding the problem and solution
- Full Documentation - Commands, FAQs, and more
License
Dual-licensed under the MIT and Apache 2.0 licenses.