Skip to main content
Reference tooling Archived 11 min read Updated

docs-agents-review-and-sync


title: “Reviewing & Syncing Changes” url: “https://delta.dev/docs/agents/review-and-sync” description: “How an agent’s changes flow back to your repository.”

  1. Using Delta
  2. Review & Sync Changes

Reviewing & Syncing Changes

How an agent’s changes flow back to your repository.

On this page

  1. Review the agent’s work
  2. Review in a review thread
    1. Start a review
    2. What the review thread contains
    3. Review and submit a verdict
    4. Share a review
  3. Merge selected worktrees from related threads
  4. Land changes
  5. Check the remote branch
  6. Bring changes in
    1. Push to your local repository
    2. Publish through origin
  7. What’s next

By default, an agent works in its own checkout of your repository (the Isolated Delta Worktree option, a separate folder managed by Delta), so its changes reach you the same way a teammate’s would: you review them, then bring them in. A thread can instead adopt your project folder as its checkout; the agent’s edits then appear there directly. See Delta Worktrees.

Important: Delta records file edits as you work, without creating Git commits.

A managed checkout has its own git repository. When the agent commits, the commit lands there, not in your project folder. Committing is not the step that brings work to you; pushing to local or your source remote is. See Bring changes in.

A checkout created from your own project folder has a local git remote that points back at your repository. When a source remote is selected, Delta also preserves it under its original name, usually origin. Delta & Git explains both.

Review the agent’s work

As the agent works, its edits accumulate in the thread. Review them the way you would review any change: read the diffs and ask the agent to revise anything that needs work. You can attach comments to relevant parts of the transcript, or directly to the code in the diffs and file tabs. With a managed checkout, none of this touches your project folder.

The Changes tab collects the diffs in one place. On a computer, it is the review drawer’s default panel; on a phone, tap it in the tab bar below the thread title. Use its selector to choose a comparison:

Comparison

What it shows

Upstream ref, such as origin/main

Changes since the merge base with that upstream ref.

Last Commit

Uncommitted changes.

Last Turn

Edits since the agent’s last turn started.

A commit opened from the thread

Changes in that commit.

Commit links in the thread open here too. Choose Review Changes from the menu or command palette to focus the tab. You can also press Option+Shift+D on macOS or Alt+Shift+D on Linux and Windows. The Default Diff Base setting chooses the initial comparison for new threads.

On desktop, in a thread with several projects, right-click the thread’s added/removed line counter to filter the comparison by project. Choose All Projects to show the full comparison again. The counter follows the selected comparison, including Last Commit and Last Turn.

Each file in the diff has a Seen checkbox on its header. Marking a file seen folds it, and new edits to the file clear the mark. Seen state is per person and follows you across machines. Press Cmd+Option+Y on macOS or Ctrl+Alt+Y on Linux and Windows to toggle it, and Cmd+[ and Cmd+] (Alt+[ and Alt+] on Linux and Windows) to move between files.

The Review header shows your seen-file progress, such as 3/17, once you mark a file seen. In Display Options, choose Collapse All Files or Expand All Files (Shift+Tab with the diff focused), or Mark All as Seen or Mark All as Unseen (Cmd+Shift+Y on macOS, Ctrl+Shift+Y on Linux and Windows). These actions apply to the files currently shown. Selecting a collapsed file in Changes expands it in the diff.

Press Cmd+F on macOS or Ctrl+F on Linux and Windows to search an open file or the diff view; in the diff view, matches span every file in the comparison. Cmd+G and Cmd+Shift+G (Ctrl+G and Ctrl+Shift+G on Linux and Windows) step through matches, including while the search bar is focused. Find also searches the rendered contents of Markdown files, without requiring Markdown punctuation in the query.

Delta records the branch diff’s merge base and shares it with collaborators, so everyone compares against the same base, including on the web or without a local checkout. Last Turn includes the complete agent turn until your next message, even when automatic compaction occurs during the turn.

Review in a review thread

For a fuller review, move it into a review thread: a separate conversation attached to the thread that produced the work. Use one when you want to read the changes as a reviewer would, leave feedback, and record a verdict without mixing that discussion into the original conversation.

Start a review

On a computer, click the eye button (Reviews) in the parent thread’s header. On a phone, open More > Reviews in the header. The menu is available even before the thread has changes. Choose an existing review or Start Review on desktop or web. The desktop menu excludes archived reviews. You can also type /review in the composer, or press Cmd+Shift+R on macOS or Ctrl+Shift+R on Linux and Windows.

You can start a review from a top-level thread or a Plain subthread, such as a fork or subagent, including a nested one. You cannot start one from a Review or Land subthread. Reviewing a subthread covers its changes together with changes inherited from its parents. A thread can have several reviews, each nested beneath it in the sidebar.

You can archive a review from the sidebar and restore it from thread history without archiving the parent thread.

What the review thread contains

When the review thread opens, Delta asks the agent for a change guide: a structured walkthrough of the change in the order that explains it best, with focused inline diffs, rather than a file-by-file listing. While the agent prepares it, the starting skill message remains visible in the conversation. The guide names the review thread after the work under review. A second review of the same unmerged work notes what changed since the last verdict, for example “Retry backoff fix (added tests)”. While its initial title is being generated, the thread shows Generating title…; renaming a review yourself always wins.

Delta asks the agent to identify work that has already landed on the default branch and focus the guide on what remains unmerged. When you select the branch base in the review thread’s Changes panel, the diff can still include work omitted from the guide after a squash merge.

