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 agentmods add commands/spillwavesolutions/agent-brain/agent-brain-install-agentgit clone --depth 1 https://github.com/SpillwaveSolutions/agent-brainWhat 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 | $0.00022 | $0.02101 |
| Opus 5 | $0.00011 | $0.01051 |
| Sonnet 5 | $0.00004 | $0.00420 |
| Haiku 4.5 | $0.00002 | $0.00210 |
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 3d 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]) How it starts
The opening of the file, as written. The whole thing — 243 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
- Gemini CLI — remaps tool names (e.g., Bash->run_shell_command), removes unsupported fields
- Codex — creates skill directories under
.codex/skills/agent-brain/and generates AGENTS.md - 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, gemini, skill-runtime, or codex |
| --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/ |
| Gemini | .gemini/plugins/agent-brain/ |
~/.config/gemini/plugins/agent-brain/ |
| Codex | .codex/skills/agent-brain/ |
~/.codex/skills/agent-brain/ |
| skill-runtime | Requires --dir |
Requires --dir |
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.
- 3d ago First seen · 243 lines · 22 tokens per session scan B f71c182c7bc4
agent-brain-install-agent is a command published in the GitHub repository SpillwaveSolutions/agent-brain (117 stars, last pushed 3d ago), licensed MIT. It adds 22 tokens to every session and 2,101 once invoked, about $0.0001 per session on Opus 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.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.