How remote changes reach your repository
Understand uploads, synchronization and retained work after a transfer failure.
Cloud sandboxes and isolated Git containers edit a separate checkout. This page explains which files travel in each direction and why synchronization may stop. For provider setup, use cloud sandboxes or private Git.
Repository access
Section titled “Repository access”The sandbox works on its own copy of the repository. Outpost keeps it in step with the managed worktree on your machine. Firecracker and private Git containers synchronize the same way.
repositoryMode: "isolated" makes the private checkout explicit on both providers; omitting it keeps the same behavior. Host Git configuration files and hooks are not uploaded, and synchronization does not import sandbox configuration, hooks or unrelated refs. History from every host branch and tag is still included in the uploaded bundle. The explicit option is covered by deterministic provider fixtures; live cloud validation remains outstanding.
Choose the branch
Section titled “Choose the branch”Without branch, a cloud sandbox uses integrate: a new outpost/job-… branch, merged into your current branch at the end. named keeps the work on a branch you name. current is rejected, because the sandbox cannot edit your checkout in place. See Repository and branch.
Send files Git does not have
Section titled “Send files Git does not have”Commit the files the sandbox needs before running a task. For ignored test configuration or other local inputs, consult the workspace and synchronization options below.
API reference: WorkspaceOptions and SandboxOptions.
A copy that .gitignore excludes travels one way: the agent’s edits to it stay in the sandbox. Any other copy becomes uncommitted work in the worktree, so pass includeUncommitted: true with it.
When synchronization stops
Section titled “When synchronization stops”Untracked nested Git repositories cannot be synchronized. Move the nested repository outside the workspace, or ignore it if its contents should remain local. Host detection fails before seeding with code conflict and details.file; detection in the sandbox stops the pull with code workspace, retaining a conflict cause that names the path and the recovery directory. Neither case recursively copies or deletes the nested repository.
Outpost never overwrites work it cannot back up. It stops with an error of code workspace whose details.recovery names the directory under .outpost/recovery holding the downloaded changes and the backup. Inspect it with Recover work.
| Cause | Fix |
|---|---|
| The managed worktree changed while the sandbox was open | Leave .outpost/workspaces alone during the run |
| The agent changed a file that is uncommitted in the worktree | Commit the file first, or pass includeUncommitted: true |
A copy is not excluded by the committed .gitignore (first synchronization) | Pass includeUncommitted: true, or ignore the file in .gitignore |
The agent created a file your host ignores outside .gitignore | Move the ignore rule into the committed .gitignore |
| The agent rewrote a commit that was already synchronized | Ask for new commits instead of an amend or a rebase |
recoveryTransport on dispatch() or createSandbox() also archives each backup to object storage.

