swarm-init

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

A project setup guide for connecting a code project to SwarmVault, a shared store for notes and project knowledge. It can also connect available agent platforms and prepare Git when needed.

In plain words
What is it for?
Use it when starting or registering a project, choosing shared or isolated knowledge, connecting agent command-line tools, or optionally enabling orchestration.
Why use it?
It avoids wiring each project by hand and helps preserve project context across agents and sessions.

Skill for Claude CodeCodex

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 skills/anmarhani/swarmvault/swarm-init
Any agent
npx skills add AnmarHani/SwarmVault --skill swarm-init
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-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/anmarhani/swarmvault/swarm-init.svg)](https://agentmods.dev/skills/anmarhani/swarmvault/swarm-init)
Your own site
<a href="https://agentmods.dev/skills/anmarhani/swarmvault/swarm-init"><img src="https://agentmods.dev/badge/skills/anmarhani/swarmvault/swarm-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 734 The whole file, excluding the scripts and references it only reads on demand.
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.00060 $0.00734
Opus 5 $0.00030 $0.00367
Sonnet 5 $0.00012 $0.00147
Haiku 4.5 $0.00006 $0.00073

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

Security

Grade A, and why

swarm-init 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 4d 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-init/SKILL.md · 59 lines

How it starts

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

swarm-init — new project onboarding

Idempotent: safe to re-run on an initialized project (repairs missing pieces, changes nothing else).

Steps

  1. Vault exists? swarmvault.py doctor. If no vault: offer swarmvault.py init first. Mention once: opening the vault folder in Obsidian gives the graph and backlinks — optional, never required (docs/obsidian-guide.md).

  2. Ask (only what is genuinely the user's):

    • Project name (default: directory name).
    • Isolation: shared (cross-project queries see it) or isolated?
    • Which agentic platforms to wire — the tools they actually have (claude-code, codex, gemini, opencode, droid, cursor, copilot, amp, or any other agent CLI by name), and global or per-project.
    • Git init, if no repo (recommended — the flow's traceability uses commits; optional).
    • Optional orchestration for this project? Ask it as a pace — off / budget / balanced / fast — plus whether workers may edit code. Never ask for a worker count or a model name (swarm-orchestrate explains why) — but if they enable it, DO ask their plan and usage limits per platform: you cannot read those, and without them every usage number you print is invented.
    • If not already set: make the vault the default for new projects? → save "auto_init_new_projects": true in ~/.swarmvault.json; future inits skip the ceremony.
  3. Do it in one command — it registers, wires every named platform's own instruction file (plus Claude Code skills and hooks), syncs, and verifies:

    swarmvault.py setup --platforms <list> --scope global|project \
      [--name <name>] [--isolated] [--autonomy off|budget|balanced|fast] [--read-only]
    

    Already-registered project, or only need part of it? register / wire --platforms … / sync --quiet / doctor are the same steps individually. Never leave the user manual file edits.

  4. Disclaimer (show once, verbatim):

    SwarmVault stores project knowledge as plain files and runs local scripts. Auditing your environment, installed packages, and the data you place in the vault is your responsibility. Isolation flags are cooperative filtering between agents, not a security boundary.

  5. Point forward: /swarm-flow starts the SDLC (first stop: swarm-spec).

Read the full file on GitHub · 59 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. 4d ago First seen · 59 lines · 60 tokens per session scan A 4e5903204e76

Subscribe to this mod's changes

swarm-init is a skill published in the GitHub repository AnmarHani/SwarmVault (5 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 734 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.