Skip to content

Commit e1dbe18

Browse files
Fix publish: bump pyproject.toml to 0.8.0, wire version from __init__.py (#14)
pyproject.toml had version = 0.5.0 while __init__.py was bumped to 0.8.0. uv build reads pyproject.toml, so the published wheel was 0.5.0 which already exists on PyPI — causing the 400 rejection. - Set dynamic = ["version"] and [tool.hatch.version] path so hatchling reads the version from src/agent_trace/__init__.py. Single source of truth; version drift between the two files is no longer possible. README: - Add explain to quick start snippet - Deduplicate explain in CLI reference table - Add CI one-liner to audit section (exits 1 on violations) - Clarify event number source in why section - Add motivation sentence to diff section Co-authored-by: Ona <no-reply@ona.com>
1 parent b97de4a commit e1dbe18

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Then use Claude Code normally.
5555
```bash
5656
agent-strace list # list sessions
5757
agent-strace replay # replay the latest
58+
agent-strace explain # plain-English summary of what the agent did
5859
agent-strace stats # tool call frequency and timing
5960
```
6061

@@ -109,12 +110,12 @@ agent-strace replay [session-id] Replay a session (default: lates
109110
agent-strace replay --expand-subagents Inline subagent sessions under parent tool_call
110111
agent-strace replay --tree Show session hierarchy without full replay
111112
agent-strace list List all sessions
113+
agent-strace explain [session-id] Explain a session in plain English
112114
agent-strace stats [session-id] Show tool call frequency and timing
113115
agent-strace stats --include-subagents Roll up stats across the full subagent tree
114116
agent-strace inspect <session-id> Dump full session as JSON
115117
agent-strace export <session-id> Export as JSON, CSV, NDJSON, or OTLP
116118
agent-strace import <session.jsonl> Import a Claude Code JSONL session log
117-
agent-strace explain [session-id] Explain a session in plain English
118119
agent-strace cost [session-id] Estimate token cost for a session
119120
agent-strace diff <session-a> <session-b> Compare two sessions structurally
120121
agent-strace why [session-id] <event-number> Trace the causal chain for an event
@@ -424,7 +425,7 @@ Subagent sessions are linked via `parent_session_id` and `parent_event_id` in se
424425

425426
### Session diff
426427

427-
Compare two sessions structurally. Phases are aligned by label using LCS, then per-phase differences in files touched, commands run, and outcomes are reported:
428+
Compare two sessions structurally. Useful for understanding why the same prompt produces different results across runs, or comparing a broken session against a known-good one. Phases are aligned by label using LCS, then per-phase differences in files touched, commands run, and outcomes are reported:
428429

429430
```bash
430431
agent-strace diff abc123 def456
@@ -445,7 +446,7 @@ Diverged at phase 2:
445446

446447
### Causal chain (why)
447448

448-
Trace backwards from any event to find what caused it. Event numbers match the output of `agent-strace replay`:
449+
Trace backwards from any event to find what caused it. Run `agent-strace replay <session-id>` first — the `#N` numbers in the left column are the event numbers:
449450

450451
```bash
451452
agent-strace why abc123 4
@@ -474,6 +475,9 @@ Check every tool call in a session against a policy file. Auto-flags sensitive f
474475
```bash
475476
agent-strace audit # latest session, no policy required
476477
agent-strace audit abc123 --policy .agent-scope.json
478+
479+
# In CI: fail the build if the agent accessed anything outside policy
480+
agent-strace audit --policy .agent-scope.json || exit 1
477481
```
478482

479483
```

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "agent-strace"
7-
version = "0.5.0"
7+
dynamic = ["version"]
88
description = "strace for AI agents. Capture and replay every tool call, LLM request, and decision point."
99
readme = "README.md"
1010
license = "MIT"
@@ -35,5 +35,8 @@ Repository = "https://github.com/Siddhant-K-code/agent-trace"
3535
Issues = "https://github.com/Siddhant-K-code/agent-trace/issues"
3636
Documentation = "https://github.com/Siddhant-K-code/agent-trace#readme"
3737

38+
[tool.hatch.version]
39+
path = "src/agent_trace/__init__.py"
40+
3841
[tool.hatch.build.targets.wheel]
3942
packages = ["src/agent_trace"]

0 commit comments

Comments
 (0)