Sandcastle

Normal
GitHub TypeScript MIT

Description

A TypeScript tool for orchestrating sandboxed coding agents with secure execution environments powered by sandcastle.run.

Key Features

  • Sandboxed agent orchestration — safely execute AI coding agents in isolated sandboxes via sandcastle.run()
  • Multiple sandbox providers — built-in Docker, Podman, Vercel support, custom sandbox creation
  • Provider-agnostic design — swappable agent providers, built-in Claude Code support
  • Git branch strategy management — automatic agent branch creation, commits, and merges
  • Parallel agent execution — supports multiple AFK agents running in parallel, review pipelines
  • TypeScript native — full TypeScript support with type-safe API design

Use Cases

💡 Parallel AI coding — run multiple Claude Code agents in isolated sandboxes for different tasks
💡 Code review pipelines — create automated agent code review and merge workflows
💡 Secure code execution — safely execute untrusted AI-generated code in containerized environments
💡 CI/CD agent integration — use sandboxed agents in continuous integration pipelines
💡 Multi-repo parallel development — run agents across multiple workspaces for cross-repo modifications

Strengths & Limitations

Strengths

  • High community interest (7.4k stars)
  • Permissive open-source license (MIT)

Quick Start

# Install
npm install --save-dev @ai-hero/sandcastle

# Initialize project
npx @ai-hero/sandcastle init

# Configure .sandcastle/.env
# Set ANTHROPIC_API_KEY

# Run the agent
npx tsx .sandcastle/main.ts

# Or via API
import { run, claudeCode } from "@ai-hero/sandcastle";
import { docker } from "@ai-hero/sandcastle/sandboxes/docker";

await run({
  agent: claudeCode("claude-opus-4-7"),
  sandbox: docker(),
  promptFile: ".sandcastle/prompt.md",
});

Related Projects

VibeKit

1.8k · TypeScript
Stale B

Run Claude Code, Gemini, Codex — or any coding agent — in a clean, isolated sandbox with sensitive data redaction and observability baked in.

sandboxcoding-agentclaude-code +3
  • · Local sandbox execution using isolated Docker containers for zero-risk agent output
  • · Built-in sensitive data redaction that auto-removes secrets and API keys from completions
  • · Full observability with real-time logs, traces, and metrics for agent operations

Codel

2.5k · TypeScript
Stale C

Fully autonomous AI Agent that can perform complicated tasks and projects using terminal, browser, and editor with sandboxed execution.

autonomous-agentcode-executionbrowser-automation +2
  • · Sandboxed Docker execution — all code runs in isolated Docker containers for security
  • · Autonomous task detection — automatically determines the next step and executes it without human intervention
  • · Built-in browser — fetches latest information from the web including tutorials and documentation

Emdash

5.4k · TypeScript
Active A

Open-source agentic development environment (YC W26) that runs multiple coding agents in parallel with any LLM provider

coding-agentdev-environmentparallel-agents +3
  • · Run multiple coding agents in parallel, each in its own isolated Git worktree
  • · Automatic detection of installed agent CLIs (Claude Code, Codex, OpenCode, Gemini, Amp, and more)
  • · Import tasks from Linear, GitHub, Jira, GitLab, Asana, and other issue trackers