@lanegrid/agtrace 0.4.0 → 0.4.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 CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.4.1] - 2026-01-03
6
+
7
+ ### Bug Fixes
8
+
9
+ - Unify top-level help message between -h and --help ([5631f15](https://github.com/lanegrid/agtrace/commit/5631f15e0b7aeea3aebdc7a1b7c347fa29c9692f))
10
+
11
+
12
+ ### Documentation
13
+
14
+ - Add MCP troubleshooting for Node.js version managers ([0f99972](https://github.com/lanegrid/agtrace/commit/0f999728ef04e7b2cd6742de6ca4250c467906ce))
15
+
16
+ - Modernize MCP messaging and restructure README around watch and mcp values ([ef14681](https://github.com/lanegrid/agtrace/commit/ef146816220164b4e80b0104e836faa2214e732a))
17
+
18
+ - Fix Gemini CLI mcp add syntax (uses positional args, not -- separator) ([e458773](https://github.com/lanegrid/agtrace/commit/e4587732bac670a9228a6c44afde375744e8679c))
19
+
20
+ - Note Gemini CLI not yet supported (requires Content-Length framing) ([43a745d](https://github.com/lanegrid/agtrace/commit/43a745d130d9ac367201a01e382db72878a9710f))
21
+
22
+
23
+ ### Refactor
24
+
25
+ - Update MCP tools from get_session_details/search_events to specialized tools ([31a7919](https://github.com/lanegrid/agtrace/commit/31a791934b2c52cdbf271b19fc6e5768004fc9bc))
26
+
27
+ - Reorder subcommands by importance and improve descriptions ([59ad2eb](https://github.com/lanegrid/agtrace/commit/59ad2eb31943ddd5c3ec679cd588d88a503c86a1))
28
+
29
+ - Hide less-used global options in -h to shorten help output ([8589bf0](https://github.com/lanegrid/agtrace/commit/8589bf09987c29edb26a19b1b1b7f85fdbdf0c86))
30
+
31
+
5
32
  ## [0.4.0] - 2026-01-02
6
33
 
7
34
  ### Bug Fixes
package/README.md CHANGED
@@ -12,41 +12,57 @@
12
12
 
13
13
  ![agtrace watch demo](https://raw.githubusercontent.com/lanegrid/agtrace/main/docs/assets/demo.gif)
14
14
 
15
- **agtrace** provides a unified timeline and analysis layer for fragmented AI agent logs.
16
- Use the **CLI** for instant visualization, or build custom monitoring tools with the **SDK**.
15
+ **agtrace** is an observability platform for AI agent execution traces.
16
+ Local-first, privacy-preserving, and zero-instrumentation.
17
17
 
18
- ## 🌟 Core Value
18
+ ## Two Ways to Use agtrace
19
19
 
20
- 1. **Universal Normalization**: Converts diverse provider logs (Claude, Gemini, etc.) into a standard `AgentEvent` model.
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
- ## 🚀 Quick Start (CLI)
22
+ Real-time TUI dashboard for agent sessions. Like `top` + `tail -f` for AI agents.
26
23
 
27
- The reference implementation of the agtrace platform.
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 # initialize workspace (system data directory)
33
- agtrace watch # live dashboard
46
+ agtrace init # Initialize workspace (one-time setup)
47
+ agtrace watch # Launch live dashboard
34
48
  ```
35
49
 
36
- ## 🤖 AI-Native Observability (MCP)
50
+ ## 🔌 MCP Integration
37
51
 
38
- **New in v0.4.0**: Enable AI agents to query their own execution history.
52
+ Enable agent self-reflection in your AI coding assistant:
39
53
 
40
- agtrace exposes a [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that allows AI assistants like Claude Desktop to:
41
- - Browse session history and analyze failures
42
- - Search event payloads across thousands of sessions
43
- - Run diagnostic analysis (failures, loops, bottlenecks)
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
- ### Setup with Claude Desktop
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
- After restarting Claude Desktop, ask questions like:
62
- - *"Show me sessions from the last 2 hours that had failures"*
63
- - *"Search for all tool calls containing 'write_file'"*
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
- ### Available MCP Tools
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
 
@@ -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.0"
26
+ "version": "0.4.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.4.0"
518
+ "version": "0.4.1"
519
519
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.4.0",
2
+ "artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.4.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.4.0",
96
+ "version": "0.4.1",
97
97
  "volta": {
98
98
  "node": "18.14.1",
99
99
  "npm": "9.5.0"