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.
git clone --depth 1 https://github.com/brainOS-HQ/brain-osWrote 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/brainos-hq/brain-os/patterns)<a href="https://agentmods.dev/commands/brainos-hq/brain-os/patterns"><img src="https://agentmods.dev/badge/commands/brainos-hq/brain-os/patterns/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/brainos-hq/brain-os/patterns"><img src="https://agentmods.dev/badge/commands/brainos-hq/brain-os/patterns.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.00000 | $0.00803 |
| Opus 5.5 | $0.00000 | $0.00321 |
| Sonnet 5.5 | $0.00000 | $0.00161 |
| Haiku 4.5 | $0.00000 | $0.00080 |
Grade B, and why
patterns scanned grade B with 1 finding 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 3mo 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.
Strips warnings and disclaimersmediumAnti-refusal
Omitting safety caveats hides risk from the user and is a common jailbreak preamble.
- Do not moralize. State the pattern, the risk, and the action. No lectures. How it starts
The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Brain OS : Pattern Engine
"What patterns are showing up across my work?"
Not analytics. Recognition.
REQUIRED FIRST READ
Before any tool call, read ~/.claude/brain-os/PROTOCOL.md. Tool routing is non-negotiable.
Input
Arguments: $ARGUMENTS (optional : entity/project name, "weekly" for recent patterns, "deep" for full analysis, or a specific theme). If a project name is given, focus on that project's patterns first.
Primary tool sequence
mcp__brain-os__pattern_detect(): current pattern report- If empty:
mcp__brain-os__semantic_recall("recent patterns", source_kind="pattern") - Supporting evidence:
mcp__brain-os__entity_read()for relevant entities
What to look for
1. Momentum patterns
- Which entities are moving? Which are stalled?
- Is momentum concentrated or scattered?
- Anything losing momentum that was recently high?
2. Blocker recurrence
- Same blocker across multiple entities
- Same blocker in the same entity across sessions
- Blockers noted but never resolved
3. Decision repetition
- Strategic questions that keep being reopened
- Decisions marked active but not acted on
- Similar decisions made independently across entities
4. Theme emergence
- Concepts appearing across multiple entities
- What kind of work the user keeps gravitating toward
- Shared architectural needs
5. Execution vs discussion gap
- Entities with lots of decisions but little evidence of progress
- High-status descriptions that don't match actual output
next_movefields unchanged across updates
6. Avoidance signals
- "Active" entities not updated in 3+ weeks
- Entities where
next_movekeeps changing without anything shipping - Open questions piling up without answers
7. Convergence opportunities
- Entities that could share architecture, components, or patterns
- Work in one entity that directly benefits another
Output
========================================
PATTERN REPORT
========================================
## Pattern 1: [name]
Evidence:
- [specific data point from entity_read or pattern_detect]
- [specific data point]
Interpretation:
[one paragraph max]
Risk:
[what happens if this pattern continues]
Recommendation:
[one concrete action]
Entities affected:
[list]
----------------------------------------
## Pattern 2: [name]
...
========================================
EXISTING PATTERNS : STATUS CHECK
========================================
[for each pattern already logged]
[still active? resolved? false positive?]
========================================
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.
- 3mo ago First seen · 112 lines · 0 tokens per session scan B 9a2ac24131e8
patterns is a command published in the GitHub repository brainOS-HQ/brain-os (6 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 803 tokens. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
patterns compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| patternsbrainOS-HQ/brain-os | Command | 6 | 5d ago | MIT | B | 0 | Claude Code |
| slm-cachequalixar/superlocalmemory | Command | 293 | yesterday | AGPL-3.0 | A | 33 | Claude Code |
| slm-meshqualixar/superlocalmemory | Command | 293 | yesterday | AGPL-3.0 | A | 150 | GitHub Copilot |
| slm-bot-memoryqualixar/superlocalmemory | Command | 293 | yesterday | AGPL-3.0 | A | 82 | GitHub Copilot |
| tree-ring-certifyTerminallyLazy/Tree-Ring-Memory | Command | 24 | 2mo ago | MIT | A | 17 | Claude Code |
| tree-ring-recallTerminallyLazy/Tree-Ring-Memory | Command | 24 | 2mo ago | MIT | A | 12 | Claude Code |
| tree-ring-updateTerminallyLazy/Tree-Ring-Memory | Command | 24 | 2mo ago | MIT | A | 15 | Claude Code |