Record the read pricing, precision and tool trials in item 231's decision, and file questions 240 and 241

This commit is contained in:
2026-10-27 02:11:05 +01:00
parent 34a623e261
commit d96e5c35ef
2 changed files with 19 additions and 1 deletions
+8
View File
@@ -93,6 +93,14 @@ Quality. 19 chunks compacted between 2026-10-10 and 2026-10-22, at the compactio
Hours. A chunk ran a median 0.7 hours from its first message to its last, one in ten past 12 hours, mostly waiting for the human or a usage limit. No option here changes that: a compaction takes 51 to 83 seconds, under a minute per chunk at 0.7 each, and a smaller context saves seconds per turn at most. The hours lever is item 232, since waiting on subagents took 66% of a worker's active time.
Reads and tools, measured the same day at lilleman's ask, on the same 90 chunks:
- What reads cost. The messages that took in tool results carried $537 of the $1,215, 44%: the worker's $190 (Bash reads $115, Read $12), the principles auditors' $139 (Read $109, Grep $22), the stability reviewers' $106 (Bash reads $79), general-purpose subagents' $97, the prose reviewers' $34, the architects' $31 and the product-owner reviewers' $23. These figures charge a message's new input tokens to the results it took in, so they include what arrives beside a result, such as the agent's own previous reply; the 93M characters read alone are about 27M tokens.
- Precision. Of the characters a principles auditor read, 13% were in a file its report names; a stability reviewer 8%; the worker 4% in a file it later edited; a prose reviewer 18%; an architect 11%. Reading is mostly to find things and to learn what a project holds, as lilleman read it. The worker's `sed` ranges are small, median 25 lines, one in ten over 80. Of the worker's read characters, 49% were of a file it had read earlier in the thread: 36% within three messages, paging through it, and 13% later and unchanged, about $6 of the $45 its reads cost; reviewers 1 to 2% (item 239).
- Tool results. Claude Code caps a Bash result at about 30k characters. Subagents' Read results, 59.9M characters, have 58% of their characters in results over 12k.
- Trials on this repo. Four stability rounds and five principles rounds archived on 2026-10-23, each holding 🔴 or 🟡 findings, replayed on the project's rung as `review-replay` replays them, with the reviewer's definition changed through `--agents`; and three worker-like tasks, a search, a rename and an explanation, run on fresh clones at the project's rung. The baseline reviewers found 4 of their own 6 archived findings in each pass, the spread a sample this small sits in. The LSP tool, through a pyright plugin built from the marketplace manifest with `pyright-langserver` on PATH, answers a file's symbols, a definition or the references in a few hundred characters; the stability reviewers and the workers never called it under a rule telling them to, and the auditors who did read as much or more and missed the one 🔴 (0 of 1 against the baseline's 1 of 1). An `outline` script printing a file's symbols with line ranges: never called by workers; stability reviewers under its rule found 2 of 6 findings. A PostToolUse hook capping a Bash result at 12k characters: 3 of 6, two lost in one round. A scout, Haiku 5.5 reading raw content and returning facts and line ranges: as an in-session agent its first request writes 37k tokens, $0.005, and a read of a 38KB file costs $0.008 in 8 seconds; as a slim headless `claude -p` with its own system prompt, no setting sources and no dynamic sections, 6k tokens, $0.0003 and 3 to 5 seconds of startup, its prefix cached across calls, and the same read $0.004 in 7 seconds. Stability reviewers with the agent scout found 5 of 6 findings and read 29% fewer characters at 6% less cost and 14% more time; with the CLI scout 4 of 6, 38% fewer characters, 17% less cost and 39% more time; the auditors with the agent scout 3 of 6 at the same cost and twice the time. Workers offered the scout never called it, but its reading rule alone, never read more than 80 lines of a file yourself, cut their reading 45% to 60% at the same or lower cost, with all three tasks done as well.
- What follows. On this sample no tool cuts a reviewer's reading without losing a finding, except the scout, whose saving sits within the baseline's own spread; so none of them ships here. lilleman decides two trials: a reading rule for workers (item 240) and a scout for reviewers (item 241). A direct API call and `claude --bare` are out, since both need an API key where lilleman's login is a subscription.
Valid while cache reads cost a twentieth of input and Claude Code's compaction keeps the worker's task.
## machine load: a heavy command waits for one of the machine's heavy slots, one for every 4 CPUs, which every session shares, and loop-claude starts a worker only while at least a quarter of the machine's memory is available