By max-taylor
Session-aware diff tracking and TUI review tool for AI-assisted code review.
A TUI PR review tool with session-aware diff tracking for AI-assisted code review. Filter your file list to changes made by a specific Claude Code session, leave inline comments, and resolve them with a single command.
Download the compiled binary for your platform:
# macOS (Apple Silicon)
mkdir -p ~/.local/bin && curl -fsSL https://github.com/max-taylor/cldiff/releases/latest/download/cldiff-darwin-arm64 -o ~/.local/bin/cldiff && chmod +x ~/.local/bin/cldiff
Make sure ~/.local/bin is on your PATH. Add this to your ~/.zshrc or ~/.bashrc if it isn't:
export PATH="$HOME/.local/bin:$PATH"
Run the install command again to update to the latest version.
bun install
bun run start
Launch cldiff from the root of any repo:
cldiff
| Key | Action |
|---|---|
h / l | Focus file tree / diff viewer |
j / k | Navigate up/down |
J / K | Next/previous file |
s | Filter by Claude session |
Esc | Clear session filter |
a | Stage/unstage file |
/ | Search in diff |
n / N | Next/previous search match |
c / x | Add/delete comment |
? | Show all keybindings |
q | Quit |
cldiff includes a Claude Code plugin with two components: session tracking and a resolve skill.
/plugin marketplace add max-taylor/cldiff
/plugin install cldiff
Once installed, a PostToolUse hook fires after every Write or Edit call Claude makes. It records the file path, session ID, and timestamp to .claude/review-tracking.jsonl in the repo. No configuration needed.
In the TUI, press s to open a session picker showing all Claude sessions with uncommitted changes. Select one to filter the file list to only that session's edits. Sessions are labeled with the first user prompt from the conversation (e.g. "Fix auth bug"). Press Esc to clear the filter.
Leave inline comments on diff lines in the TUI (press c), then ask Claude to implement them:
/resolve # resolve all unresolved comments
/resolve src/app.tsx # resolve comments in a specific file
/resolve <comment-id> # resolve a single comment
Claude reads .cldiff/comments.json, triages each comment (actionable, unclear, or too complex), implements the actionable ones, runs typecheck, and marks them resolved. Unclear or complex comments are flagged back for your input.
Errors are logged to .claude/cldiff-debug.log in the repo directory.
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub max-taylor/cldiff --plugin cldiffProduction-grade Solidity skills for Claude Code — testing (Hardhat + Foundry), gas optimization, and security auditing.
Native diff review window (Monaco + Glimpse) for AI coding agents. Browse changes since the merge-base with your base branch (or last commit / uncommitted), leave inline + file-level + overall comments on the slop, and have the agent address each item.
Git diff review integration for Claude Code with VSCode extension. Provides inline diff view, browser diff editor, and auto-open files.
Review diffs, files, and documents with inline annotations in a TUI overlay
Record Claude Code Write/Edit/MultiEdit calls into deltoids traces, grouped by Claude session.
Perform AI code review on Git diffs — supports workspace changes, branch ranges, and single commits with concurrent per-file analysis, codebase search, and deep context-aware review.
Terminal-based code review companion for Claude Code. Review diffs, leave structured feedback, and submit reviews — all from a TUI running alongside Claude.