brain

brain is a command for Claude Code from Ertinox7711/SGRR-AGI-V2. It costs 47 tokens per session (508 once invoked), scanned A, original, MIT.

A local search command for an indexed collection of notes, files, agent skills, project instructions, and memories. It uses retrieval—finding relevant passages from stored text—so you can inspect sources before answering a question.

In plain words
What is it for?
Use it to search project knowledge, agent instructions, memories, and archived notes, then open the cited files for current details.
Why use it?
Important context may already exist in local files but be hard to find by hand. This helps avoid claiming that information is unknown when it is recorded somewhere in the indexed material.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to search project knowledge, agent instructions, memories, and archived notes, then open the cited files for current details.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ertinox7711/sgrr-agi-v2/brain
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.

Clone the repo
git clone --depth 1 https://github.com/Ertinox7711/SGRR-AGI-V2

Made for: Claude Code.

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 brain

README.md
[![agentmods](https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/brain/github.svg)](https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/brain)
Your own site
<a href="https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/brain"><img src="https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/brain/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.

agentmods 80×15 button for brain

Your own site · 80×15
<a href="https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/brain"><img src="https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/brain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 508 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.00047 $0.00508
Opus 5 $0.00023 $0.00254
Sonnet 5 $0.00009 $0.00102
Haiku 4.5 $0.00005 $0.00051

Measured 3d ago against content hash 2a6811f9c8e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

brain 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 3d 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.

commands/brain.md · 33 lines

What it actually says

brain-rag est le RAG maison : environ 66 000 extraits couvrant le brain de Hermes (notes, dossiers, reels archives, journal), les skills Hermes, les skills Claude Code, le CLAUDE.md global, PITFALLS.md, shops-registry.md et les memoires des deux agents. Il rend des passages avec fichier:ligne.

Recherche demandee : $ARGUMENTS

Marche a suivre

  1. Lance la recherche : wsl -u YOU -- bash -lic 'brain-rag "<la question>"'
    • hybride BM25 + bge-m3 par defaut, environ 2 s
    • --fast = BM25 seul · --scope brain|hermes|claude|memory · -k N · --full
    • l'index se rafraichit tout seul (au plus une fois toutes les 10 min) ; --refresh force le controle, --index reconstruit tout (30 s)
  2. Si la premiere formulation ne rend rien, reformule avec les mots du document (« no-verify », « 403 Cloudflare », « keep_alive ») plutot qu'avec les tiens. C'est ce qui fait la difference entre trouver et ne pas trouver.
  3. brain-rag retrouve des passages, il ne raisonne pas : ouvre le fichier cite avant d'agir dessus. Un extrait indexe reflete l'etat au moment de l'indexation, pas forcement le disque d'aujourd'hui.
  4. Reponds avec la reponse d'abord, puis les sources en fichier:ligne.

Si vraiment rien ne sort apres deux formulations differentes, dis-le franchement et propose la source suivante (le fichier a lire, ou la question precise a poser a the operator) — n'invente pas.

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. 3d ago First seen · 33 lines · 47 tokens per session scan A 2a6811f9c8e7

Subscribe to this mod's changes

brain is a command published in the GitHub repository Ertinox7711/SGRR-AGI-V2 (1 stars, last pushed 3d ago), licensed MIT. It adds 47 tokens to every session and 508 once invoked, about $0.0002 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-09-09.