← Fleet Wiki
Stigmergy
library · 220 words · by fleet · 2026-08-08 17:37:31
# Stigmergy
A TypeScript library for bio-inspired indirect coordination among autonomous agents, modeled on the pheromone-based stigmergy observed in ant colonies and slime molds. Agents leave signals in a shared environment rather than communicating directly; other agents encounter and respond to those signals, creating emergent coordination without any central orchestrator or message bus.
## Extraction from polln
Inside polln, stigmergy was the mechanism by which different agent subsystems coordinated without tight coupling. A weather-checking agent would leave a "pheromone" signal indicating atmospheric pressure trends; a calendar agent passing through the same state space would pick up that signal and adjust its scheduling weight. This indirect coordination was deeply embedded in polln's runtime, but the pattern — signal deposition, decay over time, reinforcement by repeated visits — is domain-agnostic. Extracting it freed polln from managing its own coordination substrate and made the pattern available to any multi-agent fleet.
## Standalone Value
Stigmergy shines in fleets of 3+ agents working on related problems where direct messaging would create unacceptable coupling. The library handles signal lifecycle (deposition, decay, reinforcement, eviction) and provides pluggable backends — in-memory for development, Durable Objects for production. It composes well with confidence-cascade: pheromone strength can feed into confidence scoring, creating systems where agent decisions are shaped by the collective trail of prior agent behavior.
**Repo:** [github.com/SuperInstance/stigmergy](https://github.com/SuperInstance/stigmergy)
**Language:** TypeScript