claude-ultrareview-chunked
Review a whole existing codebase with Claude Code's ultrareview, one chunk at a time.
cd your-repo
npx -y claude-ultrareview-chunked@latest
Unofficial. claude-ultrareview-chunked is a third-party tool, not made by or affiliated with Anthropic.
It just drives the claude CLI you already have.
It spends money. Every chunk is one cloud ultrareview, roughly $5–$25 in usage
credits after your 3 free runs. A 300k-line repo is ~50 chunks. claude-ultrareview-chunked estimates
the bill before every launch and never starts one without a yes.
The use case
You inherited a repo. Or you wrote one over three years and would like a second pair of
eyes on all of it, not just the last pull request. /code-review ultra is very good
at that, but it reviews a diff, capped at 500 files and 8,000 changed lines. Point
it at an existing codebase and there is no diff to review.
claude-ultrareview-chunked fakes the diff. It slices the repo into chunks that fit under the cap, builds a
throwaway commit pair for each one where the "change" is exactly that chunk, and runs
one ultrareview per pair. The reviewer still gets the whole repository to read, so it
can follow an import out of the chunk instead of guessing.
It keeps score by content, so you can sweep a live codebase
over weeks without paying to re-review files that moved.
How the chunk trick works
For each chunk claude-ultrareview-chunked builds two commits:
claude-ultrareview-chunked/base-0007 orphan commit: the whole repo MINUS the chunk's files
claude-ultrareview-chunked/chunk-0007 the whole repo, parented on that base
The diff between them is exactly the chunk, as pure additions. The review runs from a
throwaway worktree with:
claude ultrareview claude-ultrareview-chunked/base-0007 --json --no-post
Both commits are built through a scratch git index. Your index, working tree, HEAD and
branches are never touched. Every pair is checked before use (merge-base, exact file
list, additions only) and re-measured against the 500-file / 8,000-line caps right
before a review is allowed to start.
Install
npx -y claude-ultrareview-chunked@latest # nothing to install
npm i -g claude-ultrareview-chunked # or keep it on PATH
The package installs one command, claude-ultrareview-chunked.
You need Node 20+, git, and a Claude Code that is logged in to a claude.ai account
(ultrareview does not work on API keys). claude-ultrareview-chunked checks all of that before it spends
anything.
Use it
claude-ultrareview-chunked
That is the whole interface. It surveys the repo, shows you the chunks and what they
cost, lets you pick a few, launches the reviews in the background, and reads the
findings back when they land. Quit whenever; the reviews keep going.
A first sweep usually looks like:
claude-ultrareview-chunked → pick the directories you care about → it plans, say, 12 chunks.
- Review 3 of them. Wait ten minutes. Read the findings. Decide whether it is worth it.
- Come back later and review a few more. Repeat until pending hits zero.
Subcommands, for scripts and agents
claude-ultrareview-chunked plan --scope src,tests --json # survey and chunk (free)
claude-ultrareview-chunked run --chunks 3-5 --yes # launch reviews (billed)
claude-ultrareview-chunked run --chunks 3-5 --dry-run # build and prove the pairs, launch nothing
claude-ultrareview-chunked status --json # planned / running / done
claude-ultrareview-chunked findings --json # findings with chunk provenance
claude-ultrareview-chunked stop # stop the run in flight
claude-ultrareview-chunked clean --yes # remove claude-ultrareview-chunked worktrees and branches
claude-ultrareview-chunked unlock # clear a lock a dead supervisor left behind
--chunks takes chunk ids, the numbers in the # column. They never get reused
across re-plans, so after the first re-plan they stop matching list positions. An id
that is not in the plan is refused rather than substituted.
claude-ultrareview-chunked run never prompts. --yes is the consent, terminal or not; without it claude-ultrareview-chunked
prints the cost and exits. Every question the guided flow asks has a flag like that, so
nothing ever hangs waiting on a terminal that is not there.
--force re-runs a chunk that may already have been billed (a review that failed,
timed out, or lost its supervisor still consumed a run). claude-ultrareview-chunked refuses those without it.
Long sweeps
main does not stand still for a month. claude-ultrareview-chunked records the git blob sha of every
file it has reviewed, so on the next plan: