Skip to main content
Model-authored code never runs in the Fleet process. Fleet runs generated Python in Daytona Sandboxes through Daytona’s native code interpreter and answers host calls from the sandbox.

Sandbox kinds

Both kinds start from the snapshot Fleet pins. See Snapshots. With runtime.linked_children = true, Fleet creates child Sandboxes as Daytona sandboxes linked to the root Sandbox. Each program invocation gets a fresh interpreter namespace with its own bindings and tools. Don’t rely on Python variables between Turns. Write anything you need later to the workspace.

How code runs

Fleet creates one Daytona interpreter context per namespace and sends each execution as one run_code call. The sandbox reports host calls, such as llm_query or spawn_agent, as marker lines on stdout. Fleet runs the call and uploads the reply as a file that the waiting sandbox code reads. There is no HTTP daemon or bearer token inside the Sandbox.
  • Each execution can run until the Turn deadline, if one is set. By default, Turns have no Fleet deadline. See Turn deadlines.
  • A host call that gets no reply within the time left in the Turn raises TimeoutError inside the sandbox. Model code can handle the error instead of stalling. Without a Fleet deadline, host calls wait without a limit.
  • At the deadline, on cancellation, or when a Turn fails, Fleet stops the root Sandbox to interrupt running Python, including infinite loops, and shuts down child Sandboxes. The next Turn starts in a new root Sandbox.
  • A completed Turn keeps its root Sandbox warm for the next Turn.
  • Fleet discards a host reply that arrives after its execution has ended and emits a fenced event.
See Sandbox tools for the functions available to model code.

Retries

Fleet retries idempotent Daytona calls, such as file transfers, sandbox start and stop, and listing, when they fail with a connection error, timeout, rate limit, or 5xx response. It makes up to three attempts with jittered exponential backoff. Fleet never retries run_code. A timed-out or disconnected execution may already have run, so Fleet stops the Sandbox and fails the Turn instead of replaying the code.

Turn preparation

Before each Turn, Fleet refreshes the root Sandbox state from Daytona. Daytona stops a Sandbox after daytona.auto_stop_minutes of inactivity. If the Sandbox is stopped, archived, or paused, Fleet starts it again and emits a sandbox_resuming event, so the Turn continues instead of failing. Fleet then gathers the Turn’s remote inputs in a single sandbox execution:
  • SHA-256 digests of the workspace files.
  • The newest shared learned notes.
  • A sandbox environment line with the Python version, which numeric libraries are installed or missing, and a hint about Python’s integer-to-string digit limit.
Fleet appends the environment line to the Turn’s memory summary as a hint for the model. Skill sync uploads changed Skill files in one batch before this step.

Child inputs

When a child agent starts, Fleet copies its inputs into the child workspace in one batch. By default the child receives files/ and skills/. When the parent passes input_paths, the child receives those paths plus every Skill. Fleet records input receipts only after the whole batch lands. Successful child artifacts appear under artifacts/<agent-id>/ in the parent workspace.

Shared learned notes

Shared learned notes let later Sessions benefit from earlier Turns.
  1. After a Turn commits with a non-empty learned note, Fleet writes it to /learned/<session-id>-<turn>.md on the shared Volume subpath. The file is marked status: unreviewed, and Fleet redacts labelled credentials from it.
  2. When a later Turn starts, Fleet reads the newest notes, drops near-duplicates (a word overlap of 0.5 or more with a newer note), and keeps at most eight.
  3. Fleet adds their summaries to the memory summary as unreviewed hints. The model can read the full note at /learned/<file>.
Notes are hints to verify in the sandbox, never a reference value. A result that only matches a note counts as unverified. Configure the Volume subpath with daytona.shared_notes_subpath or FLEET_SHARED_NOTES_SUBPATH. The default is shared/learned-notes. Set it to an empty string to disable the mount and stop writing notes. See the configuration reference.

Snapshots

Fleet pins the Daytona snapshot that every Sandbox starts from. You can’t select a different snapshot in TOML or the environment. The current pin is fleet-rlm-python313-v14: Python 3.13 with a locked set of Python packages, plus git, Node.js, npm, pnpm, TypeScript, ripgrep, and jq. Before Fleet provisions a Sandbox, it checks that the snapshot exists in your Daytona organization, is active, and has at least 4 CPUs, 8 GB of memory, and 8 GB of disk. Otherwise the Turn fails with an error event that starts with Snapshot 'fleet-rlm-python313-v14' is unusable and says how to recover. Build the snapshot once per Daytona organization. In fleet cli, type /setup and choose Build snapshot (Alt+B). If the snapshot exists but is inactive, choose Activate snapshot (Alt+A) instead. A snapshot that is still building becomes usable once Daytona marks it active. Fleet records the resolved snapshot on each Turn’s outcome event, stored result, and trace. Fleet still probes each Sandbox’s Python environment during Turn preparation. When optional packages are missing, it emits one sandbox_environment_incomplete event and continues the Turn.
Last modified on November 8, 2026