Directory Snapshots: Resumable project state for Sandboxes | Modal Blog
Feb 24, 2026

Summary
Introduced Directory Snapshots, a new feature for Sandboxes that allows specific directories to be snapshotted and mounted independently of the base image. This enables granular state management, separating system dependencies from application code, facilitating pre-warming of Sandboxes with project-specific code, and optimizing file loading by prioritizing snapshot contents. The implementation involves `snapshot_directory` and `mount_image` operations, leveraging Modal's existing lazy-loading container filesystem.
More from the Sandboxed Code Execution trail
- VM Sandboxes: Full computers for agents | Modal Blog
- Runtime Roundup: VM Sandboxes, Multi-node clusters, and more | Modal Blog
- Sidecars: A low-latency trust boundary for Sandboxes | Modal Blog
- Product updates: Sandbox Sidecars, new models, a refreshed dashboard, and more | Modal Blog
- Devin Outposts on Modal | Modal Blog