Overlay image package for quicksand
Project description
quicksand-overlay-scaffold
Scaffold a new overlay image package for quicksand.
Overlay packages boot a base VM (default: Ubuntu), run setup commands to install software, and save the result as a compressed overlay. The overlay is bundled into a wheel so users can quicksand install and quicksand run it without rebuilding.
Usage
quicksand-overlay-scaffold my-agent-sandbox
This creates a my-agent-sandbox/ directory with:
my-agent-sandbox/
├── pyproject.toml # Package metadata and entry points
├── hatch_build.py # Edit _setup() with your install steps
├── README.md
└── my_agent_sandbox/
├── __init__.py # ImageProvider entry point
├── sandbox.py # Optional Sandbox subclass
└── images/ # Built overlay (populated during uv build)
Next Steps
- Edit
hatch_build.py— add your install commands to_setup():
async def _setup(shell: Shell) -> None:
await shell("apt-get update", timeout=120)
await shell("apt-get install -y your-packages", timeout=300)
await shell("pip install your-python-deps", timeout=300)
- Build the package (boots a VM, runs setup, saves overlay):
uv build --package my-agent-sandbox
- Test it:
quicksand run my-agent-sandbox
How It Works
During uv build, the hatch_build.py hook:
- Boots an Ubuntu VM with 4G memory, 4 CPUs, full network, 10G disk
- Runs your
_setup(shell)function inside the VM - Saves the VM state as a compressed qcow2 overlay
- Packages the overlay into a platform-specific wheel
Subsequent builds skip the VM step if images/manifest.json already exists. Delete the images/ directory to force a rebuild.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quicksand_overlay_scaffold-0.3.9-py3-none-any.whl.
File metadata
- Download URL: quicksand_overlay_scaffold-0.3.9-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c65cc0fee2fa0e57c1b54863df7bdb03e977ddcbadf7fbcb8eda2aaa9ad4dffc
|
|
| MD5 |
13d8a2f12e8251a0b2afbf5926f06c1e
|
|
| BLAKE2b-256 |
2cac3e1f2fdcc0a02a0a3f312e44fded6e090a77d708580b5fb213fa3202e4da
|