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
Proposal: Add a --description cli flag so the agent can explain the diff to the user in a dedicated pane. #130
Posting this issue as the CONTRIBUTING docs request before submitting PRs.
Problem
I've been using revdiff with both of the provided plugins with Claude Code for the last week or so along with an additional hook I added to review code changes prior to commits. It's great!
One thing I've noticed though is that, when revdiff auto-opens diffs in a tmux popup, it's not always clear what it changed and why, especially when I click away while claude is working and come back to it after a meeting or something.
Proposal
I was thinking that it would be really nice if the agent had an extra flag in the CLI that it could use to add some description about the diff. This description text (ideally in syntax highlighted markdown) could appear in a pane, potentially at the top, bottom or side of the popup. I'd think you should be able to navigate to the pane and scroll up and down as you can in the code pane and of course be hideable, etc.
The revdiff skills and plugins could be updated so that it would give concise, yet useful context for the diff you're looking at. Ideally, the agent would describe the changes it made or what kind of feedback its seeking, etc.
The description could be omitted by default or perhaps, show the command that was run to generate the diff as a fallback. I think either would be fine personally.
Would this be something you are interested in? I believe it could be helpful for all users of revdiff.
agree this would be useful. happy to take a PR. a few design notes to frame the shape:
on pane vs overlay — I'd lean overlay (same pattern as the i commit-info popup): toggled by a hotkey, scrollable, full-height, uses the existing overlay manager. simpler than a persistent pane, doesn't fight the tree/diff for space on narrow terminals, hideable by default which matches what you described.
idea to consider: in addition to --description="...", might be worth adding --description-file=path.md for longer markdown — avoids shell-escape pain when agents generate multi-line content. up to you whether to include it in the first cut.
markdown rendering: revdiff already highlights markdown via chroma (same path used when you view a .md file in the diff), so the description overlay can reuse that — keeps the styling consistent with the rest of the TUI, no new dependency needed.
one thing worth thinking about: an opt-in flag (e.g. --description-auto-open or similar) to open the description overlay automatically on startup when --description is set. useful for agent workflows where you want the context visible the moment the popup appears, but off by default so interactive users aren't force-fed a popup.
ping me if you want feedback on the approach before coding, otherwise open a PR whenever.
Activity
umputun commentedon Apr 20, 2026
agree this would be useful. happy to take a PR. a few design notes to frame the shape:
on pane vs overlay — I'd lean overlay (same pattern as the
icommit-info popup): toggled by a hotkey, scrollable, full-height, uses the existing overlay manager. simpler than a persistent pane, doesn't fight the tree/diff for space on narrow terminals, hideable by default which matches what you described.idea to consider: in addition to
--description="...", might be worth adding--description-file=path.mdfor longer markdown — avoids shell-escape pain when agents generate multi-line content. up to you whether to include it in the first cut.markdown rendering: revdiff already highlights markdown via chroma (same path used when you view a
.mdfile in the diff), so the description overlay can reuse that — keeps the styling consistent with the rest of the TUI, no new dependency needed.one thing worth thinking about: an opt-in flag (e.g.
--description-auto-openor similar) to open the description overlay automatically on startup when--descriptionis set. useful for agent workflows where you want the context visible the moment the popup appears, but off by default so interactive users aren't force-fed a popup.ping me if you want feedback on the approach before coding, otherwise open a PR whenever.
codylandry commentedon May 1, 2026
Thanks for shipping this @umputun! Sorry I was delayed in getting my PR ready. This is great 👍