Git Diff View
Press Ctrl+G to open or close the git diff view. It shows changed files on the left and the working-tree diff relative to HEAD on the right. You can navigate hunks, queue inline comments, and submit those comments back to the agent as a structured prompt.
Layout
Section titled “Layout”┌─────────────────┬───────────────────────────┐│ Changed Files │ Unified Diff ││ │ ││ ● src/main.rs │ @@ -10,6 +10,8 @@ ││ src/lib.rs │ fn main() { ││ Cargo.toml │ + let config = ... ││ │ + setup(config); ││ │ run(); ││ │ } ││ │ │├─────────────────┴───────────────────────────┤│ j/k:move n/p:hunk c:comment s:submit │└─────────────────────────────────────────────┘Navigation
Section titled “Navigation”| Key | Action |
|---|---|
Tab / Shift+Tab | Move focus between the file list and diff pane |
h / ← | In the diff pane, focus the file list; in the file list, collapse or move to parent |
l / → or Enter | In the file list, expand/open the selected entry and focus the diff |
j / ↓ | Move down |
k / ↑ | Move up |
g | Jump to top of the diff pane |
G | Jump to bottom of the diff pane |
PageDown / PageUp | Page through the diff pane |
n / p | Jump to next / previous hunk in the diff pane |
c | Add a comment at the current diff location |
Enter | Submit a comment while editing that comment |
s | Submit all queued comments to the agent |
u | Undo the last queued comment |
r | Refresh the diff |
< / > | Resize the split panes |
Esc | Close git diff view |
Inline comments
Section titled “Inline comments”- Navigate to a diff line you want to comment on.
- Press
cto open the comment editor. - Type your comment and press
Enterto queue it. - Add more comments if needed.
- Press
sfrom the diff pane to submit all queued comments.
All queued comments are sent as a single prompt to the agent, grouped by file and including the line number, line kind, line text, and your feedback. This lets the agent understand exactly which changes you’re commenting on.
Use case
Section titled “Use case”The git diff view is designed for reviewing agent-generated changes. After the agent modifies files, open the diff to:
- See exactly what changed
- Add targeted feedback on specific lines
- Request fixes to particular hunks without describing them in prose