Sandcastle is a library for orchestrating AI coding agents across isolated sandboxes. A single sandcastle.run() call invokes agents while Sandcastle handles sandboxing, a configurable branch strategy, and merging commits back.
Project overview
It addresses the orchestration burden of running AI coding agents by combining a single-call API with provider-agnostic sandboxing that spans native OS process sandboxes, image-based Docker/Podman providers, and cloud providers.
Project type
AI Agent · AI Coding
Use cases
Coding & Development · Automation
Deployment
Refer to project documentation
License
MIT
Best for
Developers who run AI coding agents and need orchestration across isolated sandboxes, used as a library (with CLI commands also documented).
Key capabilities
Invoke AI coding agents with a single sandcastle.run() call while Sandcastle handles sandboxing with a configurable branch strategy and merges commits back.
Ships native OS process sandboxes (Bubblewrap, Seatbelt), image-based Docker/Podman providers, and cloud providers (Daytona, E2B, Fly.io Sprites, Modal, Vercel), plus custom provider support.
Documents CLI commands in docs/guide/cli.md alongside the programmatic API.
Limitations and risks
Using Sandcastle requires coding; it is consumed as a library.
If you use cloud sandbox providers (Daytona, E2B, Fly.io Sprites, Modal, Vercel), those are external services, so the data boundary is external for those runs; native and image-based providers are also available.
Getting started
Sandcastle is used as a library, and the project also documents CLI commands in docs/guide/cli.md. Setup difficulty is not documented.
Evidence and sources
README: A TypeScript library for orchestrating AI coding agents in isolated sandboxes:
README: 1. You invoke agents with a single `sandcastle.run()`. 2. Sandcastle handles sandboxing the agent with a configurable branch strategy. 3. The commits made on the branches get merg…
README: Reference: [`run()` and `createSandbox()`](./docs/guide/run.md), [CLI commands](./docs/guide/cli.md), [Glossary](./docs/guide/glossary.md)
README: ```bash npm install npm run build # Bundle with tsup npm test # Run tests with vitest npm run typecheck # Type-check ```