-
Notifications
You must be signed in to change notification settings - Fork 2
Incremental review (push-by-push delta) #16
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestpriority: highHigh priority enhancementHigh priority enhancement
Description
Problem
When a developer pushes 3 commits to an open PR, they want feedback only on what changed since the last review — not a full re-review of the entire diff. No major competitor has implemented this yet, but it's the most frequently requested feature across the AI code review category.
This is an opportunity to be first-to-market.
Proposed Solution
-
Track review state per PR:
- Store the last-reviewed commit SHA per PR
- On subsequent pushes, compute the delta between last-reviewed SHA and new HEAD
-
Delta review mode:
diffscope pr --incremental— only review changes since last reviewdiffscope pr --since <sha>— review changes since a specific commit- Auto-detect incremental mode when a prior review exists for the PR
-
Smart comment management:
- Resolve/collapse comments on lines that were addressed in new commits
- Add new comments only for new/changed code
- Update the summary comment with incremental findings
-
State storage:
- Store review state in PR comments (hidden metadata) or in the database
- Fallback:
.diffscope.state.jsonfor CLI-only workflows
Implementation Notes
- The
prcommand already fetches the full PR diff — this needs to be scoped to a commit range - GitHub API:
GET /repos/{owner}/{repo}/pulls/{pull_number}/commitsto get commit list - Use
git diff <last_reviewed_sha>..HEADfor the delta
Competitive Context
No major competitor has this yet. Being first would be a genuine differentiator.
Priority
Tier 2 — First-mover opportunity. Most-requested feature in the category that nobody has shipped.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpriority: highHigh priority enhancementHigh priority enhancement