turboreview is a terminal code-review tool for git repositories. Review the
working tree or browse the branch's commit history, with a file tree on the left
and the selected diff (syntax-highlighted, adjustable context) on the right.
Stage files, mark them reviewed, leave line comments — and let an AI coding agent
read those comments, fix the code, and respond.
Install
Prerequisites:
- A recent stable Rust toolchain (
cargo) andgit. Install Rust via rustup:curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh. - A C compiler / build toolchain —
git2(libgit2) andlibzare built from source. macOS: Xcode Command Line Tools (xcode-select --install). Linux:build-essentialandpkg-config. - Linux only: X11 clipboard libraries for copy support (
arboard), e.g. on Debian/Ubuntu:libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev. - A Nerd Font set in your terminal for the file-type glyphs.
From crates.io
The turboreview binary lands in ~/.cargo/bin — make sure that's on your
PATH.
From source
Developing
&&
Updating later: re-run cargo install turboreview (add --force to overwrite
an older build).
Usage
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.
Layout
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, and per-commit diff stats
N files +ins -del). Diff stats are computed lazily for the rows in view. The list loads 50 commits at a time; scroll to the bottom and pressLto load the next page. PressEnteron 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.
Keys
| 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 |
L |
load more commits (Commits view, when more history exists) |
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 |
qq / Ctrl-C |
quit (press q twice to avoid accidental exits) |
In the comment input box: type freely, Enter for a newline, Ctrl-S to save, Esc to cancel. Saving an empty comment deletes it.
Staging
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.)
Comments
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.
AI-agent review loop
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.
File history & search
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.
Review state & storage
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.
Display notes
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.