Repository navigation
feat(review): let nanocoder review run in CI and pipes without a terminal - #2300
Merged
akramcodez merged 16 commits intoNov 25, 2026
Conversation
puri-adityakumar
marked this pull request as ready for review
November 19, 2026 20:15
puri-adityakumar
requested review from
addyCooks,
akramcodez and
will-lamerton
as code owners
November 19, 2026 20:15
3 tasks done
9 of 18 tasks
11 of 18 tasks
…und unknown context sizes
…r bound unknown context sizes
…review is interrupted
akramcodez
added a commit
that referenced
this pull request
Nov 26, 2026
…CLI (#2417) * feat(review): restore the review foundation that grounded /review builds on (#2297) * feat(review): restore the review foundation * fix(review): catch same-second worktree edits in review snapshots * feat(review): ground /review findings in the code and verify each one (#2298) * feat(review): restore the review foundation * fix(review): catch same-second worktree edits in review snapshots * feat(review): make grounded review the default /review * fix(review): show incomplete reviews as incomplete in the activity line * refactor(review): run review agents on the shared turn engine * fix(review): keep offered text tool calls beside quoted markup and bound unknown context sizes --------- Co-authored-by: akramcodez <[email protected]> * feat(review): add /review deep so one finder's blind spots don't go unreviewed (#2299) * feat(review): restore the review foundation * fix(review): catch same-second worktree edits in review snapshots * feat(review): make grounded review the default /review * fix(review): show incomplete reviews as incomplete in the activity line * feat(review): add /review deep with specialist finders * refactor(review): run review agents on the shared turn engine * fix(review): keep offered text tool calls beside quoted markup and bound unknown context sizes * fix(review): share the diff size limit so deep review and the verifier bound unknown context sizes --------- Co-authored-by: akramcodez <[email protected]> * feat(review): let nanocoder review run in CI and pipes without a terminal (#2300) * feat(review): restore the review foundation * fix(review): catch same-second worktree edits in review snapshots * feat(review): make grounded review the default /review * fix(review): show incomplete reviews as incomplete in the activity line * feat(review): add /review deep with specialist finders * feat(review): run nanocoder review without a terminal * refactor(review): run review agents on the shared turn engine * fix(review): keep offered text tool calls beside quoted markup and bound unknown context sizes * fix(review): share the diff size limit so deep review and the verifier bound unknown context sizes * fix(review): keep the cancelled report and exit code when a headless review is interrupted --------- Co-authored-by: akramcodez <[email protected]> * fix(review): align review specs and docs with main after merge * fix(review): strip ANSI in review specs so they pass with color forced on * fix(review): stop headless quick review passing on empty or partial output --------- Co-authored-by: Aditya Kumar Puri <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part 4 of 4 for #1287. Targets
feat/1287-grounded-reviewand builds on part 3 (#2299), so please merge that first. Until #2297, #2298 and #2299 are merged, this diff also shows their 5 commits; the new work here is the last commit.Problem.
nanocoder reviewneeds a terminal. In CI, a pipe or a redirect it cannot run, so there is no way to use the grounded review from a script.What this PR does.
nanocoder reviewnow runs without a terminal when stdout is piped or redirected, or when it runs in CI:--output-format json(or--json) prints the result as JSON instead./reviewaccepts (branch feature/users,last 2 commits, PR numbers) and thequickanddeeptiers.0for a completed review (or one with nothing to review),2for an incomplete one so CI cannot read it as a clean pass,1when no review was produced. Ctrl+C cancels and still prints what was covered.nanocoder run, it refuses a directory you have not trusted unless you pass--trust-directoryor setNANOCODER_TRUST_DIRECTORY=1. The message is the same asrun's.--helpand shell completions listreviewfor--jsonand--trust-directory.nanocoder review 42without a terminal to be refused now expects the trust check instead.docs/features/review.md,docs/configuration/index.md,docs/getting-started/index.md. Changeset:.changeset/headless-review.md.Type of Change
Changeset
pnpm changeset) describing this change for the changelogTesting
Automated Tests
.spec.ts/tsxfilespnpm test:allcompletes successfully)Run on macOS, Node 22, with all four parts applied:
test:format,test:lint,test:types,test:knip,build: pass.test:ava: 11,444 pass, 38 fail. The same 38 fail on plainfeat/1287-grounded-reviewin the same setup, so none come from this PR (34 incli-value-flags.cli-integrationwith a React duplicate-key error, 2--acptrust checks that need a trusted checkout, 2 auto-commit tests).pnpm auditandsemgrep scan --config auto --error: pass.Manual Testing
GMI Cloud (
zai-org/GLM-5.3-Flash) on the fixture repo, piping intocatandjqso there is no terminal.An untrusted directory is refused with exit code 1:
nanocoder review branch feature/users: progress on stderr, report on stdout, 3 verified issues, exit code 0:nanocoder review --jsonpiped intojq, exit code 0:Checklist
Logging: progress lines go to stderr, so stdout stays clean for the report or JSON.
Part of #1287. With all four parts in, this covers everything the issue asks for.