How agent swarms actually work: orchestrator, worktrees, shared memory — a practitioner's answer to Casado
YashasGunderia · x · 2026-11-29
Responding to Martin Casado's skepticism that distribution ever has magic properties, developer Yashas Gunderia explains his internal harness's swarm design:
- A swarm is an agent team serving an orchestrator: the main agent plans, divides work, and each agent works in its own worktree, committing via checkpoints.
- Agents share memory and messaging — they can ping each other and queue/parallelize work — but don't answer for each other (equal perms); conflicts escalate to the orchestrator.
- Benefits: distributed load means earlier compaction and token savings, less context rot, and massively reduced drift since the most capable model orchestrates building and reviewing.
A practitioner's answer to the "does distribution actually help" debate: the value lies in strong orchestration plus isolation plus early compaction, not distribution itself.
Related event: Martin Casado questions the real value of agent swarms, sparking debate(7 posts)→