Skip to content

About

Local app for reviewing AI-generated code with Claude Code alongside

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Code Review

A local app for reading and reviewing code written by Claude Code or other coding agents. Code on the left; files, a Claude chat, and your own notes on the right.

Setup (once)

Requires Node.js 20+ and the claude command (Claude Code), already logged in.

cd ~/GitHub/code-review
npm install
npm link          # optional: adds a `code-review` command you can run from anywhere

Use

code-review ~/path/to/project      # or: npm start -- ~/path/to/project

The app opens at http://localhost:4317. You can also switch projects from the path box at the top.

A typical review:

  1. Compare with (top bar): pick what to compare against. Last commit shows uncommitted changes. If the agent made its own commits, pick the commit from before it started.
  2. Files panel: the Changed tab lists only what the agent touched (M = modified, A = added, D = deleted). ✓ = reviewed, ● = changed again since you reviewed it.
  3. Open a file. Modified files open in Changes view, which shows only what's different (unchanged stretches are folded away). Inline switches to a single column.
  4. Ask Claude:
    • Tour all changes: the overall goal, a suggested reading order, and the riskiest parts.
    • Explain file / Explain changes: a walkthrough of this file or of its diff.
    • Select lines, then Explain selection (or right-click, or ⌘⇧E).
    • Or type a question. The open file and selection are attached automatically (shown above the input; click × to leave them off).
    • References like src/model.jl:42 in Claude's answers are links that jump to that line.
  5. Notes: General is a free-form scratchpad. On lines holds notes pinned to code (select lines, then Add note). Pinned lines get a yellow dot in the editor.
  6. Tick Reviewed when you're happy with a file. The progress bar tracks changed files.

Files reload automatically when the agent edits them while you're reviewing.

Tabs and split panes

  • Every file you open gets a tab. Close a tab with × or a middle-click.
  • Split (or ⌘\) opens the current file in a new pane to the right, up to three panes. ⌘-click a file in the list to open it in the pane beside the current one.
  • Drag tabs to reorder them or move them between panes. Drag a tab or a file from the list onto the right edge of a pane to open it in a new pane.
  • The toolbar, Explain buttons and chat attachment act on the pane you last clicked in (its tab is underlined). When you type a question, Claude is also told which other files you have open, so you can ask how they relate.
  • Open tabs and panes are remembered per project and come back when you reopen the app.

Where things are saved

Everything is stored in the reviewed project under .review/:

  • review.json: notes and reviewed status, which the app reads.
  • NOTES.md: a readable copy of your notes, regenerated on every save.
  • chat.json: chat history. New chat starts a fresh conversation.

Commit .review/ if you want to keep your review alongside the code, or add it to .gitignore.

How Claude is used

The chat runs claude -p in the project folder, using your existing Claude Code login and counting toward your normal Claude Code usage. Claude only gets read-only tools (Read, Grep, Glob), so it can look around the project but can't edit files or run commands. Pick a model with the dropdown in the Claude panel.

Notes and limits

  • The editor is read-only on purpose; make changes in your normal editor or through the agent.
  • Jupyter notebooks are shown as scripts, with cells separated by # %% lines.
  • Line notes keep the line numbers they were made on. If the file changes a lot, use Ask Claude on the note to find where the code moved.
  • The server listens only on 127.0.0.1 and rejects requests from other websites.

About

Local app for reviewing AI-generated code with Claude Code alongside

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages