Skip to content

feat(review): grounded, verified /review with deep tier and headless CLI - #2417

Merged
akramcodez merged 8 commits into
mainfrom
feat/1287-grounded-review
Nov 26, 2026
Merged

akramcodez merged 8 commits into
mainfrom
feat/1287-grounded-review

Conversation

@akramcodez

Copy link
Copy Markdown
Member

Description

Lands the agentic /review work for #1287 in one change, built from the four sub-PRs already merged into this branch:

  • Review foundation: pinned scope resolution (branch, PR, last N commits, working tree), snapshots, read-only review tools.
  • Grounded default /review: a read-only finder investigates the pinned revision, every issue must cite file:line on or near a changed line, and an independent verifier re-checks each finding. Budget and coverage gaps are reported as incomplete rather than a clean pass. /review quick keeps the one-shot diff review, /review activity shows the saved trace.
  • /review deep: three specialist finders, deduplicated, verified by the same verifier.
  • nanocoder review without a TTY: markdown or --output-format json on stdout, progress on stderr, same directory trust gate as run, exit code 0 completed, 2 incomplete, 1 no review produced.

This branch was merged with current main. Three conflicts were resolved (cli.tsx, docs/features/commands.md, the session history renderer spec), and two specs were updated for main's changes: the directory-trust fingerprint version bump, and the provider config shape the review command now reads for pricing.

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

Verified on the merged branch: test:ava 11973 passed, test:types, Biome lint and format clean, test:knip shows only existing hints. test:audit and the security scan were not run.

Manual Testing

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

No live-model run was done; review behaviour is covered by scripted-client specs.

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)

Closes #1287

puri-adityakumar and others added 6 commits November 25, 2026 16:14
…lds on (#2297)

* feat(review): restore the review foundation

* fix(review): catch same-second worktree edits in review snapshots
…#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]>
…nreviewed (#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]>
…inal (#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]>
@github-actions github-actions Bot added area:tui Terminal UI area:docs Documentation labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

nc-review could not produce a verdict this run (agent exit 1). This is a problem with the review agent, not with your pull request. A maintainer can retry with /re-review.

@akramcodez
akramcodez merged commit 97b8b6d into main Nov 26, 2026
18 checks passed
@akramcodez

akramcodez commented Nov 26, 2026 •

Copy link
Copy Markdown
Member Author

Big thanks to @puri-adityakumar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Documentation area:tui Terminal UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agentic /review: ground findings against the codebase (tier 2)

2 participants