agent-brain-config

agent-brain-config is a command for Claude Code from SpillwaveSolutions/agent-brain. It costs 37 tokens per session (8,370 once invoked), scanned A, original, MIT.

A setup wizard for Agent Brain, a tool that searches and indexes project code. It guides you through choosing AI providers, data storage, file indexing, search settings, caching, and server options.

In plain words
What is it for?
Use it to configure local or cloud AI providers, ChromaDB or PostgreSQL storage, code indexing, automatic re-indexing, graph-based search, caching, result ranking, search tuning, and multi-project servers.
Why use it?
It removes the need to find and edit many configuration settings by hand. It also helps keep related options consistent across a project.

Command for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: agent in frontmatter; reads .claude/ paths; names the AskUserQuestion tool.

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

Good fit Use it to configure local or cloud AI providers, ChromaDB or PostgreSQL storage, code indexing, automatic re-indexing, graph-based search, caching, result ranking, search tuning, and multi-project servers.

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

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-config

README.md
[![agentmods](https://agentmods.dev/badge/commands/spillwavesolutions/agent-brain/agent-brain-config/github.svg)](https://agentmods.dev/commands/spillwavesolutions/agent-brain/agent-brain-config)
Your own site
<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.

agentmods 80×15 button for agent-brain-config

Your own site · 80×15
<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>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,370 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. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review
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.00037 $0.08370
Opus 5.5 $0.00015 $0.03348
Sonnet 5.5 $0.00007 $0.01674
Haiku 4.5 $0.00004 $0.00837

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

Security

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.

agent-brain-plugin/commands/agent-brain-config.md · 1,111 lines

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:

  1. Providers - Ollama (local/free) or cloud providers (OpenAI, Anthropic, Gemini)
  2. Storage backend - ChromaDB (local-first) or PostgreSQL + pgvector
  3. Indexing excludes - Detect and exclude large directories (node_modules, .venv, etc.)
  4. GraphRAG - Knowledge graph extraction and indexing (AST, LangExtract, or Kuzu)
  5. Caching - Embedding cache and query result cache configuration
  6. File watcher - Automatic re-indexing when files change
  7. Reranking - Two-stage search quality with cross-encoder reranking
  8. Chunking and search tuning - Chunk size, overlap, top-k, and similarity threshold
  9. 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):

  1. AGENT_BRAIN_CONFIG environment variable
  2. State directory: AGENT_BRAIN_STATE_DIR/config.yaml
  3. Current directory: ./config.yaml
  4. Project-level (walk up from CWD): .agent-brain/config.yaml or .claude/agent-brain/config.yaml
  5. XDG config (preferred user-level): ~/.config/agent-brain/config.yaml
  6. 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

Read the full file on GitHub · 1,111 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. 3mo ago First seen · 1,111 lines · 37 tokens per session scan E eed42574eb0c

Subscribe to this mod's changes

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.

Related

agent-brain-config compared with commands from other repositories

agent-brain-config next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-brain-configSpillwaveSolutions/agent-brainCommand1222mo agoMITA37Claude Code
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