Skip to content
86% off$349 $48.86code BF2026

Docs

Sledbot docs30 pages

Review an Agent's Changes in Sledbot

Review an agent's changes in Sledbot hunk by hunk with A, R and C, then merge or open a PR. See the git commands it runs, plus Source Control and Git Graph.

Updated 6 min read

On this page

Review an agent's changes in Sledbot one hunk at a time, then merge its branch or open a pull request. This page also covers the Source Control, Git Graph and checkpoint tools you use around a review.

What a review compares

When you start an agent from New task with Work in a new worktree on (the default for git repos), it works in a separate checkout under <repo>/.sledbot/worktrees/ on its own agent/… branch. Any / in the branch name becomes - in the folder name. Your main checkout stays as it was.

A review compares that worktree with a base branch. Sledbot picks the base in this order:

  1. The sled.base label, if set.
  2. The repository's default branch.
  3. main.

The review header shows <branch> → <base> and your progress as reviewed/total.

Open a review

Any of these opens Review <agent>:

  • Review changes in the agent session header, the details rail (Changes section), the inspector, or the terminal pane's More menu.
  • Agents ▸ Review Changes in the app's menus.
  • Review on the agent's card on the Board.
  • ⌘K (Command-K), then Review changes of <name> for the focused agent.

If the agent hasn't changed anything, you see "This agent hasn't changed anything compared with <base>." Click Reload Changes to pick up edits the agent made after you opened the review. Close the review with ⌘W.

Review an agent's changes hunk by hunk

Work through the hunks with the keyboard:

KeyActionWhat happens
AAcceptStages the hunk in the agent's worktree.
RRejectReverse-applies the hunk, restoring the original in the worktree.
CCommentOpens a comment box. ⌘↩ sends it, Esc cancels.
J or F7Next hunkMoves to the next change.
K or ⇧F7Previous hunkMoves to the previous change.
⇧AAccept AllAccepts every hunk in the current file.

A comment goes to the agent's terminal as a <sled from="you"> message with the file and line, so the agent knows which code you mean. Use it when a change is close but needs work. Once the agent has made the fix, click Reload Changes.

Other controls in the review:

  • Changed files lists every file, each with Accept All in File and Open File.
  • Show Inline / Show Side by Side switches the diff layout.
  • Next File to Review jumps to the next file you still need to review.

Merge the agent's branch: what git runs

Merge and Open PR stay disabled until every hunk is reviewed ("Review every change first").

To merge locally:

  1. Make sure your main checkout is on the base branch. The merge runs there, not in the worktree.
  2. Click Merge.
  3. Confirm "Merge <branch> into <base>?".

What Sledbot does:

  1. It commits any uncommitted changes in the agent's worktree.
  2. In the main checkout, it runs:
bash
git merge --no-ff --no-edit <branch>

--no-ff always creates a merge commit, so the agent's work stays grouped as its own branch in the history. --no-edit uses git's default merge message.

To remove merged worktrees later, use Clean up worktrees… in the space's context menu. Its confirm step can also delete the branches of merged worktrees (git branch -d).

Open a pull request instead

Click Open PR in the review header. Sledbot commits the worktree, then runs:

bash
git push -u origin <branch>
gh pr create --fill

--fill takes the PR title and body from the branch's commits. Sledbot then opens the new PR's URL.

This needs the GitHub CLI (gh) installed and signed in. To set reviewers, labels or a draft state, use Create Pull Request… in the GitHub panel instead. See GitHub in Sledbot for setup.

Stage, commit and tidy up in Source Control

For finer control, open Code mode (⇧⌘E, or Open in Code on the agent) and pick the Source Control tab.

Staging. Each file has Stage, Unstage and Discard Changes…. Expand a file to stage or discard single hunks, or select lines and use Stage Lines, Unstage Lines or Discard Lines. The hunk view shows the first 1,500 lines. Section buttons include Stage All, Unstage All and Discard All….

Committing. Type a message and press ⌘↩. The button reads Commit All when nothing is staged, Commit N Staged when something is, or Amend Last Commit with Amend ticked. There is also a Sign-off option. The More menu has Commit & Push (or Commit & Publish), Commit (No Verify) and Commit & Push (No Verify).

Drafting a message. The sparkles button drafts a commit message from the changes. On macOS 26 with Apple Intelligence on, it uses Apple's on-device model. Otherwise it builds a template from the diff stats.

Conflicts. During a merge or rebase you get Continue, Skip and Abort, plus Mark as Resolved, Use Current (HEAD)…, Use Incoming… and Mark All Resolved.

In the editor. Gutter marks show changes against the git index. Click one to open a peek with Previous Change, Next Change, Stage Change and Revert Change. Revert Change affects only the editor buffer, and you can undo it. Inline blame shows on the cursor line while the file has no unsaved edits.

Discard safety and undo

Every discard in Source Control first saves a backup patch to <git dir>/sledbot/discarded/<timestamp>.patch. Click Undo Discard to bring the changes back. The patch file stays in that folder.

Git Graph and Compare Branches

Git Graph opens from ⌘K, the View menu, or Source Control's More Actions. It loads 500 commits at a time (Load More). Search by "Message, author or hash". Search Older Commits loads up to 5,000 more.

Each commit's menu has Check Out, Create Branch…, Create Tag…, Cherry-pick…, Revert…, Compare with HEAD, Compare with Working Tree, copy actions, Open on GitHub and Reset ▸ Soft / Mixed / Hard. Reset ▸ Hard throws away uncommitted changes in your working tree. Use it only when you mean to.

Compare Branches… (⌘K or More Actions) diffs any base and target: a branch, tag, commit or Working Tree. Tick Only changes on target since it branched (three-dot) to see only what the agent's branch added, which is a good last check before merging. In the diff viewer, F7 or J moves to the next change, ⇧F7 or K to the previous one, and Done closes it.

Sledbot Compare with main as base, agent/fix-login-redirect as target, three-dot ticked and five changed files

Turn checkpoints from the command line

At the end of every agent turn in a git work tree, Sled Core snapshots the working tree into private refs (refs/sled/checkpoints/<terminal>/<turn>). Your index and HEAD aren't touched, and the last 50 are kept. So you can return to an earlier turn even if nothing was committed.

There is no checkpoint UI in the app. Use sled in any Sledbot terminal. This lists checkpoints:

bash
sled checkpoint ls

The other subcommands are diff, restore and create (create --label names one). restore takes a safety-… checkpoint first, so you can get back to where you were. See the sled command line for details.

To turn checkpoints off, set the label sled.checkpoints=off on a terminal, set SLED_NO_CHECKPOINTS=1, or set {"checkpoints": false} in the settings/agents doc.

Troubleshooting

  • Merge and Open PR are greyed out. Some hunks are still unreviewed. Check the reviewed/total counter and use Next File to Review.
  • "Merge failed: The main checkout is on X, not <base>." Switch the main checkout to the base branch with Source Control's branch switcher, then merge again.
  • "Couldn't open a pull request: …" gh is missing or not signed in. Connect GitHub as described in GitHub in Sledbot.
  • The review uses the wrong base branch. Set the sled.base label on the agent's terminal, for example sled label t3 sled.base=develop, then open the review again.
  • "Not a git repository." The folder isn't tracked by git, so the agent had no worktree and there is nothing to review against. Start agents in a git repo.
  • New edits from the agent don't show. Click Reload Changes.

Every app.
One purchase.