Skip to content

Commit d8054e8

Browse files
docs: update READMEs and bump versions for PyPI/VSX republish
- vscode-extension/README.md: rewrite with v0.2.1 features (session browser, post-mortem viewer, watchdog integration, full command and settings tables) - vscode-extension/package.json: bump 0.2.0 → 0.2.1 - src/agent_trace/__init__.py: bump 0.51.0 → 0.51.1 - README.md: update VS Marketplace badge to v0.2.1 - AGENTS.md: update version reference to 0.51.1 Co-authored-by: Ona <no-reply@ona.com>
1 parent e314659 commit d8054e8

5 files changed

Lines changed: 72 additions & 23 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ python -m pytest tests/test_watch.py -v
4848

4949
## Version bumping
5050

51-
Current version: `0.51.0` in `src/agent_trace/__init__.py`.
51+
Current version: `0.51.1` in `src/agent_trace/__init__.py`.
5252

53-
- New feature (new command, new flag, new integration): bump minor (`0.51.0``0.52.0`)
54-
- Bug fix or small improvement: bump patch (`0.51.0``0.51.1`)
53+
- New feature (new command, new flag, new integration): bump minor (`0.51.1``0.52.0`)
54+
- Bug fix or small improvement: bump patch (`0.51.1``0.51.2`)
5555
- Breaking change to CLI or storage format: bump major — check with maintainer first
5656

