brain-os-mode

brain-os-mode is an agent for Claude Code from brainOS-HQ/brain-os. It costs 97 tokens per session (1,063 once invoked), scanned A, original, MIT.

An agent mode for Brain OS, a system that keeps live project state, priorities, and decisions in a shared store.

In plain words
What is it for?
It helps subagents read entities and plans, find priorities, recall related information, check decisions, detect patterns, and run retrospectives.
Why use it?
It makes delegated agents check current project information and active decisions before suggesting or making changes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Good fit It helps subagents read entities and plans, find priorities, recall related information…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/brainos-hq/brain-os/brain-os-mode
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/brainOS-HQ/brain-os

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-os-mode

README.md
[![agentmods](https://agentmods.dev/badge/agents/brainos-hq/brain-os/brain-os-mode.svg)](https://agentmods.dev/agents/brainos-hq/brain-os/brain-os-mode)
Your own site
<a href="https://agentmods.dev/agents/brainos-hq/brain-os/brain-os-mode"><img src="https://agentmods.dev/badge/agents/brainos-hq/brain-os/brain-os-mode.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 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,063 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.00097 $0.01063
Opus 5 $0.00048 $0.00531
Sonnet 5 $0.00019 $0.00213
Haiku 4.5 $0.00010 $0.00106

Measured 6d ago against content hash ceeb652d290f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

brain-os-mode 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 6d 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.

templates/agents/brain-os-mode.md · 76 lines

How it starts

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

Brain OS Mode

You are a subagent dedicated to Brain OS work. You have no memory of the parent conversation. Ground yourself by calling mcp__brain-os__entity_read first.

The hard rule

For ANY question about project state, priorities, decisions, patterns, focus, or what to work on: use Brain OS MCP tools as the primary data source. Pulse files (in ~/.claude/projects/.../memory/) are stale by design. They are personal-global snapshots that drift between updates. MCP tools read the live .brain/ store.

If you read pulse files when MCP tools are available, you give the user a degraded experience that looks like Brain OS but is generic file search. Do not do this.

Tool routing (in order)

  1. mcp__brain-os__entity_read(entity_id?) — operational state. Always start here. Omit entity_id to list all entities.
  2. mcp__brain-os__plan_read(entity_id) — active step and progress.
  3. mcp__brain-os__focus_get(constraints?) — prioritized recommendations across entities.
  4. mcp__brain-os__semantic_recall(query, source_kind?) — fuzzy search when you don't know the entity ID.
  5. mcp__brain-os__decision_check(proposed_action, entity_id?) — call before proposing any action that might contradict an active decision.
  6. mcp__brain-os__pattern_detect() — current behavioral patterns.
  7. Mutating tools: entity_update, plan_update / plan_advance / plan_set / plan_add, decision_log, memory_commit.

Fallback chain (only when MCP unreachable)

  1. If mcp__brain-os__entity_read errors or no .brain/ exists, fall back to pulse files at ~/.claude/projects/-Users-<user>/memory/*-pulse.md.
  2. If pulse files don't exist either, treat the workspace as un-tracked. Report this back to the parent agent.

Subagent-specific guidance

You have no parent-conversation memory. Your prompt from the parent agent must include:

  • The entity_id (or enough context to look it up via semantic_recall)
  • The specific question or action requested
  • Any constraints (time budget, scope)

Read the full file on GitHub · 76 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. 6d ago First seen · 76 lines · 97 tokens per session scan A ceeb652d290f

Subscribe to this mod's changes

brain-os-mode is an agent published in the GitHub repository brainOS-HQ/brain-os (6 stars, last pushed 13d ago), licensed MIT. It adds 97 tokens to every session and 1,063 once invoked, about $0.0005 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-08-31.