AIHero

    Sandcastle

    A TypeScript library for orchestrating AI coding agents in isolated sandboxes.

    npm install --save-dev @ai-hero/sandcastle
    import { run, claudeCode } from "@ai-hero/sandcastle";
    import { docker } from "@ai-hero/sandcastle/sandboxes/docker";
    await run({
    agent: claudeCode("claude-opus-4-8"),
    sandbox: docker(), // or podman(), vercel(), or your own provider
    promptFile: ".sandcastle/prompt.md",
    });

    How it works

    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 merged back.

    Branch strategies

    Sandbox providers

    Compare providers

    Documentation

    MIT