You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Flush review annotations to the output file without exiting revdiff #248
Currently, review annotations are only written to stdout or the configured output file when revdiff exits.
This works well for the existing review flow, but it makes it difficult to use revdiff as a long-lived review session.
Proposed feature
Add a way to flush the current review annotations to the configured output destination without exiting revdiff.
One possible implementation would be a dedicated O key (for Output) that writes the current annotations to the configured output file while leaving the review session active.
Motivation
I'd like to keep a dedicated terminal/CMUX tab with revdiff open for the duration of a coding session.
My ideal workflow would be:
Claude/Codex generates code.
Review the changes in the permanently-open revdiff tab.
Add inline review comments.
Press O to output the current annotations to a file.
Ask Claude/Codex to address the comments from that file.
Press R to reload the updated diff.
Continue reviewing in the same revdiff session.
At the moment, this isn't possible because the review output is only produced when revdiff exits.
Why this would be useful
The existing Claude agent skill is great for straightforward review cycles, but it requires repeatedly launching and closing revdiff from within the agent session.
Running revdiff independently avoids that, but you're still forced to quit every time you want the structured output for the AI to consume.
Being able to output the current annotations without exiting would enable a much smoother human-in-the-loop workflow where:
revdiff remains open as the permanent review interface.
AI agents consume the latest exported review whenever requested.
The reviewer can continue working in the same session across multiple implementation/review iterations.
R can be used to refresh the diff after changes without recreating the review session.
Thanks for considering it and lemme know if I've missed something in revdiff that would allow for this flow anyway!
O flush is in, merged in #249. Press O while -o/--output is set and revdiff writes the current annotations to that file without exiting, so you can keep the tab open, hand the file to the agent, and keep going. The store isn't cleared, so annotations stay in-session and re-flushing just overwrites the file with the full current set.
the workflow you described (annotate, O, agent fixes, R reload, repeat) exposed one rough edge, so it comes with a companion flag: --no-confirm-reload. R reload re-diffs the changed tree and drops the current annotations, so it normally asks "Annotations will be dropped, press y to confirm" every time. In your loop you've already exported them with O, so that prompt is pure friction on each iteration. --no-confirm-reload (also REVDIFF_NO_CONFIRM_RELOAD, or no-confirm-reload in the config) makes R reload immediately. Opt-in and off by default, same as the existing --no-confirm-discard for Q.
full loop in one session: revdiff -o review.md --no-confirm-reload, annotate, O to export, let the agent address review.md, R to pick up the changes, repeat.
Activity
feat: flush annotations to output file without exiting (O key)
umputun commentedon Jul 3, 2026
Oflush is in, merged in #249. PressOwhile-o/--outputis set and revdiff writes the current annotations to that file without exiting, so you can keep the tab open, hand the file to the agent, and keep going. The store isn't cleared, so annotations stay in-session and re-flushing just overwrites the file with the full current set.the workflow you described (annotate,
O, agent fixes,Rreload, repeat) exposed one rough edge, so it comes with a companion flag:--no-confirm-reload.Rreload re-diffs the changed tree and drops the current annotations, so it normally asks "Annotations will be dropped, press y to confirm" every time. In your loop you've already exported them withO, so that prompt is pure friction on each iteration.--no-confirm-reload(alsoREVDIFF_NO_CONFIRM_RELOAD, orno-confirm-reloadin the config) makesRreload immediately. Opt-in and off by default, same as the existing--no-confirm-discardforQ.full loop in one session:
revdiff -o review.md --no-confirm-reload, annotate,Oto export, let the agent addressreview.md,Rto pick up the changes, repeat.