AFK Agent Control
Sandcastle is a TypeScript library that runs AI coding agents (Claude Code, Pi, Codex, OpenCode) in isolated environments. One `sandcastle.run()` call does everything.
Agents run in Docker containers with your code bind-mounted. This keeps your host clean while the agent installs deps, runs tests, and modifies files.
Each run gets a git branch (e.g. `sandcastle/1234`). The agent commits changes there. You review, then merge when ready.
Set maxIterations to let the agent refine its work. Each iteration: the agent sees previous output, fixes issues, commits again.
Agent outputs `
Claude Code (Anthropic), Pi (OpenRouter, 358 models), Codex (OpenAI), OpenCode (DeepSeek). All pre-configured with your API keys.
Clone any repo, see ahead/behind status, pull/push. 56 of your repos are linked.
Web UI with real xterm.js terminal. See agent output live as it works. Full mobile support.