Git Diff View
Press Ctrl+G to open the git diff view. It shows a two-pane layout: changed files on the left, unified diff on the right. You can navigate the diff and add inline comments that get sent 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(); ││ │ } ││ │ │├─────────────────┴───────────────────────────┤│ > Comment input (when active) │└─────────────────────────────────────────────┘Navigation
Section titled “Navigation”| Key | Action |
|---|---|
h / ← | Focus file list (left pane) |
l / → or Enter | Focus diff (right pane) |
j / ↓ | Move down |
k / ↑ | Move up |
g g | Jump to top |
G | Jump to bottom |
c | Add comment on current line |
Enter | Submit all queued comments |
r | Refresh the diff |
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 input - Type your comment and press
Enterto queue it - Navigate to other lines and add more comments
- Press
Enter(when not in comment input) to submit all comments
All queued comments are sent as a single prompt to the agent, including the file path, line number, and surrounding diff context. 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