Skip to content

Review changes

Each of these opens a review tab in place of the terminal:

  • Review Unviewed on the bar under the agent’s pane
  • Review All Unviewed in the Changes panel (⌥⌘I)
  • ⌥⌘R
  • ⌥⌘L, for the focused agent’s latest turn

Use the scope menu to choose what the review shows: one conversation’s unviewed turns, all unviewed turns in the worktree, a single turn, the uncommitted changes, or the branch against its base.

A review tab showing a file’s diff, with a saved comment under one of its lines

The turn card shown in review has a strong neutral outline. Restore Code to Before This Turn… uses a red backward arrow on the card and in the command palette. Deleting files or history uses a trash can; closing or removing a row without deleting uses an X.

Click the number of a line you want changed, press C, write your comment, and choose Add. Then choose Insert n Comments. Weir puts the comments into the agent’s input as one message, and you press Return to send it.

Comments survive a restart. A comment whose code has moved since you wrote it is held back rather than sent.

Mark as Viewed (⌘⏎) moves the viewed line past the turns you read, and they leave Needs Attention. If you change your mind, Unmark as Viewed takes it back.

Weir has two ways to put code back. Undo Discard and Undo Restore reverse them.

To undo Use What it changes
One block of changes Discard on a hunk in the review That hunk
A turn and everything after it Restore Code to Before This Turn… on a card in the Changes panel, or in the bar’s ⋯ menu while the turn is unviewed. With several unviewed turns, the bar names the first by number The working tree

A restore leaves the conversation, staged changes, and commits alone. The bar then says the restore is not reflected in the conversation, and offers Undo Restore.

Weir checks the files before and after restoring, and stops if an agent or an editor changed them. Another program can still write in between, so avoid restoring while an agent in the same worktree is working.

Commit & PR at the bottom of the Changes panel shows what is not yet in the base branch or not yet pushed. It offers Create PR, which needs gh, and Clean Up Worktree….