Skip to content

CLI Reference

diffle reviews whichever git repo you run it from. Each command prints a http://localhost:<port> URL and opens it in your browser — the diff renders there, not in the terminal.

Review the working tree against HEAD, including untracked files.

Terminal window
diffle

Review staged changes only.

Terminal window
diffle staged

Review the current branch against the named branch, using a PR-style three-dot comparison.

Terminal window
diffle main

Review a commit range.

Terminal window
diffle v0.1.0..HEAD

Review the whole codebase, optionally scoped to a path.

Terminal window
diffle browse
diffle browse src/server

Run the local MCP server for agent integrations. See MCP tools.

Terminal window
diffle mcp serve

List running diffle MCP servers (pid and binary path).

Terminal window
diffle mcp list

Stop every running diffle MCP server so your agent relaunches it, e.g. on the new binary after an update. Agents don’t respawn a stopped stdio server by themselves: in Claude Code, reconnect it from /mcp or start a new session. It refuses while a review session is live, since a review can be hosted inside an MCP server; stale sessions don’t block it. --yes skips the confirmation.

Terminal window
diffle mcp restart
diffle mcp restart --yes

diffle hook stop --agent <codex|claude-code>

Section titled “diffle hook stop --agent <codex|claude-code>”

Completion-hook entry used by the agent integrations.

Terminal window
diffle hook stop --agent codex
diffle hook stop --agent claude-code

List running diffle sessions with their host, port, age, and live/stale status.

Terminal window
diffle sessions

Stop stale sessions and finished reviews. --yes skips the confirmation; --all also stops active sessions.

Terminal window
diffle cleanup
diffle cleanup --yes
diffle cleanup --all --yes

Download and install the latest release. It verifies the download’s SHA-256 and refuses when a package manager owns the install. After installing, it stops MCP servers still running the old binary (the same as diffle mcp restart) as long as no review session is live; otherwise it tells you to run diffle mcp restart later. --check only reports whether a newer release exists and never downloads; it also works in a source checkout. See Configuration for the full update behavior.

Terminal window
diffle update
diffle update --check

An installed binary also announces a newer release in one line when a review launches, checking GitHub at most once a day. Set DIFFLE_NO_UPDATE_CHECK=1 to silence it (it’s also skipped when CI is set).

Check the Claude Code plugin install for stale loupe-review leftovers and report what to repair. It also reports whether a newer release is published. --fix runs the repair commands through the claude CLI; --yes skips the confirmation. See Migrating from loupe.

Terminal window
diffle doctor
diffle doctor --fix
flag meaning
-p, --port <n> serve on a fixed port (default: any free port)
--no-open don’t open the browser automatically
--review-id <id> open an existing durable Review Record
-v, --version print the installed version
--license print the bundled MIT license notice
-h, --help show help

The deprecated loupe command is an alias for diffle during the compatibility window. See Migrating from loupe.