Wachiman

The watchman's field guide

Features

Wachiman is an advisory AI code reviewer: it reads a change and posts findings, and it never approves, requests changes or blocks a merge. Each card names the release that shipped the feature, where the engine's changelog says so, and links the reference page for that release.

Stop 1 · flashlight

Review on your laptop

Shine a light on a branch before anyone else sees it. A local review posts nothing to GitHub.

Review a branch locally

wachiman local reviews the committed change of a branch in a clone on your machine, on your signed-in Claude account, and prints or writes the findings. It posts nothing and makes no GitHub request; the diff and the files the model reads still go to Anthropic through your claude.

Since 1.8.0 Reference at v1.24.0

Uncommitted changes

--working-tree reviews tracked changes that are not committed yet, staged or all of them, from a separate snapshot.

Since 1.11.0 Reference at v1.24.0

Sibling repositories

When your project is several repositories that work together, distributed-repo mode lets a review read the others that the change can break.

Since 1.18.0 Reference at v1.24.0

wachiman loop

One review round per call, with history on and a stop rule. The command never edits code: your coding agent fixes between rounds.

Since 1.13.0 Reference at v1.24.0

wachiman ask

Answers one question about the change local would review, with one call on your signed-in claude. It runs no review and makes no GitHub call.

Since 1.12.0 Reference at v1.24.0

Agent skills

Skills teach a coding agent such as Claude Code or Codex to run the local review and the loop for you. wachiman skills install copies them into your skills folders.

Since 1.9.0 Reference at v1.24.0

Run history

--history keeps a run’s findings on your laptop, labels findings against earlier runs and records your verdicts. wachiman history lists them and --forget deletes them.

Since 1.8.0 Reference at v1.24.0

wachiman status

Shows what your local runs kept and what they cost. It runs no model and sends nothing.

Since 1.11.0 Reference at v1.24.0

The local dashboard

wachiman dashboard writes one HTML file from your local history: cost, findings and how your loops went. It starts no server and makes no GitHub call.

Since 1.13.0 Reference at v1.24.0

Stop 2 · whistle

Review in pull requests

A whistle on the exact line, then it steps back. Findings are advice; the merge stays your call.

Findings on the line

Findings on commentable diff lines carry a severity, topic and confidence label. Information and findings outside the diff go in the review body.

Reference at v1.24.0

Reviews on open and push

The caller reviews when a PR opens, leaves draft or receives a push, subject to the workflow’s skip rules. A push waits push_debounce_seconds, 180 by default, before any model call. With the default command, the named operator can also use /wachiman review.

Reference at v1.24.0

Re-review what changed

Later reviews use the last complete, unscoped review as their starting point. A rebase with unchanged PR content moves the marker without a model call; if the previous change cannot be compared, the engine can fall back to reviewing the whole PR.

Since 1.4.0 Reference at v1.24.0

Follow up in threads

When the operator replies in a finding thread, a short run answers the threads waiting for an answer, once the head has been reviewed. Reviews that reach the model also read trusted replies. Wachiman never resolves a thread.

Since 1.5.0 Reference at v1.24.0

Ask a question in a comment

The named operator comments /wachiman followed by a question and gets the answer on the pull request.

Reference at v1.24.0

Patrol and detective modes

Patrol, the default, makes one review call per batch. Detective adds three more calls per batch and merges their findings, at about four times the cost.

Since 1.23.0 Reference at v1.24.0

Risk-ordered batches

Large changes are split into batches, with modules ordered by their riskiest file. Risk comes from file paths—a heuristic, not a prediction that the code is wrong.

Reference at v1.24.0

A coverage line

The first line of a review says whether everything was covered and names the files that were left out.

Reference at v1.24.0

Sibling call-site evidence

Each batch gets capped text-search excerpts showing other uses of symbols its added lines call. These are candidates for comparison: the search can miss aliases and renamed handlers, and does not prove a contract.

Since 1.4.0 Reference at v1.24.0

Confidence beside severity

Confidence describes how sure the model is; severity describes the consequence if it is right. The engine changes low-confidence Fix and Blocker findings to the question topic, keeping the severity and original wording.

Reference at v1.24.0

A priority word

Each label starts with Must, Should, Could or FYI, derived from severity, topic and confidence. The word says how much weight a finding carries, not whether to read it.

Since 1.17.0 Reference at v1.24.0

Opt-in review rules

Settings in .wachiman.yml turn on extra checks, each off unless you set it to true: the comment rule, rewritten assertions, the lockfile check and sibling conventions.

Since 1.20.0 Reference at v1.24.0

Path rules

A repository names the paths a person should always look at. The rules add to the built-in path heuristic and are read from the base commit.

Since 1.17.0 Reference at v1.24.0

Your repository’s review instructions

