A Neovim plugin and Claude Code slash command for local branch code reviews.
Opinionated around git worktrees — each worktree holds a single feature branch, so .reviews/ files are always branch-specific without needing branch names in filenames.
The /review-branch Claude Code command reviews your branch diff against main and writes the result to .reviews/<datetime>.md. The Neovim plugin lets you browse those files and jump from review references directly into the source code.
Tip: add
.reviews/to your global gitignore (~/.gitignore_global) so review files are never accidentally committed.
{
url = "https://codeberg.org/tscolari/nreviewer",
config = function()
require("review-browser").setup()
end,
}Optional keymaps:
vim.keymap.set("n", "<leader>cr", "<cmd>ReviewBrowse<cr>", { desc = "Browse code reviews" })
-- <leader>cy (copy section) is set automatically inside review buffersAfter installing the plugin, run this once from Neovim:
:ReviewBranchInstall claudeThis symlinks commands/review-branch.md from the plugin's install directory into ~/.claude/commands/.
Adjust the source path to match your lazy.nvim install directory if different.
- In a Claude Code session, run
/review-branch— the review is written to.reviews/<datetime>.md - In Neovim, run
:ReviewBrowse— select a review to open it full screen - Inside the review:
gf— open the nearest file reference above cursor in a right vsplitgF— open the nearest file reference above cursor in the current window
gf/gF search backwards from the cursor, so they work anywhere within a file's section — not just on the filename line itself.
| Command | Description |
|---|---|
:ReviewBrowse |
Date-sorted picker of .reviews/*.md, opens selected full screen |
:ReviewOpen |
Open nearest file reference above cursor in current window |
:ReviewOpenSplit |
Open nearest file reference above cursor in a right vsplit |
:ReviewCopySection |
Copy current file section (header → ---) to system clipboard |
:ReviewBranchInstall <target> |
Symlink the review command (e.g. :ReviewBranchInstall claude) |
:ReviewOpen, :ReviewOpenSplit, and :ReviewCopySection are buffer-local — available only inside .reviews/*.md files.
Set automatically inside review buffers. Override by mapping to the commands above.
| Key | Command |
|---|---|
gf |
:ReviewOpenSplit |
gF |
:ReviewOpen |
<leader>cy |
:ReviewCopySection |