Agent Swarms on Sprites
Running each coding agent in a swarm on its own Sprite (a Fly.io sandboxed machine) avoids the shared-filesystem, conflicting-dependency and blast-radius problems of co-located agents. An orchestrator Sprite running Claude Code creates worker Sprites via the API and hands them tasks. Workers can checkpoint and restore their whole environment in about three seconds, which makes speculative parallel attempts practical. Per-agent DNS-level network policies restrict egress, results can flow back over HTTP endpoints, a shared Postgres Sprite or orchestrator file reads, and idle Sprites pause and persist.
Related posts
- Building Agents that Don't Break Themselves
Fly.io mediumAdeptSeparate where an agent lives from where it executes code: keep the agent loop on a durable host and send every shell command to a disposable Sprite sandbox. SpriteDoc, an internal multi-user troubleshooting agent built on Pi, creates one Sprite per session on first filesystem use and tears it down when idle. It injects each user's flyctl token only for the duration of a single command, so no credential ever rests in the sandbox. Kyle's Hermes Agent backend instead keeps one persistent Sprite per task and skips dangerous-command approval prompts because the sandbox is the security boundary. Copy-on-write checkpoints let an agent that deletes its own work and toolchain be restored in about nine seconds.
- Agents in the Sandbox
Railway mediumAdeptRailway sandboxes now ship Claude Code, Codex, OpenCode and Pi in the default image and can join an environment's private network, which lets agents test against real Postgres, Redis and internal services. The suggested workflow builds a template, configures a sandbox, takes a disk checkpoint, then creates or forks sandboxes from it so parallel agents start from a prepared workspace. Templates are cached builds from shell instructions, checkpoints are server-side disk snapshots that outlive the source sandbox, and forks clone a running sandbox's files but not its processes. TypeScript SDK and CLI examples cover detached agent sessions you can reattach to, port forwarding and a four-agent repo review app.
- How to Run Untrusted Code Safely
Fly.io mediumAdeptContainers share the host kernel, so truly untrusted code such as AI-generated scripts or user submissions needs hardware isolation, allowlist-based network egress control enforced from outside the sandbox, rollback and multiple runtimes. Fly.io's Sprites meet these requirements. A code runner is set up with a deny-all network policy applied through the external API, which code inside cannot change even as root, and specific domains can be selectively allowed. Broken environments are recovered by destroying the Sprite or restoring a checkpoint in about a second.
- Why AI Agents Need Isolation
Docker easyNoviceAI coding agents that run commands, install packages and handle credentials should execute behind an isolation boundary rather than directly on the developer's host. Docker Sandboxes (sbx) runs agents in microVMs instead of plain containers, because containers share the host kernel. Docker built its own VMM rather than using Firecracker so the same model works on macOS and Windows as well as Linux. Credentials stay on the host: the agent sees a sentinel placeholder, and a proxy swaps in the real auth header on outbound requests. Sandbox Kits package tools, network rules, credentials, files, startup commands and agent memory (e.g. AGENTS.md) into reusable specs, either as stackable Mixin Kits that extend an existing agent or as Agent Kits that define a full agent environment from scratch.
- Run Paperclip AI on a Sprite
Fly.io mediumAdeptPaperclip, an open-source orchestration platform for running teams of AI agents, can be hosted on a Fly.io Sprite with a single `npx paperclipai onboard -y` install using embedded PostgreSQL on port 3100. To make it remotely reachable, switch the config to `authenticated` mode bound to 0.0.0.0, add the Sprite hostname to Paperclip's allowlist, and register it as a Sprite service, which also fixes the "hostname is not allowed" error. Sprites add checkpoint/restore for rolling back agent state, pause/resume billing when idle, hardware isolation, and a network policy file that blocks agent egress to unapproved domains via DNS REFUSED responses.