Documentation Index
Fetch the complete documentation index at: https://docs.mistle.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Persistent sandboxes let selected sandbox filesystem state survive after the sandbox compute runtime stops or expires. By default, session sandboxes are ephemeral. When persistence is enabled for an organization and a sandbox profile opts in, sessions from that profile can run in persistent mode.Why Persistence Matters
Sandbox providers can impose hard limits on how long a compute sandbox may run. When provider compute stops, expires, or is replaced, an ephemeral sandbox has no durable filesystem state to recover. Persistent sandboxes decouple compute from selected filesystem state. Mistle can replace the compute sandbox while keeping selected paths in durable storage and reattaching them later. Use persistent sandboxes for workflows where one session’s working state should survive compute lifecycle changes, such as:- checked-out repositories
- dependency caches
- generated build artifacts
- agent workspace state
- long-running project setup that should not be repeated after every provider restart
Persistent Sandboxes Vs Snapshots
Persistent sandboxes and snapshots solve different problems.| Feature | What it preserves | Scope | Main use case |
|---|---|---|---|
| Snapshots | Prepared sandbox image | Sandbox profile version | Make future sessions start from a prebuilt profile image |
| Persistent sandboxes | Selected filesystem paths | Sandbox instance | Keep one sandbox’s working state across compute stops or provider expiry |
Enable Persistent Sandboxes
Persistent sandboxes require both organization-level enablement and profile-level opt-in.1. Enable Persistence For The Organization
Organization owners and admins can enable the option from the dashboard:- Open Settings.
- Go to Organization > Sandboxes.
- Turn on Allow persistent sandboxes.
- Save the settings.
2. Enable Persistence On A Sandbox Profile
After organization persistence is enabled, opt in from a draft sandbox profile:- Open the sandbox profile.
- Edit the draft version.
- Turn on Use persistent sandboxes.
- Publish the profile version.
- Start sessions from that published profile version.
What Is Persisted
Persistent storage is intentionally scoped. It is not a full snapshot of the whole sandbox filesystem. The current persistent storage layout preserves:| Sandbox path |
|---|
/root |
/etc/codex |
Experimental Limits
Important considerations:- persisted state is scoped to a sandbox instance
- persisted paths are currently limited to
/rootand/etc/codex - setup and workflows must not assume the sandbox starts empty
- storage backends add cost and lifecycle management
- cleanup, partial attachment, provider failures, and state drift are still being hardened
Next Steps
- Read Sessions for how session sandboxes are started.
- Read Snapshots for reusable prepared environments.
- Read Self-Hosted Configuration for storage settings.