5757
## docs/ structure

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Python](https://img.shields.io/pypi/pyversions/agent-strace)](https://pypi.org/project/agent-strace/)
66
[![CI](https://github.com/Siddhant-K-code/agent-trace/actions/workflows/test.yml/badge.svg)](https://github.com/Siddhant-K-code/agent-trace/actions/workflows/test.yml)
77
[![Open VSX](https://img.shields.io/open-vsx/v/Siddhant-K-code/agent-strace)](https://open-vsx.org/extension/Siddhant-K-code/agent-strace)
8-
[![VS Marketplace](https://img.shields.io/badge/VS%20Marketplace-v0.2.0-blue?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=Siddhant-K-code.agent-strace)
8+
[![VS Marketplace](https://img.shields.io/badge/VS%20Marketplace-v0.2.1-blue?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=Siddhant-K-code.agent-strace)
99
[![License](https://img.shields.io/github/license/Siddhant-K-code/agent-trace)](LICENSE)
1010

1111
`strace` for AI agents.

src/agent_trace/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""agent-trace: strace for AI agents."""
22

3-
__version__ = "0.51.0"
3+
__version__ = "0.51.1"

vscode-extension/README.md

Lines changed: 55 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,88 @@
11
# agent-trace for VS Code
22

3-
Live session overlay for [agent-trace](https://github.com/Siddhant-K-code/agent-trace). Shows what your agent is doing without leaving the editor.
3+
Live session overlay for [agent-trace](https://github.com/Siddhant-K-code/agent-trace). See what your agent is doing without leaving the editor.
4+
5+
Works in VS Code, Cursor, and any Open VSX-compatible editor.
46

57
## Features
68

7-
**Status bar** — cost, tool call count, and active tool name, updated on every event. Click to open the event stream panel.
9+
**Status bar**live cost, tool call count, and active tool name, updated on every event. Click to open the event stream panel.
810

911
```
1012
$(pulse) agent $0.0042 47 calls [Read]
1113
```
1214

13-
**Gutter annotations** — files the agent has read or modified get a colored left border and inline label:
15+
**Gutter annotations** — files the agent has read or modified get a colored left border and inline label.
1416

1517
```
1618
src/auth/middleware.ts ← agent read 3×, modified 1× this session
1719
src/db/schema.ts ← agent read 1× this session
1820
```
1921

20-
**Event stream panel** — live feed of every tool call, file op, LLM request, and error in the Explorer sidebar. Same information as `agent-strace watch` but in the editor.
22+
**Event stream panel** — live feed of every tool call, file op, LLM request, and error in the Explorer sidebar.
23+
24+
**Session browser** — Explorer sidebar tree listing all sessions with timestamp, duration, tool calls, and error count. Click any session to open a summary.
2125

22-
**Pause button** — stop the agent mid-session without killing it. Writes a signal file that `agent-strace watch` picks up and sends SIGSTOP to the agent process. Resume resumes it.
26+
**Post-mortem viewer** — when `agent-strace watch` kills a session (timeout, budget, or rule), the viewer opens automatically. Shows kill reason, cost at death, last tool call, and a copyable recovery context for pasting into a new session.
27+
28+
**Pause button** — stop the agent mid-session without killing it. Sends SIGSTOP to the agent process via `agent-strace watch`. Resume resumes it.
2329

2430
## Requirements
2531

26-
- [agent-trace](https://pypi.org/project/agent-strace/) installed (`pip install agent-strace` or `uv tool install agent-strace`)
32+
- [agent-strace](https://pypi.org/project/agent-strace/) installed: `pip install agent-strace` or `uv tool install agent-strace`
2733
- A session started via `agent-strace setup` (Claude Code hooks) or `agent-strace record` (MCP proxy)
2834

2935
The extension activates automatically when a `.agent-traces/` directory exists in the workspace root.
3036

31-
## Usage
37+
## Setup
38+
39+
```bash
40+
# 1. Install agent-strace
41+
pip install agent-strace
42+
43+
# 2. Add hooks to Claude Code (one-time)
44+
agent-strace setup
45+
46+
# 3. Open your project in VS Code / Cursor
47+
# Extension activates automatically when .agent-traces/ exists
48+
49+
# 4. Start Claude Code — status bar appears immediately
50+
```
3251

33-
1. Install agent-trace and set up hooks:
34-
```bash
35-
agent-strace setup # adds hooks to .claude/settings.json
36-
```
37-
2. Open your project in VS Code / Cursor.
38-
3. Start Claude Code — the status bar item appears as soon as the session starts.
39-
4. Open the **Agent Trace** panel in the Explorer sidebar for the full event stream.
52+
## Commands
4053

41-
The **Pause** button in the panel (or `agent-trace: Pause Agent` command) sends SIGSTOP to the agent. This requires `agent-strace watch` to be running in a terminal alongside the session.
54+
All commands are available from the Command Palette (`Cmd/Ctrl+Shift+P`):
55+
56+
| Command | Description |
57+
|---|---|
58+
| `agent-trace: Open Live Stream` | Open the event stream panel |
59+
| `agent-trace: Open Event Stream` | Open the main agent-strace panel |
60+
| `agent-trace: View Post-Mortem` | View the watchdog post-mortem for the latest killed session |
61+
| `agent-trace: Refresh Session Browser` | Reload the session list |
62+
| `agent-trace: Reveal Session in Browser` | Jump to a session by ID |
63+
| `agent-trace: Pause Agent` | Send SIGSTOP to the agent (requires `watch` running) |
64+
| `agent-trace: Resume Agent` | Send SIGCONT to resume a paused agent |
65+
| `agent-trace: Clear File Decorations` | Remove all gutter annotations from the editor |
66+
67+
## Watchdog integration
68+
69+
Run `agent-strace watch` alongside your session to enable the pause button and post-mortem viewer:
70+
71+
```bash
72+
# Kill session after 30 minutes or $5 spend
73+
agent-strace watch --timeout 30m --budget 5.00 --on-violation kill
74+
```
75+
76+
When the watchdog kills a session, the post-mortem viewer opens automatically. The "Copy recovery context" button copies a summary you can paste into a new session to resume where the agent left off.
4277

4378
## Configuration
4479

4580
| Setting | Default | Description |
4681
|---|---|---|
4782
| `agentTrace.traceDir` | `.agent-traces` | Path to trace store, relative to workspace root |
83+
| `agentTrace.collectorEndpoint` | `""` | Remote collector URL (leave empty for local mode) |
84+
| `agentTrace.watchdogPollIntervalSeconds` | `5` | How often (seconds) the status bar polls for updates |
85+
| `agentTrace.sessionBrowserRefreshInterval` | `5` | How often (seconds) the session browser refreshes |
4886
| `agentTrace.showGutterAnnotations` | `true` | Gutter icons on agent-touched files |
4987
| `agentTrace.showInlineText` | `true` | Inline read/write counts at top of file |
5088

@@ -53,3 +91,5 @@ The **Pause** button in the panel (or `agent-trace: Pause Agent` command) sends
5391
The extension watches `.agent-traces/.active-session` for the current session ID, then tails `events.ndjson` for new events using `fs.watch`. No polling when idle. No network calls. No new processes.
5492

5593
Pause works by writing `.agent-traces/.pause-request``agent-strace watch` checks for this file on every poll cycle and sends SIGSTOP / SIGCONT to the agent PID.
94+
95+
The post-mortem viewer reads `watchdog-postmortem.json` from the session directory, written by `agent-strace watch` on kill.

vscode-extension/package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "agent-strace",
33
"displayName": "agent-strace",
44
"description": "Live session overlay for agent-strace: status bar, gutter annotations, and event stream panel.",
5-
"version": "0.2.0",
5+
"version": "0.2.1",
66
"publisher": "Siddhant-K-code",
77
"license": "MIT",
88
"repository": {
@@ -12,8 +12,17 @@
1212
"engines": {
1313
"vscode": "^1.85.0"
1414
},
15-
"categories": ["Other"],
16-
"keywords": ["ai", "agent", "trace", "observability", "claude", "mcp"],
15+
"categories": [
16+
"Other"
17+
],
18+
"keywords": [
19+
"ai",
20+
"agent",
21+
"trace",
22+
"observability",
23+
"claude",
24+
"mcp"
25+
],
1726
"icon": "icon.png",
1827
"activationEvents": [
1928
"workspaceContains:.agent-traces"

0 commit comments

Comments
 (0)