Skip to content

Quick start

Source access required: Sandbox Loom's source repository is private. This guide is runnable by project members with repository access. The public documentation site does not currently provide a public source checkout or promise a downloadable release. For a public example of a project developed with Sandbox Loom, see the USB Camera Taytay showcase.

This walkthrough shows the smallest working Sandbox Loom flow. It is intended for local evaluation and requires an authorized source checkout, Ruby, and the locked Bundler dependencies. It does not require an API key or external service.

Run the example

From an authorized Sandbox Loom repository checkout:

bundle install
bundle exec ruby -I src examples/quickstart.rb

Expected output includes:

hello from Sandbox Loom
profile=autonomous-development
status=accepted

The example creates a temporary workspace, applies the selected policy, performs a small change, verifies the result, and reports acceptance evidence. It does not grant the workflow access to your host or start an OCI container.

The expected output is an acceptance signal for this offline example, not a claim that an arbitrary workflow is safe to run. For a real workflow, inspect the selected profile, capabilities, limits, evidence requirements, and approval boundaries before execution.

Explore the workflow model

Validate and preview a workflow without executing it:

bin/sandbox-loom workflow check examples/workflow.yml
bin/sandbox-loom workflow plan examples/workflow.yml

Validation catches malformed tasks, unsupported actions, dependency errors, and policy mismatches. Planning shows the execution order without changing a workspace.

Browse the examples for progressively more capable workflows, including YAML composition and an opt-in model-backed agent.

Run a project harness

A project repository can provide .sandbox-loom/project.yml, its workflow, and named quality gates. The following commands require both a Sandbox Loom checkout and the target project files. Validate or inspect the resulting plan without starting an agent:

bin/sandbox-loom run examples/14_generic_project_harness --check
bin/sandbox-loom run examples/14_generic_project_harness --plan

The same command accepts a registered project identifier with --registry. A project manifest supplies the active profile, workspace boundary, coding-agent configuration, quality-gate registry, approval mode, and evidence destination. Side-effecting execution requires an explicitly configured runtime adapter and approval/commit handlers.

For the local development runtime, select it explicitly and request a machine-readable summary:

bin/sandbox-loom run examples/14_generic_project_harness --runtime local --json-summary

Protected workflow tasks require explicit approval with --approve. Execution writes redacted quality-gate evidence and JSONL checkpoints beneath the manifest’s evidence directory. Human-readable task progress is printed to stderr by default, so it remains visible while the coding agent is working and does not corrupt --json-summary on stdout. Use --quiet for silent execution. Production OCI execution should use the Youki/runc runtime adapter rather than local host execution.

For documentation-enabled projects, bootstrap also creates zensical.toml, project-docs/index.md, and project-docs/implementation/status.md. The runtime refreshes the status page after task events and verified slice commits. The YAML ledger at .sandbox-loom/implementation-status.yml remains authoritative; the Markdown page is a Zensical projection.

Harness generation also maintains an opinionated repository-hygiene baseline in .gitignore. Existing project rules are preserved; missing template-appropriate rules for dependency directories, build output, coverage, virtual environments, credentials, and runtime caches are appended automatically.

For a one-off run, override the evidence destination without changing the project manifest:

bin/sandbox-loom run examples/14_generic_project_harness \
  --evidence /tmp/sandbox-loom-example-evidence \
  --json-summary

The override must remain outside the project repository. The manifest evidence path remains the default for runs that do not specify --evidence.

Run inside Youki or runc

Prepare an OCI rootfs containing the tools required by the selected project (at minimum /bin/sh, sleep, git, and the configured coding-agent executable), then run:

For a smoke-test rootfs:

bin/sandbox-loom rootfs prepare --output .sandbox-loom/rootfs

For a project-tool rootfs, explicitly provide the coding agent and tools:

bin/sandbox-loom rootfs prepare \
  --mode host \
  --output .sandbox-loom/rootfs \
  --agent /usr/local/bin/my-coding-agent \
  --tool /usr/bin/git

The command copies declared executables and shared-library dependencies only; it does not copy home directories or credentials.

bin/sandbox-loom run examples/14_generic_project_harness \
  --runtime oci \
  --backend youki \
  --rootfs /path/to/rootfs \
  --json-summary

Use --backend runc to require runc instead. The repository is bind-mounted at /workspace; the container supervisor remains alive while the CLI agent and quality gates are invoked through OCI exec. The bundle is temporary by default and is removed after the session. Supply --bundle PATH when retaining the generated OCI bundle for inspection.

Run with isolation

For an OCI-backed session:

  1. Choose the least-privileged session profile that can complete the work.
  2. Prepare a bundle containing config.json and rootfs/.
  3. Install Youki or provide runc.
  4. Confirm resource, network, and expiry settings.
  5. Run the operations smoke test.

The operations guide covers runtime prerequisites and the recommended operating posture.

Use read-only or safe-development access where possible. Keep credentials outside the workspace, use feature branches for automated changes, retain audit and acceptance evidence, and require approval for protected operations.