umputun-cc-thingz
Things to make Claude Code even better โ hooks, skills, and commands, organized as a marketplace of independent plugins. This is an unapologetically opinionated set.
TUI for reviewing diffs, files, and documents with inline annotations. Outputs structured annotations to stdout on quit, making it easy to pipe results into AI agents, scripts, or other tools.
> /plugin marketplace add umputun/revdiff> /plugin install revdiff@revdiff
What's inside
TUI for reviewing diffs, files, and documents with inline annotations. Outputs structured annotations to stdout on quit, making it easy to pipe results into AI agents, scripts, or other tools.
Built for a specific use case: reviewing code changes, plans, and documents without leaving a terminal-based AI coding session (e.g., Claude Code). Just enough UI to navigate diffs and files, annotate specific lines, and return the results to the calling process - no more, no less.
--word-diff or toggle with Wvโช continuation markers, toggle with w; optional --wrap-indent N for hanging-indent continuations (handy for markdown lists)ยซ / ยป markers at the edges to signal hidden content off-screenโ segment on pane right borders indicates the visible portion of long diffs, file trees, and markdown TOCs; thumb size and position track scroll progress automaticallyLold โ new and renders only the real line changes instead of a full delete-and-addHEAD โ @-, HEAD~N โ @ plus N+1 dashes); --all-files supportedB/ search within diff with n/N match navigation@): browse all annotations across files, jump to any annotation?) showing all keybindings organized by sectioni) showing launch scope (mode, VCS, ref, filters, file/status counts, aggregate +/- line stats), the optional --description prose, and the commit log subject + body for every commit in the current ref range (git/hg/jj) โ useful for restoring narrative context when reviewing PR-style diffs--all-files (git ls-files or jj file list), filter with --include and --exclude--only files outside a VCS repo (or not in any diff) are shown as context-only with full annotation support--stdin, optionally naming it with --stdin-name. When the piped content sniffs as a git unified diff, revdiff parses it as a real multi-file diff (review gh pr diff or git format-patch -1 --stdout output directly); otherwise the input is shown as a single context-only buffer.~/.config/revdiff/history/ on quit as a safety net--dump-keys
git, hg, or jj (used to generate diffs; optional when using --only or --stdin)Homebrew (macOS/Linux):
brew install umputun/apps/revdiff
Arch Linux (AUR):
paru -S revdiff
Debian/Ubuntu (.deb):
# download the latest .deb for your architecture from GitHub Releases
sudo dpkg -i revdiff_*.deb
RPM-based (Fedora, RHEL, etc.):
# download the latest .rpm for your architecture from GitHub Releases
sudo rpm -i revdiff_*.rpm
Binary releases: download from GitHub Releases (deb, rpm, archives for linux/darwin amd64/arm64).
revdiff ships with a Claude Code plugin for interactive code review directly from a Claude session. The plugin launches revdiff as a terminal overlay, captures annotations, and feeds them back to Claude for processing.
The plugin requires one of the following terminals since Claude Code itself cannot display interactive TUI applications - the overlay runs revdiff in a separate terminal layer on top of the current session:
| Terminal | Overlay method | Detection |
|---|---|---|
| agterm | agtermctl session overlay open โฆ --block (full-pane overlay, blocks until quit) | $AGTERM_SESSION_ID env var |
| tmux | display-popup (blocks until quit) | $TMUX env var |
| Zellij | zellij run --floating | $ZELLIJ env var |
| herdr | herdr tab create + herdr pane run (new tab) | $HERDR_ENV env var |
| kitty | kitty @ launch --type=overlay | $KITTY_LISTEN_ON env var |
| wezterm | wezterm cli split-pane | $WEZTERM_PANE env var |
| Kaku | kaku cli split-pane (same API as wezterm) | $WEZTERM_PANE env var |
| cmux | cmux new-split + cmux send | $CMUX_SURFACE_ID, __CFBundleIdentifier=com.cmuxterm.app, or GHOSTTY_RESOURCES_DIR / GHOSTTY_BIN_DIR containing cmux.app |
| ghostty | AppleScript split + zoom (macOS only) | $TERM_PROGRAM + AppleScript probe |
| iTerm2 | osascript split pane (macOS only) | $ITERM_SESSION_ID env var |
| Emacs vterm | New frame via emacsclient | $INSIDE_EMACS env var |
Priority: agterm โ tmux โ Zellij โ herdr โ kitty โ wezterm/Kaku โ cmux โ ghostty โ iTerm2 โ Emacs vterm (first detected wins). If none are available, the plugin exits with an error.
Note: cmux is detected before ghostty when
$CMUX_SURFACE_IDis set,__CFBundleIdentifier=com.cmuxterm.app, orGHOSTTY_RESOURCES_DIR/GHOSTTY_BIN_DIRcontainscmux.app. The cmux block uses the cmux CLI (new-split+send --surface) instead of Ghostty's AppleScript API.
Note: iTerm2 uses a split pane (vertical or horizontal, auto-detected from terminal dimensions) rather than a full-screen overlay. The iTerm2 AppleScript API does not expose a zoom command, so the split view shares screen space with the invoking session.
Note: Ghostty and iTerm2 launchers use
osascript(Apple Events), which is blocked by Claude Code's sandbox. If you use these terminals with sandbox enabled, add the launcher toexcludedCommandsin your Claude Codesettings.json:{ "permissions": { "excludedCommands": ["*/launch-revdiff.sh*"] } }Terminals that use CLI tools instead of AppleScript (agterm, tmux, Zellij, herdr, kitty, wezterm, Kaku, cmux) are not affected.
Disconnect-resilient tmux window mode: set
REVDIFF_TMUX_WINDOW=1in the launcher's environment to open revdiff in a persistent, server-owned tmux window instead of a client-owneddisplay-popup. A dropped SSH or tmux client tears down a popup and kills the review, but a server-owned window survives the disconnect โ reattach and the live review is still there. This is a launcher environment variable, not a revdiff flag.
Pane-scoped overlay (agterm): set
REVDIFF_AGTERM_PANE=1in the launcher's environment to open revdiff in the agent's own split pane instead of over the whole session, leaving the sibling pane live and visible. It applies only when that session is split โ the session-wide overlay stands otherwise, and the launcher retries session-wide if agterm refuses the pane. The review gets pane width rather than session width, which is why it is opt-in. This is a launcher environment variable, not a revdiff flag.
Install:
# add marketplace and install
/plugin marketplace add umputun/revdiff
/plugin install revdiff@revdiff
Use with /revdiff command:
/revdiff -- smart detection: uncommitted, last commit, or branch diff
/revdiff HEAD~1 -- review last commit
/revdiff main -- review current branch against main
/revdiff --staged -- review staged changes only
/revdiff HEAD~3 -- review last 3 commits
Use with free text (no slash command needed):
"review diff" -- smart detection, same as /revdiff
"review diff HEAD~1" -- last commit
"review diff against main" -- branch diff
"review changes from last 2 days" -- Claude resolves the ref automatically
"revdiff for staged changes" -- staged only
When no ref is provided, the plugin auto-detects the VCS (git, hg, or jj) and inspects the current repo state to pick what to review:
The plugin includes built-in reference documentation and can answer questions about revdiff usage, available themes, keybindings, and configuration options. It can also create or modify the local config file (~/.config/revdiff/config) on request:
"what chroma themes does revdiff support?"
"switch revdiff to dracula theme"
"what are the revdiff keybindings?"
"set tree width to 3 in revdiff config"
The plugin supports the full review loop: annotate โ plan โ fix โ re-review until no more annotations remain. The bundled launcher treats exit code 10 as success-with-annotations and processes stdout normally.
Ask instead of instruct: an annotation containing ?? anywhere in its text is treated as a question rather than a directive, so the agent explains that code instead of changing it. Openers explain, remind, describe, what is, what are, how does, how do and clarify do the same. ?? is the language-neutral form and works whatever you write in.
## renderer.go:142 (+)
why a pointer here??
## store.go:88 (-)
explain what this lock protects
The answer comes back as a markdown document reopened in revdiff, with a TOC sidebar, so you can annotate the explanation itself to ask follow-ups. That loop repeats until you quit without annotating. Any code-change annotations from the same batch are held and applied afterwards. The Codex plugin behaves the same way; the Pi package classifies questions too but answers them in chat.
Custom launchers: the Claude diff-review skill and the cross-runtime planning plugin resolve launchers through a two-layer chain (user โ bundled). Claude uses ${CLAUDE_PLUGIN_DATA}/scripts/<launcher>; the Codex planning hook uses ${PLUGIN_DATA}/scripts/launch-plan-review.sh. There is no project-level executable override by design because these hooks auto-fire in any opened repository. See .claude-plugin/skills/revdiff/references/install.md for diff review and plugins/revdiff-planning/README.md for plan review.
A separate revdiff-planning plugin automatically opens revdiff when Claude or Codex completes a plan, letting you annotate it before implementation. If you add annotations, the agent revises the full plan and presents it again โ looping until you're satisfied. Exit code 10 means annotations were captured, not launcher failure.
Claude Code:
/plugin install revdiff-planning@revdiff
Codex:
codex plugin marketplace add umputun/revdiff
codex plugin add revdiff-planning@revdiff
Start a new Codex session and trust the hook through /hooks. Codex automatic review is opt-in and only fires for complete <proposed_plan> blocks in Plan mode; /revdiff-plan remains the manual fallback.
This plugin is independent from the main revdiff plugin and does not conflict with other planning plugins (e.g., planning from cc-thingz).
revdiff also ships as a pi package. The /revdiff command routes requests through the revdiff skill, which resolves refs, files, and natural-language targets before launching the existing revdiff binary through the revdiff_review tool. If no annotations were captured, the agent stops the review loop unless you explicitly ask for another review.
Install:
pi install https://github.com/umputun/revdiff
Command inside pi:
/revdiff [args]
Useful args:
/revdiff -- detect uncommitted, staged, or branch changes, then open revdiff
/revdiff HEAD~1 -- review last commit
/revdiff main -- review against main
/revdiff --staged -- review staged changes
/revdiff --untracked -- include untracked files in working-tree review
/revdiff --all-files -- browse all tracked files
/revdiff --all-files --exclude vendor
/revdiff --only README.md -- review a single file in context-only mode
/revdiff HEAD~3 --description="why this refactor matters"
/revdiff HEAD~3 --description-file=/tmp/revdiff-desc.md
/revdiff main --annotations=/tmp/revdiff-review.md
Natural-language targets are supported because /revdiff routes through the skill:
/revdiff prev commit
/revdiff last tag
/revdiff 2 weeks ago
You can also call the skill explicitly with /skill:revdiff <request>.
Agent workflow:
/revdiff is a Pi command alias for /skill:revdiff; the skill resolves the request and calls revdiff_review.revdiff_review suspends pi, hands the terminal to revdiff, then returns captured annotations to the agent.revdiff_review result stops the loop. The agent must not relaunch revdiff unless you explicitly ask for another review.revdiff_review with the same args until no annotations are captured.Notes:
revdiff binary on PATHREVDIFF_BIN=/absolute/path/to/revdiff if pi can't find the binary10 means annotations were captured, not failure--untracked when agent-created files should be reviewed before they are staged--description or --description-file after analysis/refactor work so the info popup carries review context--annotations=<tempfile> to preload in-session review notesrevdiff_review results include captured annotation text; history is only for explicit latest-history requests or missing-output fallback$REVDIFF_HISTORY_DIR or ~/.config/revdiff/history/ instead of relaunching revdiffplugins/pi/ to keep harness integrations clearly separatedrevdiff ships with a Codex CLI plugin for interactive diff review and plan annotation directly from a Codex session. The plugin provides two skills:
/revdiff โ same diff review workflow as the Claude Code plugin (detect ref, launch overlay, capture annotations, feedback loop)/revdiff-plan โ extracts the last Codex assistant message from session rollout files, opens it in revdiff for annotation, and feeds feedback backThe plugin uses the same terminal overlay mechanism (tmux, Zellij, herdr, kitty, wezterm, etc.) as the Claude Code plugin.
Install the automatic plan-review plugin:
codex plugin marketplace add umputun/revdiff
codex plugin add revdiff-planning@revdiff
Start a new session and trust the plugin hook through /hooks. The Stop hook runs only in Plan mode and first checks last_assistant_message; whenever that field has no complete <proposed_plan>, it reads the exact event transcript and selects the last assistant message for the matching session_id and turn_id, without depending on a provider-specific phase. A readable clarification turn is ignored. Missing or mismatched event data, dependencies, and launcher failures warn and fail open.
When annotations are present, the hook asks Codex to return the complete revised plan with a snapshot marker on the first line inside <proposed_plan>. The next round opens a rolling compare (<new> <old>); reviewed snapshots are replaced, and a clean review removes the final snapshot.
Install the manual skills:
# clone the repo first
git clone https://github.com/umputun/revdiff.git
cd revdiff
# copy skills to Codex skills directory
cp -r plugins/codex/skills/revdiff ~/.codex/skills/revdiff
cp -r plugins/codex/skills/revdiff-plan ~/.codex/skills/revdiff-plan
Requirements:
revdiff binary on PATHjq (required only for manual /revdiff-plan session extraction)Notes:
10 as success-with-annotations and keeps captured outputrevdiff-planning plugin; /revdiff-plan remains a manual fallbackplugins/codex/ in the repositoryrevdiff integrates with OpenCode via a tool, slash command, and plan-review plugin. The tool wraps the existing launch-revdiff.sh launcher, so terminal detection stays in sync automatically.
Install:
cd plugins/opencode && bash setup.sh
The setup script copies files to ~/.config/opencode/ and registers the plan-review plugin. The tool and plan-review plugin treat exit code 10 as success-with-annotations and keep captured output. See plugins/opencode/README.md for manual installation and details.
Commands inside OpenCode:
/revdiff -- review git diff with revdiff TUI
/revdiff HEAD~3 -- review last 3 commits
The plan-review plugin automatically launches revdiff when the assistant exits plan mode, letting you annotate before approval.
The structured stdout output works with any tool that can read text. By default revdiff exits 0 even when annotations are produced; pass --exit-code-on-annotations to return 10 for successful annotation output:
# capture annotations for processing
rc=0
annotations=$(revdiff --exit-code-on-annotations main) || rc=$?
case "$rc" in
0) [ -n "$annotations" ] && echo "$annotations" | your-tool ;;
10) echo "$annotations" | your-tool ;;
*) exit "$rc" ;;
esac
Exit status: 0 = no annotations, discarded annotations, or default mode; 10 = annotations were produced with --exit-code-on-annotations; 1 = real errors.
revdiff [OPTIONS] [base] [against]
Positional arguments support several forms:
revdiff โ uncommitted changesrevdiff HEAD~3 โ diff a single ref against the working treerevdiff main feature โ diff between two refsrevdiff main..feature โ same as above, using git's dot-dot syntaxrevdiff main...feature โ changes since feature diverged from main| Option | Description | Default |
|---|---|---|
base | Git ref to diff against | uncommitted changes |
against | Second git ref for two-ref diff | |
--staged | Show staged changes, env: REVDIFF_STAGED | false |
--untracked | Show untracked files in the tree, env: REVDIFF_UNTRACKED | false |
--tree-width | File tree panel width in units (1-10), env: REVDIFF_TREE_WIDTH | 2 |
--tab-width | Number of spaces per tab character, env: REVDIFF_TAB_WIDTH | 4 |
--no-colors | Disable all colors including syntax highlighting, env: REVDIFF_NO_COLORS | false |
--no-status-bar | Hide the status bar, env: REVDIFF_NO_STATUS_BAR | false |
--wrap | Enable line wrapping in diff view, env: REVDIFF_WRAP | false |
--wrap-indent | Indent wrap continuation rows by N columns so they hang under the first row's content (helps when reviewing markdown lists where unindented continuation can be misread as a new bullet), env: REVDIFF_WRAP_INDENT | 0 |
--collapsed | Start in collapsed diff mode, env: REVDIFF_COLLAPSED | false |
--compact | Start in compact diff mode (small context around changes), env: REVDIFF_COMPACT | false |
--compact-context | Number of context lines around changes when in compact mode, env: REVDIFF_COMPACT_CONTEXT | 5 |
--cross-file-hunks | Allow [ and ] to continue into adjacent files, env: REVDIFF_CROSS_FILE_HUNKS | false |
--line-numbers | Show line numbers in diff gutter, env: REVDIFF_LINE_NUMBERS | false |
--blame | Show blame gutter, env: REVDIFF_BLAME | false |
--word-diff | Highlight intra-line word-level changes in paired add/remove lines, env: REVDIFF_WORD_DIFF | false |
--annotation-marker | Prefix shown before annotation lines, env: REVDIFF_ANNOTATION_MARKER | ๐ฌ |
--exit-code-on-annotations | Exit 10 when annotations are produced, env: REVDIFF_EXIT_CODE_ON_ANNOTATIONS, config: exit-code-on-annotations | false |
--no-confirm-discard | Skip confirmation when discarding annotations with Q, env: REVDIFF_NO_CONFIRM_DISCARD | false |
--no-confirm-reload | Skip confirmation when dropping annotations on reload with R, env: REVDIFF_NO_CONFIRM_RELOAD | false |
--no-mouse | Disable mouse support (scroll wheel, click), env: REVDIFF_NO_MOUSE | false |
--no-tree | Hide the file tree pane, env: REVDIFF_NO_TREE | false |
--vim-motion | Enable vim-style motion preset (counts, gg, G, H/M/L, zz/zt/zb, ZZ/ZQ), env: REVDIFF_VIM_MOTION | false |
--chroma-style | Chroma color theme for syntax highlighting, env: REVDIFF_CHROMA_STYLE | catppuccin-macchiato |
--theme | Load color theme from ~/.config/revdiff/themes/; use auto to choose by terminal background, env: REVDIFF_THEME | |
--auto-theme-dark | Theme used by --theme auto on dark terminal backgrounds, env: REVDIFF_AUTO_THEME_DARK | revdiff |
--auto-theme-light | Theme used by --theme auto on light terminal backgrounds, env: REVDIFF_AUTO_THEME_LIGHT | catppuccin-latte |
--dump-theme | Print currently resolved colors as theme file to stdout and exit | |
--list-themes | Print available theme names to stdout and exit | |
--init-themes | Write bundled theme files to themes dir and exit | |
--init-all-themes | Write all gallery themes (bundled + community) to themes dir and exit | |
--install-theme | Install theme(s) from gallery or local file path and exit (repeatable) | |
-A, --all-files | Browse all tracked files, not just diffs (git or jj) | false |
--compare-old | Compare mode: old file path (use with --compare-new; uses git diff --no-index, no VCS repo needed) | |
--compare-new | Compare mode: new file path (use with --compare-old) | |
--stdin | Review stdin as a scratch buffer (piped or redirected input only) | false |
--stdin-name | Synthetic file name for stdin content; enables extension-based highlighting/TOC | scratch-buffer |
--description | Prose context shown in the info popup (markdown; for multi-line text, use a multi-line quoted shell string or --description-file) | |
--description-file | Read the info-popup description from this file (markdown) | |
-I, --include | Include only files matching prefix, may be repeated, env: REVDIFF_INCLUDE (comma-separated) | |
-X, --exclude | Exclude files matching prefix, may be repeated, env: REVDIFF_EXCLUDE (comma-separated) | |
-F, --only | Show only matching files by exact path or suffix, may be repeated (e.g. --only=model.go) | |
-o, --output | Write annotations to file instead of stdout, env: REVDIFF_OUTPUT | |
--post-flush-command | Run command after a successful O flush (requires -o/--output), env: REVDIFF_POST_FLUSH_COMMAND, config: post-flush-command | |
--annotations | Preload annotations from a markdown file in -o format | |
--history-dir | Directory for review history auto-saves, env: REVDIFF_HISTORY_DIR | ~/.config/revdiff/history/ |
--config | Path to config file, env: REVDIFF_CONFIG | ~/.config/revdiff/config |
--keys | Path to keybindings file, env: REVDIFF_KEYS | ~/.config/revdiff/keybindings |
--dump-keys | Print effective keybindings to stdout and exit | |
--dump-config | Print default config to stdout and exit | |
-V, --version | Show version info |
All options can be set in a config file at ~/.config/revdiff/config (INI format). CLI flags and environment variables override config file values. For annotation exit status, use exit-code-on-annotations = true.
Generate a default config file:
mkdir -p ~/.config/revdiff
revdiff --dump-config > ~/.config/revdiff/config
Then uncomment and edit the values you want to change.
revdiff ships with eight bundled color themes: basic, catppuccin-latte, catppuccin-mocha, dracula, gruvbox, nord, revdiff, and solarized-dark. Themes are stored in ~/.config/revdiff/themes/ and are automatically created on first run.
Press T inside revdiff to open the interactive theme selector with live preview โ browse themes, see colors applied instantly, and persist your choice to the config file on confirm.
# apply a theme
revdiff --theme dracula
# choose a theme from the terminal background color
revdiff --theme auto
# list available themes
revdiff --list-themes
# re-create bundled theme files (overwrites bundled, keeps custom themes)
revdiff --init-themes
# install a specific theme from the gallery
revdiff --install-theme catppuccin-latte
# install all gallery themes (bundled + community)
revdiff --init-all-themes
# export current colors as a custom theme
revdiff --dump-theme > ~/.config/revdiff/themes/my-custom
Creating custom themes โ two approaches:
--color-* flags, then dump the resolved result as a theme: revdiff --dump-theme > ~/.config/revdiff/themes/my-customchroma-style in INI format:# name: my-custom
# description: custom color scheme
chroma-style = dracula
color-accent = #bd93f9
color-border = #6272a4
...all 23 color keys...
Set a default theme in the config file:
theme = dracula
Or via environment variable: REVDIFF_THEME=dracula.
Set theme = auto to query the terminal background and choose a matching theme. By default, auto mode uses revdiff for dark backgrounds and catppuccin-latte for light backgrounds:
theme = auto
auto-theme-dark = revdiff
auto-theme-light = catppuccin-latte
Contributing themes โ community themes live in the themes/gallery/ directory. See themes/README.md for the contribution guide, format requirements, and validation instructions.
Precedence: When --theme is set, it takes over completely โ all 23 color fields and chroma-style are overwritten by the theme, ignoring any --color-* flags or env vars. Without --theme: built-in defaults โ config file โ env vars โ CLI flags. --theme + --no-colors prints a warning and applies the theme.
All color options accept hex values (#rrggbb) and have corresponding REVDIFF_COLOR_* env vars.
| Option | Description | Default |
|---|---|---|
--color-accent | Active pane borders and directory names | #D5895F |
--color-border | Inactive pane borders | #585858 |
--color-normal | File entries and context lines | #d0d0d0 |
--color-muted | Divider lines and status bar | #585858 |
--color-selected-fg | Selected file text | #ffffaf |
--color-selected-bg | Selected file background | #D5895F |
--color-annotation | Annotation text and markers | #ffd700 |
--color-cursor-fg | Cursor indicator color | #bbbb44 |
--color-cursor-bg | Cursor indicator background | terminal default |
--color-add-fg | Added line text | #87d787 |
--color-add-bg | Added line background | #123800 |
--color-remove-fg | Removed line text | #ff8787 |
--color-remove-bg | Removed line background | #4D1100 |
--color-word-add-bg | Intra-line word-diff add background | auto-derived from add-bg |
--color-word-remove-bg | Intra-line word-diff remove background | auto-derived from remove-bg |
--color-modify-fg | Modified line text (collapsed mode) | #f5c542 |
--color-modify-bg | Modified line background (collapsed mode) | #3D2E00 |
--color-tree-bg | File tree pane background | terminal default |
--color-diff-bg | Diff pane background | terminal default |
--color-status-fg | Status bar foreground | #202020 |
--color-status-bg | Status bar background | #C5794F |
--color-search-fg | Search match text | #1a1a1a |
--color-search-bg | Search match background | #4a4a00 |
Dark themes: aura-theme-dark, aura-theme-dark-soft, base16-snazzy, catppuccin-frappe, catppuccin-macchiato (default), catppuccin-mocha, doom-one, doom-one2, dracula, evergarden, fruity, github-dark, gruvbox, hrdark, monokai, modus-vivendi, native, nord, nordic, onedark, paraiso-dark, rose-pine, rose-pine-moon, rrt, solarized-dark, solarized-dark256, tokyonight-moon, tokyonight-night, tokyonight-storm, vim, vulcan, witchhazel, xcode-dark
Light themes: autumn, borland, catppuccin-latte, colorful, emacs, friendly, github, gruvbox-light, igor, lovelace, manni, modus-operandi, monokailight, murphy, paraiso-light, pastie, perldoc, pygments, rainbow_dash, rose-pine-dawn, solarized-light, tango, tokyonight-day, trac, vs, xcode
Other: RPGLE, abap, algol, algol_nu, arduino, ashen, average, bw, hr_high_contrast, onesenterprise, swapoff
# review uncommitted changes
revdiff
# review changes against a branch
revdiff main
# review staged changes
revdiff --staged
# review last commit
revdiff HEAD~1
# diff between two refs
revdiff main feature
# same with git dot-dot syntax
revdiff main..feature
# review only specific files
revdiff --only=model.go --only=README.md
# browse all git-tracked files in a project
revdiff --all-files
# browse all files, excluding vendor and mocks directories
revdiff --all-files --exclude vendor --exclude mocks
# include only src/ files
revdiff --include src
# include src/ but exclude src/vendor/
revdiff --include src --exclude src/vendor
# exclude paths in normal diff mode
revdiff main --exclude vendor
# review a file outside a VCS repo (context-only, no diff markers)
revdiff --only=/tmp/plan.md
# review a file that has no VCS changes (context-only view with annotations)
revdiff --only=docs/notes.txt
# diff two arbitrary files (no VCS repo needed)
revdiff --compare-old=/tmp/plan-old.md --compare-new=docs/plans/plan.md
# review arbitrary piped text as a scratch buffer
printf '# Plan\n\nShip it\n' | revdiff --stdin --stdin-name plan.md
# capture annotations from generated output
some-command | revdiff --stdin --output /tmp/annotations.txt
# round-trip: capture, edit externally, reload
revdiff -o review.md HEAD~1
$EDITOR review.md
revdiff --annotations=review.md HEAD~1
--annotations reads the same markdown format that -o writes (see Output Format below), so any file revdiff produces can be loaded back. You can also hand-author or generate that file from any other source โ each record is ## path/to/file.go:LINE (+) followed by the comment body โ then step through the comments inline against the actual diff, edit or delete them in the TUI, and quit with q to write the final set to stdout (or to -o).
Use --all-files (or -A) to browse all tracked files in a project, not just files with changes. This turns revdiff into a general-purpose code annotation tool. All files are shown in context-only mode (no +/- markers) with full annotation and syntax highlighting support.
--all-files requires a git or jj repository (uses git ls-files or jj file list for file discovery) and is mutually exclusive with refs, --staged, and --only. Not supported in hg repos.
Combine with --include (or -I) to narrow to specific paths and --exclude (or -X) to filter out unwanted paths:
revdiff --all-files --include src
revdiff --all-files --include src --exclude src/vendor
revdiff --all-files --exclude vendor --exclude mocks
--include and --exclude both use prefix matching: --include src keeps only src/, src/foo.go, etc. --exclude vendor skips vendor/, vendor/foo.go, etc. Both work in --all-files and normal diff modes and are composable: include narrows first, then exclude removes from the included set.
Both options can be persisted in the config file:
include = src
exclude = vendor
exclude = mocks
Or via environment variables (comma-separated): REVDIFF_INCLUDE=src, REVDIFF_EXCLUDE=vendor,mocks.
When --only specifies a file that has no VCS changes (or when no VCS repo exists at all), revdiff shows the file in context-only mode: all lines are displayed without +/- gutter markers, with full annotation and syntax highlighting support. This enables reviewing arbitrary files without requiring VCS context.
Two scenarios trigger this mode:
--only files not in the diff are read from disk and shown alongside any changed files--only is required; files are read directly from diskUse --compare-old=<path> together with --compare-new=<path> to diff two arbitrary files on disk using git diff --no-index. No VCS repository is required โ this works anywhere git is installed.
revdiff --compare-old=/tmp/plan-old.md --compare-new=docs/plans/plan.md
revdiff --compare-old=a.txt --compare-new=b.txt
--compare-old and --compare-new must be used together and are mutually exclusive with refs, --staged, --only, --all-files, --stdin, --include, --exclude, and --annotations. All standard diff features work: word-diff, compact mode, syntax highlighting, scrollbar, and inline annotations.
Use --stdin to review arbitrary piped or redirected text. revdiff sniffs the input for a git unified-diff signature: when a line beginning with diff --git a/ is found near the start, the input is parsed as a real multi-file diff (one tree entry per file, with +/- markers, hunk navigation, word-diff, compact mode, and per-file annotations); otherwise the input is shown as a single context-only buffer with all lines as context, supporting annotations, file-level notes, search, wrap, collapsed mode, and structured output. Any per-section parse failure falls the whole input back to raw-text mode so a malformed patch never silently drops files. Input is capped at 64 MiB.
--stdin is explicit and mutually exclusive with refs, --staged, --only, --all-files, --include, --exclude, and --annotations. stdin mode requires piped or redirected input; plain terminal stdin is rejected to avoid accidentally launching an empty scratch buffer.
Use --stdin-name to control the synthetic filename for the context-only case (it is ignored in multi-file diff mode, where the tree shows the real paths). This gives annotation output a stable key and enables filename-based syntax highlighting or markdown TOC activation:
echo "plain text" | revdiff --stdin
printf '# Plan\n\nBody\n' | revdiff --stdin --stdin-name plan.md
git show HEAD~1:README.md | revdiff --stdin --stdin-name README.md
# multi-file diff parsing โ tree shows real paths, per-file annotations
gh pr diff 123 | revdiff --stdin
git format-patch -1 --stdout | revdiff --stdin
Use --description (or --description-file=path.md) to attach prose context to a review. The text is rendered at the top of the info popup (i key), with the same markdown highlighting used for .md files in the diff view. Useful when an agent (or a script) launches revdiff on your behalf and you come back to it later โ the popup tells you what the change is and why.
revdiff HEAD~3 --description="# Refactor auth middleware
Drop session-token storage to meet new compliance requirements.
See ticket SEC-441 for context."
# longer descriptions: keep the markdown in a file
revdiff HEAD~3 --description-file=.review-description.md
--description and --description-file are mutually exclusive. The description section is hidden when neither is set, so the flag is purely additive โ existing invocations are unchanged.
When reviewing a single markdown file in context-only mode (e.g., revdiff --only=README.md or printf '# title\n' | revdiff --stdin --stdin-name plan.md), revdiff shows a table-of-contents pane on the left listing all markdown headers. Use Tab to switch focus between the TOC and diff panes, j/k to navigate headers, and Enter to jump to a header in the diff. The TOC automatically highlights the current section as you scroll through the file.
This mode activates when all three conditions are met: single file, markdown extension (.md/.markdown), and all lines are context (no diff changes). Headers inside fenced code blocks are excluded from the TOC.
The --only flag enables use cases beyond VCS diffs. Any text file can be loaded for annotation โ no VCS repo required.
Reviewing AI-generated drafts โ When an AI assistant drafts text to be posted publicly (PR comments, issue responses, release notes), write it to a temp file and review in revdiff. Annotate specific lines with changes, the assistant reads annotations and rewrites, re-open to verify. Same annotate-fix-verify loop as code review.
Reviewing documentation and specs โ Markdown files, API specs, config files, and plan documents can all be reviewed with inline annotations. Useful for reviewing RFCs, annotating configs before deployment, or marking up plans with questions.
revdiff --only=docs/plans/feature.md
revdiff --only=/tmp/draft-comment.md
Reviewing generated output โ CI configs, Terraform plans, generated migrations, or command output. Load files with --only or stream ephemeral output with --stdin, annotate what needs fixing, feed annotations back to the generator.
Zed's custom tasks can launch revdiff directly in an editor terminal tab.
See the Zed integration guide for ready-to-use task definitions, keybinding setup, and platform-specific clipboard notes.
When you quit with annotations (q), revdiff automatically saves a copy of the review session to ~/.config/revdiff/history/<repo-name>/<timestamp>.md. This is a safety net โ if annotations are lost (process crash, agent fails to capture stdout), the history file preserves them.
Each history file contains:
History auto-save is always on and silent โ errors are logged to stderr, never fail the process. No history is saved on discard quit (Q) or when there are no annotations. For --stdin mode, files are saved under stdin/ subdirectory; for --only without git, the parent directory name is used instead of a repo name.
The history file is also a crash-recovery save when the process is terminated by a signal โ a SIGHUP from a dropped SSH or tmux client, or a SIGTERM. On a signal exit only the history file is written, never the -o output, because a signal is not the deliberate handoff that q and O perform. Recover the annotations the usual way โ load the newest history file. A signal-delivered SIGTERM previously wrote the -o output; it no longer does.
Override the history directory with --history-dir, REVDIFF_HISTORY_DIR env var, or history-dir in the config file.
In the Claude Code and Codex plugins, you can also tell the agent to use a past review by saying things like "locate my latest revdiff review" or "use the annotations from the review I just did in another terminal". The plugin reads the newest history file for the current repo via the helper script read-latest-history.sh and processes the annotations as if they had come from a fresh launcher call. This is useful for standalone revdiff runs outside the plugin, or when the live launcher output is unavailable (e.g., a broken custom launcher or a crashed agent).
Navigation:
| Key | Action |
|---|---|
j/k or up/down | Navigate files (tree) / scroll diff (diff pane) |
h/l | Switch between file tree and diff pane |
| left/right | Horizontal scroll in diff pane (truncated lines show ยซ / ยป overflow indicators at the edges) |
Tab | Switch between file tree and diff pane |
PgDown/PgUp | Page scroll in file tree and diff pane |
Ctrl+d/Ctrl+u | Half-page scroll in file tree and diff pane |
J/K | Scroll diff viewport (works from either pane) |
Home/End | Jump to first/last item |
Enter | Switch to diff pane (tree) / start annotation (diff pane) |
n/p | Next/previous changed file; next/prev header in markdown TOC mode (n = next match when search active) |
P | Open the file picker |
[ / ] | Jump to previous/next change hunk in diff; add --cross-file-hunks to continue into the previous/next file at the boundary |
e | Open focused file in $EDITOR |
The file picker lists paths currently visible in the sidebar, so annotated-only and unreviewed-only filters remain active. Printable keys always filter full relative paths; use the arrow keys or mouse wheel to move, and press Enter or left-click to jump. Backspace edits the filter. The first Esc clears a non-empty filter and keeps the picker open; the second closes it. Because printable keys always filter, P typed inside the picker adds to the filter rather than closing it; a jump_file binding with a modifier (e.g. map alt+f jump_file) closes the picker when pressed again.
Search:
| Key | Action |
|---|---|
/ | Start search in diff pane |
n | Next search match (overrides next file when search active) |
N | Previous file (previous search match when searching) |
โ / Ctrl+P | Recall previous search query (in search prompt) |
โ / Ctrl+N | Recall next search query / clear (in search prompt) |
Esc | Cancel search input / clear search results |
Annotations:
| Key | Action |
|---|---|
a or Enter (diff pane) | Annotate current diff line |
A | Add file-level annotation (stored at top of diff) |
@ | Toggle annotation list popup (navigate and jump to any annotation) |
} / { | Jump to next/previous annotation (always crosses file boundaries; silent no-op at the first/last annotation) |
d | Delete annotation under cursor |
O | Flush annotations to the --output file without exiting (requires -o) |
Ctrl+E (during annotation input) | Open $EDITOR for multi-line annotation (open_editor โ rebindable) |
Esc | Cancel annotation input |
While the annotation input is active, press Ctrl+E (or whatever key is bound to open_editor) to hand off the current text to an external editor for multi-line comments. Editor resolution: $EDITOR โ $VISUAL โ vi. Values with arguments work (e.g. EDITOR="code --wait"). On editor save and quit, the full file contents (including newlines) become the annotation. Quitting the editor with an empty file cancels the annotation and preserves any previously stored note on that line. Multi-line annotations are rendered line-by-line in the diff view, shown flattened in the annotation list popup (@), and emitted with embedded newlines in the structured output.
Press e in the diff pane to open the focused file in $EDITOR (open_file_in_editor โ rebindable) when revdiff has a stable source path. Editor resolution is the same $EDITOR โ $VISUAL โ vi chain. Known editors receive either $EDITOR +N path or $EDITOR --goto path:N as appropriate; unknown editors receive only the file path. File lines are resolved on a best-effort basis. For working tree changes, a clean editor exit reloads the displayed file. For --staged or refs, a clean editor exit returns to revdiff without reloading the displayed diff. In compare mode, e opens the --compare-new side. Working tree files with line annotations cannot be opened for editing because edits can orphan those annotations. Diffs read with --stdin do not support opening files. Unsupported rows or files and editor errors show a status hint instead of launching an editor or changing the diff.
Press O to write the current annotations to the --output file without exiting (flush_output โ rebindable). This keeps revdiff open while handing the file to an AI agent: annotate, flush with O, let the agent read the file and edit code, then reload with R and continue in the same session. Each flush overwrites the file with the full current annotation set (a snapshot, not an append log), using the same atomic write as a normal quit. O requires -o/--output; with no output file, or with no annotations yet, it shows a status hint and writes nothing.
One possible use is copying annotations to the terminal clipboard after every flush with OSC 52. revdiff does not include an OSC 52 helper; create an osc-copy shell script on your PATH that reads stdin and writes the clipboard sequence to /dev/tty:
#!/bin/sh
data=$(base64 | tr -d '\n')
printf '\033]52;c;%s\007' "$data" > /dev/tty
After making the script executable, run revdiff with --post-flush-command=osc-copy or set post-flush-command = osc-copy in the config file.
The post-flush command runs synchronously. Use a fast, non-interactive command because revdiff waits for it to finish before restoring the TUI.
Press Space to mark the focused file reviewed. Press F to toggle the sidebar between all files and unreviewed files; while filtered, marking a file reviewed removes it from the list and advances to the next unfinished file. On R reload, revdiff keeps the mark only when the file's effective text diff is unchanged; rebases that only shift line numbers or surrounding context keep it, while changed or removed files lose it. Binary files and opaque placeholders are conservatively unmarked on reload because their rendered diff does not expose enough content to prove they are unchanged.
View:
| Key | Action |
|---|---|
v | Toggle collapsed diff mode (shows final text with change markers) |
C | Toggle compact diff view (small context around changes, re-fetches current file) |
w | Toggle word wrap (long lines wrap with โช continuation markers) |
t | Toggle tree/TOC pane visibility (gives diff full terminal width) |
L | Toggle line numbers (side-by-side old/new for diffs, single column for full-context files) |
B | Toggle blame gutter (author name + commit age per line) |
W | Toggle intra-line word-diff highlighting for paired add/remove lines |
. | Expand/collapse individual hunk under cursor (collapsed mode only) |
T | Open theme selector with live preview |
f | Toggle filter: all files / annotated only (shown when annotations exist) |
F | Toggle filter: all files / unreviewed only |
? | Toggle help overlay showing all keybindings |
i | Toggle info popup โ review scope (mode, VCS, ref, filters, file/status counts, aggregate +/- stats) plus the commit log for the current ref range when applicable |
R | Reload diff from VCS (warns if annotations exist) |
q | Quit, output annotations to stdout |
Q | Discard all annotations and quit (confirms if annotations exist) |
The status bar shows a fixed row of mode indicators on the right side. All slots are always rendered โ active modes use the status bar foreground color, inactive modes use muted gray, so the row occupies the same width regardless of what's toggled on.
| Icon | Toggle | Meaning |
|---|---|---|
โผ | v | Collapsed diff mode |
โ | C | Compact diff mode (small context around changes) |
โ | f | Filter: annotated files only |
โฉ | w | Word wrap mode |
โ | / | Search active |
โ | t | Tree/TOC pane hidden (diff uses full width) |
# | L | Line numbers visible in gutter |
b | B | Blame gutter visible |
ยฑ | W | Intra-line word-diff highlighting |
โ / โ | Space / F | Reviewed files / unreviewed-only filter active |
โ
| u | Untracked files visible in tree |
On narrow terminals, the left-hand segments are dropped before the icons: search position first, then line and hunk info, then the filename truncates. The icon row on the right stays put.
revdiff enables mouse tracking by default so the scroll wheel and left-click work consistently across terminals.
j/k). In the diff pane the wheel scrolls the viewport by three lines per notch โ the diff cursor stays on its current logical line and is pinned to the visible edge if scrolling pushes it off-screen. During fast scrolls (a trackpad flick) the cursor highlight catches up after a brief pause once the burst settles, matching less/vim behavior.j/k to land there). Clicking a directory row moves the cursor but does not load a file.a" annotation flow.Enter).Enter). Clicks on the filter row or blank separator are ignored.Enter). Clicks on the filter row or blank separator are ignored.Horizontal wheel, right-click, middle-click, drag selection, and clicks on the status bar or diff header are intentionally ignored. Clicks outside an open overlay are swallowed โ dismiss an overlay with Esc or its toggle key. Modal states (annotation input, search input, confirm discard, reload confirm) swallow mouse events entirely.
Text selection trade-off โ once mouse tracking is on, plain drag is captured by revdiff. For terminal-native text selection:
Ctrl+Shift while draggingOption while draggingShift while dragging. Ghostty also uses Shift to extend an existing selection, so if text is already selected the drag grows that selection instead of starting a new one - clear it first. Ghostty 1.3.0+ additionally has a toggle_mouse_reporting keybind, unbound by default, which suspends mouse capture without restarting revdiffShift while draggingBecause the tree pane is rendered alongside the diff on the same rows, multi-line Shift+drag will include tree content. For clean copies of diff text, use your terminal's block-select mode (Option+drag in iTerm2, Ctrl+Shift+drag in kitty) or run with --no-mouse to disable mouse capture entirely.
Opt out with --no-mouse, REVDIFF_NO_MOUSE=true, or no-mouse = true in the config file.
All keybindings can be customized via a keybindings file at ~/.config/revdiff/keybindings. Override the path with --keys flag or REVDIFF_KEYS env var.
The file uses a simple map/unmap format (blank lines and # comments are ignored):
# ~/.config/revdiff/keybindings
map ctrl+d half_page_down
map ctrl+u half_page_up
map x quit
unmap q
map <key> <action> โ binds a key to an action (additive, defaults are kept unless explicitly unmapped)unmap <key> โ removes a default bindingGenerate a template with all current bindings:
mkdir -p ~/.config/revdiff
revdiff --dump-keys > ~/.config/revdiff/keybindings
Then edit to taste. Fixed modal keys (Enter, Esc in annotation/search input, confirm discard) are not remappable. Keymap-resolved actions like open_editor work during annotation input and can be rebound.
Chord bindings (ctrl/alt leader): bind a two-stage chord by joining the leader and second key with >. The leader must be a ctrl+* or alt+* combo; the second stage is any single key. Only two stages are supported.
map ctrl+w>x mark_reviewed
map alt+t>n theme_select
When the leader is pressed, the status bar shows Pending: ctrl+w, esc to cancel; press the second key to dispatch, or esc to cancel silently. Binding a key as both a standalone action and a chord prefix drops the standalone binding (the chord wins, with a warning). Chord bindings work under non-Latin keyboard layouts โ the second-stage key is translated via the same layout-resolve fallback as single-key bindings. Note: chord bindings do not fire during text input (annotation and search prompts) โ the leader key is consumed by the text input widget. Use single-key ctrl+* bindings for actions like open_editor that need to work during annotation input.
macOS note: alt+* leaders require your terminal to send Option as Meta/Alt. Most terminals default to "Option composes special characters" (e.g. Option+T โ โ ), in which case Alt chords silently won't fire. To enable: iTerm2 โ Profiles โ Keys โ Left/Right Option key โ Esc+; Terminal.app โ Profiles โ Keyboard โ Use Option as Meta key; Kitty โ macos_option_as_alt yes; Ghostty โ macos-option-as-alt = true. If you'd rather not touch terminal settings, use ctrl+* leaders โ those work everywhere with no configuration.
Navigation: down, up, page_down, page_up, half_page_down, half_page_up, home, end, scroll_left, scroll_right, scroll_center, scroll_top, scroll_bottom, scroll_diff_down, scroll_diff_up
File/Hunk: next_item, prev_item, jump_file, next_hunk, prev_hunk, open_file_in_editor
Pane: toggle_pane, focus_tree, focus_diff
Search: search
Annotations: confirm (annotate line / select file), annotate_file, delete_annotation, annot_list, open_editor, next_annotation, prev_annotation, flush_output
View: toggle_collapsed, toggle_compact, toggle_wrap, toggle_tree, toggle_line_numbers, toggle_blame, toggle_word_diff, toggle_hunk, toggle_untracked, mark_reviewed, filter_unreviewed, theme_select, filter, info, reload
Quit: quit, discard_quit, help, dismiss
Opt-in vim-style motion layer activated via --vim-motion, REVDIFF_VIM_MOTION=true, or vim-motion = true in the config file. Off by default โ when off, existing single-key bindings are unchanged.
| Keys | Action |
|---|---|
<N>j / <N>k | Move cursor N lines down/up (diff pane, 1-9999) |
gg | Jump to first line (diff pane) |
G | Jump to last line (diff pane) |
<N>G | Goto line N (diff pane) |
H / <N>H | Cursor to top of screen / Nth line from top (diff pane) |
M | Cursor to middle of screen (diff pane) |
L / <N>L | Cursor to bottom of screen / Nth line from bottom (diff pane) |
zz | Center viewport on cursor (diff pane) |
zt | Align viewport top on cursor (diff pane) |
zb | Align viewport bottom on cursor (diff pane) |
ZZ | Quit (any pane) |
ZQ | Discard annotations and quit (any pane) |
When the preset is on, the digits 0-9 and the leader keys g, z, Z are intercepted before the regular keymap, so any standalone binding on those keys is overridden while the flag is active. <N>j/<N>k/<N>G, gg/zz/zt/zb, and the screen-position motions H/M/L apply to the diff pane only โ in the file tree they fall through to the normal bindings. ZZ and ZQ work from any pane. While the preset is active L is a screen-position motion rather than the line-numbers toggle (toggle_line_numbers); remap it in the keybindings file if you need both. Press Esc to silently cancel a pending leader; an unknown second key surfaces a transient Unknown: <chord> hint in the status bar. A bare digit 0 is not consumed (falls through to whatever binding is mapped); counts over 9999 are clamped. Modal keys (search input, annotation input, overlay navigation) always take precedence over the interceptor, and ctrl+*/alt+* chord bindings keep working orthogonally.
The help overlay (?) shows a dedicated Vim motion section listing all eleven preset bindings when --vim-motion is on; when off, the section is hidden.
## handler.go (file-level)
consider splitting this file into smaller modules
## handler.go:43 (+)
use errors.Is() instead of direct comparison
## handler.go:43-67 (+)
refactor this hunk to reduce nesting
## store.go:18 (-)
don't remove this validation
When annotation text contains the keyword "hunk" (case-insensitive, whole word), the output header automatically expands to include the full hunk line range (e.g., handler.go:43-67 (+) instead of handler.go:43 (+)). This gives AI consumers the range context without any extra steps.
Comment body lines starting with ## (the record-header form) are prefixed with a single space on output so parsers that split on ## record headers cannot confuse a multi-line comment for a new record.
See CONTRIBUTING.md for details.
MIT License - see LICENSE file for details.
.claude/
.claude-plugin/
marketplace.json
plugin.json
skills/
revdiff/
references/
config.md
install.md
usage.md
scripts/
agentdeck-window.sh
detect-ref.sh
launch-revdiff.sh
read-latest-history.sh
resolve-launcher.sh
SKILL.md
rules/
gotchas.md
.github/
CODEOWNERS
dependabot.yml
FUNDING.yml
scripts/
validate-frontmatter.py
workflows/
ci.yml
release.yml
.gitignore
.golangci.yml
.goreleaser.yml
.zed/
tasks.json
app/
annotation/
parse_test.go
parse.go
store_test.go
store.go
annotations_load_test.go
annotations_load.go
compare_test.go
compare.go
config_test.go
config.go
diff/
blame_test.go
blame.go
compare_test.go
compare.go
diff_test.go
diff.go
directory_test.go
directory.go
exclude_test.go
exclude.go
fallback_test.go
fallback.go
fingerprint_test.go
fingerprint.go
hg_e2e_test.go
hg_test.go
hg.go
hgblame_test.go
hgblame.go
include_test.go
include.go
jj_e2e_test.go
jj_test.go
jj.go
jjblame_test.go
jjblame.go
mocks/
Renderer.go
multiparse_test.go
multiparse.go
multistdin_test.go
multistdin.go
stdin.go
testdata/
binary.diff
empty.diff
gitlog_empty.txt
gitlog_many.txt
gitlog_nobody.txt
gitlog_single.txt
gitlog_tricky.txt
hglog_empty.txt
hglog_many.txt
hglog_single.txt
jjlog_empty.txt
jjlog_many.txt
jjlog_single.txt
mixed_changes.diff
multi_hunk.diff
simple_add.diff
simple_remove.diff
vcs_test.go
vcs.go
editor/
editor_test.go
editor.go
fsutil/
fsutil_test.go
fsutil.go
handoff/
handoff_test.go
handoff.go
highlight/
highlight_test.go
highlight.go
history/
history_save.go
history_test.go
history.go
keymap/
keymap_test.go
keymap.go
layout_test.go
layout.go
main_test.go
main.go
plugin_exit_code_test.go
quitter_moq_test.go
renderer_setup_test.go
renderer_setup.go
review/
stats_test.go
stats.go
reviewinfo_test.go
reviewinfo.go
signal_test.go
signal.go
stdin_test.go
stdin.go
termbg_test.go
termbg.go
testdata/
plugin-exit-code/
fake-overlay-backend.sh
fake-revdiff-output.sh
fake-stdout-launcher.sh
rollout-2026-07-16T10-54-26-session-current.jsonl
themes/
corrupted.ini
duplicate.ini
good.ini
no_theme.ini
theme/
catalog_test.go
catalog.go
theme_test.go
theme.go
themes_test.go
themes.go
ui/
annotate_test.go
annotate.go
annotlist_test.go
annotlist.go
annotnav_test.go
annotnav.go
collapsed_render_test.go
collapsed_test.go
collapsed.go
diffnav_test.go
diffnav.go
diffview_test.go
diffview.go
doc.go
editor_test.go
editor.go
filepicker_test.go
filepicker.go
handlers_test.go
handlers.go
loaders_test.go
loaders.go
mocks/
blamer.go
commit_log_source.go
external_editor.go
renderer.go
sgr_processor.go
style_renderer.go
style_resolver.go
syntax_highlighter.go
word_differ.go
model_test.go
model.go
mouse_test.go
mouse.go
output_test.go
output.go
overlay/
annotlist_test.go
annotlist.go
filepicker_test.go
filepicker.go
help_test.go
help.go
info_test.go
info.go
overlay_test.go
overlay.go
themeselect_test.go
themeselect.go
reviewinfo_test.go
reviewinfo.go
scrollbar_test.go
scrollbar.go
search_test.go
search.go
sidepane/
direction_enum.go
filetree_test.go
filetree.go
motion_enum.go
sidepane_test.go
sidepane.go
toc_test.go
toc.go
style/
color_key_enum.go
color_test.go
color.go
display_test.go
display.go
enums.go
renderer_test.go
renderer.go
resolver_test.go
resolver.go
sgr_test.go
sgr.go
style_key_enum.go
style_test.go
style.go
testdata/
renderdiff.golden
themeselect_test.go
themeselect.go
view_test.go
view.go
vimmotion_test.go
vimmotion.go
worddiff/
highlight_test.go
highlight.go
worddiff_test.go
worddiff.go
CHANGELOG.md
CLAUDE.md
completions/
revdiff.bash
revdiff.fish
revdiff.zsh
CONTRIBUTING.md
docs/
ARCHITECTURE.md
plans/
completed/
2026-04-05-all-files-mode.md
2026-04-07-global-hunk-navigation.md
2026-04-10-style-extraction.md
2026-04-11-sidepane-extraction.md
2026-04-11-worddiff-extraction.md
2026-04-12-overlay-extraction.md
2026-04-15-structural-refactor.md
2026-04-17-commit-info-popup.md
2026-04-27-preload-annotations.md
20260331-revdiff.md
20260331-tui-bugfixes.md
20260331-tui-improvements.md
20260401-discard-quit.md
20260402-collapsed-diff-mode.md
20260402-diff-search.md
20260402-status-line-help-overlay.md
20260402-word-wrap.md
20260403-no-git-file-review.md
20260403-single-file-mode.md
20260404-annotation-list-popup.md
20260404-markdown-toc-navigation.md
20260405-custom-keybindings.md
20260405-fix-file-annotation-bugs.md
20260405-ghostty-support.md
20260405-theme-support.md
20260406-hunk-keyword-expansion.md
20260406-review-findings.md
20260407-move-code-to-app.md
20260408-code-smells-cleanup.md
20260408-review-history.md
20260408-ui-package-split.md
20260409-codex-plugin.md
20260409-intraline-word-diff.md
20260416-external-editor-annotations.md
20260417-hg-jj-skill-scripts.md
20260419-launcher-override-chain.md
20260420-eager-commit-fetch.md
20260421-compact-diff-mode.md
20260422-mouse-support.md
20260423-leader-chord-keybindings.md
20260423-vim-motion-preset.md
20260507-search-history.md
20260511-annotation-rowcache.md
20260521-exit-code-on-annotations.md
20260526-pi-revdiff-claude-workflow.md
20260606-rename-aware-diffs.md
20260702-in-session-annotation-flush.md
20260715-signal-safe-annotation-save.md
flake.lock
flake.nix
go.mod
go.sum
LICENSE
Makefile
package.json
plugins/
codex/
README.md
skills/
revdiff/
revdiff-plan/
scripts/
extract-last-message.sh
SKILL.md
references/
config.md
install.md
usage.md
scripts/
agentdeck-window.sh
detect-ref.sh
launch-revdiff.sh
read-latest-history.sh
SKILL.md
opencode/
commands/
revdiff.md
plugins/
revdiff-plan-review.ts
README.md
setup.sh
tools/
revdiff.ts
pi/
extensions/
revdiff.ts
README.md
scripts/
detect-ref.sh
skills/
revdiff/
SKILL.md
revdiff-planning/
.claude-plugin/
plugin.json
.codex-plugin/
plugin.json
hooks/
codex-hooks.json
hooks.json
README.md
scripts/
codex-plan-review-hook.py
launch-plan-review.sh
plan-review-hook.py
resolve-launcher.sh
README.md
site/
_headers
assets/
favicon-16x16.png
favicon-32x32.png
favicon-96x96.png
favicon.ico
fonts/
ibm-plex-sans-latin.woff2
jetbrains-mono-latin.woff2
icon.png
logo-128.png
logo-256.png
logo-512.png
logo.png
screenshot-2.avif
screenshot-2.png
screenshot-2.webp
screenshot-3.avif
screenshot-3.png
screenshot-3.webp
screenshot-4.avif
screenshot-4.png
screenshot-4.webp
screenshot-5.avif
screenshot-5.png
screenshot-5.webp
screenshot-6.avif
screenshot-6.png
screenshot-6.webp
screenshot-7.avif
... 1275 moreThings to make Claude Code even better โ hooks, skills, and commands, organized as a marketplace of independent plugins. This is an unapologetically opinionated set.
FAQ
revdiff is a Claude Code plugin with 3 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes revdiff-plan, revdiff, revdiff. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.