Borrowing it
Nothing to install: this file belongs to dsifry/metaswarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dsifry/metaswarm/main/.claude/commands/prime.mdgit clone --depth 1 https://github.com/dsifry/metaswarmWrote 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.
[](https://agentmods.dev/commands/dsifry/metaswarm/prime)<a href="https://agentmods.dev/commands/dsifry/metaswarm/prime"><img src="https://agentmods.dev/badge/commands/dsifry/metaswarm/prime/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.
<a href="https://agentmods.dev/commands/dsifry/metaswarm/prime"><img src="https://agentmods.dev/badge/commands/dsifry/metaswarm/prime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.02443 |
| Opus 5.5 | $0.00004 | $0.00977 |
| Sonnet 5.5 | $0.00002 | $0.00489 |
| Haiku 4.5 | $0.00001 | $0.00244 |
Grade A, and why
prime 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 21d 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.
How it starts
The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prime (metaswarm knowledge priming)
CRITICAL: Run this command at the START of any investigation, planning, or implementation work to load relevant knowledge into your context.
When to Use
- Starting work on a GitHub Issue
- Beginning investigation/research
- Before writing a plan
- Before implementing changes
- When switching to a new area of the codebase
How It Works
/prime reads metaswarm's knowledge base, the JSONL fact files in .beads/knowledge/ (the project's own learnings) and, in the metaswarm repo, the shipped examples in knowledge/, and filters it with jq down to the facts relevant to your current work, so you:
- Follow established patterns and rules
- Avoid known gotchas and pitfalls
- Make decisions aligned with architectural choices
- Don't repeat mistakes that have been learned from
/prime filters on three things, any combination of which can be given as arguments (e.g. /prime auth src/api/auth/ implementation):
| Filter | Matches against |
|---|---|
Keyword (topic, e.g. auth) |
.fact and .tags (case-insensitive) |
| File (path or path fragment you will touch) | .affectedFiles |
| Work type (planning, implementation, review, debugging, research, release) | .type (e.g. gotcha, pattern, decision, api_behavior) |
The bd workflow reference is separate: if bd is installed, plain bd prime prints bd's own workflow reference and any bd remember memories. It has no filters and never reads .beads/knowledge/, so use /prime for the knowledge base.
Usage
The knowledge files may start with # comment lines (the shipped knowledge/*.jsonl do), so strip them with grep -hv '^#' before handing the lines to jq. Set KB to the store you want to search:
KB=.beads/knowledge # project knowledge (or: KB=knowledge for the shipped examples)
Prime for Keywords
When working on a specific topic (K is a case-insensitive regex):
K="auth"
grep -hv '^#' "$KB"/*.jsonl | jq -r --arg k "$K" 'select((.fact | test($k; "i")) or ((.tags // []) | any(test($k; "i")))) | .fact + (if .recommendation then "\n -> " + .recommendation else "" end)'
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.
- 21d ago Changed · +1 lines b9b0219abc28
- 24d ago Changed · -4 lines fe1448a3ee76
- 25d ago Changed 8cc196b24ec4
- 3mo ago First seen · 260 lines · 10 tokens per session scan A 8fc65af9e932
prime is a command published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 2,443 once invoked, about $0.0000 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-08-30.
prime compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| primedsifry/metaswarm | Command | 442 | yesterday | MIT | A | 10 | Claude Code |
| minutes-ideassilverstein/minutes | Command | 1.6k | today | MIT | A | 48 | Claude Code, OpenCode |
| learnReflexioAI/claude-smart | Command | 798 | today | Apache-2.0 | A | 14 | Claude Code |
| memory-storeverygoodplugins/mcp-automem | Command | 67 | today | MIT | A | 10 | Claude Code |
| analyze-contextRohiRIK/OpenLtm | Command | 31 | 3d ago | MIT | A | 39 | Claude Code |
| recallnaimkatiman/continuous-improvement | Command | 11 | yesterday | MIT | A | 44 | Claude Code |
| cc-memoryTheLobbi/claude | Command | 22 | 1mo ago | MIT | A | 0 | Claude Code |