GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(review): let nanocoder review run in CI and pipes without a terminal by puri-adityakumar · Pull Request #2300 · Nano-Collective/nanocoder

Conversation

@puri-adityakumar

@puri-adityakumar puri-adityakumar commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Description

Part 4 of 4 for #1287. Targets feat/1287-grounded-review and 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 review needs 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 review now runs without a terminal when stdout is piped or redirected, or when it runs in CI:

  • The report goes to stdout as markdown, and progress goes to stderr.
  • --output-format json (or --json) prints the result as JSON instead.
  • It accepts every scope /review accepts (branch feature/users, last 2 commits, PR numbers) and the quick and deep tiers.
  • Exit codes: 0 for a completed review (or one with nothing to review), 2 for an incomplete one so CI cannot read it as a clean pass, 1 when no review was produced. Ctrl+C cancels and still prints what was covered.
  • Like nanocoder run, it refuses a directory you have not trusted unless you pass --trust-directory or set NANOCODER_TRUST_DIRECTORY=1. The message is the same as run's.
  • --help and shell completions list review for --json and --trust-directory.
  • The integration test that expected nanocoder review 42 without a terminal to be refused now expects the trust check instead.
  • Docs: docs/features/review.md, docs/configuration/index.md, docs/getting-started/index.md. Changeset: .changeset/headless-review.md.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changeset

  • Added a changeset (pnpm changeset) describing this change for the changelog

Testing

Automated Tests

  • New features include passing tests in .spec.ts/tsx files
  • All existing tests pass (pnpm test:all completes successfully)
  • Tests cover both success and error scenarios

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 plain feat/1287-grounded-review in the same setup, so none come from this PR (34 in cli-value-flags.cli-integration with a React duplicate-key error, 2 --acp trust checks that need a trusted checkout, 2 auto-commit tests).
  • pnpm audit and semgrep scan --config auto --error: pass.

Manual Testing

  • Tested with Ollama
  • Tested with OpenRouter
  • Tested with OpenAI-compatible API
  • Tested MCP integration (if applicable)

GMI Cloud (zai-org/GLM-5.3-Flash) on the fixture repo, piping into cat and jq so there is no terminal.

An untrusted directory is refused with exit code 1:

Untrusted directory refused

nanocoder review branch feature/users: progress on stderr, report on stdout, 3 verified issues, exit code 0:

Headless grounded review

nanocoder review --json piped into jq, exit code 0:

Headless JSON review

Checklist

  • If this was for an open issue, I was assigned to it
  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)
  • Appropriate logging added using structured logging (see CONTRIBUTING.md)

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
puri-adityakumar added 6 commits November 19, 2026 21:48
@puri-adityakumar
feat(review): restore the review foundation
ea12a47
@puri-adityakumar
fix(review): catch same-second worktree edits in review snapshots
731f00b
@puri-adityakumar
feat(review): make grounded review the default /review
6fffb47
@puri-adityakumar
fix(review): show incomplete reviews as incomplete in the activity line
cd61347
@puri-adityakumar
feat(review): add /review deep with specialist finders
b7c8d36
@puri-adityakumar
feat(review): run nanocoder review without a terminal
5dd3e0b
@puri-adityakumar
puri-adityakumar marked this pull request as ready for review November 19, 2026 20:15
@puri-adityakumar
puri-adityakumar requested review from addyCooks, akramcodez and will-lamerton as code owners November 19, 2026 20:15
@puri-adityakumar puri-adityakumar mentioned this pull request Nov 19, 2026
Agentic /review: ground findings against the codebase (tier 2) #1287
Closed
@SamanPandey-in SamanPandey-in mentioned this pull request Nov 21, 2026
[Bug] nanocoder run exits 0 without running when the prompt contains -v, --version, -h or --help #2315
Closed
3 tasks done
@will-lamerton will-lamerton mentioned this pull request Nov 23, 2026
feat(review): restore the review foundation that grounded /review builds on #2297
Merged
9 of 18 tasks
puri-adityakumar added 3 commits November 23, 2026 21:11
@puri-adityakumar
refactor(review): run review agents on the shared turn engine
ba2e6e3
@puri-adityakumar
chore(review): sync deep review with turn-engine port and minor chang…
db64ece
…eset
@puri-adityakumar
chore(review): sync headless review with turn-engine port and minor c…
c8ab566
…hangeset
@puri-adityakumar puri-adityakumar mentioned this pull request Nov 23, 2026
feat(review): ground /review findings in the code and verify each one #2298
Merged
11 of 18 tasks
akramcodez added 7 commits November 25, 2026 16:23
@akramcodez
Merge branch 'feat/1287-grounded-review' into review-1287/2-grounded
bdfb677
@akramcodez
fix(review): keep offered text tool calls beside quoted markup and bo…
73ccec2
…und unknown context sizes
@akramcodez
Merge branch 'fix-2298' into fix-2299
7787e01
@akramcodez
fix(review): share the diff size limit so deep review and the verifie…
cb1b252
…r bound unknown context sizes
@akramcodez
Merge branch 'feat/1287-grounded-review' into review-1287/3-deep
5a10634
@akramcodez
Merge branch 'feat/1287-grounded-review' into review-1287/4-headless
019baea
@akramcodez
fix(review): keep the cancelled report and exit code when a headless …
7e0e33d
…review is interrupted
@akramcodez
akramcodez merged commit 948283f into Nano-Collective:feat/1287-grounded-review Nov 25, 2026
akramcodez added a commit that referenced this pull request Nov 26, 2026
@akramcodez @puri-adityakumar
feat(review): grounded, verified /review with deep tier and headless …
97b8b6d
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@will-lamerton will-lamerton Awaiting requested review from will-lamerton will-lamerton is a code owner
@akramcodez akramcodez Awaiting requested review from akramcodez akramcodez is a code owner
@addyCooks addyCooks Awaiting requested review from addyCooks addyCooks is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@puri-adityakumar @akramcodez
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.