The exact parts of a review are Rust, the same on every machine. The agents do the judgment: two finders a unit, one verifier a file.
The Steps
- The pull request read through gh. Its repository cloned once, blobless, in
~/.hunkbot/repos; the head checked out in~/.hunkbot/checkouts, removed once the review is done. - The change from the merge base to the head: its files and hunks, the files left out with why, cut into units of at most 1,500 changed lines.
- The guideline files (
CLAUDE.md,AGENTS.md) of the folders the change touches, read from the base branch, and the repository's learnings. - Two finders a unit, in parallel, headless and read-only: one looks at the changed lines, one at what the change breaks around them.
- The checks by code: each quote found in the file at the head, its file in the change, weak and duplicate findings dropped or merged, every unit answered for.
- One verifier a file, on another model, tries to disprove each finding.
- The summary's pass: a walkthrough, the changes grouped, a sequence diagram where a flow changed, the review's effort and the merge's risk.
- The review kept whole in
~/.hunkbot/reviews/and told.
The Finders
local
angle
Correctness and safety inside the changed lines.
interfaces
angle
What the change breaks in callers, contracts, data and conventions.
A finder reads its unit whole and the code around it, and raises every fault it can point at. Its job is recall: the checks and the verifier drop the weak ones before anything is posted.
The Checks by Code
- Its file is in the change, or it is dropped.
- Its quote is found in the file at the head, and its line moved to where the quote is; a quote not found is dropped.
- A confidence under 0.3 is dropped before the verifier reads it.
- Two findings with one fingerprint, or within 2 lines of each other in one file, are merged.
- Every unit is said reviewed by both finders, or the review is incomplete.
What It Costs
Each pass runs on an agent you are already signed in to, on your own subscription: no API key. What each pass cost is read from what the agent reports, never estimated: the dollars and the tokens for Claude Code, the tokens alone for Codex.