ai-wow Claude Code agent harness usage analysis
in Harness engineering
Statistics from the last 30 days of my Claude Code agentic workflow. It's important to regularly review your harness usage metrics to find potential problems and improve context management.
- Why count what you use?
- What you need
- How did I count?
- What runs every day?
- Which guard fires most?
- What barely runs?
- Strong and weak points
- Summary
Why count what you use?
Because a harness grows faster than anyone reads it. My harness, ai-wow, holds 32 skills, 10 subagents and 44 hook entries today. Each rule file says when its part should run. None of them says whether it did.
An earlier post, Harness evals: finding agent rules that stopped working, tested whether rules still change what agents do. This one asks a cheaper question first: does the part run at all? The transcripts already hold the answer. Claude Code writes every session to a JSON Lines file, one line per message and tool call.
What you need
You need your own Claude Code transcripts and a few dozen lines of Python. No extra logging.
| Tool | Used for |
|---|---|
| Claude Code 2.1.284 | the sessions, one .jsonl file each in its projects folder |
| Python 3.14 | one script that reads each line and counts |
ai-wow at f5d9bfa9 |
the parts being counted: skills, subagents, hooks, the taskman board |
How did I count?
I read every session file changed in the last 30 days: 1,717 sessions in 64 project folders, 700 of them in ai-wow itself. Subagents write their own transcript files, 1,903 of them in the same window.
My first pass was a grep, and it was wrong by about half. A transcript can hold the same tool call more than once, so grep counted 2,610 builder launches where there were 1,315. The script that replaced it counts each call once, by its id:
for b in message["content"]:
if b.get("type") != "tool_use" or b["id"] in seen:
continue
seen.add(b["id"])
if b["name"] == "Agent":
agents[b["input"].get("subagent_type", "general-purpose")] += 1
elif b["name"] == "Bash":
for word in set(HARNESS_CLI.findall(b["input"]["command"])):
cli[word] += 1
The first pass also missed whole call paths. Typed commands showed no /next or /debate at all, but agents call skills through the Skill tool: /debate ran 80 times and /next 42. And the main sessions showed imprint, the skill that records a UI component's patterns, only 8 times. The subagent files held 56 more, because builder agents run it themselves. Count every way a part can be called, or you will retire something that works.
What runs every day?
The daily loop is five parts, and they carry almost everything: the board, /mow, the builders, the reviewers and /wrap-up.
The numbers follow one task through the day. The accent arrow is a reviewer sending red work back to the builder.
| Part | What it does | 30 days |
|---|---|---|
| taskman board | tasks, decisions and the wrap-up gate, in files | over 21,000 Bash calls (task 9,204, wrapup 2,971, board 2,279, decision 2,156) |
| commit-own | commits only your own paths in a shared checkout | 4,598 calls |
| CAM journal | records why each git or board write happened | 3,063 calls (note 1,799, log 735, tell 529) |
| push-main | the one way to push main | 1,614 calls |
| tdd-builder | builds one brief test-first | 1,315 launches |
| stack reviewers | review a diff by file type | 1,024 launches (backend 462, classic web 162, LLM security 123) |
| /wrap-up | ends a session: report, board, push | typed in 514 sessions |
| /mow | plan to briefs to builder waves | typed in 376 sessions, 240 more Skill calls |
The board is the busiest part by far. Every chat reads and writes the same tasks, so a session that ends doesn't take its state with it.
The git wrappers come next, and that surprised me. commit-own ran more often than any taskman command but one. Many chats share one checkout, and a plain git commit would take a peer's half-done edits with it. Isolating parallel agent sessions in one git checkout and Serializing git pushes across parallel AI agents explain why.
Here is one task through that loop:
- The agent claims the task on the board, so no other chat starts it.
- tdd-builder agents build each brief in waves, one agent per brief (/mow).
- Reviewers matched to the file types read the diff. A Critical finding means a fix round.
- commit-own commits only the paths this session wrote.
- /wrap-up writes the report and updates the board. Its gate refuses a session missing either.
- push-main pushes main, one pusher at a time.
One warning: a count says a part ran, not that it helped. 1,024 reviewer launches tell you nothing about how many bugs they caught.
Which guard fires most?
One shell mistake. Hooks blocked 1,433 tool calls in 30 days, and 816 of those were the same one: an agent pipes a command into tail, then checks $?.
pytest -q | tail -5; echo "exit $?"
$? there is the exit status of tail, which is almost always 0, so a failing test run reads as a pass. guard-shell-status blocks the call and says why. The next most common blocks come from the same guard: an unquoted variable that zsh doesn't split, and a || after head that can never run.
That 816 cuts both ways. The guard works: the bad check never ran. But agents don't learn from it, because every session starts blank. The same mistake came back about 27 times a day. A guard you never saw fire isn't a guard is about proving a guard works; this is the other half, a guard that fires so often it marks a gap in the agents' instructions.
What barely runs?
Three parts ran far less than their rules expect, and one of them is supposed to start on its own.
| Part | 30 days | What the rules say |
|---|---|---|
| complexity reviewer | 2 launches, plus 6 audits run by builders | runs when a diff changes a DB query |
| docrag search (MCP) | 31 calls, none from subagents | first stop for "why did we…" questions |
| /chat-sweep | typed in 2 sessions | archives idle chats; 141 were idle on 25 November |
docrag is the clearest case. An earlier A/B test found agents preferred grep. A month later, 31 calls across 1,717 sessions says that hasn't changed.
complexity-reviewer is worse, because mow is meant to start it at the review gate. Two launches in a month of database work means the trigger rarely matches. Either a hook starts it on every query change, or it comes out.
Strong and weak points
The count is cheap and honest about what runs; it says nothing about what helps.
Strong:
- No new logging. Everything came from transcripts Claude Code already writes.
- The daily loop is real. Board, builders, reviewers, wrap-up and the git wrappers ran in hundreds of sessions each.
- It finds dead weight fast. Three parts ran far less than their rules expect.
Weak:
- Ran is not helped. No count here says a reviewer caught a bug or the board saved time.
- Word matching on Bash. A
taskman --helpcounts as a taskman call, and retries count each time. Bash calls were counted in main sessions only. - The 30-day window is by file date. A session started earlier but touched this month counts in full.
- Guards repeat. 816 blocks of one mistake means the harness catches it but never teaches it.
Summary
- Count each tool call once, by id: a grep over transcripts double-counted builder launches.
- Count every way a part can be called: typed, through the Skill tool, and inside subagents.
- The taskman board, the git wrappers, tdd-builder, the reviewers and /wrap-up run every day.
- One guard did most of the blocking: 816 of 1,433 blocks were
$?read after a pipe. - A rule that says when a part runs is not wiring: complexity-reviewer ran twice in a month.
- Put the pipe-status rule into the agents' base instructions, and count again in 30 days to see if the 816 drops.
- Start complexity-reviewer from a hook on query changes, or retire it.
- Rerun this count monthly, and add one measure of help, such as Critical findings per reviewer launch.