turboreview is a terminal code-review tool for git repositories. Review the
working tree (unstaged/staged changes) or browse the branch's commit history
and review each commit's diff. The left pane lists files in a directory tree; the
right pane shows the selected file's diff with syntax highlighting, a line-number
gutter, and adjustable context. Stage or unstage whole files, mark files
reviewed, leave line comments — and let an AI coding agent read those comments,
fix the code, and respond.
turboreview [REPO_PATH] # defaults to the current directory
turboreview --skill # print the AI-agent guide and exit
Run inside (or point at) any git repository.
Two views, toggled with [ / ]:
- Changes — the working tree. Left pane has two sections,
▌ Unstaged (N)and▌ Staged (N), each a collapsible directory tree. - Commits — the branch history. Left pane lists commits (short hash, summary,
author, date). Press
Enteron a commit to drill into its changed files (diff vs the commit's first parent);Escsteps back out.
In both views:
- Left pane — Files. Each file row shows a colored status letter
(
Aadded,Mmodified,Ddeleted,Rrenamed), a review tick (✓reviewed /○not), and a Nerd Font file-type icon. The pane can be resized or hidden entirely (see keys). - Right pane — Diff. Syntax-highlighted code with a line-number gutter.
Added/removed lines are bright with a green/red background; unchanged context
lines are dimmed so changes stand out. A line cursor (highlighted row) marks
where comments attach. The title shows
(ctx N)or(full file). Pressvfor a side-by-side (split) view — old on the left, new on the right — which is remembered across sessions. - Comments pane (toggle with
C). An optional third column listing the current scope's comments grouped by status (Open / NeedsInfo / Wontfix / Resolved). PressEnteron a comment to jump to its file and line.
Press ? at any time for an in-app keybinding overlay.
| Key | Action |
|---|---|
[ / ] |
switch view (Changes ⇆ Commits) |
Tab |
switch focus across the visible panes |
↑/↓ j/k |
move selection / commit / line cursor in the focused pane |
⇧↑/⇧↓ J/K |
jump (fast scroll) in the focused pane |
| mouse wheel | move the focused pane's cursor |
gg / G |
jump to top / bottom of the focused pane |
Enter |
open commit · focus a file's Diff · fold dir · jump to comment |
C |
toggle the comment-list pane |
Esc |
step back (Diff → files → commit list) / focus the Files pane |
h/l ←/→ |
scroll the diff horizontally (Diff pane) |
+ / - |
increase / decrease diff context (step 5; + at max → full file) |
F |
toggle full-file view (shortcut; also reachable via +) |
v |
toggle side-by-side (split) vs unified diff (persisted) |
H |
file-history overlay for the selected file's diff |
{ / } |
step to older / newer revision (in the history overlay) |
/ |
search within the current diff |
n / N |
jump to next / previous search match |
a |
fold / unfold all directories in the file tree |
z |
hide / show the file pane (diff goes full-width) |
< / > |
narrow / widen the file pane |
c |
comment on the cursor line (opens a modal input box) |
s |
stage the selected file (Unstaged) / unstage it (Staged) |
Space |
toggle the reviewed checkbox on the selected file |
R |
toggle hiding reviewed files |
r |
refresh everything from disk / git |
? |
show the keybinding help overlay |
q / Ctrl-C |
quit |
In the comment input box: type freely, Enter for a newline, Ctrl-S to save, Esc to cancel. Saving an empty comment deletes it.
s on a file in the Unstaged section stages it; on a file in the Staged
section it unstages it. Staging only moves changes into or out of the git index —
your working-tree files are never modified. (Hunk-level staging is not yet
supported.)
Press c on a diff line to attach a comment. Comments render in a bordered box
directly under their line.
Each comment is anchored to its line's content plus the surrounding lines, so
it follows the line when the file shifts (e.g. lines inserted above). If a comment
can no longer be confidently placed, it is shown as ⚠ outdated rather than lost.
Comments carry a status (open, resolved, wontfix, needs_info) and an
optional response. An AI coding agent can close the loop:
- Run
turboreview --skillto print a guide describing the on-disk schema and workflow. - The agent reads the open comments, makes the requested changes, then writes a
responseand sets thestatusin the relevantcomments.json. - Reopen turboreview — each comment box shows the agent's status badge
(
✓ resolved,✗ wontfix,? needs-info) and its response inline.
Press H on a file's diff to enter the history overlay — it walks the
commits that touched that file (newest first). { steps to an older revision,
} to a newer one; } past the newest returns to the live diff, and Esc
exits. While stepping, the cursor stays on the same line number, the view
scrolls to keep it centered, and context is expanded (up to full file) if needed
to show that line. Comments made on a past revision are stored in that commit's
scope (.turboreview/commits/<sha>/).
Press / to search within the current diff (case-insensitive substring).
n and N jump to the next and previous match.
Reviewed flags and comments persist under <repo>/.turboreview/:
| Path | Holds |
|---|---|
.turboreview/comments.json · reviewed.json |
working-tree review (Changes view) |
.turboreview/commits/<sha>/comments.json · … |
per-commit review (Commits view) |
.turboreview/comment-log.jsonl |
append-only activity log (newest last) |
The comment log records one JSON object per comment add/edit
({path, line, scope, date, action}, where date is a YYYY-MM-DD HH:MM:SS
timestamp), so an agent can read the tail to find the latest review activity. Add .turboreview/ to your .gitignore if you don't
want it tracked. R hides reviewed files to declutter the list.
File-type icons use Nerd Fonts — install a Nerd Font in your terminal for the glyphs to render correctly (otherwise you'll see fallback boxes). Code highlighting uses the bundled Catppuccin Mocha–style dark theme.
