Every command takes -h, --help, -v, --version and --license. nittle --help lists all commands, and nittle <command> --help prints that command’s options. A command run with a flag it doesn’t accept exits 1 before doing anything.
Review a diff in the browser. It prints a http://127.0.0.1:<port> URL and opens it. The server only binds to 127.0.0.1.
Usage
nittle [ref] [options]
nittle --wait [ref] [--json]
ref
compares
(none)
working tree vs HEAD, untracked files included
staged
staged changes only
<branch>
current branch vs <branch> (PR-style three-dot)
<ref1>..<ref2>
commit range
browse [path]
the whole codebase, optionally scoped to a path (no diff, no scorecard)
flag
value
effect
-p, --port
<n>, 1 to 65535
serve on a fixed port (default: any free port)
--no-open
don’t open the browser automatically
--wait
block until feedback is returned, then print the prompt on stdout
--json
with --wait, print the review record as JSON instead of the prompt
--no-lsp
start no language servers
--lsp
<lang>=<command>, repeatable
use this server for one language this run; an empty command disables it
--review-id
<id>
open an existing durable Review Record (its stored repo and comparison win over a ref argument)
http://127.0.0.1:16289/?review=072b10fc-4a59-4c39-85eb-5b91967aba6d (ctrl+c to stop)
Startup also prints one-line notices when they apply: a newer release (NITTLE_NO_UPDATE_CHECK=1 silences it), a stale legacy plugin (run nittle doctor), or stale sessions (run nittle cleanup).
error
cause
not a git repository (run nittle inside one)
the cwd is not inside a git repo
unknown ref: <ref>
git can’t resolve the ref
review record not found
--review-id names a record that doesn’t exist
port <n> is already in use
--port is taken
--lsp needs <lang>=<command> (an empty command disables the language)
--wait blocks until the reviewer returns feedback, approves or cancels. Status lines go to stderr, the result goes to stdout. With --json, stdout is the get_review JSON for feedback, approved and cancelled.
exit
outcome
stdout without --json
stdout with --json
0
feedback returned
the compiled prompt
get_review JSON
0
review approved
empty
get_review JSON
2
review cancelled
empty
get_review JSON
3
last tab closed without returning feedback (after a grace of about 5 s)
empty
empty
4
session stopped from outside, for example by nittle cleanup; the review stays open
empty
empty
130
interrupted (ctrl+c) while waiting; the review stays open
empty
empty
1
error
empty
empty
On 3, 4 and 130, stderr carries the resume line: review <id> is still open. resume with: nittle --review-id <id> (or get_review over MCP).
Review one commit. With no rev it reviews HEAD. It is the same diff as nittle <rev>^!, with the commit’s short hash, subject, body, author and date above the files. A root commit is compared with the empty tree, a merge commit with its first parent. The review is pinned to the full hash, so reopening it shows the same diff after HEAD moves, as long as the commit still exists (a rebase plus gc removes it).
Usage
nittle show [rev] [options]
flag
value
effect
-p, --port
<n>
serve on a fixed port
--no-open
don’t open the browser automatically
--no-lsp
start no language servers
--lsp
<lang>=<command>, repeatable
one-run language server override
show does not take --wait, --json or --review-id.
Terminal window
nittleshowHEAD~2
error
cause
unknown commit: <rev>
git can’t resolve the rev
show takes one commit, not a range or revision set: <rev>
a range such as a..b
invalid commit: <rev> (a commit can't start with "-")
rev starts with -
<hash> is at the edge of a shallow clone, so its parent isn't here. fetch it with: git fetch --deepen=1
Run the local stdio MCP server named nittle. Agents launch it from their MCP config, so you rarely run it by hand. A start_review call may only target a cwd inside NITTLE_ROOT, or inside the directory the server was started from when that is unset. Tools: MCP tools.
Stop every running nittle MCP server so agents relaunch it, for example on a new binary. Agents don’t respawn a stopped server by themselves: reconnect in Claude Code with /mcp, or start a new session.
flag
effect
--yes
skip the confirmation prompt
Terminal window
nittlemcprestart--yes
exit
when
output
0
servers stopped, or none running
stopped 2 MCP servers — agents start the new server on reconnect (Claude Code: /mcp → reconnect, or a new session)
1
a review session is live
1 live review session — finish or stop them first (nittle sessions / cleanup --all)
Wire nittle into your coding agents. It detects installed agents (binary on PATH or config directory present), shows a checklist with detected agents first and pre-checked (↑↓ move, space select, a all, enter confirm), prints every command and file it will touch, then asks Proceed? [y/N]. Re-running reports unchanged. --remove pre-checks the agents nittle is set up in, tagged (set up).
Report what’s wrong with the agent plugin installs and what to run to fix it. It checks the Claude Code plugin and marketplace for stale diffle-review or loupe-review leftovers, the other agents’ retired plugins and MCP configs, a data migration that hasn’t finished, old review records parked under migration-conflicts/, whether nittle is on PATH, and whether a newer release is published (skipped with NITTLE_NO_UPDATE_CHECK).
Usage
nittle doctor [--fix] [--yes]
flag
effect
--fix
run the repair commands (Claude Code repairs go through the claude CLI)
--yes
skip the confirmation prompt; also passes --yes to claude plugin install
$ nittle doctor
nittle doctor — agent plugin health (/home/me/.claude)
OK legacy plugins no diffle-review / loupe-review plugin installed
OK legacy plugin enabled none enabled
OK legacy marketplace none registered
OK marketplace source not registered
OK legacy MCP server no `diffle` server wired
WARN nittle-review not installed
OK release v0.32.1 is the latest
To repair, run:
claude plugin marketplace add codywilliamson/nittle
claude plugin install nittle-review@nittle-local --scope user
or let nittle run them: nittle doctor --fix
exit
when
0
healthy, or --fix finished every repair
1
something is unhealthy (without --fix), or a repair is incomplete (repairs incomplete: lists which)
Download the latest release from GitHub Releases, verify its SHA-256 against checksums.txt, and swap the binary. Then it stops idle MCP servers still on the old binary (not while a review session is live) and prints the next steps that apply. On Windows the running exe is renamed aside as .nittle.exe.old* and removed by a later update.
Usage
nittle update [--check]
flag
effect
--check
only report whether a newer release exists; never downloads, and works in a source checkout
$ nittle update --check
[nittle] v0.32.1 is the latest release (source checkout — use git pull)
An installed binary prints v0.32.1 is the latest release, or v0.33.0 available (installed v0.32.1) — run nittle update.
output
when
exit
already on the latest release (v0.32.1).
up to date
0
installed via <manager> — update with: <command>
a package manager owns the install
0
'update' applies to an installed nittle binary; in a source checkout, use git pull.
run from source
0
could not reach GitHub to check for releases
--check offline
0
checksum mismatch for <asset>
the download doesn’t match checksums.txt
1
download failed (<status>) for <url>
the download failed
1
An installed binary also announces a newer release in one line when a review launches, checking GitHub at most once every 24 hours. NITTLE_NO_UPDATE_CHECK=1 or CI turns that off.
Print the language server each language gets, or store an override in ~/.nittle/state.json. Commands run directly, never through a shell. When VIRTUAL_ENV is set, its bin (Scripts on Windows) is searched first for Python. Details: Configuration.
Usage
nittle lsp
nittle lsp set <lang> <command>
nittle lsp unset <lang>
subcommand
effect
(none)
one line per language: the server that will run, or what was tried and how to install it; stored overrides follow the table
set <lang> <command>
always use <command> for <lang>; quote a command with arguments; "" disables the language
Delete stale registry entries, stop live sessions whose review is approved, cancelled or missing, and remove leftover language server worktrees for the current repository. It prints the plan, then asks.
Usage
nittle cleanup [--yes] [--all]
flag
effect
--yes
skip the confirmation prompt
--all
also stop active (not just finished or stale) sessions
Terminal window
nittlecleanup--all--yes
exit
when
0
done, nothing to do (no nittle sessions), or you answered no
1
a session could not be stopped (failed to stop: lists it)
Run it from inside the repository to catch its leftover worktrees.
Print a tab-completion script on stdout. It completes commands, subcommands (mcp serve|list|restart, hook stop, lsp set|unset), flags, enumerable flag values (--shell, --agent, --agents), and branch, remote and tag names for the review and show commands. Refs are read from git when you press tab. nittle never edits your shell profile; the installer can offer to.
Experimental. A stop-hook command for Claude Code or Codex. No integration calls it, and nittle setup doesn’t wire it, so it only runs if you add it to your agent’s hook config yourself. It reads the hook JSON (cwd, session_id, task_id, last_assistant_message) from stdin. If that agent session already has an active review, it says so. Otherwise, when the working tree has changes, it creates a Review Record with policy required, spawns nittle --review-id <id> in the background and returns right away. It doesn’t wait for the review. It prints one JSON line with a systemMessage, except when there are no changes, where it prints nothing. It never fails the hook. A stop hook fires after every turn, so once you approve or cancel a review, the next turn that ends with changes in the working tree opens a new one.