AI Agent Orchestration Library
3.7k 2026-05-06
mattpocock/sandcastle
A TypeScript library designed to orchestrate AI coding agents within isolated sandboxes, streamlining their execution and managing code changes.
Core Features
Single-function invocation for AI agents (`sandcastle.run()`)
Automated sandboxing with configurable branch strategies
Support for multiple sandbox providers (Docker, Podman, Vercel, custom)
Automatic merging of agent-made commits
Provider-agnostic architecture for flexible integration
Quick Start
npm install --save-dev @ai-hero/sandcastle && npx sandcastle initDetailed Introduction
Sandcastle is a powerful TypeScript library that simplifies the complex task of managing AI coding agents. It provides a robust framework for orchestrating agents in isolated environments, ensuring that their operations are contained and their code changes are systematically integrated. By abstracting away the complexities of sandboxing and version control, Sandcastle enables developers to efficiently deploy, monitor, and merge contributions from AI agents, making it ideal for parallelizing tasks, creating review pipelines, or automating development workflows.