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.
Commands
Section titled “Commands”diffle
Section titled “diffle”Review the working tree against HEAD, including untracked files.
difflediffle staged
Section titled “diffle staged”Review staged changes only.
diffle stageddiffle <branch>
Section titled “diffle <branch>”Review the current branch against the named branch, using a PR-style three-dot comparison.
diffle maindiffle <ref1>..<ref2>
Section titled “diffle <ref1>..<ref2>”Review a commit range.
diffle v0.1.0..HEADdiffle browse [path]
Section titled “diffle browse [path]”Review the whole codebase, optionally scoped to a path.
diffle browsediffle browse src/serverdiffle mcp serve
Section titled “diffle mcp serve”Run the local MCP server for agent integrations. See MCP tools.
diffle mcp servediffle mcp list
Section titled “diffle mcp list”List running diffle MCP servers (pid and binary path).
diffle mcp listdiffle mcp restart [--yes]
Section titled “diffle mcp restart [--yes]”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.
diffle mcp restartdiffle mcp restart --yesdiffle hook stop --agent <codex|claude-code>
Section titled “diffle hook stop --agent <codex|claude-code>”Completion-hook entry used by the agent integrations.
diffle hook stop --agent codexdiffle hook stop --agent claude-codediffle sessions
Section titled “diffle sessions”List running diffle sessions with their host, port, age, and live/stale status.
diffle sessionsdiffle cleanup [--yes] [--all]
Section titled “diffle cleanup [--yes] [--all]”Stop stale sessions and finished reviews. --yes skips the confirmation; --all also stops active sessions.
diffle cleanupdiffle cleanup --yesdiffle cleanup --all --yesdiffle update [--check]
Section titled “diffle update [--check]”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.
diffle updatediffle update --checkAn 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).
diffle doctor [--fix] [--yes]
Section titled “diffle doctor [--fix] [--yes]”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.
diffle doctordiffle doctor --fixOptions
Section titled “Options”| 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 loupe alias
Section titled “The loupe alias”The deprecated loupe command is an alias for diffle during the compatibility window. See Migrating from loupe.