Three places, every key optional: the machine's ~/.hunkbot/config.toml, the team's repository <owner>/.hunkbot on GitHub, and the repository's own .hunkbot.toml at its root.
The Machine's File
finder
claude
The finders' agent: claude or codex.
finder_model
""
The finders' model, as the agent names it; empty for its own default.
verifier
the other agent
The verifier's agent. Left out: the finders' other agent, the finders' own where it is not installed.
verifier_model
""
The verifier's model.
concurrency
4
How many passes run at once.
unit_lines
1500
The most changed lines a unit holds.
max_comments
25
The most inline comments one review posts; the rest go in its body.
post_as
none
The GitHub account reviews are posted as, signed in to gh beside yours. Left out: yours.
app_id
none
Hunkbot's GitHub App: its App ID.
app_key
none
The App's private key file (~/ for the home folder). Both set, the App posts in place of post_as.
A key Hunkbot does not know is an error. Codex as the finder has not yet been tried on real pull requests.
The Repository's File
exclude
globs
Files left out of every review: * within a folder, ** across folders, ? one character.
rules
text
What the reviewers look at and what they ignore, in the project's words. 16,000 characters at most; the rest is cut and said cut.
precedents
list
What is not a fault here, each with its reason: given to the finders and the verifier, never raised.
gate
severity
A confirmed finding at or above it blocks the review (exit 1), where --gate is not given.
authors
logins
Only these accounts' pull requests are reviewed; every account's where it is empty.
skip_authors
logins
These accounts' pull requests are never reviewed.
The Team's Repository
A repository's owner on GitHub keeps Hunkbot's configuration for all of its repositories in one repository, <owner>/.hunkbot, private if the owner chooses. A review reads the owner's repository, never the reviewer's own, so a pull request gets the same review on any machine. hunkbot reads it from its default branch at the start of each review. Where it does not exist, the review reads the repository's own file alone.
The repository's .hunkbot.toml is read over the team's hunkbot.toml: its lists are added to the team's, its rules come after the team's, and its bars (gate, withhold_approval, request_changes) replace the team's.
A review skill
skills/<name>/SKILL.md is an agent skill's file. Its body is the brief of a finder of the team's own angle. That finder reads each unit the skill names, with the same read-only tools as Hunkbot's two finders, and what it raises goes through the same checks by code and the same verifier on another model. hunkbot reads four keys of its front matter and lets the other keys of an agent skill pass:
name
text
Its folder's name: lowercase letters, digits and -.
description
text
One sentence of what it looks for.
paths
globs
The files it reads: a unit holding one of them. Every unit where it names none.
run
always
always, or asked: run only by hunkbot <pull request> --skill <name>.
A skill over 16,000 characters, or one whose front matter cannot be read, is left out of the reviews, and each review names it with the reason. The skill's text is quoted to its finder as the team's words: it says what to look for, never what else to do.
Learnings
What a person teaches Hunkbot in a reply on its comment is committed to learnings/<repository>.jsonl, with your gh, when that person has write access to the reviewed repository. Otherwise it stays on the machine that ran hunkbot respond, and respond says so.
Make it and check it
Read From the Base Branch
.hunkbot.toml is read from the pull request's base branch, never from the pull request: a pull request cannot loosen its own review. A file that cannot be read stops the review and says why. The rules are quoted to the reviewers as the project's, as data.
GitHub's logins in authors and skip_authors are compared without their case.
See What Is Set
hunkbot config prints the machine's file and what it holds, its defaults filled in.