Main Menu
  • Tools
  • Developers
  • Topics
  • Discussions
  • Communities
  • News
  • Blogs
  • Builds
  • Contests
  • Compare
  • Arena
Create
    EveryDev.ai
    Sign inSubscribe
    Home
    Tools

    2,147+ AI tools

    • New
    • Trending
    • Featured
    • Compare
    • Arena
    Categories
    • Agents1228
    • Coding1045
    • Infrastructure455
    • Marketing414
    • Design374
    • Projects340
    • Analytics319
    • Research306
    • Testing200
    • Data171
    • Integration169
    • Security169
    • MCP164
    • Learning146
    • Communication131
    • Prompts122
    • Extensions120
    • Commerce116
    • Voice107
    • DevOps92
    • Web73
    • Finance19
    1. Home
    2. Tools
    3. Sandcastle
    Sandcastle icon

    Sandcastle

    Agent Frameworks
    Featured

    A TypeScript library for orchestrating AI coding agents in isolated sandboxes using Docker, Podman, or Vercel, with configurable branch strategies and a simple sandcastle.run() API.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open-source under the MIT License. Use, modify, and distribute freely.

    Engagement

    Available On

    CLI
    API
    SDK

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Agent FrameworksAutonomous SystemsAI Coding Assistants

    Alternatives

    Agent Skills by mattpocockBackground AgentsTwill
    Developer
    Matt PocockBristol, United KingdomEst. 2021

    Listed May 2026

    About Sandcastle

    Sandcastle is a TypeScript library that lets you orchestrate AI coding agents inside isolated sandboxes with a single sandcastle.run() call. It handles sandboxing via configurable providers (Docker, Podman, Vercel, or custom), manages git branch strategies so agent commits land cleanly, and merges changes back automatically. It is provider-agnostic and designed for parallelizing multiple AFK agents, building review pipelines, or composing custom agent workflows.

    • sandcastle.run() — invoke an agent with a single call; Sandcastle handles sandbox lifecycle, branching, and commit merging automatically.
    • Multiple sandbox providers — built-in support for Docker, Podman, and Vercel Firecracker microVMs; create custom bind-mount or isolated providers using createBindMountSandboxProvider / createIsolatedSandboxProvider.
    • Branch strategies — choose head (direct write), merge-to-head (temp branch merged back), or branch (explicit named branch) to control where agent commits land.
    • createSandbox() — reuse a single sandbox across multiple agent runs to avoid repeated container startup costs and keep all runs on the same branch.
    • createWorktree() — manage git worktrees as independent first-class objects, enabling interactive-then-AFK agent handoffs on the same branch.
    • Prompt system — use inline strings or prompt files with {{KEY}} placeholder substitution, dynamic shell expression expansion (!`command`), and built-in {{SOURCE_BRANCH}} / {{TARGET_BRANCH}} variables.
    • Lifecycle hooks — run setup commands on the host or inside the sandbox at onWorktreeReady and onSandboxReady hook points, with per-hook timeout control.
    • Session capture & resume — automatically captures Claude Code session JSONL to the host for claude --resume support; pass resumeSession to continue a prior conversation in a new sandbox.
    • CLI tooling — sandcastle init scaffolds the .sandcastle/ config directory and Docker image; sandcastle docker build-image / sandcastle podman build-image rebuild images after Dockerfile changes.
    • Workflow templates — choose from blank, simple-loop, sequential-reviewer, parallel-planner, or parallel-planner-with-review during sandcastle init to scaffold ready-to-use orchestration scripts.
    • Iteration control — configure maxIterations, completionSignal, and idleTimeoutSeconds to control how long agents run and when they stop.
    • AbortSignal support — pass a signal to run() to cancel in-flight agent subprocesses and lifecycle hooks cleanly.
    Sandcastle - 1

    Community Discussions

    Be the first to start a conversation about Sandcastle

    Share your experience with Sandcastle, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source (MIT)

    Fully free and open-source under the MIT License. Use, modify, and distribute freely.

    • Full sandcastle.run() API
    • Docker, Podman, and Vercel sandbox providers
    • Custom sandbox provider support
    • All branch strategies (head, merge-to-head, branch)
    • CLI tooling (sandcastle init, build-image)

    Capabilities

    Key Features

    • Provider-agnostic sandbox orchestration (Docker, Podman, Vercel, custom)
    • Single sandcastle.run() API for invoking AI coding agents
    • Configurable branch strategies: head, merge-to-head, branch
    • createSandbox() for reusable multi-run sandboxes
    • createWorktree() for independent git worktree lifecycle management
    • Prompt files with {{KEY}} substitution and !`command` shell expansion
    • Built-in {{SOURCE_BRANCH}} and {{TARGET_BRANCH}} prompt variables
    • Lifecycle hooks (host and sandbox) at onWorktreeReady and onSandboxReady
    • Session capture and resume for Claude Code agents
    • CLI: sandcastle init, docker build-image, podman build-image
    • Workflow templates: blank, simple-loop, sequential-reviewer, parallel-planner, parallel-planner-with-review
    • maxIterations, completionSignal, and idleTimeoutSeconds controls
    • AbortSignal support for cancellation
    • Custom sandbox provider API (bind-mount and isolated)
    • Parallel agent execution support
    • Per-hook timeout configuration
    • Environment variable injection via agent and sandbox provider env options
    • Automatic worktree cleanup with await using / Symbol.asyncDispose

    Integrations

    Docker
    Podman
    Vercel (@vercel/sandbox)
    Claude Code (Anthropic)
    GitHub CLI (gh)
    Git
    Node.js
    OpenAI Codex
    OpenCode
    API Available
    View Docs

    Reviews & Ratings

    No ratings yet

    Be the first to rate Sandcastle and help others make informed decisions.

    Developer

    Matt Pocock

    Matt Pocock builds open-source developer tools and educational resources focused on TypeScript and AI-assisted development. He maintains the Total TypeScript platform and publishes widely-used libraries and utilities for the TypeScript ecosystem. His projects, including Agent Skills, are freely available on GitHub and widely adopted by the developer community.

    Founded 2021
    Bristol, United Kingdom
    11 employees

    Used by

    Vercel
    Individual engineers from Google, Meta,…
    Total TypeScript is used by developers…
    Read more about Matt Pocock
    WebsiteGitHubX / Twitter
    2 tools in directory

    Similar Tools

    Agent Skills by mattpocock icon

    Agent Skills by mattpocock

    A collection of open-source agent skills that extend AI coding assistant capabilities across planning, development, tooling, and knowledge management.

    Background Agents icon

    Background Agents

    An open-source framework for background coding agents that autonomously handle tasks from code to tests to merged PRs, enabling non-engineers to ship code.

    Twill icon

    Twill

    Twill is an autonomous coding agent platform that writes code, runs tests, fixes failures, and opens PRs around the clock without constant human supervision.

    Browse all tools

    Related Topics

    Agent Frameworks

    Tools and platforms for building and deploying custom AI agents.

    238 tools

    Autonomous Systems

    AI agents that can perform complex tasks with minimal human guidance.

    173 tools

    AI Coding Assistants

    AI tools that help write, edit, and understand code with intelligent suggestions.

    401 tools
    Browse all topics
    Back to all tools
    Explore AI Tools
    • AI Coding Assistants
    • Agent Frameworks
    • MCP Servers
    • AI Prompt Tools
    • Vibe Coding Tools
    • AI Design Tools
    • AI Database Tools
    • AI Website Builders
    • AI Testing Tools
    • LLM Evaluations
    Follow Us
    • X / Twitter
    • LinkedIn
    • Reddit
    • Discord
    • Threads
    • Bluesky
    • Mastodon
    • YouTube
    • GitHub
    • Instagram
    Get Started
    • About
    • Editorial Standards
    • Corrections & Disclosures
    • Community Guidelines
    • Advertise
    • Contact Us
    • Newsletter
    • Submit a Tool
    • Start a Discussion
    • Write A Blog
    • Share A Build
    • Terms of Service
    • Privacy Policy
    Explore with AI
    • ChatGPT
    • Gemini
    • Claude
    • Grok
    • Perplexity
    Agent Experience
    • llms.txt
    Theme
    With AI, Everyone is a Dev. EveryDev.ai © 2026
    Discussions