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 timurgaleev/memex --skill brain-opsgit clone --depth 1 https://github.com/timurgaleev/memexWrote 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/timurgaleev/memex/brain-ops)<a href="https://agentmods.dev/skills/timurgaleev/memex/brain-ops"><img src="https://agentmods.dev/badge/skills/timurgaleev/memex/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/timurgaleev/memex/brain-ops"><img src="https://agentmods.dev/badge/skills/timurgaleev/memex/brain-ops.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.00042 | $0.01556 |
| Opus 5.5 | $0.00017 | $0.00622 |
| Sonnet 5.5 | $0.00008 | $0.00311 |
| Haiku 4.5 | $0.00004 | $0.00156 |
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 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.
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 — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Brain Operations — The Ambient Context Layer
The brain is not an archive. It is a live context membrane that every interaction flows through in both directions.
Convention: See conventions/brain-first.md (via
get_skill conventions/brain-first) for the 5-step lookup protocol. Convention: See conventions/quality.md (viaget_skill conventions/quality) for citation and back-link rules.
Contract
This skill guarantees:
- Brain is checked BEFORE any external API call (brain-first lookup)
- Every inbound signal triggers the READ → ENRICH → WRITE loop
- 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: Back-Linking (MANDATORY)
Every mention of a person or company with a brain page MUST create a back-link FROM that entity's page TO the page mentioning them. An unlinked mention is a broken brain. See conventions/quality.md for format.
Phases
Phase 1: Brain-First Lookup (MANDATORY)
Before using ANY external API to research a person, company, or topic:
search "name"— hybrid retrieval (noexpandknob; expansion is off in the default mode bundles)query "natural question about name"— same retrieval with broader controls; escalate here withexpand: truewhen the question is conceptual and step 1 came back thinpage_get <slug>— if you know the slug, read the full page- Check
backlinks: who references this entity? - Check
entity_timeline: recent events involving this entity
The brain almost always has something. External APIs fill gaps, not start from scratch.
Phase 2: On Every Inbound Signal (READ → ENRICH → WRITE)
Every message, meeting, email, or conversation that references a person or company:
- Detect entities — people, companies, deals mentioned
- Load brain pages — read existing pages for context before responding
- Identify new information — what does this signal tell us that the page doesn't know?
- Write it back — update the brain page with new info + timeline entry + source citation
- Create if missing — if notable and no page exists, create via enrich skill
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 · 172 lines · 42 tokens per session scan A dbccb3b169af
brain-ops is a skill published in the GitHub repository timurgaleev/memex (11 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 1,556 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-31.
brain-ops compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| brain-opstimurgaleev/memex | Skill | 11 | 2mo ago | MIT | A | 42 | Claude Code, Codex |
| memorypioneerdotai/pioneer | Skill | 22 | today | MIT | A | 64 | Claude Code |
| check-memory-before-actingGiulioDER/RE-call | Skill | 9 | today | AGPL-3.0 | A | 72 | Claude Code, Codex |
| weasley-deepmindpotatohoney-p/weasley-deepmind | Skill | 6 | 1mo ago | Apache-2.0 | A | 0 | Claude Code |
| re-callGiulioDER/RE-call | Skill | 9 | today | AGPL-3.0 | A | 57 | Claude Code, Codex |
| keep-memory-currentGiulioDER/RE-call | Skill | 9 | today | AGPL-3.0 | A | 81 | Claude Code, Codex |
| thebrain-ingestyBookoff/thebrain-mcp | Skill | 8 | 1mo ago | MIT | A | 112 | Claude Code, Codex |