Review and submit a verdict

In the review thread, comment on the transcript or on code in the diffs, and ask the agent for changes. The review agent works in separate, forked Delta worktrees, so its edits do not change the parent’s files. Finishing the review or submitting a verdict does not merge those edits.

Review threads are separate from agent-created attached subagents. For a separate task rather than a review, you can also send a message to a fork.

When you’re done, choose Submit Review, then Approve or Request Changes. You can do this in the desktop app or on the web. Delta posts the verdict back to the parent thread, and the reviewer’s avatar in the parent’s header shows an approved or changes-requested badge. Submitting again updates your current verdict; earlier verdicts remain in the parent thread’s history. You can also use /approve or /request-changes to submit a verdict in any thread, without first creating a separate review thread.

Use the verdict’s navigation control in the review to jump to its event in the parent thread.

To bring the review’s edits back, click Pull Changes on the verdict in the parent thread. Each verdict saves a snapshot of the review’s edits. Pulling applies that snapshot, not later edits; submit another verdict to include those. If no edits were captured, the verdict has no Pull Changes button. After a successful pull, the button reads Changes Pulled and is disabled.

If Delta says the pull requires Git history that isn’t available on the web, open the thread in the desktop app and pull the changes there.

If pulling fails, check the parent’s files before trying again: some or all worktrees may already contain the changes, even if Delta couldn’t record the merge event.

Share a review

A review thread has no sharing settings of its own; it follows its parent. When the parent is shared, the review thread’s header shows a Copy Share Link button that copies a link straight to the review, and everyone with access to the parent can open it, comment, and submit verdicts. When the parent is not shared, that button is disabled: share the parent first. See Collaborate in a Thread.

Ask the agent to bring in changes from selected worktrees in related threads. For example: “Merge the backend worktree from the review thread and the frontend worktree from its fork.” Specify which projects and source threads you want; you do not have to merge every project attached to a source thread.

Sources must belong to the same thread family: the top-level thread, its subthreads, or their forks. Independently created threads cannot be merged this way. The operation brings in file changes, without copying conversations or changing the sources. If a multi-worktree merge fails partway through, inspect the destination before retrying because earlier merges may have applied.

Land changes

To land a thread’s changes, select an available model in the desktop app. Click the merge icon in the header of a top-level thread or Plain subthread, then choose Land Changes From This Thread. A Land started from a subthread includes changes inherited from its parents. Land Changes is not available in the browser.

Delta opens a dedicated Land subthread and runs your project’s landing workflow there, leaving the parent conversation separate:

  • With one eligible skill, the agent runs it directly.
  • With several eligible skills, the agent lists them. Invoke your choice explicitly through the slash menu in the Land thread; naming it in a conversational reply does not select it.
  • With no eligible skill, the agent offers to set one up and asks you to approve the proposed workflow before writing it.

Setup does not land your changes. After setup, choose Land Changes again, or invoke the skill through the composer’s slash menu. The skill defines your checks, merge strategy, and publication steps; the button does not prescribe a Git workflow.

The agent’s reported result appears as a card in both the Land subthread and its parent. It shows whether the change landed, with the target branch, commit, and reported CI status.

To return to a Land thread you previously started from the same parent thread, click the merge icon and select it under Previous Threads. This opens the existing conversation rather than starting a new one. Archived Land threads do not appear in this list.

Check the remote branch

In the desktop app, open the project’s menu. For a branch with a commit and a configured remote-tracking branch, choose Check in the remote-branch status row to compare the two. The result reports Up to date with remote, Ahead of remote, Behind remote, or Diverged from remote.

Checking fetches the remote branch for comparison; it does not merge changes into your checkout. Use the result to decide whether to pull or push.

Bring changes in

To bring changes in without a Land skill, use either of these paths:

Push to your local repository

Push the agent’s branch to the local remote. Because local points directly at your repository, the branch appears there without a fetch or a round trip through GitHub. This is the way to hand yourself work on a branch that is not on origin.

You can ask the agent, or run the push yourself in the thread’s terminal (type ! at the start of an empty line in the composer):

git push local <branch-name>

Then switch to the branch in your repository:

git switch <branch-name>

This also works for the branch your repository has checked out: when your checkout is clean, the push updates your working tree in place and there is nothing to switch to. Git rejects a push that would overwrite uncommitted edits to tracked files.

If you want this after every commit, add a rule such as “After each commit, run git push local <branch-name>” to your project or personal rules rather than asking each time. In the terminal, git commit -m "..." && git push local <branch-name> does both at once.

Publish through origin

Ask the agent to push its branch to your source remote and open a pull request. This keeps the review in your team’s normal GitHub flow. The example below uses origin; replace it with your remote’s name if different. To run the published branch in your repository:

git fetch origin
git switch --track origin/<branch-name>

The Open in Delta Links setting controls whether the agent adds a link to the current thread when it opens a pull request. Delta considers the thread’s sharing settings and only asks for a link that the pull request’s reviewers can open. The setting is enabled by default.

For either path, if git refuses to switch because you have local edits, set them aside first and restore them when you switch back:

git stash
git switch <branch-name>
# later, back on your own branch:
git stash pop

What’s next

  • Delta & Git explains the remote setup behind these workflows.
  • Comments covers leaving review feedback the agent acts on.
  • Threads covers steering and managing the conversations these changes come from.