swarm AGENTS.md

Project instructions for penberg/swarm covering its coding style and file organization. They explain where command parsing, handlers, storage, and domain logic belong in the Rust project.

In plain words
What is it for?
Organizing CLI code, editing command handlers, placing storage logic, and keeping Rust imports explicit and consistent.
Why use it?
They help an agent make changes that match the existing code structure and import conventions.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/penberg/swarm/agents-md
Clone the repo
git clone --depth 1 https://github.com/penberg/swarm

Made for: Codex, OpenCode.

Per session 109 This file is loaded in full into every session.
When invoked 109 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00109 $0.00109
Opus 5 $0.00055 $0.00055
Sonnet 5 $0.00022 $0.00022
Haiku 4.5 $0.00011 $0.00011

Measured 2d ago against content hash dfdb9f458f63, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

swarm AGENTS.md 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 2d 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.md · 12 lines

What it actually says

AGENTS

Coding Style

  • Group imports so there is exactly one use per crate.
  • For std, prefer a single grouped import such as use std::{...}; instead of multiple use std::...; lines.
  • Keep imports explicit and stable. Do not use wildcard imports.
  • Follow the existing command layout:
    • top-level CLI parsing in opts.rs
    • command handlers in cmd/
    • storage and domain logic in top-level modules such as repos.rs
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. 2d ago First seen · 12 lines · 109 tokens per session scan A dfdb9f458f63

Subscribe to this mod's changes

swarm AGENTS.md is an instructions file published in the GitHub repository penberg/swarm (106 stars, last pushed 15d ago), licensed MIT. It adds 109 tokens to every session, about $0.0005 per session on Opus 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-08-30.

Related

Other instructions, from other repositories

herdr AGENTS.md

AGENTS.md instructions for herdrdev/herdr, covering herdr, scope and audience, universal project rules, principles and multiplicative performance paths.

herdrdev/herdr · 5,452 tokens

kungfu AGENTS.md

AGENTS.md instructions for kungfu-systems/kungfu, covering agents.md, start from the person's objective, rules that always apply, load bounded context before changing the repository and execute and verify through shifu.

kungfu-systems/kungfu · 1,532 tokens

jarvis-registry AGENTS.md

AGENTS.md instructions for ascending-llc/jarvis-registry, covering jarvis registry — agent guide, project overview, ⚠️ plan mode instructions ⚠️, my engineering preferences and 1. architecture review.

ascending-llc/jarvis-registry · 4,931 tokens

kungfu CLAUDE.md

Claude Code instructions for kungfu-systems/kungfu: Read and follow AGENTS.md before working in this repository. It routes both product use and contribution work to the repository sources of truth, including the requirement that development and build tasks enter through Shifu.

kungfu-systems/kungfu · 54 tokens

kungfu copilot-instructions.md

Copilot instructions for kungfu-systems/kungfu: Read and follow AGENTS.md before proposing or running changes. It is the shared agent router for this repository, including the canonical Shifu development and build entrypoint.

kungfu-systems/kungfu · 45 tokens

luvus AGENTS.md

Instructions for RizRiyz/luvus, covering agents.md, start with current evidence, product model, non-negotiable development safety and architecture and code map.

RizRiyz/luvus · 3,991 tokens