brain

brain is a command for Claude Code from monoes/monomind. It costs 25 tokens per session (1,215 once invoked), scanned A, original, Apache-2.0.

A memory-management command for inspecting, summarizing, refreshing, and controlling Monomind's three levels of stored information.

In plain words
What is it for?
Use it to check memory health across domains and manage how detailed records are compacted into summaries and longer-term principles.
Why use it?
It makes the state of stored raw entries, periodic summaries, and shared principles visible and maintainable.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to check memory health across domains and manage how detailed records are compacted into summaries and longer-term principles.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/monoes/monomind/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/monoes/monomind

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/monoes/monomind/brain/github.svg)](https://agentmods.dev/commands/monoes/monomind/brain)
Your own site
<a href="https://agentmods.dev/commands/monoes/monomind/brain"><img src="https://agentmods.dev/badge/commands/monoes/monomind/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/monoes/monomind/brain"><img src="https://agentmods.dev/badge/commands/monoes/monomind/brain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,215 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.00025 $0.01215
Opus 5.5 $0.00010 $0.00486
Sonnet 5.5 $0.00005 $0.00243
Haiku 4.5 $0.00003 $0.00121

Measured yesterday against content hash 78330e11724d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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.

.claude/commands/mastermind/brain.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

First — extract repeat flags: Follow the REPEAT PREAMBLE from mastermind-repeat/SKILL.md. Extracts --repeat, --tillend, --maxruns, --wait, --rep, --loop from $ARGUMENTS before all other parsing.

Parse $ARGUMENTS to determine the sub-command and flags.

Sub-Commands

status (default if no sub-command given)

Show the current state of all brain tiers across all domains.

For each domain that has data, call:

  • mcp__monomind__memory_health on namespace mastermind:<domain>:raw → Tier 1 entry count, last write date, archived count
  • mcp__monomind__memory_health on namespace mastermind:<domain>:weekly → Tier 2 summary count, last compaction date
  • mcp__monomind__memory_health on namespace mastermind:principles → Tier 3 principle count

Display as a table:

MASTERMIND BRAIN STATUS
════════════════════════════════════════════════
Domain     │ Tier 1 (raw) │ Tier 2 (weekly) │ Tier 3 (principles)
───────────┼──────────────┼─────────────────┼────────────────────
build      │ 14 entries   │ 2 summaries     │ shared (see below)
marketing  │ 8 entries    │ 1 summary       │
...        │              │                 │
───────────┼──────────────┼─────────────────┼────────────────────
PRINCIPLES │              │                 │ 7 core principles
════════════════════════════════════════════════
Last compaction: 2026-04-28 | Next due: 2026-05-05
Avg memory score: 0.64 | Entries below archive threshold: 3

compact

Force immediate weekly distillation across all domains (or --domain <name> for one domain).

For each domain (or the specified domain):

  1. Retrieve all Tier 1 raw entries since last compaction via mcp__monomind__memory_hierarchical-recall (namespace mastermind:<domain>:raw)
  2. Produce per-domain weekly summary: synthesize decisions, patterns, and lessons into ≤300 words
  3. Store to Tier 2 via mcp__monomind__memory_hierarchical-store (namespace mastermind:<domain>:weekly)
  4. Archive Tier 1 entries with score < 0.1 (update metadata: { archived: true })
  5. Report: "Compacted : entries → summary, archived"

Read the full file on GitHub · 102 lines

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. yesterday First seen · 102 lines · 25 tokens per session scan A 78330e11724d

Subscribe to this mod's changes

brain is a command published in the GitHub repository monoes/monomind (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 25 tokens to every session and 1,215 once invoked, about $0.0001 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-10-26.