Skip to content

Local server showcase

Sandbox Loom includes a local-first server, deterministic demo, diagnostics, and terminal view. The showcase does not require model credentials, Docker, PostgreSQL, Redis, or network access after the Ruby dependencies are installed.

From a checkout

bundle install
bin/sandbox-loom doctor
bin/sandbox-loom demo --reset
bin/sandbox-loom tui

The demo creates a disposable project under .sandbox-loom/demo, runs a fixed quality gate, records approval and checkpoint events, creates a Git commit, and writes redacted summary evidence outside the repository. --reset only removes the Sandbox Loom-managed demo and its local state.

Start the local HTTP control plane separately when you want to inspect the versioned API:

bin/sandbox-loom server start --host 127.0.0.1 --port 8788
curl http://127.0.0.1:8788/health
curl http://127.0.0.1:8788/v1

The current HTTP foundation is intentionally small. It coordinates local state and exposes read-only health/version/run inspection plus bounded run events; it does not become an arbitrary command runner or replace the existing policy and runtime boundaries.

Build and install an offline archive

SANDBOX_LOOM_VERSION=0.1.0 scripts/package-local.sh ./dist
sha256sum --check ./dist/sandbox-loom-0.1.0.tar.gz.sha256

SANDBOX_LOOM_INSTALL_BASE="$HOME/.local/share/sandbox-loom" \
SANDBOX_LOOM_BIN_DIR="$HOME/.local/bin" \
bash scripts/install.sh ./dist/sandbox-loom-0.1.0.tar.gz

The installer supports SANDBOX_LOOM_VERSION during packaging, SANDBOX_LOOM_INSTALL_BASE, SANDBOX_LOOM_BIN_DIR, --force, and offline archive installation. It prints the installation target and launcher path. Uninstall a version with:

bash scripts/install.sh --uninstall 0.1.0

Validate the hosted installer locally

The package command also creates dist/install.sh, a thin hosted-install wrapper. It downloads the pinned archive and its SHA-256 file from the same release directory, verifies the archive, and delegates to the existing local installer.

Build a release directory and serve it locally:

SANDBOX_LOOM_VERSION=0.1.0 \\
SANDBOX_LOOM_RELEASE_BASE_URL=http://sandbox-loom.local:8787 \\
scripts/package-local.sh ./dist
python3 -m http.server 8787 --bind 127.0.0.1 --directory ./dist

In another terminal, validate the hosted path with an isolated installation:

curl -fsSL http://sandbox-loom.local:8787/install.sh | \\
  SANDBOX_LOOM_INSTALL_BASE="$HOME/.local/share/sandbox-loom-local" \\
  SANDBOX_LOOM_BIN_DIR="$HOME/.local/bin" \\
  bash -s -- --force

The release host must serve install.sh, install-local.sh, sandbox-loom-VERSION.tar.gz, and the matching .sha256 file. For a remote deployment, replace the local base URL during packaging and serve the same four files over HTTPS. The wrapper preserves archive verification and does not bypass the existing installer.