Skip to content
Theme:

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.

┌─────────────────┬───────────────────────────┐
│ 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) │
└─────────────────────────────────────────────┘
KeyAction
h / Focus file list (left pane)
l / or EnterFocus diff (right pane)
j / Move down
k / Move up
g gJump to top
GJump to bottom
cAdd comment on current line
EnterSubmit all queued comments
rRefresh the diff
EscClose git diff view
  1. Navigate to a diff line you want to comment on
  2. Press c to open the comment input
  3. Type your comment and press Enter to queue it
  4. Navigate to other lines and add more comments
  5. 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.

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