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.
git clone --depth 1 https://github.com/SpillwaveSolutions/agent-brainWrote 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.
[](https://agentmods.dev/commands/spillwavesolutions/agent-brain/agent-brain-config)<a href="https://agentmods.dev/commands/spillwavesolutions/agent-brain/agent-brain-config"><img src="https://agentmods.dev/badge/commands/spillwavesolutions/agent-brain/agent-brain-config/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.
<a href="https://agentmods.dev/commands/spillwavesolutions/agent-brain/agent-brain-config"><img src="https://agentmods.dev/badge/commands/spillwavesolutions/agent-brain/agent-brain-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.08370 |
| Opus 5.5 | $0.00015 | $0.03348 |
| Sonnet 5.5 | $0.00007 | $0.01674 |
| Haiku 4.5 | $0.00004 | $0.00837 |
Grade A, and why
agent-brain-config 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 1,111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Configure Agent Brain
Purpose
Guides users through configuring all aspects of Agent Brain across 12 wizard steps:
- Providers - Ollama (local/free) or cloud providers (OpenAI, Anthropic, Gemini)
- Storage backend - ChromaDB (local-first) or PostgreSQL + pgvector
- Indexing excludes - Detect and exclude large directories (node_modules, .venv, etc.)
- GraphRAG - Knowledge graph extraction and indexing (AST, LangExtract, or Kuzu)
- Caching - Embedding cache and query result cache configuration
- File watcher - Automatic re-indexing when files change
- Reranking - Two-stage search quality with cross-encoder reranking
- Chunking and search tuning - Chunk size, overlap, top-k, and similarity threshold
- Server and deployment - Host, port, instance mode, and multi-project setup
Usage
/agent-brain:agent-brain-config
Execution
Step 1: Detect Config File Location
IMPORTANT: Check BOTH locations and edit the correct one.
Config file search order (highest to lowest):
- AGENT_BRAIN_CONFIG environment variable
- State directory:
AGENT_BRAIN_STATE_DIR/config.yaml - Current directory:
./config.yaml - Project-level (walk up from CWD):
.agent-brain/config.yamlor.claude/agent-brain/config.yaml - XDG config (preferred user-level):
~/.config/agent-brain/config.yaml - Legacy user-level (deprecated):
~/.agent-brain/config.yaml
Use agent-brain config path to see which file is active.
# Check which config file is active
agent-brain config path
# Show the full active configuration
agent-brain config show
When editing config: Use the file reported by agent-brain config path. Project-level takes precedence over user-level.
Step 2: Run Pre-Flight Detection
Run the environment detection script once. It consolidates Ollama check, Docker check, large-dir scan, and config detection into a single call:
# Find the script — adjust path if plugin is installed to ~/.claude/plugins/
SCRIPT=$(find ~/.claude/plugins/agent-brain/scripts ~/.claude/skills/agent-brain/scripts agent-brain-plugin/scripts -name "ab-setup-check.sh" 2>/dev/null | head -1)
if [ -n "$SCRIPT" ]; then
SETUP_STATE=$("$SCRIPT")
echo "$SETUP_STATE"
else
echo "ab-setup-check.sh not found — run detection manually (see fallback below)"
SETUP_STATE="{}"
fi
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.
- 3mo ago First seen · 1,111 lines · 37 tokens per session scan E eed42574eb0c
agent-brain-config is a command published in the GitHub repository SpillwaveSolutions/agent-brain (122 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 8,370 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-08-30.
agent-brain-config compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-brain-configSpillwaveSolutions/agent-brain | Command | 122 | 2mo ago | MIT | A | 37 | Claude Code |
| gsd:docs-updatemrboups/xbrain | Command | 2 | 2mo ago | MIT | A | 16 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 153k | today | MIT | A | 35 | Claude Code |