Add review focus in .github/wachiman.md, alongside root CLAUDE.md and AGENTS.md. Wachiman reads them from the PR’s base commit and asks the model to check flow and failure paths; these instructions guide the model rather than becoming enforced policy.

Reference at v1.24.0

Turn and time limits

Claude Code calls have configurable turn and wall-clock limits. A turn-limited batch can get one retry within budget; a timed-out call is killed and is not retried.

Since 1.4.0 Reference at v1.24.0

Read-only tools in Actions

The Claude Code workflow gives the agent Read, Glob and Grep, with no shell tool. The engine posts the comments; this configuration is not a sandbox, and the trusted-pusher requirement still applies.

Reference at v1.24.0

PR Confidence, in trial

Off by default. After a full review, a grade in the pull request description says whether the diff does what the title and body say. The engine checks the cited lines and decides the letter; wachiman local does not produce it.

Since 1.13.0 Reference at v1.24.0

Stop 3 · receipt

Cost and control

Review footers show what ran and what it cost. Budgets set a limit, though Claude Code’s cap is soft and can be exceeded, and the review says which files it left out.

Budgets with visible gaps

Set a budget for each review and each batch call; retries spend from the same review budget. The first line flags partial coverage and names files left out; Claude Code’s spending cap is soft and can be exceeded.

Reference at v1.24.0

A ceiling per pull request

All automatic runs on one pull request share auto_budget_usd, $6 by default, so pushes and thread replies cannot add up without limit.

Since 1.5.0 Reference at v1.24.0

A receipt and explicit effort

Review footers name the model, provider CLI version, reasoning effort and reported cost. Set effort explicitly from low, medium, high, xhigh or max; the default is high, and the provider decides which levels its model supports.

Reference at v1.24.0

The room gate

A review the run cannot pay for in full is skipped, and the comment says so. The operator can approve a budget for one head.

Since 1.22.0 Reference at v1.24.0

Spend ledger pull

wachiman ledger connects your laptop to a spend ledger you configured and downloads its entries, so status and dashboard show Actions runs next to laptop runs. It only reads, and only on an explicit command.

Since 1.15.0 Reference at v1.24.0

Stop 4 · records

Your data

Your usage log stays on your machine. Telemetry is off until you say yes.

A local usage log

Every wachiman local, loop and ask records what the run cost and how big it was in one SQLite file on your machine. Nothing in it is sent anywhere.

Since 1.24.0 Reference at v1.24.0 Where your data goes

Import and forget

wachiman usage import adds the runs you already have to the log once. wachiman history --forget deletes the log’s rows for a repository, or for all of them with --all.

Since 1.24.0 Reference at v1.24.0 Where your data goes

Opt-in telemetry

Off until you say yes. After a yes, one summary of counts and categories goes out when a local review or an answer finishes; never code, prompts, paths or repository names. wachiman telemetry off stops it.

Since 1.22.0 Reference at v1.24.0 Where your data goes

Stop 5 · radio

Providers

Pick the channel. Your code goes to the model provider you choose, under your own account.

Releases up to v1.3.0 were published under the AGPL; later releases carry the FSL-1.1-ALv2. Read the LICENSE of v1.3.0 and the LICENSE of v1.24.0.

Claude Code, the default

Reviews run through Claude Code: on your API key in Actions, and on your signed-in account locally.

Reference at v1.24.0

A Claude subscription token in Actions

The Actions review can run on a Claude Code subscription token instead of an API key.

Since 1.13.0 Reference at v1.24.0

Codex, from the command line only

An OpenAI model can review through codex exec when you set WACHIMAN_PROVIDER=codex yourself. The reusable workflow never uses it.

Since 1.2.0 Reference at v1.24.0

Stop 6 · utility belt

Setup and agents

The kit for starting out: settings, accounts and an install a coding agent can run.

.wachiman.yml

Optional repository settings: model, effort, mode, opt-in review rules and path rules. In Actions, model and effort are read from the base commit, never from the head.

Reference at v1.24.0

init, upgrade and doctor

wachiman init sets a repository up for local review, Actions or both. upgrade moves a caller to a release, and doctor reports what is installed and where the effective model and effort come from.

Reference at v1.24.0

Accounts and profiles

Separate Claude profiles live under ~/.wachiman, and a project can be bound to one, so a local review runs on the account you chose.

Since 1.10.0 Reference at v1.24.0

Repository memory

Wachiman reads a repository’s review rules from the base commit and can propose a learned rule as a draft pull request, or keep an entry on your own machine.

Since 1.17.0 Reference at v1.24.0

A PR description template

wachiman pr-template installs, checks and formats one generated pull request description template.

Since 1.16.0 Reference at v1.24.0

Install by a coding agent

wachiman init --json never asks a question and prints one JSON document, so a coding agent can run it and read the result.

Since 1.17.0 Reference at v1.24.0