agent-hotwash — analyze coding-agent traces to surface improvement opportunities and bad patterns
Project description
agent-hotwash
Analyzes coding-agent traces (Claude, Codex, pi, code-bench) to surface bad patterns and improvement opportunities via analytics and detectors. Point it at what an agent did to learn how it could have done better, with reports in table, JSON, CSV, or HTML for humans or CI.
Quickstart
Requires uv and Python 3.12.
uv sync # create the venv and install deps (incl. dev tools)
make check # run the full hygiene gate (format, lint, typecheck, tests)
uv run agent-hotwash --help
Usage
Point analyze at any trace file or directory. It auto-detects the format
(code-bench run/experiment dirs, native Claude project dirs, native Codex
rollouts, native pi session dirs), runs analytics + detectors, and renders a
report.
uv run agent-hotwash analyze <path>... # analyze one or more traces
uv run agent-hotwash analyze <path> --format table # human table (default on a TTY)
uv run agent-hotwash analyze <path> --format json # machine JSON (default when piped)
uv run agent-hotwash analyze <path> --format html --out report.html
uv run agent-hotwash analyze <path> --format csv --out rows.csv
Common flags: --config FILE (user TOML merged over defaults), --no-detectors
(analytics only), --fail-on high (CI gate: non-zero exit if a finding at/above
the given severity is present).
Formats: table (rich, degrades to plain text off a TTY), json, csv (one
row per run + a column per finding id), html (single self-contained file, no
external assets). --out takes a file or a directory (writes report.<ext>);
omit it to stream to stdout.
Other commands:
uv run agent-hotwash detectors --format json # list registered detectors
uv run agent-hotwash config-show # dump the effective merged config
uv run agent-hotwash version
Output contract (AI-friendly): structured data goes to stdout, all
human/progress messages to stderr. Exit codes: 0 success, 1 error,
2 no analyzable traces found (or --fail-on tripped).
Make targets
Run make help for the full list. The static-check targets are quiet on
success — they print one <Name>: OK line and only dump full tool output on
failure, to keep transcripts short for AI agents.
| Target | What it does |
|---|---|
install / sync |
Sync the venv from uv.lock (incl. dev group). |
format / fmt |
Format src + tests with ruff. |
lint |
Lint with ruff (silent unless it fails). |
format-check |
Check formatting with ruff (silent unless it fails). |
typecheck |
Type-check with ty. |
test |
Run the pytest suite (verbose). |
check |
Full gate: format-check + lint + typecheck + tests, parallel. |
release |
make release BUMP=minor — gate, bump, tag, build dists. |
clean |
Remove caches and build artifacts. |
Layout
src/agent_hotwash/ package (CLI entry point in cli.py)
tests/ pytest suite
Tooling
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_hotwash-0.1.0.tar.gz.
File metadata
- Download URL: agent_hotwash-0.1.0.tar.gz
- Upload date:
- Size: 141.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec9a34fcb57a8bfdf7acf883e561b2df6ed8398c8c1bf3a2b9b8b9ee93a88ae8
|
|
| MD5 |
7438bd600af894fde177cd123a559ea1
|
|
| BLAKE2b-256 |
6651d92128e263f35b75a01d7cd69f53537afffe3f335ffec6156b4b272f926b
|
File details
Details for the file agent_hotwash-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agent_hotwash-0.1.0-py3-none-any.whl
- Upload date:
- Size: 78.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8afcb2227a4967dcd5325b3be43a53bcbc786506cd8a1d09d085c1e73ff3cc1
|
|
| MD5 |
4b270b5aaf5ac86b9246820b058ecbdc
|
|
| BLAKE2b-256 |
241d742e03c1eb65fb2b0f8e4de1d19a264ae24ba057fc0f0a1af8d7e23c73d3
|