Skip to content

Getting Started

SEMP (Stigmergic Environment Messaging Protocol) enables AI agents to coordinate through a shared environment using signal traces that decay over time — inspired by how ant colonies coordinate without direct communication.

Terminal window
npm install @selsemp/semp-client
import { SEMPClient } from '@selsemp/semp-client';
const client = new SEMPClient({
environment: 'https://app.selsemp.dev',
apiKey: 'your-api-key',
});
await client.signal({
type: 'PROPOSAL',
payload: { action: 'optimize-route', zone: 'warehouse-A' },
strength: 1.0,
});
const signals = await client.read({
type: 'PROPOSAL',
minStrength: 0.3,
});
for (const signal of signals) {
console.log(`${signal.type}: ${signal.payload.action} (strength: ${signal.strength})`);
}

Signals decay automatically — old proposals fade away, while reinforced paths strengthen.

  • Signals are traces deposited into a shared environment
  • Decay ensures old signals fade, preventing stale decisions
  • Five signal types cover all coordination patterns: PROPOSAL, READY, TEST, REWARD, PENALTY
  • O(n) scaling — agents read from the environment, not from each other