Changes Panel¶
The interactive REPL includes a read-only Git changes panel for reviewing the working tree without leaving the conversation. It shows changed files, their status and line counts, and a diff of the selected file.
The panel does not stage, commit, discard, or otherwise modify changes. Use the normal Git workflow for those operations.
Layout and Visibility¶
The panel is available when Keen is running inside a Git repository.
- Split view: When the terminal is at least 140 columns wide and the working tree has changes, the panel appears beside the conversation. The conversation uses the other half of the terminal.
- Full-screen view: The file tree appears on the left and the selected diff on the right. This layout also works in narrower terminals.
- Hidden: The conversation uses the full terminal width. When changes exist, a
◆ N changedindicator near the input area shows the file count, line counts, and theCtrl+Gshortcut.
Press Ctrl+G to cycle through split view, full-screen view, and hidden. In a narrow terminal, the cycle skips split view. A clean working tree hides the split panel and its indicator.
When the panel is visible, press Tab to move focus between the prompt and the file list. The › character identifies the selected row. You can also click a file to select it or a directory to collapse or expand it.
Reading the File List¶
Each file row contains a turn marker, a Git status, the path, and available change information:
●means the file changed during the current or most recent agent turn. A blank space means it did not.Mmeans modified.Ameans added.Dmeans deleted.?means untracked.Umeans the file has a merge conflict.
For example, ●? main.go describes an untracked file changed during the current or most recent agent turn. The ● and ? are independent: the first is Keen's turn marker, and the second is the Git status.
Markers are reset when a new agent turn begins and remain visible after that turn finishes. They do not cover the entire application session. They also do not establish who made an edit: changes made by external tools during the turn can be marked too.
The header shows the total file count and aggregate additions and deletions. Individual rows show their own counts when available, along with a small bar comparing the size of each change. Binary files show bin; untracked directories show their file count instead.
Directories use ▾ when expanded and ▸ when collapsed. Press t to switch between a directory tree and a flat path list. Selecting a file automatically expands its parent directories.
Diff View¶
The diff shows the selected file relative to its HEAD content, with additions and deletions highlighted. Unchanged sections between hunks are summarized rather than displayed in full.
The selected file's path and status appear above the diff. When hunks are available, the title also shows the current hunk position, such as hunk 2/5.
Binary files display their old and new sizes instead of text. Diffs for files larger than 1 MiB are not loaded automatically; press Enter on the selected file to load one. Untracked directories display their contained file paths, and can be expanded in tree view.
Keyboard Controls¶
Focus the panel with Tab, then use:
| Key | Action |
|---|---|
↑ / ↓ or k / j |
Select the previous or next row |
← / h |
Collapse the selected directory, or move to its parent directory |
→ / l |
Expand the selected directory |
Enter or Space |
Toggle a directory, or load a large file's diff |
n / p |
Go to the next or previous hunk; continue to the adjacent file at either end |
PageDown / PageUp |
Scroll the diff by half a page |
Shift+Down / Shift+Up |
Scroll the diff by one line |
Home / End |
Go to the top or bottom of the diff |
t |
Toggle tree and flat-list views |
@ |
Insert an @path mention in the prompt and return focus to it |
y |
Copy the selected path |
o |
Open the selected file with $VISUAL or $EDITOR |
r |
Refresh Git status and diffs |
? |
Toggle the in-panel keyboard help |
Esc |
Return to split view from full-screen view, or return focus to the prompt |
Ctrl+G |
Cycle split view, full-screen view, and hidden |
The mouse wheel scrolls either the file list or the diff, depending on where the pointer is located.
Refreshing and Scope¶
Keen refreshes relevant file diffs as tools report edits. The panel also runs periodic Git status scans while visible. Changes made through shell commands or MCP tools are picked up by a full scan after the agent turn ends. Press r to request an immediate refresh.
The panel reflects both staged and unstaged working-tree state, including untracked files. It is read-only, so viewing a diff never changes the Git index or working tree. ● markers are transient UI state and are not stored in the saved conversation session.