perf: cut reviewer effort and unused tools #138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/cut-review-cost"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The context breakdown of the last eval run found two costs the policy gets little back for:
change-reviewerandsecurity-reviewerrun, ateffort: xhigh, wrote 10k to 19k tokens, almost all thinking, to produce a report of about 1k.Workflow,ScheduleWakeup,ReportFindings, andListAgents, which no skill uses.No eval showed whether a reviewer still catches defects at lower effort, so that change couldn't be judged before.
What changed
review-preval case. The agent reviews a contributor branch that adds--min N, with a boundary bug and anawkcode injection seeded in it. The case passes only when the change-reviewer's own finding items name the bug and the security-reviewer's name the injection.run.shgains a casebranch/, committed oncontrib.effort: high. Over three attempts at each effort, both reviewers named their defect every time athighand atxhigh. Reviewer output fell from about 16.7k to 5.6k tokens, and the case cost fell from $1.61 to $0.98. The Codex and OpenCode adapters keepxhigh, since nothing measures them..claude/settings.json. That also turns off Claude Code's own/loop,Workflowruns and/code-reviewfindings, and a user's own settings can't allow them again. The README says so, and a repo that needs one deletes its line. A newUPGRADING.mdmigration tells an upgrading user before the merge and keeps out the denial of each tool they want to keep.How to verify
jq .permissions.deny .claude/settings.jsonlists the four tools.evals/run.sh --policy HEAD --case review-pr --repeat 3passes. As the README now says, read the reviewers' reports before letting a pass decide effort.Run on the tip, all passing:
bash tests/verify-agent-config.sh(256),bash tests/check-work-folder.sh(46);.agents/hooks/shellcheck.sh repo,prettier --check '**/*.md',scripts/verify-agent-config.sh,git diff --check main.Evals, tip against main: 7 of 7 on both, $7.16 against $10.30 (single attempts). The first turn of a session is 4.8k tokens smaller.
Considerations
.claude/settings.jsonwould still get the migration's notice once. I set that aside as rare and harmless.