agent-brain-install-agent

agent-brain-install-agent is a command for Claude Code, Codex from SpillwaveSolutions/agent-brain. It costs 31 tokens per session (2,428 once invoked), scanned B, original, MIT.

An installer that converts the Agent Brain plugin into the file format required by different AI coding tools.

In plain words
What is it for?
Use it to install Agent Brain for Claude Code, OpenCode, Gemini CLI, Codex, or a generic skill runtime at project or user level.
Why use it?
It avoids manually adapting plugin files for each runtime and can show the planned changes before installation.

Command for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also reads $CODEX_HOME. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

Part of the agent-brain plugin — 2 skills, 30 commands, 3 agents shipped together

Good fit Use it to install Agent Brain for Claude Code, OpenCode, Gemini CLI, Codex, or a generic skill runtime at project or user level.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/spillwavesolutions/agent-brain/agent-brain-install-agent
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/SpillwaveSolutions/agent-brain

Made for: Claude Code, Codex.

Or install agent-brain, the plugin that ships this one along with the rest of its 2 skills, 30 commands, 3 agents.

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 agent-brain-install-agent

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/spillwavesolutions/agent-brain/agent-brain-install-agent"><img src="https://agentmods.dev/badge/commands/spillwavesolutions/agent-brain/agent-brain-install-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,428 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00031 $0.02428
Opus 5.5 $0.00012 $0.00971
Sonnet 5.5 $0.00006 $0.00486
Haiku 4.5 $0.00003 $0.00243

Measured 2mo ago against content hash d3d1add055a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

agent-brain-install-agent scanned grade B with 1 finding 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

# ...for Codex (→ ~/.codex/config.toml, TOML [mcp_servers.agent-brain])
agent-brain-plugin/commands/agent-brain-install-agent.md · 262 lines

How it starts

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

Agent Brain Install Agent

Purpose

Installs Agent Brain plugin files for a specific AI coding runtime. Converts the canonical plugin format into the target runtime's native format and writes the files to the appropriate directory.

Supported runtimes:

  • Claude Code — copies plugin as-is with path normalization
  • OpenCode — converts tool lists to boolean objects, maps tool names to lowercase
  • Codex — creates skill directories under .codex/skills/agent-brain/ and generates AGENTS.md
  • Cursor — Claude layout plus .cursor-plugin/plugin.json, .cursor/rules/, and the universal plugin.json + mcp.json
  • Grok Build — Claude layout plus .grok-plugin/marketplace.json (Grok loads Claude plugins with zero config)
  • skill-runtime — generic converter producing skill directories with SKILL.md frontmatter (requires --dir)

Usage

agent-brain install-agent --agent <runtime> [--project|--global] [--plugin-dir <path>] [--dir <path>] [--dry-run] [--json] [--path <path>]

Parameters

Parameter Required Default Description
--agent / -a Yes - Target runtime: claude, opencode, codex, cursor, grok, or skill-runtime
--project No Yes Install to project directory (default)
--global No No Install to user-level directory
--plugin-dir No Auto-detect Custom canonical plugin source directory
--dir No* - Target skill directory (*required for skill-runtime)
--dry-run No No List files without writing
--json No No Machine-readable JSON output
--path / -p No cwd Project path for --project scope

Install Directories

Runtime Project Scope Global Scope
Claude .claude/plugins/agent-brain/ ~/.claude/plugins/agent-brain/
OpenCode .opencode/plugins/agent-brain/ ~/.config/opencode/plugins/agent-brain/
Codex .codex/skills/agent-brain/ ~/.codex/skills/agent-brain/
Cursor .cursor/plugins/agent-brain/ ~/.cursor/plugins/agent-brain/
Grok Build .grok/plugins/agent-brain/ ~/.grok/plugins/agent-brain/
skill-runtime Requires --dir Requires --dir

Read the full file on GitHub · 262 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. 2mo ago Changed · +20 lines · +9 tokens per session d3d1add055a1
  2. 2mo ago Changed · -1 lines db4f82c6b924
  3. 3mo ago First seen · 243 lines · 22 tokens per session scan B f71c182c7bc4

Subscribe to this mod's changes

agent-brain-install-agent is a command published in the GitHub repository SpillwaveSolutions/agent-brain (122 stars, last pushed 2mo ago), licensed MIT. It adds 31 tokens to every session and 2,428 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agent-brain-install-agent compared with commands from other repositories

agent-brain-install-agent next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-brain-install-agentSpillwaveSolutions/agent-brainCommand1222mo agoMITB31Claude Code, Codex
gsd:docs-updatemrboups/xbrainCommand22mo agoMITA16Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code