GBrain is a memory and retrieval layer for AI agents that searches, connects, and synthesizes information from stored sources. It is used to give coding agents and autonomous agents access to knowledge beyond their current code, including shared company information with access controls. The catalogue add-ons help agents operate GBrain and connect it to agent workflows.
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.
npx skills add garrytan/gbrain --skill brain-opsgit clone --depth 1 https://github.com/garrytan/gbrainWrote 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/skills/garrytan/gbrain/brain-ops)<a href="https://agentmods.dev/skills/garrytan/gbrain/brain-ops"><img src="https://agentmods.dev/badge/skills/garrytan/gbrain/brain-ops/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/skills/garrytan/gbrain/brain-ops"><img src="https://agentmods.dev/badge/skills/garrytan/gbrain/brain-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Excessive Agency · line 193 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00042 | $0.02150 |
| Opus 5.5 | $0.00017 | $0.00860 |
| Sonnet 5.5 | $0.00008 | $0.00430 |
| Haiku 4.5 | $0.00004 | $0.00215 |
Grade A, and why
brain-ops 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 today.
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 — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Brain Operations — The Ambient Context Layer
Recall relevant context before responding. Save explicit requests with provenance; automatic capture is off until the user opts in. Reading this skill does not enable capture, delegation, or paid enrichment. A chat-only instruction suppresses writes for that turn, including when standing capture is enabled.
Convention: See
skills/conventions/brain-first.mdfor the lookup chain and copyable retrieval filters. Convention: Seeskills/conventions/quality.mdfor citation and back-link rules.
Contract
This skill guarantees:
- Brain is checked BEFORE any external API call (brain-first lookup)
- Explicit save requests and opted-in inbound signals trigger the READ → WRITE loop; enrichment requires its separately configured authority
- Every outbound response checks brain for relevant context
- Source attribution on every fact written (inline
[Source: ...]citations) - User's direct statements are highest-authority data
- Back-links maintained on every brain write (Iron Law)
Iron Law: every mention of a person or company with a brain page gets a back-link FROM that entity's page TO the page mentioning them.
Read
Before any external lookup of a person, company or topic:
gbrain entity "<name>"— one call for a known entity: description, aliases, open threads, recent events, edges. Near-misses return suggestions.gbrain search "name"for exact tokens;gbrain query "question"for concepts (a nonzerosearchcount is not proof of completeness).gbrain get <slug>,gbrain backlinks <slug>,gbrain timeline <slug>.gbrain think "<question>"only for paid multi-page synthesis ("what changed since Q1");queryis enough to find a page.
External APIs fill gaps; they never start the lookup. Answer from the brain page when one exists, and cite it.
Count with gbrain, not ls. Corpora nest (meetings/YYYY/MM/ beside a
flat layer), so a shallow ls dir/*.md undercounts. Use gbrain sources list,
gbrain list --type <t>, or find <dir> -name '*.md' | wc -l.
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.
- today Changed 8f0001584240
- yesterday Changed 93b2278a9460
- 4d ago Changed · +1 lines 71d904bbe611
- 9d ago Changed · +1 lines 1fe9f53f7a77
- 11d ago Changed · -1 lines 0cfffb6413cc
- 21d ago Changed · -123 lines 104c441c23c1
- 22d ago Changed · +1 lines 7276401a8cc7
- 23d ago Changed · +1 lines 09d09dff1997
- 25d ago Changed · +1 lines a46c1ecd77bf
- 1mo ago First seen · 287 lines · 42 tokens per session scan A 7ad1f1bb8bf8
brain-ops is a skill published in the GitHub repository garrytan/gbrain (33,897 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 2,150 once invoked, about $0.0002 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.
brain-ops compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| brain-opsgarrytan/gbrain | Skill | 34k | today | MIT | A | 42 | Claude Code |
| knowledge-ingestopenclaw/openclaw | Skill | 396k | today | MIT | A | 80 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | today | Apache-2.0 | A | 217 | Claude Code, Codex |
| forgetasgeirtj/system_prompts_leaks | Skill | 74k | today | CC0-1.0 | A | 0 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 21k | 16d ago | MIT | A | 184 | Claude Code |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | yesterday | MIT | A | 115 | Claude Code, Codex |
| memoryopensquilla/opensquilla | Skill | 7.2k | 9d ago | Apache-2.0 | A | 44 | Claude Code, Codex |