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

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. See Configuration for the full update behavior.

Terminal window
diffle update

Check the Claude Code plugin install for stale loupe-review leftovers and report what to repair. --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
-h, --help show help

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