swarm-vault

swarm-vault is a skill for Claude Code, Codex from AnmarHani/SwarmVault. It costs 70 tokens per session (1,086 once invoked), scanned A, original, MIT.

A shared-knowledge contract for agents working on projects connected to SwarmVault, a plain-text store for project memory. It explains how agents read, write, and query that knowledge.

In plain words
What is it for?
Use it at the start of work or when handing off between agents to retrieve project context, record memories and decisions, and decide where plans or session notes belong.
Why use it?
It reduces repeated exploration and helps parallel or future agents inherit facts, decisions, plans, and lessons from earlier work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Codex.

Good fit Use it at the start of work or when handing off between agents to retrieve project context, record memories and decisions, and decide where plans or session notes belong.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anmarhani/swarmvault/swarm-vault
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 AnmarHani/SwarmVault --skill swarm-vault
Clone the repo
git clone --depth 1 https://github.com/AnmarHani/SwarmVault

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/anmarhani/swarmvault/swarm-vault.svg)](https://agentmods.dev/skills/anmarhani/swarmvault/swarm-vault)
Your own site
<a href="https://agentmods.dev/skills/anmarhani/swarmvault/swarm-vault"><img src="https://agentmods.dev/badge/skills/anmarhani/swarmvault/swarm-vault.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,086 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.00070 $0.01086
Opus 5 $0.00035 $0.00543
Sonnet 5 $0.00014 $0.00217
Haiku 4.5 $0.00007 $0.00109

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

Security

Grade A, and why

swarm-vault 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 8d 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.

skills/swarm-vault/SKILL.md · 88 lines

How it starts

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

swarm-vault — the vault contract

The vault is the shared brain of every agent on this machine. Query it before exploring; write to it so parallel and future agents inherit what you learned. It is plain markdown — Obsidian is an optional viewer, never a dependency.

The CLI is swarmvault.py — your platform's SwarmVault section (CLAUDE.md / AGENTS.md) records its full path; default install is ~/.swarmvault/scripts/swarmvault.py.

Reading (query first, explore second)

swarmvault.py query --search "auth flow"           # BM25, names + descriptions
swarmvault.py query --project X --type memory      # structured filters
swarmvault.py show <note-name>                     # one body, once found
swarmvault.py context .                            # the compact project brief

Descriptions are the payload — most questions are answered without opening a note. Open bodies (show) only for what you actually need. Reach for Glob/Grep on the repo only for what the vault cannot answer. If quality genuinely needs more context, take more — the budget curbs habit, not necessity.

Writing (own files only)

What Where Lane
Memory (facts, footguns, decisions learned) platform memory dir, or <project>/.swarm/memory/ on Codex — sync mirrors both machine
Session journal (end of session) 40 Sessions/<P>/YYYY-MM-DD <slug>.md machine
Specs, plans, question queue 30 Plans/<P>/ human (specs) / machine (queue)
Tickets + claims 30 Plans/<P>/tickets/ — claim via CLI only (see swarm-implement) machine
ADRs 50 Decisions/<P>/ADR-NNN-<slug>.md human
Code-notes (deep reasoning for a hot file) 10 Projects/<P>/code-notes/ human

Rules: frontmatter always (name, one-line description that carries the fact, project, type); [[wikilinks]] liberally; templates in 90 Templates/. Never edit MOCs, Home, or generated: true notes — sync regenerates them. Never write another agent's session/claim files.

Read the full file on GitHub · 88 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. 8d ago First seen · 88 lines · 70 tokens per session scan A f2d41b742220

Subscribe to this mod's changes

swarm-vault is a skill published in the GitHub repository AnmarHani/SwarmVault (5 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 1,086 once invoked, about $0.0003 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-31.