modal-devin init writes an editable Modal application. Use the generator once, then
maintain and deploy the generated file like other application code.
Worker and application
Workspace image
prepare_image(). New sessions start from this
image; resumed sessions use their preserved filesystem when available.
Session entrypoint
run_session().
Scheduler entrypoint
Supported customization
You can change:- Application name, tags, and Modal Secret name.
- Image build operations before
prepare_image()and function resources, regions, retries, and schedule. - Supported Sandbox resource options in
run_session(). - Additional functions and resources in the same Modal application.
Required wiring
Keep these generated values in place:
Keep the deployment scheduled while relying on long-lived resumability.