@lanegrid/agtrace 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +42 -63
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.5.1] - 2026-01-04
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- *(release)* Run clippy before version update to fail early ([70e96aa](https://github.com/lanegrid/agtrace/commit/70e96aa72ea90616b7401a4568e4ebe62fdf12d8))
|
|
10
|
+
|
|
11
|
+
- *(release)* Run lightweight checks before tests for faster failure ([66ec9fc](https://github.com/lanegrid/agtrace/commit/66ec9fc297795f08c7cf449450eba5d0a5eb7389))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Documentation
|
|
15
|
+
|
|
16
|
+
- Reposition agtrace as observability tool instead of memory system ([f2cb342](https://github.com/lanegrid/agtrace/commit/f2cb3429c51a48cee269bf965b93768aaff94fc6))
|
|
17
|
+
|
|
18
|
+
- Remove agent antipatterns documentation ([8b48857](https://github.com/lanegrid/agtrace/commit/8b4885744d9b6b0190993a299dedab0c0bd76d79))
|
|
19
|
+
|
|
20
|
+
|
|
5
21
|
## [0.5.0] - 2026-01-03
|
|
6
22
|
|
|
7
23
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<img src="https://raw.githubusercontent.com/lanegrid/agtrace/main/docs/images/agtrace-icon.png" width="96" alt="agtrace logo">
|
|
3
3
|
<h1>agtrace</h1>
|
|
4
|
-
<p><strong>
|
|
5
|
-
<p>
|
|
4
|
+
<p><strong>Observability for AI Agents</strong></p>
|
|
5
|
+
<p>Local-first monitoring for Claude Code, Codex, and Gemini.</p>
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@lanegrid/agtrace)
|
|
8
8
|
[](https://crates.io/crates/agtrace-sdk)
|
|
@@ -10,34 +10,26 @@
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+

|
|
14
14
|
|
|
15
|
-
AI
|
|
16
|
-
- Why a decision was made yesterday
|
|
17
|
-
- What approaches already failed
|
|
18
|
-
- The context behind existing code
|
|
15
|
+
**agtrace** monitors AI agent sessions in real-time and lets agents query their own execution history via MCP.
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
**agtrace** gives AI agents access to their own execution history via [Model Context Protocol (MCP)](https://modelcontextprotocol.io).
|
|
25
|
-
|
|
26
|
-
Your agent can now:
|
|
27
|
-
- Query past sessions: *"What did we decide about the database schema?"*
|
|
28
|
-
- Learn from failures: *"Show me errors from previous attempts"*
|
|
29
|
-
- Maintain context: *"Continue where we left off yesterday"*
|
|
30
|
-
|
|
31
|
-
**Zero instrumentation.** agtrace auto-discovers logs from Claude Code, Codex, and Gemini. No code changes required
|
|
17
|
+
- **Zero instrumentation** — Auto-discovers provider logs
|
|
18
|
+
- **100% local** — Privacy by design, no cloud dependencies
|
|
19
|
+
- **Universal timeline** — Unified view across all providers
|
|
32
20
|
|
|
33
21
|
## Quick Start
|
|
34
22
|
|
|
35
23
|
```bash
|
|
36
24
|
npm install -g @lanegrid/agtrace
|
|
37
|
-
|
|
25
|
+
cd my-project
|
|
26
|
+
agtrace init # Initialize workspace (one-time setup)
|
|
27
|
+
agtrace watch # Launch live dashboard
|
|
38
28
|
```
|
|
39
29
|
|
|
40
|
-
|
|
30
|
+
## MCP: Let Agents Query Their Own History
|
|
31
|
+
|
|
32
|
+
Connect your AI assistant to search past sessions via [Model Context Protocol](https://modelcontextprotocol.io):
|
|
41
33
|
|
|
42
34
|
**Claude Code:**
|
|
43
35
|
```bash
|
|
@@ -49,45 +41,32 @@ claude mcp add agtrace -- agtrace mcp serve
|
|
|
49
41
|
codex mcp add agtrace -- agtrace mcp serve
|
|
50
42
|
```
|
|
51
43
|
|
|
52
|
-
**Claude Desktop:**
|
|
44
|
+
**Claude Desktop:**
|
|
45
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
53
46
|
```json
|
|
54
47
|
{
|
|
55
48
|
"mcpServers": {
|
|
56
|
-
"agtrace": {
|
|
49
|
+
"agtrace": {
|
|
50
|
+
"command": "agtrace",
|
|
51
|
+
"args": ["mcp", "serve"]
|
|
52
|
+
}
|
|
57
53
|
}
|
|
58
54
|
}
|
|
59
55
|
```
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Once connected, your agent can query its own history:
|
|
66
|
-
|
|
67
|
-
| You ask | Agent does |
|
|
68
|
-
|---------|------------|
|
|
69
|
-
| *"Why did we choose PostgreSQL?"* | Searches past sessions for database discussions |
|
|
70
|
-
| *"Fix this bug, we tried before"* | Retrieves previous failed attempts and avoids them |
|
|
71
|
-
| *"Continue the refactoring"* | Loads context from yesterday's session |
|
|
72
|
-
|
|
73
|
-
**Real example:** An agent retrieved 34KB of historical context across 5 sessions, then generated a specification that respected all past design constraints—without you re-explaining anything.
|
|
74
|
-
|
|
75
|
-
## MCP Tools
|
|
76
|
-
|
|
77
|
-
agtrace exposes these tools to your agent:
|
|
57
|
+
Your agent can now:
|
|
58
|
+
- Search past sessions for tool calls and errors
|
|
59
|
+
- Retrieve tool calls and results from previous work
|
|
60
|
+
- Analyze failure patterns
|
|
78
61
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
| `get_turns` | Retrieve detailed content of specific turns |
|
|
84
|
-
| `search_events` | Find specific tool calls or patterns |
|
|
85
|
-
| `analyze_session` | Detect failures, loops, and issues |
|
|
86
|
-
| `get_project_info` | List indexed projects |
|
|
62
|
+
**Example queries:**
|
|
63
|
+
- *"Show me sessions with failures in the last hour"*
|
|
64
|
+
- *"Search for tool calls that modified the database schema"*
|
|
65
|
+
- *"Analyze the most recent session for performance issues"*
|
|
87
66
|
|
|
88
|
-
|
|
67
|
+
For detailed setup and examples, see the [MCP Integration Guide](docs/mcp-integration.md).
|
|
89
68
|
|
|
90
|
-
## CLI
|
|
69
|
+
## CLI Commands
|
|
91
70
|
|
|
92
71
|
Debug and inspect agent behavior manually:
|
|
93
72
|
|
|
@@ -97,11 +76,9 @@ agtrace session list # Browse session history
|
|
|
97
76
|
agtrace lab grep "error" # Search across sessions
|
|
98
77
|
```
|
|
99
78
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
## SDK for Builders
|
|
79
|
+
## Building with the SDK
|
|
103
80
|
|
|
104
|
-
|
|
81
|
+
Embed agent observability into your own tools (vital-checkers, IDE plugins, dashboards).
|
|
105
82
|
|
|
106
83
|
```toml
|
|
107
84
|
[dependencies]
|
|
@@ -113,11 +90,14 @@ use agtrace_sdk::{Client, Lens, types::SessionFilter};
|
|
|
113
90
|
|
|
114
91
|
let client = Client::connect_default().await?;
|
|
115
92
|
let sessions = client.sessions().list(SessionFilter::all())?;
|
|
116
|
-
let
|
|
117
|
-
.
|
|
93
|
+
if let Some(summary) = sessions.first() {
|
|
94
|
+
let handle = client.sessions().get(&summary.id)?;
|
|
95
|
+
let report = handle.analyze()?.through(Lens::Failures).report()?;
|
|
96
|
+
println!("Health: {}/100", report.score);
|
|
97
|
+
}
|
|
118
98
|
```
|
|
119
99
|
|
|
120
|
-
See [SDK Documentation](https://docs.rs/agtrace-sdk)
|
|
100
|
+
See [SDK Documentation](https://docs.rs/agtrace-sdk), [Examples](crates/agtrace-sdk/examples/), and [SDK README](crates/agtrace-sdk/README.md).
|
|
121
101
|
|
|
122
102
|
## Supported Providers
|
|
123
103
|
|
|
@@ -125,14 +105,13 @@ See [SDK Documentation](https://docs.rs/agtrace-sdk) and [examples](crates/agtra
|
|
|
125
105
|
- **Codex** (OpenAI)
|
|
126
106
|
- **Gemini** (Google)
|
|
127
107
|
|
|
128
|
-
All providers auto-discovered. Logs stay local.
|
|
129
|
-
|
|
130
108
|
## Documentation
|
|
131
109
|
|
|
132
|
-
- [
|
|
133
|
-
- [
|
|
134
|
-
- [Architecture](docs/architecture.md)
|
|
135
|
-
- [
|
|
110
|
+
- [Getting Started](docs/getting-started.md) - Detailed installation and usage guide
|
|
111
|
+
- [MCP Integration](docs/mcp-integration.md) - Connect agents to their execution history
|
|
112
|
+
- [Architecture](docs/architecture.md) - Platform design and principles
|
|
113
|
+
- [Why agtrace?](docs/motivation.md) - Understanding the problem and solution
|
|
114
|
+
- [Full Documentation](docs/README.md) - Commands, FAQs, and more
|
|
136
115
|
|
|
137
116
|
## License
|
|
138
117
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "MIT OR Apache-2.0",
|
|
25
25
|
"name": "@lanegrid/agtrace",
|
|
26
|
-
"version": "0.5.
|
|
26
|
+
"version": "0.5.1"
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@isaacs/balanced-match": {
|
|
29
29
|
"engines": {
|
|
@@ -515,5 +515,5 @@
|
|
|
515
515
|
}
|
|
516
516
|
},
|
|
517
517
|
"requires": true,
|
|
518
|
-
"version": "0.5.
|
|
518
|
+
"version": "0.5.1"
|
|
519
519
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.5.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.5.1",
|
|
3
3
|
"bin": {
|
|
4
4
|
"agtrace": "run-agtrace.js"
|
|
5
5
|
},
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"zipExt": ".tar.xz"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"version": "0.5.
|
|
96
|
+
"version": "0.5.1",
|
|
97
97
|
"volta": {
|
|
98
98
|
"node": "18.14.1",
|
|
99
99
|
"npm": "9.5.0"
|