# Hunkbot Docs > Hunkbot reviews a GitHub pull request and posts only what it could check: every part of the change read by two finders, every finding checked by code against the code, then verified by another model, before a person reads it. Every page is Markdown at its address plus `.md`. Every page in one file is at https://docs.hunkbot.com/llms-full.txt. What Hunkbot is, in short, is at https://hunkbot.com/llms.txt. To install Hunkbot and review a pull request, an AI coding agent should follow https://hunkbot.com/start.md. --- Source: https://docs.hunkbot.com/introduction.md # Introduction Hunkbot reviews a GitHub pull request and posts only what it could check. Every finding is checked by code against the code, then verified by another model, before a person reads it. - [Quickstart](/quickstart) - [CLI Reference](/cli) ## Start Here - [Quickstart](/quickstart): From nothing to a review posted on a pull request. - [Review a Pull Request](/review-a-pull-request): Name a pull request, run the review, read the verdict. - [Verification](/verification): How another model tries to disprove each finding. - [Post a Review](/post-a-review): The summary and the confirmed findings, on the pull request. - [Configuration](/configuration): The machine's config.toml and the repository's .hunkbot.toml. - [The Skill](/skill): Ask Claude Code or Codex for a review in your own words. ## What It Promises - **Nothing claimed past what was read.** Every part of the change is answered for. A part left unread makes the review **incomplete**, exit code 2. - **Every finding checked by code** before a person reads it: its quote found in the code, its line on the change, duplicates merged. - **Few findings, each worth reading.** Each is verified in a fresh context by a pass that tries to disprove it. What was dropped is kept with why. - **The same review whichever agent runs it.** The exact parts are Rust, the same for Claude Code and Codex. - **A finding is checked by another model** than the one that raised it. - **Its cost measured:** each review says what each pass cost, as the agent reports it. ## Quick Example Install the skill once. Then ask your agent for a review, or run it from the terminal inside the repository. ```text review PR 4332 with hunkbot ``` ```text review PR 4332 with hunkbot ``` ```sh hunkbot skills install hunkbot 4332 hunkbot post 4332 ``` ## Next Steps - [Install Hunkbot](/install) and check the machine with [doctor](/doctor). - Read [how a review runs](/how-a-review-runs), step by step. - Learn what a [finding](/findings) holds and what its state means. - Post as [Hunkbot's GitHub App](/github-app), a bot account, or yourself. - Every command and flag is in the [CLI Reference](/cli). --- Source: https://docs.hunkbot.com/quickstart.md # Quickstart From nothing to a review posted on a pull request: install Hunkbot, sign in to gh, check the agents, install the skill, review, post. ## Before You Start - A Mac. Hunkbot is built and tried on macOS (arm64); Linux is planned. - **git**, and **gh** signed in to GitHub. - **Claude Code**, installed and signed in: it runs the finders. - **Codex**, installed and signed in, optional: it verifies the findings. Without it, Claude Code verifies in a fresh context. ## Install Hunkbot Today Hunkbot is built from its repository and installed in `~/.local/bin`, which must be on the `PATH`. See [Install](/install). ```sh cargo build -p hunkbot --profile dist install -m 755 target/dist/hunkbot ~/.local/bin/hunkbot ``` ## Sign In and Check Sign in to gh, then let `hunkbot doctor` say what is missing. Each failing check names the command that tells how to fix it. ```sh gh auth login hunkbot doctor ``` ## Install the Skill The skill lets Claude Code and Codex run Hunkbot when you ask for a review. The install says its plan first. ```sh hunkbot skills install ``` ## Review a Pull Request Ask your agent, "review PR 4332 with hunkbot", or run it yourself. A review takes minutes. It prints its progress, then the review in Markdown. ```sh hunkbot 4332 # inside its repository hunkbot https://github.com/acme/app/pull/4332 # anywhere ``` ## Post It Posting writes a summary comment and one GitHub review on the pull request, for the whole team to see. Only the confirmed findings are posted. See [Post a Review](/post-a-review). ```sh hunkbot post 4332 ``` --- Source: https://docs.hunkbot.com/review-a-pull-request.md # Review a Pull Request One command reviews a GitHub pull request whole, at its head, and says what it found and what it did not read. ## Name the Pull Request - `https://github.com/acme/app/pull/12` (address): Its address, from anywhere. - `acme/app#12` (owner/name#n): Its repository and number. - `12` (n): Its number, inside its repository. - `(nothing)` (default): The current branch's pull request. ## From Your Agent With [the skill](/skill) installed, ask Claude Code or Codex in your own words: "review PR 4332 with hunkbot", "hunkbot this PR". The agent runs the review, tells you the verdict and each confirmed finding, and asks before it posts. ## From the Terminal `hunkbot ` and `hunkbot review ` are the same command. Every flag is in [hunkbot review](/cli-review). ```sh hunkbot review acme/app#12 # review it hunkbot review 12 --gate major # exit 1 on a confirmed major or critical finding hunkbot review 12 --agent # the review as JSON, for an agent hunkbot review 12 --post # post it once done, without asking ``` ## Read the Result The review opens with its verdict and its counts in one line: how many findings are confirmed, possible and dropped, how many files were reviewed in how many units, and how many were left out. Then the finders' and the verifier's agents, what each cost, and the review's id. Then the findings, grouped as **Confirmed**, **Possible** and **Dropped**, each with its severity, its place, its title and its id. A review with parts unread lists them under **Not reviewed**; files left out are listed under **Left out**, each with why. > The review is kept whole in `~/.hunkbot/reviews/`. `hunkbot report` prints it again. ## Review an Earlier Commit `--at ` reviews the pull request as it was at a commit of its history, not at its head. It cannot be posted: `--at` and `--post` do not go together. --- Source: https://docs.hunkbot.com/how-a-review-runs.md # How a Review Runs 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 1. 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. 2. 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. 3. The guideline files (`CLAUDE.md`, `AGENTS.md`) of the folders the change touches, read from the base branch, and the repository's learnings. 4. Two **finders** a unit, in parallel, headless and read-only: one looks at the changed lines, one at what the change breaks around them. 5. 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. 6. One **verifier** a file, on another model, tries to disprove each finding. 7. 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. 8. 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](/findings#the-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](/incomplete-reviews). ## 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. --- Source: https://docs.hunkbot.com/findings.md # Findings A finding is a fault a finder raised and the checks by code kept. It says where, what goes wrong, and how to fix it. ## What a Finding Holds - `title`: The fix, in one imperative sentence ending with a period. - `problem`: What is wrong, naming the code. - `consequence`: The concrete steps from an input to the wrong result. - `fix`: What to change, precise enough to do without asking. - `guideline`: The exact sentence of the project's guidelines it breaks, where it rests on one. - `quote`: The lines it is about, as they are in the file at the head. - `confidence` (0 to 1): How sure the finder is that it is a real fault. ## Severity - `critical`: Data loss, a security hole, an outage on a common path. - `major`: A wrong result users or callers will meet. - `minor`: A wrong result on an edge, a contract weakened, a misleading doc. - `trivial`: Worth a line, harmless to leave. Posted as a nitpick. ## Category and Effort A finding has one of six categories: Functional Correctness, Data Integrity & Integration, Security & Privacy, Stability & Availability, Performance & Scalability, Maintainability & Code Quality. Its effort weighs what fixing it costs against what it gains: **quick win**, **heavy lift** or **low value**. ## States - `confirmed`: Kept by the checks and confirmed by the verifier. Only a confirmed finding is posted. - `possible`: Kept by the checks; the verifier did not decide, or did not read it. Told in the review, never posted. - `dropped`: Left out, with its reason: its file not in the change, its quote not in the file, its confidence under 0.3, or refuted by the verifier. ## The Fingerprint A finding's id is twelve hexadecimal digits of the SHA-256 of its category, its path and its quote, never its line. Code that moves is still the same finding, so it is never posted twice. Feedback names a finding by this id. ## Nitpicks and Outside the Diff A trivial confirmed finding is a **nitpick**: folded in the review's body under its file, not an inline comment. A finding on a line the change did not add is **outside the diff**: told in the review's body, never inline. --- Source: https://docs.hunkbot.com/verification.md # Verification Every finding the checks keep is read again by a verifier on another model, in a fresh context, that tries to disprove it. ## Another Model The verifier runs on the other agent installed: Codex for Claude Code's findings, Claude Code for Codex's. It reads one file's findings at a time, anonymous: it does not know who raised them. It reads the code itself and never adds a finding of its own. ## How It Decides - `confirmed`: It followed the steps the finding describes, and they hold. The finding is posted. - `refuted`: It points to the line that disproves it: a guard, a caller that never passes that input, a test. The finding is dropped. Doubt alone is not a refutation. - `unresolved`: It could neither confirm nor refute it. The finding stays possible, and is not posted. ## When Codex Is Missing Where the other agent is not installed, the verifier runs on the finders' own agent, in a fresh context. The review says so: "the same model: the other agent is not installed". `hunkbot doctor codex` gives the steps to install it. ## Choose the Verifier `verifier` and `verifier_model` in `~/.hunkbot/config.toml` set its agent and its model. Left out, it is the finders' other agent. See [Configuration](/configuration). --- Source: https://docs.hunkbot.com/incomplete-reviews.md # Incomplete Reviews A review never says it read what it did not. A part left unread makes it incomplete, exit code 2, and the review says which part and why. ## Exit Codes - `0` (passed): The review passed. - `1` (blocked): A confirmed finding at or above the gate (`--gate`, or `gate` in `.hunkbot.toml`). Also any error, said on a line starting `hunkbot:`. - `2` (incomplete): A part of the change was not reviewed. - `3` (not reviewed): The repository's `.hunkbot.toml` or the team's `hunkbot.toml` leaves out the pull request's author. ## What Was Not Reviewed Each unit must be said reviewed by both finders. Where one is not, the review lists it under **Not reviewed**, by its unit and angle, with one of two reasons: - `the finder failed`: The finder gave no answer. - `not said reviewed`: The finder answered but did not name the unit. A posted review says it too, at the head of its body: "Not reviewed, so this review is incomplete". ## Files Left Out Some files are not given to the finders. Each is listed under **Left out**, with its reason: - `binary`: A binary file. - `deleted`: A file the change deletes. - `lockfile`: `pnpm-lock.yaml`, `package-lock.json`, `yarn.lock`, `bun.lock`, `Cargo.lock`, `go.sum` and the like. - `secret`: `.env`, `.env.*`, `*.pem`, `*.key`. - `vendored or minified`: `*.min.js`, `*.min.css`, `*.map`, `node_modules/`, `vendor/`. - `generated`: `*.snap`, `*.gen.ts`, `*.generated.ts`, `generated/` and `__generated__/` folders. - `excluded by the configuration`: Matched by the `exclude` globs of the repository's `.hunkbot.toml` or the team's `hunkbot.toml`. ## Pull Requests Not Reviewed A repository's `.hunkbot.toml` can name whose pull requests it reviews (`authors`) and whose it never does (`skip_authors`). A pull request left out is said, with exit code 3, once the base branch's file is read and before any agent runs, so nothing is spent. `--any-author` reviews it anyway. ## Possible Findings A finding the verifier did not decide stays possible, with why: the verifier failed, the verifier said nothing of it, or it could not decide. A possible finding is told, never posted. --- Source: https://docs.hunkbot.com/post-a-review.md # Post a Review Posting puts the review on the pull request: one summary comment and one GitHub review with the confirmed findings. ## Post `hunkbot post` posts the last review of a pull request. `hunkbot review --post` posts it once done, without asking. Through the skill, your agent asks you first: a post is for the whole team to see. ```sh hunkbot post 12 hunkbot post 12 --review 20261124T120000Z # one review by its id ``` ## What Is Posted - **The summary:** one comment, written over by later reviews. A walkthrough, the changes grouped, a sequence diagram where a flow changed, the review's effort and the merge's risk. - **One GitHub review**, as a comment: it never approves and never requests changes. - **The confirmed findings inline**, on the lines the change added, at most 25 (`max_comments`); the rest go in its body. - **In the review's body:** the nitpicks and the findings outside the diff, folded by file, one prompt to fix them all, and what was reviewed. ## An Inline Comment Its labels (severity, category, effort), its title as the fix, what is wrong and what it causes, the fix, the guideline quoted where it rests on one, the verifier's word, and a prompt your agent can follow to fix it. It ends by asking for a reply or a ๐Ÿ‘ or ๐Ÿ‘Ž. ## Never Twice Each comment carries a hidden marker with its finding's id. A finding already on the pull request is not posted again: "Nothing new to post". A review with nothing confirmed posts no empty review; the summary says "No actionable comments were generated in the recent review." ## As Whom Hunkbot posts as its GitHub App where the App's key is set, else as the account `post_as` names, else as you. See [GitHub App](/github-app). --- Source: https://docs.hunkbot.com/github-app.md # GitHub App A review is posted as Hunkbot's GitHub App, as a bot account you sign in, or under your own account, in that order. ## Three Ways to Post - `app_id + app_key` (first): Posted as the App, `hunkbot-app[bot]`, with no seat taken in an organization. - `post_as` (second): Posted as the GitHub account it names, signed in to gh beside yours. - `(neither)` (default): Posted under gh's active account: yours. ## The App With both keys set in `~/.hunkbot/config.toml`, the App's private key signs a token, and a token of the App's installation is made for each post and each answer. ```toml app_id = "" app_key = "~/.hunkbot/hunkbot-review.pem" ``` > The App's private key is kept on Hunkbot's makers' machines. A machine without it posts as `post_as`, or as you. The service that will hold the key, so anyone on a team can post as the App, is planned, not built. ## A Bot Account `hunkbot login` reads a GitHub account's token from standard input, signs it in to gh beside your own account, and sets `post_as` to it. Your account stays the active one. The bot account needs read access to the repositories it reviews. ```sh hunkbot login < hunkbot-token.txt ``` `hunkbot doctor bot` says whether the account set can post, and the steps where it cannot. ## Your Own Account With neither set, the review is posted under gh's active account. Nothing else is needed. --- Source: https://docs.hunkbot.com/replies.md # Replies Reply on a Hunkbot comment, and Hunkbot checks your reply against the code, answers in the thread, and resolves it where the fault is gone. ## Reply on a Comment - `Fixed in `: you fixed it. - `Partly fixed: `: you fixed part of it, on purpose. - `Won't fix: `: it is not a fault here, or not worth fixing. ## Answer the Replies `hunkbot respond` reads every thread on Hunkbot's comments whose last word is a person's. It checks the head out, and a pass checks each reply against the code at the pull request's head. ```sh hunkbot respond 12 ``` ## Outcomes - `addressed`: The code shows the fault is gone. The thread is resolved, the comment marked addressed. - `withdrawn`: Your reason holds once the code is read: the finding was wrong. Hunkbot says so, and resolves the thread. - `not addressed`: The fault still stands. Hunkbot says exactly what is left, with the line. - `answered`: A question, or a word that needs an answer but no verdict. ## Learnings Where a reply teaches something about the repository (a design choice, a convention, a guarantee), it is kept as a learning in `~/.hunkbot/learnings/` and given to that repository's later reviews. Each reply is counted as [feedback](/feedback) too. --- Source: https://docs.hunkbot.com/feedback.md # Feedback Which findings helped, which were wrong, and which faults a review missed. Given where the review is read, kept on your machine. ## On the Pull Request - ๐Ÿ‘ or ๐Ÿ‘Ž on a Hunkbot comment: useful or wrong. - A reply `wrong: why`, `nit: why`, `known: why` or `useful`. - A comment `hunkbot missed: : ` for a fault the review missed. ## On the Command Line ```sh hunkbot feedback give 3fa2c1d09e4b --wrong --note "the caller checks it" hunkbot feedback missed 12 src/claims.ts:88 "the retry is never cleared" ``` A finding is judged by its id: `--useful`, `--wrong`, `--nit` or `--known`, one of them. ## Read It Back `hunkbot feedback sync` reads the team's reactions, replies and `hunkbot missed:` comments from the pull request into `~/.hunkbot/feedback.jsonl`, each once. ```sh hunkbot feedback sync 12 ``` ## Send It to Hunkbot's Makers `hunkbot feedback export` prints everything kept, with the findings it judged, as JSON lines. `--no-code` leaves the code out. Nothing leaves the machine on its own. --- Source: https://docs.hunkbot.com/install.md # Install Hunkbot is one binary. Today it is built from its repository on a Mac; a release others can install from npm is planned. ## What You Need - `git`: Cloning and checking out the pull request. - `gh` (signed in): Reading and posting on pull requests. - `claude` (signed in): Claude Code: the finders, and the verifier where Codex is not installed. - `codex` (optional): Codex, signed in: the verifier of another model. - `cargo`: Rust, stable, to build Hunkbot. ## Build and Install From the repository, build the binary as it ships and install it in `~/.local/bin`, which must be on the `PATH`. Then install the skill. ```sh cargo build -p hunkbot --profile dist install -m 755 target/dist/hunkbot ~/.local/bin/hunkbot hunkbot skills install hunkbot doctor ``` ## Update Build and install again, then run `hunkbot skills update`. The skill is carried inside the binary, so the two are always one version. ## Where It Runs Built and tried on macOS (arm64). Linux is planned, and so is npm. `hunkbot --version` says the version installed. --- Source: https://docs.hunkbot.com/configuration.md # Configuration Three places, every key optional: the machine's `~/.hunkbot/config.toml`, the team's repository `/.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`. ```toml finder = "claude" finder_model = "" verifier = "codex" verifier_model = "" concurrency = 4 unit_lines = 1500 max_comments = 25 ``` > 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. ```toml exclude = ["apps/web/public/**", "**/*.snap"] rules = """ Money is in integer cents. Every query is scoped by tenant. """ precedents = [ "A telemetry call that swallows its error is on purpose.", ] gate = "major" authors = ["lead-dev"] skip_authors = ["dependabot[bot]"] ``` ## The Team's Repository A repository's owner on GitHub keeps Hunkbot's configuration for all of its repositories in one repository, `/.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. ```text hunkbot.toml the team's defaults skills//SKILL.md a review skill skills//evals// its cases learnings/.jsonl what the team taught ``` 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//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 --skill `. ```text --- name: security-assessment description: Access checks, secrets, injection, and what crosses a trust boundary. paths: ["apps/api/**", "packages/db/**"] run: always --- Read the change as someone who wants to misuse it. ... ``` > 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/.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 ```sh hunkbot team init acme # what would be made, nothing made hunkbot team init acme --yes # acme/.hunkbot, private, with two review skills to start from hunkbot team show acme # what the reviews read of it, and what they leave out hunkbot eval --skill skills/security-assessment # a skill's cases, run for real ``` ## 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. --- Source: https://docs.hunkbot.com/hunkbot-home.md # The Hunkbot Folder Everything Hunkbot keeps is in `~/.hunkbot`, or in `HUNKBOT_HOME` where it is set. Its folders are readable by their owner alone. ## The Layout ```text config.toml the configuration repos/// a blobless clone of each repository reviewed checkouts///pr-/ the head, where the agents read; removed once read reviews///pr-// each review, kept whole feedback.jsonl every judgment and every fault missed learnings//.jsonl what people taught, given to later reviews skills.json what the skill's install wrote, for uninstall ``` ## A Review's Folder - `change.json`: The change: its files, hunks and units, and the files left out. - `finders/-.json`: Each finder's answer and cost, or its error. - `verifier/.json`: Each verifier's answer and cost, or its error. - `review.json`: The review whole: the findings with their states and reasons, the gaps, the costs, the verdict. - `posted.json`: Where it was posted. A review's id is the time it started, in UTC: `20261124T120000Z`. ## Clones and Checkouts A repository is cloned once and kept for its next review. One review at a time fetches into a clone. A review removes its checkout once done; a checkout left by a review stopped half way is removed by [hunkbot clean](/clean). --- Source: https://docs.hunkbot.com/doctor.md # Doctor `hunkbot doctor` says whether a review can run on this machine, and, for a check named, what is wrong and the steps that fix it. ## Every Check One line a check: `ok`, or `no` with what is wrong and the command that tells how to fix it. Then the Hunkbot folder in use. ```text ok git ok gh ok claude no codex: . Fix: hunkbot doctor codex no bot: . Fix: hunkbot doctor bot home /Users/you/.hunkbot ``` It exits 1 when a review cannot run. Codex and the bot are optional: a review runs without them. ## One Check - `git`: git installed, and it starts. - `gh`: gh installed, and signed in to GitHub. - `claude`: Claude Code installed, and it starts: the finders run on it. - `codex` (optional): Codex installed, and it knows every feature Hunkbot turns off for its passes. - `bot` (optional): The App or the `post_as` account, able to post. With a check named, it says what is wrong (a broken install link on the `PATH`, for one) and the steps that fix it, written for your agent. ## Ask Your Agent Ask: "run hunkbot doctor codex and follow its steps". A step that signs you in is yours to do: the agent tells you the command, and never signs in for you. --- Source: https://docs.hunkbot.com/clean.md # Clean `hunkbot clean` frees the room reviews left on the disk: the checkouts left behind, and with `--repos` the clones. ## What Is Removed A review and `hunkbot respond` remove their checkout once done. `hunkbot clean` removes the checkouts a review stopped half way left in `~/.hunkbot/checkouts`. ## Look First ```sh hunkbot clean --dry-run # what would be removed, and its size hunkbot clean # the checkouts left behind, removed hunkbot clean --repos # the clones in ~/.hunkbot/repos too ``` ## The Clones A clone is kept so the next review of its repository only fetches. Removed with `--repos`, it is cloned again by that next review. ## What Is Never Removed - A checkout a review is reading now, and its clone: said "in use, kept". - The reviews and the feedback: they are what `report`, `post` and `feedback` read. --- Source: https://docs.hunkbot.com/cli.md # CLI Reference Every command of `hunkbot`, the one binary that reviews a pull request, posts it, answers its replies and keeps the feedback. ```sh hunkbot [pull request] [flags] hunkbot [arguments] [flags] ``` ## Usage `hunkbot ` reviews it, with the flags of [hunkbot review](/cli-review). Every other command is named first. Progress is said on standard error; the result is printed on standard output. - `-h, --help`: The command's usage, flags and examples. - `-V, --version`: The version installed. ## Naming a Pull Request - `https://github.com/acme/app/pull/12` (address): Its address, from anywhere. - `acme/app#12` (owner/name#n): Its repository and its number. - `12` (n): Its number, inside its repository. - `(nothing)` (default): The current branch's pull request, where the command takes one by default. ## Exit Codes - `0`: Done: the review passed, or `--help` and `--version`. - `1`: Blocked: a confirmed finding at or above `--gate`. Also a command that failed, its error on a line starting `hunkbot:`. - `2`: Incomplete: a part of the change was not reviewed. - `3`: Not reviewed: the repository's `.hunkbot.toml` or the team's `hunkbot.toml` leaves out the pull request's author. - `64`: The command line was used wrongly: a flag unknown, or two that cannot go together. - `69`: The command is not built yet; it says the version it comes in. - `77`: Not signed in to Hunkbot, or its sign-in refused by the service: run `hunkbot auth login`, then the command again. Nothing was done. ## Environment - `HUNKBOT_HOME` (~/.hunkbot): Where Hunkbot keeps its configuration, clones, checkouts, reviews and feedback. - `CLAUDE_CONFIG_DIR` (optional): A Claude Code config folder the skill is linked into, beside `~/.claude`. --- Source: https://docs.hunkbot.com/cli-review.md # hunkbot review Reviews a pull request whole: its head checked out, two finders a unit, every finding checked by code and verified by another model. `hunkbot ` does the same. ```sh hunkbot [pull request] [flags] hunkbot review [pull request] [flags] ``` ## Arguments - `[pull request]` (optional): The pull request: its address, `/#`, or `` inside its repository. The current branch's by default. ## Flags - `--agent` (bool): The review as JSON, for an agent, instead of Markdown for a person. - `--gate ` (critical | major | minor | trivial): Exit 1 on a confirmed finding at or above it. `high`, `medium` and `low` stand for major, minor and trivial. Without it, the repository's `gate`. - `--post` (bool): Post it on the pull request once done, without asking. - `--any-author` (bool): Review it whoever opened it, past the repository's `authors` and `skip_authors`. - `--at ` (commit): Review the pull request as it was at this commit of its history, not at its head. Cannot go with `--post`. ## Output Progress on standard error, then the review in Markdown: the verdict and the counts (confirmed, possible, dropped; files, units, left out), the agents and what each cost, the review's id, then the findings by state, what was not reviewed and the files left out. With `--agent`, the review whole as JSON. Exit 0 passed, 1 blocked, 2 incomplete, 3 not reviewed. See [Incomplete Reviews](/incomplete-reviews). ## Examples ```sh hunkbot https://github.com/acme/app/pull/12 hunkbot review acme/app#12 hunkbot review 12 --gate high hunkbot review 12 --agent hunkbot review 12 --post hunkbot review 12 --any-author hunkbot review 12 --at 3fa2c1d ``` --- Source: https://docs.hunkbot.com/cli-report.md # hunkbot report Prints the last review of a pull request again, or one by its id. ```sh hunkbot report [pull request] [--review ] [--json] ``` ## Arguments - `[pull request]` (optional): The pull request: its address, `/#`, or `` inside its repository. The current branch's by default. ## Flags - `--review ` (id): A review by its id, not the last one. An id is the time the review started: `20261124T120000Z`. - `--json` (bool): The review as JSON, not Markdown. ## Output The review as [hunkbot review](/cli-review) printed it, read from `~/.hunkbot/reviews/`. No agent runs. ## Examples ```sh hunkbot report 12 hunkbot report 12 --json hunkbot report 12 --review 20261124T120000Z ``` --- Source: https://docs.hunkbot.com/cli-post.md # hunkbot post Posts the last review on its pull request: the summary comment and one GitHub review with the confirmed findings. ```sh hunkbot post [pull request] [--review ] ``` ## Arguments - `[pull request]` (optional): The pull request: its address, `/#`, or `` inside its repository. The current branch's by default. ## Flags - `--review ` (id): Post a review by its id, not the last one. ## Output - `Summary posted as .` once the summary comment is written. - `Posted as : ` with the review's address, kept in `posted.json`. - `No actionable comments: the summary says so.` where nothing was confirmed. - `Nothing new to post: โ€ฆ` where every finding is on the pull request already. It posts as Hunkbot's GitHub App where `app_id` and `app_key` are set, else as `post_as`, else as you. At most `max_comments` inline comments (25); the rest go in the review's body. See [GitHub App](/github-app). ## Examples ```sh hunkbot post 12 hunkbot post acme/app#12 --review 20261124T120000Z ``` --- Source: https://docs.hunkbot.com/cli-respond.md # hunkbot respond Answers the replies left on Hunkbot's comments: each checked against the code at the pull request's head, the thread resolved where the fault is gone or the finding was wrong. ```sh hunkbot respond [pull request] ``` ## Arguments - `[pull request]` (optional): The pull request: its address, `/#`, or `` inside its repository. The current branch's by default. ## Output One line a thread, its place and its outcome: `addressed`, `withdrawn`, `not addressed` or `answered`. Then how many were answered, how many kept as feedback, and what the passes cost. `No reply is waiting on hunkbot.` where there is none. What a reply taught is kept in `~/.hunkbot/learnings/` for the repository's next reviews. See [Replies](/replies). ## Examples ```sh hunkbot respond 12 ``` --- Source: https://docs.hunkbot.com/cli-login.md # hunkbot login Signs a GitHub account's token in to gh beside your own, and posts the reviews as that account. ```sh hunkbot login < token.txt ``` ## Input The account's token, on standard input. It takes no argument and no flag. ## Output `Signed in to gh as ; reviews are posted as .` and, where you were signed in, `Your own account, , stays the active one.` `~/.hunkbot/config.toml` gets `post_as`. > The account needs read access to the repositories it reviews. Where `app_id` and `app_key` are set, the App posts in its place. ## Examples ```sh hunkbot login < hunkbot-token.txt pbpaste | hunkbot login ``` --- Source: https://docs.hunkbot.com/cli-feedback-give.md # hunkbot feedback give Judges one finding, by its id: useful, wrong, a nit, or known already. ```sh hunkbot feedback give --useful|--wrong|--nit|--known [--note ] ``` ## Arguments - `` (required): The finding's id: twelve hexadecimal digits, as the review prints it. ## Flags - `--useful` (one of four): It helped. - `--wrong` (one of four): It is not a fault. - `--nit` (one of four): A nit. - `--known` (one of four): Known already. - `--note ` (""): Why, in your words. ## Output `Kept, thank you.` The judgment is added to `~/.hunkbot/feedback.jsonl`. A finding no review kept raised is an error. ## Examples ```sh hunkbot feedback give 3fa2c1d09e4b --useful hunkbot feedback give 3fa2c1d09e4b --wrong --note "the caller checks it" ``` --- Source: https://docs.hunkbot.com/cli-feedback-missed.md # hunkbot feedback missed Says a fault the review of a pull request missed. ```sh hunkbot feedback missed : ``` ## Arguments - `` (required): Its address, `/#`, or `` inside its repository. - `:` (required): Where the fault is. - `` (required): What was missed, in your words. ## Output `Kept: a fault this review missed.` It is added to `~/.hunkbot/feedback.jsonl`. ## Examples ```sh hunkbot feedback missed 12 src/claims.ts:88 "the retry is never cleared" ``` --- Source: https://docs.hunkbot.com/cli-feedback-sync.md # hunkbot feedback sync Reads the reactions and replies the team left on Hunkbot's comments, and the faults they said missed. ```sh hunkbot feedback sync [pull request] ``` ## Arguments - `[pull request]` (optional): The pull request: its address, `/#`, or `` inside its repository. The current branch's by default. ## What It Reads - `๐Ÿ‘`: On a Hunkbot comment: useful. - `๐Ÿ‘Ž`: On a Hunkbot comment: wrong. - `wrong: why`: A reply on a Hunkbot comment; `nit: why`, `known: why` and `useful` too. - `hunkbot missed: : `: A comment on the pull request: a fault the review missed. ## Output ` said on the pull request, new kept.` Each is kept once in `~/.hunkbot/feedback.jsonl`, however often it is read. ## Examples ```sh hunkbot feedback sync 12 ``` --- Source: https://docs.hunkbot.com/cli-feedback-export.md # hunkbot feedback export Prints all the feedback kept, with the findings it judged, as JSON lines for Hunkbot's makers. ```sh hunkbot feedback export [--no-code] ``` ## Flags - `--no-code` (bool): Leave the code quoted out. ## Output One JSON line an entry, on standard output. Nothing is sent: you choose what to share. ## Examples ```sh hunkbot feedback export --no-code > feedback.jsonl ``` --- Source: https://docs.hunkbot.com/cli-skills.md # hunkbot skills Installs, updates or uninstalls Hunkbot's skill for the agents on this machine. The plan is said first. ```sh hunkbot skills install [--agent | --confirm ] hunkbot skills update [--agent | --confirm ] hunkbot skills uninstall ``` ## Arguments - `install`: Install the skill where it is missing, and update it where it is. - `update`: Update the skill where it is installed. - `uninstall`: Remove exactly what Hunkbot installed. ## Flags - `--agent` (bool): Print the plan for an agent to show the person, and change nothing. Cannot go with `--confirm`. - `--confirm ` (hash): Apply the plan shown, by its hash, once the person said yes. A plan that changed since is refused. ## Output Each step of the plan, one a line: a file written, a file set beside one you edited, a link made. Then `Installed.`, or with `--agent` the plan's hash and the command to apply it. `hunkbot's skill is installed and current.` where there is nothing to do. `uninstall` prints each path it removed. ## Examples ```sh hunkbot skills install hunkbot skills install --agent hunkbot skills install --confirm hunkbot skills uninstall ``` --- Source: https://docs.hunkbot.com/cli-config.md # hunkbot config Prints the configuration's file and what it holds, its defaults filled in. ```sh hunkbot config ``` ## Output The file's path as a comment, then its keys in TOML. Every key is in [Configuration](/configuration). ```toml # /Users/you/.hunkbot/config.toml finder = "claude" finder_model = "" verifier_model = "" concurrency = 4 unit_lines = 1500 max_comments = 25 ``` ## Examples ```sh hunkbot config ``` --- Source: https://docs.hunkbot.com/cli-doctor.md # hunkbot doctor Says whether a review can run here; with a check named, what is wrong and the steps that fix it, for your agent. ```sh hunkbot doctor [git|gh|claude|codex|bot] ``` ## Arguments - `[check]` (git | gh | claude | codex | bot): One check. Left out, every check. ## Output Every check, one line each: `ok `, or `no : . Fix: hunkbot doctor `. Then `home `. It exits 1 where a review cannot run; `codex` and `bot` are optional. With a check named: ` is ready.`, exit 0, or the steps that fix it, exit 1. A step that signs you in is left to you. ## Examples ```sh hunkbot doctor hunkbot doctor codex hunkbot doctor bot ``` --- Source: https://docs.hunkbot.com/cli-clean.md # hunkbot clean Removes the pull requests' checkouts a review left in `~/.hunkbot`; with `--repos`, the clones too. ```sh hunkbot clean [--repos] [--dry-run] ``` ## Flags - `--repos` (bool): The repositories' clones too, cloned again by their next review. - `--dry-run` (bool): Say what would be removed, and remove nothing. ## Output One line a folder, its kind, its name and its size, or `in use, kept`. Then how many checkouts and clones were removed and what was freed. `Nothing to clean.` where there is none. > A checkout a review is reading is never removed, nor its clone. The reviews and the feedback are never removed. ## Examples ```sh hunkbot clean --dry-run hunkbot clean hunkbot clean --repos ``` --- Source: https://docs.hunkbot.com/cli-eval.md # hunkbot eval Runs Hunkbot's evals: each snippet made a pull request, reviewed for real and scored. For Hunkbot's makers, inside Hunkbot's repository. ```sh hunkbot eval [snippet] [--dir ] ``` ## Arguments - `[snippet]` (optional): One snippet, by its name. All of them by default. ## Flags - `--dir ` (packages/cli/evals): The evals' folder. ## Output One JSON line a snippet, with its score. Exit 0 where every snippet passed, 1 where one did not. Each run's scratch is kept in `~/.hunkbot/evals/`. ## Examples ```sh hunkbot eval hunkbot eval off-by-one ``` --- Source: https://docs.hunkbot.com/cli-change.md # hunkbot change The change as JSON, alone. Planned for 0.2, not built: today it says so and exits 69. ```sh hunkbot change ``` ## Planned The change as JSON, alone: its files and hunks, its units, and the files left out with why, as a review reads it. --- Source: https://docs.hunkbot.com/cli-context.md # hunkbot context The packet a finder reads for one unit. Planned for 0.2, not built: today it says so and exits 69. ```sh hunkbot context ``` ## Planned The packet a finder reads for one unit: its hunks with their enclosing symbols, callers and tests, the other places of rare names, the rules that apply, and a risk score. `--detail minimal` or `standard`. --- Source: https://docs.hunkbot.com/cli-lint.md # hunkbot lint The project's own linters, run on the change. Planned for 0.2, not built: today it says so and exits 69. ```sh hunkbot lint ``` ## Planned The project's own linters found and run on the change, their results on the changed lines given to the checks as known. A model's finding that repeats one is dropped. --- Source: https://docs.hunkbot.com/cli-completion.md # hunkbot completion A shell's completion script. Planned for 0.2, not built: today it says so and exits 69. ```sh hunkbot completion ``` ## Planned A shell's completion script, printed: zsh, bash or fish. --- Source: https://docs.hunkbot.com/cli-pullrequest.md # hunkbot pullrequest What was already said on a pull request. Planned for 0.3, not built: today it says so and exits 69. ```sh hunkbot pullrequest ``` ## Planned What was already said on a pull request, its threads open and resolved, as JSON (`--threads`). --- Source: https://docs.hunkbot.com/cli-stats.md # hunkbot stats What the reviews kept found, and what they cost. Planned for 0.4, not built: today it says so and exits 69. ```sh hunkbot stats ``` ## Planned What the reviews kept on the machine found and what they cost, and what the feedback says of each kind of finding: useful, wrong, nit, known, missed. --- Source: https://docs.hunkbot.com/skill.md # The Skill The skill lets Claude Code and Codex review a pull request with Hunkbot when you ask. It runs `hunkbot`, tells you what it found, and posts on your word. - [Install the Skill](/skill-install) - [What It Does](/skill-what-it-does) ## What It Is A skill your agent reads when you ask for a review with Hunkbot. It does not review the code itself: it runs `hunkbot review`, which does every exact part in Rust and runs the finders and the verifier on their own. Then it tells you, in your language, the verdict and each confirmed finding, and how many are possible and dropped. It never adds findings of its own. ## Named hunkbot The skill is named `hunkbot`, never `code-review`: a personal skill of that name would replace Claude Code's own `/code-review`. ## Carried Inside the Binary `hunkbot skills install` writes the skill from the binary itself, so the binary and its skill are always one version. After an update of Hunkbot, `hunkbot skills update` brings the skill in step. ## Ask for a Review ```text review PR 4332 with hunkbot ``` ```text review PR 4332 with hunkbot ``` --- Source: https://docs.hunkbot.com/skill-install.md # Install the Skill One command installs the skill for the agents on this machine. The plan is said first, and a skill you edited is never overwritten. ## Install ```sh hunkbot skills install ``` - The skill is written once, to `~/.agents/skills/hunkbot`, where Codex reads it. - It is linked into each Claude Code config folder found: `~/.claude/skills/hunkbot`, `$CLAUDE_CONFIG_DIR/skills/hunkbot` where it is set, and each Claude Code account folder Plugate keeps. - What was written is kept in `~/.hunkbot/skills.json`. ## The Plan Each step is said before it is done: a file written, a file set beside one you edited, a link made. An agent installing for you shows you the plan first, and applies that exact plan once you say yes. ```sh hunkbot skills install --agent # the plan and its hash; nothing changed hunkbot skills install --confirm # that plan, applied ``` A plan that changed since it was shown is refused: "the plan changed since it was shown โ€ฆ show it again". ## An Edited Skill A skill file you edited is never overwritten. Its hash is checked against what Hunkbot wrote; where they differ, your file is kept and the new one is set beside it, as `SKILL.md.new`, for you to compare. ## Update ```sh hunkbot skills update ``` It takes the same `--agent` and `--confirm`. Where nothing is left to do: "Hunkbot's skill is installed and current." ## Uninstall ```sh hunkbot skills uninstall ``` It removes exactly what `skills.json` says was installed, and prints each path removed. Nothing else is touched. --- Source: https://docs.hunkbot.com/skill-claude-code.md # Claude Code Claude Code reads the skill from its skills folder and runs Hunkbot when you ask for a review with it. ## Where It Is `hunkbot skills install` links `~/.agents/skills/hunkbot` into `~/.claude/skills/hunkbot`, and into `$CLAUDE_CONFIG_DIR/skills/hunkbot` where that is set. One copy, so every config folder reads the same skill. ## Ask for a Review Ask in your own words, naming Hunkbot. Claude Code's own `/code-review` is a different command, and stays as it is. ```text review PR 4332 with hunkbot hunkbot this PR post the hunkbot review answer the replies on hunkbot's comments ``` ## No Permission Asked The skill allows `Bash(hunkbot *)`, so running Hunkbot asks for no permission. Posting still waits on your word: the skill asks before `hunkbot post`. ## The Finders Run Apart The review's passes are not your session's. Each runs as its own headless Claude Code (`claude -p`), read-only, with none of your settings, `CLAUDE.md`, skills or MCP servers. --- Source: https://docs.hunkbot.com/skill-codex.md # Codex Codex reads the skill from `~/.agents/skills/hunkbot` and runs Hunkbot when you ask for a review with it. ## Where It Is `hunkbot skills install` writes the skill to `~/.agents/skills/hunkbot`, the folder Codex reads skills from. Nothing else is needed for Codex. ## Ask for a Review ```text review PR 4332 with hunkbot hunkbot this PR ``` ## Codex as the Verifier Where Codex is installed, it verifies the findings Claude Code's finders raise: another model than the one that raised them. Its passes run as `codex exec`, in a read-only sandbox, ephemeral, with none of your `config.toml` or rules. `hunkbot doctor codex` says when your Codex does not know a feature Hunkbot turns off for its passes, and the steps that fix it. ## Codex as the Finder `finder = "codex"` in `~/.hunkbot/config.toml` runs the finders on Codex, and the verifier on Claude Code. It has not yet been tried on real pull requests. --- Source: https://docs.hunkbot.com/skill-what-it-does.md # What It Does The commands the skill runs, each a `hunkbot` command, and what it tells you after each. ## The Commands - `hunkbot review ` (on your ask): Runs the review, in the background where it can, and says it is running. A review takes minutes. - `hunkbot post ` (on your word): Asks first: a post is for the whole team to see. - `hunkbot respond ` (on your ask): Answers the replies on Hunkbot's comments, and tells you each thread's outcome. - `hunkbot doctor ` (when needed): Where Hunkbot cannot run, or Codex is missing: follows its steps, and leaves a sign-in to you. - `hunkbot clean --dry-run` (on your ask): Tells what would be removed and its size; `hunkbot clean` on your word. - `hunkbot feedback` (on your word): Asks which findings helped and which were wrong, and whether the review missed a fault, then keeps what you say. ## What It Tells You 1. The verdict. 2. Each confirmed finding: its severity, its place, its title, what goes wrong. 3. How many are possible, and how many dropped. It never adds findings of its own to Hunkbot's, and never restates a dropped one as real. ## When a Review Is Not Whole - `exit 2` (incomplete): It says which part was not reviewed, and never calls the review whole. - `exit 3` (not reviewed): It tells you whose pull requests the repository reviews, and runs again with `--any-author` only on your word. --- Source: https://docs.hunkbot.com/skill-safety.md # Safety A review reads a pull request's code and words without taking orders from them, on read-only agents you are already signed in to. ## The Repository's Text Is Data The code, its comments, the repository's rules and the pull request's words are quoted to the agents as data, never as instructions. A finder told by the code to do something ignores it, and raises the attempt as a finding. The guideline files and `.hunkbot.toml` are read from the base branch, never from the pull request: a pull request cannot loosen its own review. ## Read-Only Agents - `claude -p` (Claude Code): The tools `Read`, `Grep` and `Glob` alone; no MCP server, no settings, no session kept. - `codex exec` (Codex): A read-only sandbox, ephemeral. None of your `config.toml` or rules, not the checkout's `AGENTS.md`, no web search; connectors, plugins, hooks, other agents, the browser and the computer turned off. > One gap is known: Codex still reads its global `AGENTS.md` in `$CODEX_HOME`, measured on 2026-11-25. `hunkbot doctor codex` does not yet say when that file is there. ## No API Key Each pass runs on a command line you are already signed in to, on your own subscription. Hunkbot asks for no API key, and nothing leaves the machine on its own: feedback is shared only by `hunkbot feedback export`. ## Your Word First - The skill asks before it posts. - A sign-in is yours to do: the agent tells you the command, and never signs in for you. - The install says its plan first, never overwrites a skill you edited, and turns nothing new on unasked. --- Source: https://docs.hunkbot.com/changelog.md # Changelog New releases, improvements and fixes. ## 0.1.0 _Not published ยท New_ The MVP: a review of a GitHub pull request, whole, posted on it, and the team's feedback kept. ### The Review - `hunkbot `: its head checked out in `~/.hunkbot`, the repository cloned once, blobless; the change cut into units; two finders a unit (local, interfaces) on Claude Code, headless and read-only. - **Every finding checked by code:** its quote found at the head and its line moved there, its file in the change, duplicates merged by fingerprint. The survivors verified on Codex, or on Claude Code where Codex is not installed; a finding refuted only by a line. - **The review kept whole** and told in Markdown or JSON, with what each pass cost. Exit 0 passed, 1 blocked by `--gate`, 2 incomplete. - **Calibrated on replays of 11 real pull requests:** the finders hold nothing back, findings within two lines of one file are merged, and the verifier decides every finding from a confidence of 0.3. One it does not confirm is never posted. `review --at ` reviews a pull request as it was. - **The repository's guidelines and learnings:** the `CLAUDE.md` and `AGENTS.md` of the folders a change touches, read from the base branch, and what people taught earlier reviews, given to the finders and the verifier. - **A review reads the same on every machine, and a pull request cannot steer it:** Claude Code's passes load no settings, no `CLAUDE.md`, no skill and no MCP server; Codex's load none of your `config.toml` and rules, not the checkout's `AGENTS.md`, no web search, and none of the connectors, plugins, hooks or other agents. - **Reviews of one repository run side by side:** the clone held by one review at a time while it fetches and checks out, and two findings whose line ranges overlap or lie within two lines merged. ### The Repository - A repository's own `.hunkbot.toml`: files left out by glob, the project's rules and precedents given to the finders and the verifier, a gate. Read from the base branch, so a pull request cannot loosen its own review. - **Whose pull requests a repository reviews:** `authors` and `skip_authors`. A pull request left out is said, exit 3, before any agent runs, so nothing is spent; `--any-author` reviews it anyway. ### Posting - `hunkbot post`: one GitHub review, the confirmed findings on the lines the change added, the rest in its body; never the same finding twice. - **The review's words:** severities critical, major, minor, trivial; six categories; effort; each comment's labels, the verifier's word, a title that is the fix, the guideline quoted and a prompt for an agent. The body with nitpicks, findings outside the diff, one prompt to fix them all and what was reviewed. - **A summary comment:** a walkthrough, the changes grouped, a sequence diagram, the effort and the risk, written over by later reviews. A review with nothing to post says so at its head, and posts no empty review. - **Posting as Hunkbot's GitHub App** (`[bot]`, no seat taken in the organization): `app_id` and `app_key` in `~/.hunkbot/config.toml`. - `hunkbot login < token.txt`: a bot account's token signed in to gh beside yours, which stays active, and the reviews posted as it. ### Replies and Feedback - `hunkbot respond`: the replies on Hunkbot's comments checked against the code and answered, the thread resolved where addressed or withdrawn, the comment marked, what was taught kept. - **Feedback:** ๐Ÿ‘ or ๐Ÿ‘Ž and replies on Hunkbot's comments, and `hunkbot missed:` comments, read back by `hunkbot feedback sync`; `feedback give`, `feedback missed`, `feedback export`. ### Setup - `hunkbot skills install`: the skill for Claude Code and Codex, the plan shown first, an edited skill never overwritten. - `hunkbot clean`: a review and `hunkbot respond` remove their checkout once done; `clean` removes the checkouts a review stopped half way left, never one in use, and `--repos` the clones too; `--dry-run` says what would go and its size. - `hunkbot doctor`, and `hunkbot doctor ` saying what is wrong and the steps that fix it, for your agent to follow. `hunkbot config`. `hunkbot eval`: each snippet reviewed for real and scored. ## 0.0.0 _Not published_ The skeleton: the crate, and the whole command line's shape answering `--help` and `--version`, each command saying the version it comes in. No command was built yet. - **Its plan written whole:** the promises, how a review runs, every command by version, the exit codes, the MVP. - **A verifier of another model, by design:** the other agent installed checking the findings. - **Evals from the start:** the format of a snippet and the score a review gets on one; the first snippets, an off-by-one and a clean change.