What is persistent (stateful) sandbox?
Answer in brief
A sandbox whose files and configuration survive beyond a single session, often for days or indefinitely.
Persistent (stateful) sandbox in agent sandboxes
Persistent sandboxes behave like a dev machine for the agent: the repository, dependencies and history remain. They suit coding agents and background agents that work on the same project repeatedly. The opposite is an ephemeral sandbox.
Cite this page
Agent Sandboxes. (2026). What is persistent (stateful) sandbox?. agentsandboxes.org. Last reviewed November 8, 2026. https://agentsandboxes.org/glossary/persistent-sandbox/
Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.