Short answer: if every agent run starts by installing the same compilers and packages, put them in an image instead. Build and push the image yourself, pin its reference by digest ( name@sha256:... ), register it with sandscale sandbox template build , and start sandboxes with --template NAME . A digest names one exact image, so every run gets the same bits, and a changed upstream tag cannot change your agent's environment underneath it.
All commands here are from the live sandscale sandbox CLI reference , which is generated from the CLI itself.
Template, snapshot or setup script?
Setup script per run Snapshot Template
What it is Commands the agent runs first An archive of a sandbox's /workspace An image pinned by digest, with a default size
Good for Small, fast installs A prepared project directory (dependencies installed, data unpacked) System packages, toolchains, anything outside /workspace
Needs network at run time Usually No No
A snapshot saves only /workspace , so system-level tools belong in a…