← Async Digital

English Cymraeg

Working notes ·

Notes on coordinating AI agent swarms

Async Digital Ltd Cardiff, UK

Abstract

Agent swarms are trivially parallel: many model calls on separate compute, each with its own context window. They are almost nothing else. Current runtimes ship without the primitives a working concurrent system needs, so every parallel-agent pattern of value is a hand-rolled concurrency primitive bolted on by hand. Six primitives are missing: a shared memory model, synchronisation, ordering guarantees, fast inter-agent communication, back-pressure, and transactional boundaries. Direct session-to-session messaging has since arrived, which is a pipe rather than a primitive. Five manual workarounds fill the gap: a conflict matrix on overlapping files, isolated git checkouts per writer, read-only investigation agents, lead fan-out at phase boundaries, and advisory locking negotiated between peer sessions. Agent swarms accelerate independent investigations, scoped file rewrites, and parallel research queries. They fall over on anything requiring synchronisation, cross-agent invariants, or ordered commits to a shared artefact, which is, in practice, most non-trivial engineering work.

The name is deliberate. As a single engineer learning to become a team of several, I have to learn how to work asynchronously. AI agents are the team-of-several taking shape.


§1·Primitives

The missing primitives

Agent swarms are trivially parallel: many calls on separate compute, with separate context windows. But they have almost none of the primitives a concurrent system actually needs.

§2·Workarounds

The workarounds expose the gap

Every parallel-agent pattern I’ve ended up writing down is a manual concurrency primitive bolted onto a runtime that doesn’t provide one.

§3·Limits

Where swarms win, where they fall over

Agent swarms are genuinely useful for independent investigations, scoped file rewrites in non-overlapping directories, and parallel research queries. They fall over on anything that needs synchronisation, cross-agent invariants, or ordered commits to a shared artefact. Which is, in practice, most non-trivial engineering work.