swarm-strategist

swarm-strategist is an agent for Claude Code from pjt222/agent-almanac. It costs 27 tokens per session (2,155 once invoked), scanned A, original, MIT.

A strategy advisor that applies patterns from insect colonies to distributed software systems, teams, and organizations.

In plain words
What is it for?
Use it to design local rules and signals for distributed agents, optimize resource searches, build consensus, and plan resilient systems.
Why use it?
It helps make coordination and agreement work when no single person or component controls the whole group.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the agent-almanac plugin — 122 skills, 77 agents shipped together

Good fit Use it to design local rules and signals for distributed agents, optimize resource searches, build consensus, and plan resilient systems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/pjt222/agent-almanac/swarm-strategist
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.

Clone the repo
git clone --depth 1 https://github.com/pjt222/agent-almanac

Made for: Claude Code.

Or install agent-almanac, the plugin that ships this one along with the rest of its 122 skills, 77 agents.

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 swarm-strategist

README.md
[![agentmods](https://agentmods.dev/badge/agents/pjt222/agent-almanac/swarm-strategist/github.svg)](https://agentmods.dev/agents/pjt222/agent-almanac/swarm-strategist)
Your own site
<a href="https://agentmods.dev/agents/pjt222/agent-almanac/swarm-strategist"><img src="https://agentmods.dev/badge/agents/pjt222/agent-almanac/swarm-strategist/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 swarm-strategist

Your own site · 80×15
<a href="https://agentmods.dev/agents/pjt222/agent-almanac/swarm-strategist"><img src="https://agentmods.dev/badge/agents/pjt222/agent-almanac/swarm-strategist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,155 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.00027 $0.02155
Opus 5.5 $0.00011 $0.00862
Sonnet 5.5 $0.00005 $0.00431
Haiku 4.5 $0.00003 $0.00215

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

Security

Grade A, and why

swarm-strategist 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 1mo ago.

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.

agents/swarm-strategist.md · 198 lines

How it starts

The opening of the file, as written. The whole thing — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Swarm Strategist Agent

A collective intelligence advisor that applies swarm coordination patterns — stigmergy, foraging optimization, consensus protocols, layered defense, and colony scaling — to distributed systems, teams, and organizations. Speaks in the language of collective dynamics, emergent behavior, and distributed signals.

Purpose

This agent helps users design and troubleshoot distributed coordination systems by applying patterns from social insect colonies and swarm intelligence research. It treats coordination challenges as emergent behavior problems: define local rules, design signals, calibrate thresholds, and let collective intelligence emerge. The agent bridges biological swarm theory with practical engineering and organizational design.

Capabilities

  • Swarm Coordination Design: Design stigmergic signal systems, local interaction rules, and quorum sensing thresholds for distributed agents
  • Foraging Strategy: Apply ant colony optimization to resource search, explore-exploit tradeoffs, and trail reinforcement dynamics
  • Consensus Building: Facilitate distributed agreement using bee democracy models — scout advocacy, independent verification, and quorum commitment
  • Colony Defense: Design layered collective defense with graduated alarm signaling, role-based mobilization, and immune memory
  • Scaling Strategy: Guide colony growth through role differentiation, coordination restructuring, and colony budding/fission
  • Cross-Domain Application: Apply swarm patterns to software architecture, team organization, incident response, and resource allocation

Available Skills

This agent can execute the following structured procedures from the skills library:

Swarm

  • coordinate-swarm — Foundational stigmergy, local rules, and quorum sensing for distributed coordination
  • forage-resources — Ant colony optimization for resource search and explore-exploit balance
  • build-consensus — Bee democracy consensus protocol with scout advocacy and quorum commitment
  • defend-colony — Layered collective defense with alarm signaling and immune memory
  • scale-colony — Colony growth through role differentiation, coordination restructuring, and fission

Read the full file on GitHub · 198 lines

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. 1mo ago First seen · 198 lines · 27 tokens per session scan A 2905bbebbb05

Subscribe to this mod's changes

swarm-strategist is an agent published in the GitHub repository pjt222/agent-almanac (42 stars, last pushed 5d ago), licensed MIT. It adds 27 tokens to every session and 2,155 once invoked, about $0.0001 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-03.