---
title: "Agent Swarms on Sprites"
description: "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."
url: "https://swe.quest/articles/agent-swarms-on-sprites-839304324464381c"
canonical: "https://fly.io/blog/agent-swarms-on-sprites/"
source: "Fly.io"
published: "2026-02-09"
difficulty: "medium"
kind: "How-to"
reading_minutes: 3
tags: ["ai-agents","sandboxing","ai-coding"]
---

# Agent Swarms on Sprites

A post on [Fly.io](https://swe.quest/sources/flyio.md), published 2026-02-09, 3 min read, How-to. Original: [https://fly.io/blog/agent-swarms-on-sprites/](https://fly.io/blog/agent-swarms-on-sprites/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)

## Prerequisites

- coding agents like Claude Code ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))
- basic sandbox/VM concepts ([easy posts on Sandboxing & isolation](https://swe.quest/tags/sandboxing.md?difficulty=easy))

## Keywords

Sprites, Fly.io, Claude Code, Postgres

## Related posts

- [Building Agents that Don't Break Themselves](https://swe.quest/articles/building-agents-that-don-t-break-themselves-946af945ee4733ac.md): Fly.io · 2026-06-08 · Medium · 6 min read · AI agents, Sandboxing & isolation, Identity & auth, Virtualization
  Separate 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.
- [Agents in the Sandbox](https://swe.quest/articles/agents-in-the-sandbox-6c4d7e3dae7cde47.md): Railway · 2026-06-24 · Medium · 9 min read · AI agents, Sandboxing & isolation, Developer tools, TypeScript
  Railway 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.
- [How to Run Untrusted Code Safely](https://swe.quest/articles/how-to-run-untrusted-code-safely-e25a4476701c9dc9.md): Fly.io · 2026-02-02 · Medium · 3 min read · Sandboxing & isolation, Virtualization, Security, AI agents
  Containers 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.
- [Why AI Agents Need Isolation](https://swe.quest/articles/why-ai-agents-need-isolation-2e7b1a6342af3236.md): Docker · 2026-07-01 · Easy · 9 min read · Sandboxing & isolation, AI agents, Virtualization, Containers, AI for coding
  AI coding agents that run commands, install packages and handle credentials should execute behind an isolation boundary rather than directly on the developer's host.
- [Run Paperclip AI on a Sprite](https://swe.quest/articles/run-paperclip-ai-on-a-sprite-5386b501005dcedc.md): Fly.io · 2026-04-01 · Medium · 4 min read · AI agents, Sandboxing & isolation, Cloud platforms
  Paperclip, 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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
