Modal

Directory Snapshots: Resumable project state for Sandboxes | Modal Blog

Feb 24, 2026
Directory Snapshots: Resumable project state for Sandboxes | Modal Blog
SummaryAI, from the source post

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