agentleFS
MicrosoftKnown publishermicrosoft/PilotSwarm/examples/agent-packages/pilotswarm-tour-guide/skills/pilotswarm-architecture/SKILL.md

pilotswarm-architecture

Skill14 starsChanged 8 months agoMITView on GitHub

The shape of PilotSwarm — the pieces, how a turn flows through them, and the rules that constrain each layer.

Files
SKILL.md

PilotSwarm Architecture

A durable execution runtime for GitHub Copilot SDK agents, powered by duroxide (a Rust durable-orchestration engine). What durability buys: crash recovery, durable timers, session dehydration, multi-node scale-out.

Two runtime components

  • Client — creates sessions, sends prompts, subscribes to events. Lightweight, needs no GitHub token, handles only serializable data.
  • Worker — runs LLM turns, executes tool handlers, owns the Copilot runtime. Needs a GitHub token. Tools are registered here.

Both connect to the same PostgreSQL. Duroxide coordinates between them, which is why the client can hold no handler functions: everything crossing that boundary must survive a database round-trip.

The path of one turn

Client → duroxide orchestration → SessionProxy activity
       → SessionManager → ManagedSession → CopilotSession (Copilot SDK)

The rule that shapes everything: replay

The orchestration is a generator replayed from the beginning on every new event, so it must yield the identical sequence each time. Date.now(), Math.random(), crypto.randomUUID(), setTimeout, and any I/O are therefore banned inside it — the deterministic substitutes are ctx.utcNow(), ctx.newGuid(), ctx.scheduleTimer(), and activities. Changing the yield sequence creates a new orchestration version, which is why versions are frozen rather than edited.

Storage

Session state lives in the CMS (copilot_sessions schema); facts live in their own schema. All data access goes through stored procedures with versioned migrations applied under advisory locks, so concurrent workers can start safely against the same database.

Composition

A session can spawn sub-agents, each its own session with its own conversation and tools, running concurrently under a parent. Capability arrives as agent packages: a manifest plus agents, skills, worker tools, and MCP servers.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.