@lanegrid/agtrace 0.4.0 → 0.4.2
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 +34 -0
- package/README.md +41 -33
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.4.2] - 2026-01-03
|
|
6
|
+
|
|
7
|
+
### Refactor
|
|
8
|
+
|
|
9
|
+
- Encapsulate sidechain filtering in SDK layer ([000cae9](https://github.com/lanegrid/agtrace/commit/000cae9f381660398ed52fe08683c78ed2246278))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## [0.4.1] - 2026-01-03
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- Unify top-level help message between -h and --help ([5631f15](https://github.com/lanegrid/agtrace/commit/5631f15e0b7aeea3aebdc7a1b7c347fa29c9692f))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
- Add MCP troubleshooting for Node.js version managers ([0f99972](https://github.com/lanegrid/agtrace/commit/0f999728ef04e7b2cd6742de6ca4250c467906ce))
|
|
22
|
+
|
|
23
|
+
- Modernize MCP messaging and restructure README around watch and mcp values ([ef14681](https://github.com/lanegrid/agtrace/commit/ef146816220164b4e80b0104e836faa2214e732a))
|
|
24
|
+
|
|
25
|
+
- Fix Gemini CLI mcp add syntax (uses positional args, not -- separator) ([e458773](https://github.com/lanegrid/agtrace/commit/e4587732bac670a9228a6c44afde375744e8679c))
|
|
26
|
+
|
|
27
|
+
- Note Gemini CLI not yet supported (requires Content-Length framing) ([43a745d](https://github.com/lanegrid/agtrace/commit/43a745d130d9ac367201a01e382db72878a9710f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Refactor
|
|
31
|
+
|
|
32
|
+
- Update MCP tools from get_session_details/search_events to specialized tools ([31a7919](https://github.com/lanegrid/agtrace/commit/31a791934b2c52cdbf271b19fc6e5768004fc9bc))
|
|
33
|
+
|
|
34
|
+
- Reorder subcommands by importance and improve descriptions ([59ad2eb](https://github.com/lanegrid/agtrace/commit/59ad2eb31943ddd5c3ec679cd588d88a503c86a1))
|
|
35
|
+
|
|
36
|
+
- Hide less-used global options in -h to shorten help output ([8589bf0](https://github.com/lanegrid/agtrace/commit/8589bf09987c29edb26a19b1b1b7f85fdbdf0c86))
|
|
37
|
+
|
|
38
|
+
|
|
5
39
|
## [0.4.0] - 2026-01-02
|
|
6
40
|
|
|
7
41
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -12,41 +12,57 @@
|
|
|
12
12
|
|
|
13
13
|

|
|
14
14
|
|
|
15
|
-
**agtrace**
|
|
16
|
-
|
|
15
|
+
**agtrace** is an observability platform for AI agent execution traces.
|
|
16
|
+
Local-first, privacy-preserving, and zero-instrumentation.
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## Two Ways to Use agtrace
|
|
19
19
|
|
|
20
|
-
1.
|
|
21
|
-
2. **Schema-on-Read**: Resilient to provider updates. No database migrations needed.
|
|
22
|
-
3. **Local-First**: 100% offline. Privacy by design.
|
|
23
|
-
4. **Zero-Instrumentation**: Automatically detects and watches logs from standard locations (`~/.claude/projects`, `~/.codex/sessions`, `~/.gemini/tmp`). No code changes required.
|
|
20
|
+
### 1. 🔍 Live Monitoring with `watch`
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
Real-time TUI dashboard for agent sessions. Like `top` + `tail -f` for AI agents.
|
|
26
23
|
|
|
27
|
-
|
|
24
|
+
- **100% local and offline** — Privacy by design, no cloud dependencies
|
|
25
|
+
- **Auto-discovery** — Finds logs from Claude Code, Codex, and Gemini automatically
|
|
26
|
+
- **Zero instrumentation** — No code changes or configuration needed
|
|
27
|
+
- **Universal timeline** — Unified view across all providers
|
|
28
|
+
|
|
29
|
+
### 2. 🤖 Agent Self-Reflection via MCP
|
|
30
|
+
|
|
31
|
+
Connects to AI coding assistants via [Model Context Protocol](https://modelcontextprotocol.io), enabling agents to query their own execution history.
|
|
32
|
+
|
|
33
|
+
- **Query past sessions** — "Show me sessions with failures in the last hour"
|
|
34
|
+
- **Search across traces** — Find specific tool calls, events, or patterns
|
|
35
|
+
- **Analyze performance** — Detect loops, failures, and bottlenecks
|
|
36
|
+
- **Debug behavior** — Inspect reasoning chains and tool usage
|
|
37
|
+
|
|
38
|
+
**Supported MCP clients:** Claude Code, Codex (OpenAI), Claude Desktop
|
|
39
|
+
**Note:** Gemini CLI support is planned (requires Content-Length framing implementation)
|
|
40
|
+
|
|
41
|
+
## 🚀 Quick Start
|
|
28
42
|
|
|
29
43
|
```bash
|
|
30
44
|
npm install -g @lanegrid/agtrace
|
|
31
45
|
cd my-project
|
|
32
|
-
agtrace init #
|
|
33
|
-
agtrace watch # live dashboard
|
|
46
|
+
agtrace init # Initialize workspace (one-time setup)
|
|
47
|
+
agtrace watch # Launch live dashboard
|
|
34
48
|
```
|
|
35
49
|
|
|
36
|
-
##
|
|
50
|
+
## 🔌 MCP Integration
|
|
37
51
|
|
|
38
|
-
|
|
52
|
+
Enable agent self-reflection in your AI coding assistant:
|
|
39
53
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- Debug agent behavior without manual CLI commands
|
|
54
|
+
**Claude Code:**
|
|
55
|
+
```bash
|
|
56
|
+
claude code mcp add agtrace -- agtrace mcp serve
|
|
57
|
+
```
|
|
45
58
|
|
|
46
|
-
|
|
59
|
+
**Codex (OpenAI):**
|
|
60
|
+
```bash
|
|
61
|
+
codex mcp add agtrace -- agtrace mcp serve
|
|
62
|
+
```
|
|
47
63
|
|
|
64
|
+
**Claude Desktop:**
|
|
48
65
|
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
49
|
-
|
|
50
66
|
```json
|
|
51
67
|
{
|
|
52
68
|
"mcpServers": {
|
|
@@ -58,20 +74,12 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
|
58
74
|
}
|
|
59
75
|
```
|
|
60
76
|
|
|
61
|
-
|
|
62
|
-
- *"Show
|
|
63
|
-
- *"Search for
|
|
77
|
+
**Example queries after setup:**
|
|
78
|
+
- *"Show sessions from the last hour with failures"*
|
|
79
|
+
- *"Search for tool calls containing 'write_file'"*
|
|
64
80
|
- *"Analyze the most recent session for performance issues"*
|
|
65
81
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
- `list_sessions` - Browse session history with filtering
|
|
69
|
-
- `get_session_details` - Get session overview, turns, or full details
|
|
70
|
-
- `analyze_session` - Run diagnostic analysis (failures, loops)
|
|
71
|
-
- `search_events` - Search event payloads across sessions
|
|
72
|
-
- `get_project_info` - List all indexed projects
|
|
73
|
-
|
|
74
|
-
**See also**: Run `agtrace mcp serve --help` for details.
|
|
82
|
+
For detailed setup instructions and troubleshooting, see the [MCP Integration Guide](docs/mcp-integration.md).
|
|
75
83
|
|
|
76
84
|
## 🛠️ Building with the SDK
|
|
77
85
|
|
|
@@ -79,7 +87,7 @@ Embed agent observability into your own tools (vital-checkers, IDE plugins, dash
|
|
|
79
87
|
|
|
80
88
|
```toml
|
|
81
89
|
[dependencies]
|
|
82
|
-
agtrace-sdk = "0.
|
|
90
|
+
agtrace-sdk = "0.4"
|
|
83
91
|
```
|
|
84
92
|
|
|
85
93
|
```rust,no_run
|
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.4.
|
|
26
|
+
"version": "0.4.2"
|
|
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.4.
|
|
518
|
+
"version": "0.4.2"
|
|
519
519
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.4.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.4.2",
|
|
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.4.
|
|
96
|
+
"version": "0.4.2",
|
|
97
97
|
"volta": {
|
|
98
98
|
"node": "18.14.1",
|
|
99
99
|
"npm": "9.5.0"
|