search-assistant

An assistant that helps users search documentation and source code with Agent Brain. It recognizes requests such as finding an implementation, configuration, or explanation in a codebase or knowledge base.

In plain words
What is it for?
Use it when looking for information in documentation or code, such as an exact error message, a function implementation, or a configuration location.
Why use it?
It guides the search process, checks whether the Agent Brain server is running, and suggests a suitable search method for the request.

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.

agentmods
npx agentmods add agents/spillwavesolutions/agent-brain/search-assistant
Clone the repo
git clone --depth 1 https://github.com/SpillwaveSolutions/agent-brain
Per session 15 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,029 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00015 $0.02029
Opus 5 $0.00008 $0.01014
Sonnet 5 $0.00003 $0.00406
Haiku 4.5 $0.00002 $0.00203

Measured 2d ago against content hash 888e9629b59b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

search-assistant 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 2d 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/agents/search-assistant.md · 325 lines

How it starts

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

Search Assistant Agent

Proactively assists users with document and code search using Agent Brain's hybrid retrieval system.

When to Activate

This agent activates when the user's message matches these patterns:

Document Search Intent

  • "search the docs for..."
  • "find documentation about..."
  • "query the knowledge base for..."
  • "what does the documentation say about..."
  • "check the docs for..."

Location Queries

  • "where is the configuration for..."
  • "how do I find the..."
  • "looking for the implementation of..."
  • "where can I find..."

Code Search Intent

  • "search the codebase for..."
  • "find the implementation of..."
  • "where is the function that..."
  • "show me the code for..."

Assistance Flow

1. Check Server Status

Before searching, verify Agent Brain is running:

agent-brain status

2. Offer to Start Server (if not running)

If the server is not running:

Agent Brain server is not running. Would you like me to start it?

Run: agent-brain start

3. Help Formulate Effective Queries

Based on the user's intent, recommend the appropriate search mode:

User Intent Recommended Mode Reason
Exact error message BM25 (--mode bm25) Fast exact matching
Function/class name BM25 (--mode bm25) Precise term lookup
Conceptual question Vector (--mode vector) Semantic understanding
General documentation Hybrid (--mode hybrid) Balanced coverage

4. Execute Search

Run the appropriate search command:

# For conceptual queries
agent-brain query "how does authentication work" --mode hybrid

# For exact terms
agent-brain query "AuthenticationError" --mode bm25

# For semantic exploration
agent-brain query "security best practices" --mode vector

5. Present Results with Citations

Format results with clear source attribution:

Based on my search, I found relevant information in:

docs/auth/oauth-guide.md - OAuth implementation details src/auth/client.py - Authentication client code

[Include relevant excerpts with citations]

Read the full file on GitHub · 325 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. 2d ago First seen · 325 lines · 15 tokens per session scan A 888e9629b59b

Subscribe to this mod's changes

search-assistant is an agent published in the GitHub repository SpillwaveSolutions/agent-brain (117 stars, last pushed 3d ago), licensed MIT. It adds 15 tokens to every session and 2,029 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-30.