cobrain

cobrain is a command for Claude Code from cyrus-cai/claude-cobrain. It costs 22 tokens per session (420 once invoked), scanned A, original, MIT.

A command that manages the cobrain background service, including installation, starting, stopping, restarting, status checks, logs, daily memory, hourly reports, and removal.

In plain words
What is it for?
Routing commands such as install, status, start, stop, restart, logs, today, hourly, and uninstall to the matching cobrain operation.
Why use it?
It gives one entry point for choosing the service operation instead of running each underlying action separately.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-cobrain plugin — 7 skills, 1 command, 1 hook shipped together

Good fit Routing commands such as install, status, start, stop, restart, logs, today, hourly, and uninstall to the matching cobrain operation.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add cyrus-cai/claude-cobrain
Claude Code
/plugin install claude-cobrain

Made for: Claude Code.

Or install claude-cobrain, the plugin that ships this one along with the rest of its 7 skills, 1 command, 1 hook.

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 cobrain

README.md
[![agentmods](https://agentmods.dev/badge/commands/cyrus-cai/claude-cobrain/cobrain/github.svg)](https://agentmods.dev/commands/cyrus-cai/claude-cobrain/cobrain)
Your own site
<a href="https://agentmods.dev/commands/cyrus-cai/claude-cobrain/cobrain"><img src="https://agentmods.dev/badge/commands/cyrus-cai/claude-cobrain/cobrain/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 cobrain

Your own site · 80×15
<a href="https://agentmods.dev/commands/cyrus-cai/claude-cobrain/cobrain"><img src="https://agentmods.dev/badge/commands/cyrus-cai/claude-cobrain/cobrain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 420 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.00022 $0.00420
Opus 5 $0.00011 $0.00210
Sonnet 5 $0.00004 $0.00084
Haiku 4.5 $0.00002 $0.00042

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

Security

Grade A, and why

cobrain 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 9d 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.

plugin/commands/cobrain.md · 36 lines

What it actually says

cobrain

Route /claude-cobrain:cobrain $ARGUMENTS to the appropriate skill.

Routing

Argument Skill Description
(empty) If not installed → install; otherwise → status
install install Full installation flow
status status Show daemon status
start startstop Start daemon
stop startstop Stop daemon
restart restart Restart with foreground permission check
logs logs View daemon logs
today today Review and summarize today's memory
hourly hourly View hourly activity reports
uninstall uninstall Remove daemon runtime files

Dispatch Rules

  1. Normalize $ARGUMENTS to a single lower-case action token.
  2. If no action is provided:
    • Check whether daemon script exists: test -f ${OUTPUT_DIR:-$HOME/.claude/cobrain}/cobrain.py.
    • If script does not exist, invoke the install skill.
    • If script exists, invoke the status skill.
  3. For install, invoke the install skill and explicitly pass ${CLAUDE_PLUGIN_ROOT} as absolute path context.
  4. For start or stop, invoke the startstop skill and pass the action.
  5. For all other known actions, invoke the matching skill directly.
  6. For unknown actions, show supported actions: install, status, start, stop, restart, logs, today, hourly, uninstall.
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. 9d ago First seen · 36 lines · 22 tokens per session scan A 573389a83c3f

Subscribe to this mod's changes

cobrain is a command published in the GitHub repository cyrus-cai/claude-cobrain (5 stars, last pushed 6mo ago), licensed MIT. It adds 22 tokens to every session and 420 once invoked, about $0.0001 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.