Skip to content

Commit e91ee49

Browse files
docs(cloud-agents): document customizing workspace snapshots (#105)
* docs(cloud-agents): document customizing workspace snapshots Add a new page under cloud-agents/handoff documenting how to customize the end-of-run snapshot pipeline that backs local-to-cloud and cloud-to-cloud handoff. Targets self-hosted and CLI users who run outside the bundled warp-agent-docker image and need to provide their own declarations script (or a static declarations file) for handoff to work. The page covers: - When to customize (custom Docker image, Direct backend, unmanaged oz agent run in CI) - The two env vars Warp respects (OZ_SNAPSHOT_DECLARATIONS_SCRIPT, OZ_SNAPSHOT_DECLARATIONS_FILE) - The JSONL declarations file format (v1 schema, repo vs file kinds) - A minimal bash script template + the static declarations file pattern (no script needed) - --no-snapshot for disabling snapshots per run Wire the new page into the Handoff sidebar group and add single-sentence cross-links from local-to-cloud, cloud-to-cloud, self-hosting/unmanaged, and self-hosting/index so readers arriving from any of those entry points can find it. Co-Authored-By: Oz <oz-agent@warp.dev> * docs(cloud-agents): address self-audit findings on snapshots page - Drop the "Continue locally" mention from the intro. Cloud-to-local handoff doesn't apply workspace patches to a local checkout (per handoff/index.mdx), so the claim was misleading. - Replace "empty workspace" with "without the prior session's uncommitted changes". The cloud workspace isn't empty without a snapshot — the environment still clones repos at HEAD; what's missing is the uncommitted delta. - Restructure "How snapshotting works" to lead with the two modes (script-driven vs static) before walking through each one. Removes the implicit assumption that the script always runs. - Drop the setup_command half of the Direct backend tip. setup_command injects env vars via OZ_ENVIRONMENT_FILE, which is more indirection than this page should explain — just point at `environment` config. - Remove the local-to-cloud cross-link to the snapshots page. The local-to-cloud path uses upload_snapshot_for_handoff() with Vec arguments, not OZ_SNAPSHOT_DECLARATIONS_SCRIPT, so the cross-link could mislead readers. cloud-to-cloud, self-hosting/unmanaged, and self-hosting/index still link to the page. Co-Authored-By: Oz <oz-agent@warp.dev> * docs(cloud-agents): address Oz review on snapshots page Three suggestions from the Oz review on PR #105, all accepted: 1. Add a security caution after the declarations format section. Explicit warning that declared `file` paths are uploaded verbatim and `repo` paths upload the git diff (tracked + untracked, non-gitignored). Tells users to keep secrets, credentials, and API tokens out of declared `file` entries before copying the pattern. 2. Escape JSON metacharacters in repo paths in the bash template. The previous example printf'd `repo_root` straight into JSON; a path containing `"` or `\` would produce malformed JSON that Warp skips with a WARN. Added a sed pass that escapes `\` first, then `"`, matching the bot's suggested patch. 3. Drop the "including the --no-snapshot flag" claim from the Oz CLI Related pages bullet. /reference/cli/ doesn't document the flag today, so the claim sent readers somewhere that couldn't answer the flag-specific question. The flag is already covered on this page in the Disable snapshots section. Co-Authored-By: Oz <oz-agent@warp.dev> * docs(cloud-agents): align 'untracked files' precision with caution The "Prefer `repo` over `file`" rule said `repo` entries pick up "tracked changes plus untracked files" while the security caution right below said "tracked changes plus untracked, non-gitignored files". The caution is the accurate one (matches `git ls-files --others --exclude-standard` in `app/src/ai/agent_sdk/driver/snapshot.rs::build_repo_patch`), so tighten the rule to match. Co-Authored-By: Oz <oz-agent@warp.dev> * docs(cloud-agents): scrub private warp-agent-docker links from snapshots docs The two GitHub URLs the new snapshots page used were both pointing at warpdotdev/warp-agent-docker, which is a private repo — anonymous visitors get HTTP 404. Replaced both with link-free user-facing prose and reworded all text mentions of the internal repo name. Specifically: * snapshots.mdx frontmatter description: "bundled warp-agent-docker image" → "bundled cloud agent image". * snapshots.mdx intro paragraph: drop the link to the private repo root; refer to "Warp's bundled cloud agent image" instead. * snapshots.mdx "When to customize" intro: replace "bundled warp-agent-docker image" with "bundled cloud agent image". * snapshots.mdx env-var reference: same swap for OZ_SNAPSHOT_DECLARATIONS_SCRIPT description. * snapshots.mdx "Write a custom declarations script": drop the link to the private snapshot-declarations.sh file; the sentence now just introduces the minimal pattern. * snapshots.mdx: add a :::note callout under the script example describing what the bundled image's richer implementation does beyond the minimal pattern (OZ_SNAPSHOT_SCAN_ROOTS override, jq for JSON encoding, dedup against existing repo declarations) so power users know what's available without us pointing at private artifacts. * unmanaged.mdx Tracking and observability cross-link: drop the "warp-agent-docker" qualifier. Verified with grep: no more "warp-agent-docker" references anywhere in src/content/docs/. Co-Authored-By: Oz <oz-agent@warp.dev> * docs(cloud-agents): add full bundled snapshot script alongside minimal example Per Harry's Slack OK on showing the full script ("from a security POV, definitely no issues with showing the entire script... any user who cared could easily find the script by just running a cloud agent and cat-ing it out"), include the canonical declarations script Warp invokes inside the bundled cloud agent image in addition to (not replacing) the minimal sed-based example. Changes to snapshots.mdx: * Keep the minimal sed-based example unchanged. It's a clean starting point for users adapting a custom script. * Add a new "### The full bundled script" subsection right after the Direct backend tip. It introduces the canonical script in prose, then shows it verbatim in a second bash code block. * Add a :::note flagging that OZ_SNAPSHOT_JQ defaults to /agent/tools/jq (an image-only path). External users adapting the script need to put jq on PATH or override OZ_SNAPSHOT_JQ. * Drop the previous :::note that summarized what the bundled script did extra — the same information is now visible directly in the script. Co-Authored-By: Oz <oz-agent@warp.dev> * docs(cloud-agents): address Harry's review on snapshots page Apply Harry's four outstanding review comments on PR #105: - "When to customize snapshots" no longer duplicates the example list from the intro paragraph. Reframed around user intent rather than failure modes: outside-bundled-image, repos/files outside the workspace, and dynamic scripted behavior. - Replaced the "snapshot a fixed set of repositories or files" bullet with a broader "dynamic snapshotting behavior" item that calls out that the script can implement any logic the operator wants, not just a fixed list. - The "Script-driven" bullet under "How snapshotting works" now names OZ_SNAPSHOT_DECLARATIONS_SCRIPT inline, so readers know the script path is overridable before they reach the Script-driven flow subsection. The "Static" bullet now names OZ_SNAPSHOT_DECLARATIONS_FILE for symmetry. - The OZ_SNAPSHOT_DECLARATIONS_FILE entry in the Environment variables section now spells out its relationship with OZ_SNAPSHOT_DECLARATIONS_SCRIPT: when the script var is set Warp picks a per-run path and exports it to the script; users can also override the file path themselves so both Warp and the script use a path they control (or to drive the static, no-script flow). Co-Authored-By: Oz <oz-agent@warp.dev> --------- Co-authored-by: Oz <oz-agent@warp.dev>
1 parent 0c9c2f0 commit e91ee49

5 files changed

Lines changed: 238 additions & 1 deletion

File tree

src/content/docs/agent-platform/cloud-agents/handoff/cloud-to-cloud.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Use this handoff direction when:
1919
When you send a follow-up to a run whose session has ended, the run continues with:
2020

2121
* **The same conversation** - The follow-up is appended to the same conversation. From your perspective, the run is one continuous conversation across sessions.
22-
* **The prior workspace state** - The prior session's repository changes (tracked and untracked) are restored before the agent answers your follow-up. For git-managed sessions, the new session continues on the same Git branch.
22+
* **The prior workspace state** - The prior session's repository changes (tracked and untracked) are restored before the agent answers your follow-up. For git-managed sessions, the new session continues on the same Git branch. You can [customize which repositories and files get snapshotted](/agent-platform/cloud-agents/handoff/snapshots/) when running outside the bundled cloud agent image.
2323
* **Stable run identity** - The run's ID, task, creator, environment, schedule trigger, and integration source are preserved. Compute usage is recorded per session but rolls up to the same run.
2424

2525
If applying any change fails, the agent reports what couldn't be applied and proceeds with what it could rather than starting over silently.
Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
---
2+
title: Customizing workspace snapshots
3+
description: >-
4+
Customize which repositories and files Warp snapshots at the end of a cloud
5+
agent run, so handoff continues to work outside the bundled cloud agent
6+
image.
7+
sidebar:
8+
label: "Snapshots"
9+
---
10+
11+
Workspace snapshots are how [handoff](/agent-platform/cloud-agents/handoff/) carries repository changes and other workspace state across cloud agent runs. At the end of every cloud agent run, Warp asks a small declarations script which repositories and files to snapshot, then uploads the resulting git diffs and file contents so the next cloud agent run can apply them.
12+
13+
Warp's bundled cloud agent image ships with a declarations script that snapshots every git repository under the agent's workspace, so most cloud agent runs need no configuration. This page is for the cases where you need to customize what gets snapshotted — for example, when running cloud agents in a custom Docker image, on a self-hosted [Direct backend](/agent-platform/cloud-agents/self-hosting/managed-direct/), or as an [unmanaged](/agent-platform/cloud-agents/self-hosting/unmanaged/) `oz agent run` in CI.
14+
15+
## When to customize snapshots
16+
17+
The default snapshotting behavior covers the most common case: snapshot every git repository the agent worked on, inside the bundled cloud agent image. Customize snapshots when you need different behavior:
18+
19+
* **You're running outside the bundled image** — for example, a custom Docker base image, a self-hosted Direct backend, or unmanaged `oz agent run` invocations — where Warp's default `snapshot-declarations.sh` isn't on disk.
20+
* **You want to snapshot repos or files outside the agent's workspace** — for example, a sibling repo the agent reads but doesn't `cd` into, or a log file the agent writes to `/tmp`.
21+
* **You want dynamic snapshotting behavior** — because the declarations file is generated by a script that Warp runs, you can script any logic you want (filter by git status, dedupe against a baseline, emit a fixed list, etc.) rather than being limited to a static set of paths.
22+
23+
If you don't customize snapshots in any of these cases, the run still completes — Warp just uploads nothing, and handoff into the next run starts without the prior session's uncommitted changes.
24+
25+
## How snapshotting works
26+
27+
There are two ways to tell Warp what to snapshot at the end of a cloud agent run:
28+
29+
* **Script-driven** (default in the bundled image) - Warp invokes a declarations script (configured via the `OZ_SNAPSHOT_DECLARATIONS_SCRIPT` environment variable) that emits one JSON line per repository or file to snapshot. Use this when the set of repos isn't fixed ahead of time (for example, the agent may `git init` a new directory during its work) or when you want any other dynamic logic to decide what to snapshot.
30+
* **Static** - You pre-populate the declarations file yourself (at the path given by `OZ_SNAPSHOT_DECLARATIONS_FILE`) and skip the script. Use this when the same set of repos and files should be snapshotted on every run.
31+
32+
### Script-driven flow
33+
34+
1. **Warp invokes your declarations script.** The script path comes from the `OZ_SNAPSHOT_DECLARATIONS_SCRIPT` environment variable. Warp runs it with the agent's workspace as the current directory.
35+
2. **Warp passes a per-run output file.** Warp sets `OZ_SNAPSHOT_DECLARATIONS_FILE` to an absolute path the script must write to. Each run gets its own file so concurrent runs don't clobber each other.
36+
3. **Warp reads the declarations file.** Warp parses the JSONL output (described below) and uploads the listed repositories and files.
37+
38+
See [Write a custom declarations script](#write-a-custom-declarations-script) for the full pattern.
39+
40+
### Static flow
41+
42+
Set `OZ_SNAPSHOT_DECLARATIONS_FILE` to a path you've already populated and leave `OZ_SNAPSHOT_DECLARATIONS_SCRIPT` unset. Warp reads the file directly with no script invocation. See [Use a static declarations file](#use-a-static-declarations-file) for the full pattern.
43+
44+
In both flows, snapshotting is automatically enabled for cloud agent runs when cloud conversations are enabled, and can be turned off per run with `--no-snapshot`. See [Disable snapshots](#disable-snapshots) below.
45+
46+
## Environment variables
47+
48+
* **`OZ_SNAPSHOT_DECLARATIONS_SCRIPT`** - Absolute path to the script Warp invokes at the end of each cloud agent run. The bundled cloud agent image sets this automatically. Set it yourself when running outside the bundled image.
49+
* **`OZ_SNAPSHOT_DECLARATIONS_FILE`** - Absolute path to the JSONL file the script writes to (and Warp reads from). When `OZ_SNAPSHOT_DECLARATIONS_SCRIPT` is set, Warp picks a per-run path by default and exports it to the script. Set or override this variable yourself when you want Warp to read from a static, pre-populated declarations file instead of running a script, or whenever you want both Warp and the script to use a specific path you control.
50+
51+
## Declarations file format
52+
53+
The declarations file is UTF-8 JSONL — one JSON object per non-empty line:
54+
55+
```json title="snapshot-declarations.jsonl"
56+
{"version":1,"kind":"repo","path":"/workspace/my-repo"}
57+
{"version":1,"kind":"file","path":"/tmp/agent-output.log"}
58+
```
59+
60+
Each line has exactly these fields:
61+
62+
* **`version`** - Always `1`. Reserved for future schema versions.
63+
* **`kind`** - Either `"repo"` or `"file"`.
64+
* **`path`** - A non-empty absolute path.
65+
66+
A few rules to follow when writing declarations:
67+
68+
* **Paths must be absolute.** Relative paths are rejected and logged as malformed.
69+
* **Prefer `repo` over `file` for paths inside a repository.** Warp generates a git diff for each `repo` entry (tracked changes plus untracked, non-gitignored files), so individual `file` entries inside that repo are redundant and dropped before upload. Including a `repo` entry is also more extensible than enumerating files.
70+
* **Repos are diffed, not copied wholesale.** Only changed files are uploaded for each `repo` entry, so listing a large repository is cheap when the agent's changes are small.
71+
* **`file` entries are for paths outside any declared repo** — for example, logs the agent wrote to `/tmp` or scratch files in `$HOME`.
72+
73+
Malformed lines (invalid JSON, missing fields, unknown `kind`, non-absolute path) are logged as warnings and skipped; they never abort the upload.
74+
75+
:::caution
76+
**Declared paths are uploaded to Warp.** `file` entries upload the file's contents verbatim, and `repo` entries upload the repo's git diff (tracked changes plus untracked, non-gitignored files). Before declaring logs, scratch files, or other agent outputs as `file` entries, make sure they don't contain secrets, credentials, API tokens, or other sensitive data.
77+
:::
78+
79+
## Write a custom declarations script
80+
81+
A custom script writes one JSON line per repository or file it wants Warp to snapshot, then exits. The minimal pattern looks like this:
82+
83+
```bash title="snapshot-declarations.sh"
84+
#!/bin/bash
85+
set -euo pipefail
86+
87+
# Warp sets this to a per-run output path. Fail loudly if it's missing,
88+
# so a misconfigured runner doesn't silently overwrite a shared file.
89+
if [ -z "${OZ_SNAPSHOT_DECLARATIONS_FILE:-}" ]; then
90+
echo "OZ_SNAPSHOT_DECLARATIONS_FILE must be set" >&2
91+
exit 1
92+
fi
93+
94+
mkdir -p "$(dirname "$OZ_SNAPSHOT_DECLARATIONS_FILE")"
95+
96+
# Find every git repo under the agent's workspace and emit a JSONL
97+
# repo declaration for each one. Escape backslashes and double quotes in
98+
# the path before writing so paths containing those characters don't
99+
# produce malformed JSON (which Warp skips with a warning).
100+
find "$PWD" -type d -name .git -prune -print 2>/dev/null \
101+
| while IFS= read -r git_dir; do
102+
repo_root="$(cd "$(dirname "$git_dir")" && pwd)"
103+
repo_json="$(printf '%s' "$repo_root" | sed 's/\\/\\\\/g; s/"/\\"/g')"
104+
printf '{"version":1,"kind":"repo","path":"%s"}\n' "$repo_json" \
105+
>> "$OZ_SNAPSHOT_DECLARATIONS_FILE"
106+
done
107+
```
108+
109+
Then point Warp at it by exporting `OZ_SNAPSHOT_DECLARATIONS_SCRIPT` in the environment your cloud agent runs in:
110+
111+
```bash
112+
export OZ_SNAPSHOT_DECLARATIONS_SCRIPT=/path/to/snapshot-declarations.sh
113+
```
114+
115+
For a managed [Direct backend](/agent-platform/cloud-agents/self-hosting/managed-direct/) worker, set it via the worker's `environment` config so it's present when the agent process starts.
116+
117+
### The full bundled script
118+
119+
For reference, this is the canonical declarations script Warp invokes inside the bundled cloud agent image. It's a richer version of the minimal example above: it honors a colon-separated `OZ_SNAPSHOT_SCAN_ROOTS` override for operators who need to scan repos outside the default workspace, uses `jq` for canonical JSON encoding (which handles `"` and `\` escaping for you), and dedupes against repo declarations already written in the same run so repeated invocations stay additive.
120+
121+
:::note
122+
The bundled script defaults `OZ_SNAPSHOT_JQ` to `/agent/tools/jq`, which only exists inside Warp's cloud agent image. If you adapt this script for a different image or for an unmanaged `oz agent run`, put `jq` on `PATH` or set `OZ_SNAPSHOT_JQ` to its absolute path.
123+
:::
124+
125+
```bash title="snapshot-declarations.sh"
126+
#!/bin/bash
127+
# Generates the declarations file consumed by the end-of-run snapshot upload pipeline.
128+
#
129+
# Scans one or more roots for `.git` directories and appends one JSON object per
130+
# newly-discovered repository to the declarations file.
131+
#
132+
# Scan root selection (in order of precedence):
133+
# - OZ_SNAPSHOT_SCAN_ROOTS: colon-separated list of absolute paths. Operators can use this
134+
# to target repos outside the default workspace.
135+
# - $PWD: the Rust driver sets this to the agent's workspace via `Command::current_dir`
136+
# before invoking the script, so the default scan root is always the assigned workspace.
137+
#
138+
# Output file:
139+
# - OZ_SNAPSHOT_DECLARATIONS_FILE must be set. The Rust driver sets this to a per-run path
140+
# so concurrent runs don't clobber each other.
141+
# - The file is created if missing, and appended to if it already exists. Existing lines are
142+
# never rewritten, so operator-authored declarations are preserved.
143+
# - Repeated invocations within a single run skip already-emitted repo declarations so the
144+
# upload pipeline can stay additive without duplicating identical generated entries.
145+
146+
set -euo pipefail
147+
148+
SCAN_ROOTS_RAW="${OZ_SNAPSHOT_SCAN_ROOTS:-$PWD}"
149+
IFS=':' read -r -a SCAN_ROOTS <<< "$SCAN_ROOTS_RAW"
150+
151+
if [ -z "${OZ_SNAPSHOT_DECLARATIONS_FILE:-}" ]; then
152+
echo "OZ_SNAPSHOT_DECLARATIONS_FILE must be set" >&2
153+
exit 1
154+
fi
155+
156+
DECL_FILE="$OZ_SNAPSHOT_DECLARATIONS_FILE"
157+
JQ="${OZ_SNAPSHOT_JQ:-/agent/tools/jq}"
158+
mkdir -p "$(dirname "$DECL_FILE")"
159+
touch "$DECL_FILE"
160+
161+
# Dedup set. Seed from repo declarations already emitted by this script so a repeated
162+
# invocation within the same run doesn't re-emit repos it already discovered earlier.
163+
# Keep the full canonical JSON line as the key; this lets us preserve unrelated JSONL entries
164+
# verbatim while ensuring identical generated declarations are emitted at most once.
165+
SEEN_FILE="$(mktemp)"
166+
trap 'rm -f "$SEEN_FILE"' EXIT
167+
"$JQ" --raw-input --compact-output '
168+
fromjson?
169+
| select(
170+
type == "object"
171+
and (. | keys_unsorted | sort == ["kind", "path", "version"])
172+
and .version == 1
173+
and .kind == "repo"
174+
and (.path | type == "string")
175+
)
176+
| { version: 1, kind: "repo", path: .path }
177+
' "$DECL_FILE" > "$SEEN_FILE"
178+
179+
repo_declaration_for_path() {
180+
"$JQ" --compact-output --null-input \
181+
--arg path "$1" \
182+
'{ version: 1, kind: "repo", path: $path }'
183+
}
184+
185+
for root in "${SCAN_ROOTS[@]}"; do
186+
[ -d "$root" ] || continue
187+
while IFS= read -r git_dir; do
188+
repo_root="$(cd "$(dirname "$git_dir")" && pwd)"
189+
repo_declaration="$(repo_declaration_for_path "$repo_root")"
190+
if grep -Fxq -- "$repo_declaration" "$SEEN_FILE"; then
191+
continue
192+
fi
193+
printf '%s\n' "$repo_declaration" >> "$SEEN_FILE"
194+
printf '%s\n' "$repo_declaration" >> "$DECL_FILE"
195+
done < <(find "$root" -type d -name .git -prune -print 2>/dev/null)
196+
done
197+
```
198+
199+
## Use a static declarations file
200+
201+
If the same set of repositories or files should be snapshotted on every run (for example, an unmanaged GitHub Actions job operating on a known checkout), you can skip the script entirely and pre-populate a JSONL file:
202+
203+
```json title="/etc/oz/snapshot-declarations.jsonl"
204+
{"version":1,"kind":"repo","path":"/workspace/my-repo"}
205+
{"version":1,"kind":"repo","path":"/workspace/shared-libs"}
206+
```
207+
208+
Then point Warp at the file directly:
209+
210+
```bash
211+
export OZ_SNAPSHOT_DECLARATIONS_FILE=/etc/oz/snapshot-declarations.jsonl
212+
# Do not set OZ_SNAPSHOT_DECLARATIONS_SCRIPT in this mode.
213+
```
214+
215+
Warp reads the file at end-of-run and uploads the listed repos and files. Because the file is the same on every run, this is best for environments where the workspace layout is fixed.
216+
217+
## Disable snapshots
218+
219+
To opt out of snapshotting for a single run, pass `--no-snapshot` to the CLI:
220+
221+
```bash
222+
oz agent run-cloud --prompt "Fix the failing test" --no-snapshot
223+
```
224+
225+
Snapshotting is also skipped automatically when cloud conversations are disabled for the team.
226+
227+
## Related pages
228+
229+
* [Handoff from local to cloud](/agent-platform/cloud-agents/handoff/local-to-cloud/) - Promote a local conversation to a cloud run; the workspace snapshot is what carries your uncommitted changes across.
230+
* [Handoff from cloud to cloud](/agent-platform/cloud-agents/handoff/cloud-to-cloud/) - Continue a finished cloud run; the prior session's workspace snapshot is what gets restored.
231+
* [Self-hosting overview](/agent-platform/cloud-agents/self-hosting/) - Architecture decision guide for self-hosted workers, where customizing snapshots is most often needed.
232+
* [Unmanaged architecture](/agent-platform/cloud-agents/self-hosting/unmanaged/) - Run `oz agent run` in CI, Kubernetes, or your dev environment outside the bundled image.
233+
* [Oz CLI](/reference/cli/) - Full reference for `oz agent run` and `oz agent run-cloud`.

src/content/docs/agent-platform/cloud-agents/self-hosting/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,4 @@ For infrastructure-level observability, the `oz-agent-worker` daemon can export
216216
* [Troubleshooting](/agent-platform/cloud-agents/self-hosting/troubleshooting/) — Worker won't start, tasks not picked up, and other common issues.
217217
* [Deployment patterns](/agent-platform/cloud-agents/deployment-patterns/) — How self-hosting compares to CLI-only and Warp-hosted deployment.
218218
* [Environments](/agent-platform/cloud-agents/environments/) — Define the runtime context for agent tasks.
219+
* [Customizing workspace snapshots](/agent-platform/cloud-agents/handoff/snapshots/) — Configure end-of-run snapshots so handoff works when running outside the bundled cloud agent image.

src/content/docs/agent-platform/cloud-agents/self-hosting/unmanaged.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ Unmanaged agents are tracked on Warp's backend. Each run creates a persistent se
126126

127127
Unmanaged sessions benefit from the same shared configuration as other cloud agent runs — [MCP servers](/agent-platform/cloud-agents/mcp/), [secrets](/agent-platform/cloud-agents/secrets/), Warp Drive context, and saved prompts all apply.
128128

129+
Unmanaged runs don't ship with the bundled declarations script, so end-of-run workspace snapshots are a no-op by default. To enable [handoff](/agent-platform/cloud-agents/handoff/) into a follow-up run, see [Customizing workspace snapshots](/agent-platform/cloud-agents/handoff/snapshots/).
130+
129131
---
130132

131133
## Related pages

src/sidebar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ export const sidebarTopics: StarlightSidebarTopicsUserConfig = [
371371
{ slug: 'agent-platform/cloud-agents/handoff', label: 'Overview' },
372372
{ slug: 'agent-platform/cloud-agents/handoff/local-to-cloud', label: 'Local to cloud' },
373373
{ slug: 'agent-platform/cloud-agents/handoff/cloud-to-cloud', label: 'Cloud to cloud' },
374+
{ slug: 'agent-platform/cloud-agents/handoff/snapshots', label: 'Snapshots' },
374375
],
375376
},
376377
'agent-platform/cloud-agents/secrets',

0 commit comments

Comments
 (0)