Add a diff-only view/keybind for reviewing just agent code changes
Describe the feature or problem you'd like to solve
Copilot CLI has useful visibility controls, but none that focus specifically on code line changes only.
Ctrl+O/ expanded timeline shows too much: shell commands, script output, session-state files, markdown/session artifacts, and other operational noise.Ctrl+Tis about reasoning, not code review./diffis helpful, but it doesn't map to the quick "show me exactly what code changed from the agent" interaction I want while staying inside the main terminal flow.
When I'm working in the terminal, I care most about how the agent changed my code. I usually don't care about session-state updates, helper scripts, or verbose command output.
Proposed solution
Add a diff-only review mode in Copilot CLI for agent edits.
Ideal behavior:
- A dedicated keybind to toggle code diff view only.
- Show only edited file hunks, grouped by file.
- Hide shell/script output, session artifacts, state files, and unrelated timeline items by default.
- Support scoping such as:
- last turn only
- all changes in current session
- Render diffs in a clean terminal-native viewer instead of requiring users to expand the entire timeline or open an external editor.
This would make it much easier to audit agent changes quickly and confidently from inside the CLI.
Example prompts or workflows
- I ask Copilot CLI to refactor a function, then hit a keybind to see only the code hunks it changed in that turn.
- I let the agent make several edits, then toggle a session-wide diff-only view without seeing all shell commands and background task output.
- I review changes in a terminal-only workflow without switching to VS Code or manually running
git diff. - I compare the agent's edits before deciding whether to keep working, rewind, or undo.
Additional context
The main gap is not "can I see changes at all?" — it's that the current visibility options are too broad or noisy for the common "review only code edits" workflow.
A dedicated diff-only view would be especially valuable for users who prefer terminal-first workflows and want a fast audit surface similar to focused code-diff review in other coding agents.
One clarification on the intended UX:
The most valuable behavior would be a persistent toggle, not just an on-demand diff viewer.
Desired interaction
- Press a keybind once to enable diff-only live review mode.
- From that point on, each agent code edit automatically shows its diff as it happens.
- The view should stay focused on code hunks only, without interleaving shell output, session-state updates, markdown/session artifacts, or other non-code timeline noise.
- Press the keybind again to turn that mode off.
So the request is less "let me manually open a diff viewer" and more "let me keep the CLI in a mode where agent code changes are continuously surfaced as clean diffs while work proceeds."