stigmergy-service

stigmergy-service is a skill for Claude Code, Codex from ellmos-ai/bach. It costs 84 tokens per session (635 once invoked), scanned A, original, MIT.

A coordination method for groups of agents that communicate by leaving shared marks, similar to ants leaving pheromone trails. Agents read the marks to choose promising paths, and the marks become weaker over time.

In plain words
What is it for?
Use it to record a path or finding, read marks left by other agents, reduce old marks, and select the strongest available path.
Why use it?
It allows agents to share useful signals without relying on one central coordinator or direct messages between every agent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to record a path or finding, read marks left by other agents, reduce old marks, and select the strongest available path.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ellmos-ai/bach/stigmergy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ellmos-ai/bach --skill stigmergy
Clone the repo
git clone --depth 1 https://github.com/ellmos-ai/bach

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stigmergy-service

README.md
[![agentmods](https://agentmods.dev/badge/skills/ellmos-ai/bach/stigmergy/github.svg)](https://agentmods.dev/skills/ellmos-ai/bach/stigmergy)
Your own site
<a href="https://agentmods.dev/skills/ellmos-ai/bach/stigmergy"><img src="https://agentmods.dev/badge/skills/ellmos-ai/bach/stigmergy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stigmergy-service

Your own site · 80×15
<a href="https://agentmods.dev/skills/ellmos-ai/bach/stigmergy"><img src="https://agentmods.dev/badge/skills/ellmos-ai/bach/stigmergy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.00635
Opus 5.5 $0.00034 $0.00254
Sonnet 5.5 $0.00017 $0.00127
Haiku 4.5 $0.00008 $0.00064

Measured 2mo ago against content hash 4a916ac2fef5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stigmergy-service scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__init__.py, stigmergy_api.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

system/hub/_services/stigmergy/SKILL.md · 72 lines

What it actually says

Stigmergy Service

Kategorie: Schwarm-Koordination Integration: tools/schwarm/stigmergy_pattern.py (Wrapper, CLI: python -m tools.schwarm.stigmergy_pattern "Aufgabe" --agents 3 --rounds 2) Handler: keiner eigenstaendig — Nutzung ueber Schwarm-Tools


Zweck

Indirekte Koordination von Schwarm-Agenten ohne zentrale Steuerung (Konzept: vernunft_kantian.txt, V009 Self-Extension/Autonomie). Agenten hinterlassen Pheromone (Markierungen), andere Agenten lesen diese und waehlen vielversprechende Pfade.

Tabellen-Mapping auf shared_memory_working:

  • type = 'note'
  • content = JSON: {namespace, path_id, strength, metadata, agent_id, timestamp}
  • tags = '["stigmergy"]'
  • related_to = path_id (schnelles Filtern)
  • priority = int(strength * 10) (Skala 0-10)

API

Klasse: StigmergyAPI(db_path, agent_id='anonymous')

Methode Wirkung
deposit(path_id, strength=1.0, metadata=None) Pheromon hinterlassen
sense(path_prefix='') Pheromone lesen (Liste von Dicts)
evaporate(decay_rate=0.1) Staerke aller Pheromone verringern (Verfall), liefert Anzahl betroffener Zeilen
get_best_path(path_prefix='') Staerksten Pfad ermitteln
dump() Gesamten Namespace ausgeben

Modul-Funktionen (Convenience): deposit_pheromone(...), sense_pheromones(db_path, path_prefix=''), get_best_pheromone_path(db_path, path_prefix='')


Abhaengigkeiten

  • sqlite3 (User-DB)
  • Tabelle shared_memory_working in User-DB
  • keine externen Dienste
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 72 lines · 84 tokens per session scan A 4a916ac2fef5

Subscribe to this mod's changes

stigmergy-service is a skill published in the GitHub repository ellmos-ai/bach (9 stars, last pushed today), licensed MIT. It adds 84 tokens to every session and 635 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.

Related

stigmergy-service compared with skills from other repositories

stigmergy-service next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stigmergy-serviceellmos-ai/bachSkill9todayMITA84Claude Code, Codex
fastapi-patternsaffaan-m/ECCSkill314kyesterdayMITA35Claude Code, Kiro
open-sourcebrowser-use/browser-useSkill122kyesterdayMITA101Claude Code
mem0-vercel-ai-sdkmem0ai/mem0Skill70k3d agoApache-2.0A146Claude Code, Codex
mem0-tourmem0ai/mem0Skill70k3d agoApache-2.0A47Claude Code, Codex
mineMemPalace/mempalaceSkill61ktodayMITA21Claude Code
mem0-test-integrationmem0ai/mem0Skill70k3d agoApache-2.0A207Claude Code, Codex