Skip to main content

Review and inline diffs

Coding provides several change views. An inline diff shows the change captured by one edit card. Review handles agent changes it captured. Files shows current complete content. Git shows worktree state.

Inline diff in the conversation​

When the conversation shows Edited files, select it to expand the recorded change.

An inline file diff in Ghast Coding
Red lines were removed and green lines were added. The header also shows the file and line counts.
  1. Confirm that the file is allowed by the request.
  2. Compare the + and − counts with the expected size of the change.
  3. Expand every changed file and inspect red and green lines.
  4. Look for accidental edits to configuration, lockfiles, or generated files.
  5. For important files, use the Files panel to inspect the complete post-change content.

Review panel​

Open Workspace panel → New tab → Review. The panel can handle captured agent changes by file or hunk:

ActionResult
AcceptKeep the current agent result; it does not write the file again
RejectRestore the target to its content before that change
UndoUndo the accepted or applied change
ReapplyRestore the post-change result after an undo

Before an action, confirm that you or another process has not changed the file since Review captured it. Reject, Undo, and Reapply compare current content with the recorded state; a mismatch makes the action fail, so refresh and inspect again instead of forcing an overwrite. Accept does not perform that content-match check. A successful Accept updates the record but does not prove that the current file still matches the captured result; verify the file or Git diff.

Review handles only change records it recognizes. It is not a complete git status and does not mean a file is staged or committed.

When Review says there are no changes​

If Review shows No file changes / Generated file changes will appear here, select Refresh. When the inline diff or Git still shows a change, use those views. An empty Review panel does not mean the worktree is clean.

A file diff opened from the Ghast Git panel
The Git diff shows current worktree content and complements the edit record in the conversation.

Four-step review​

  1. Inline diff: what this edit card recorded.
  2. Review: whether to keep or restore a captured agent change.
  3. Files: whether the complete changed file remains coherent.
  4. Git: which files are now staged, unstaged, or conflicted.

When a change exceeds scope, stop the next run and identify the file explicitly. Use Reject, Undo, or Discard only after confirming the content is not pre-existing work.