
本地优先的 RAG 内存用于 AI 代理:混合 + GraphRAG 搜索,支持 OAuth 2.1 的 MCP 服务器,支持 Claude Code / OpenCode / Codex 插件。
概览
基于RAG(检索增强生成)的文档索引和语义搜索系统,适用于AI代理和应用。Agent Brain支持使用自然语言智能查询文档和源代码。 Agent Brain 通过 Claude Code 插件提供文档和代码搜索,包含技能、命令和代理。使用斜杠命令搜索,使用代理处理复杂研究任务,技能用于智能查询优化。 安装 Claude Code 插件确实需要使用 pip。插件是通过上面的市场安装的;底层的 Python 包(agent-brain-rag、agent-brain-cli)由 /agent-brain-setup 向导自动安装(或通过 pip 手动安装——参见 CLI 使用法)。 同一插件通过 CLI 安装到 Codex、Cursor、Grok Build 和 OpenCode。每个命令将共享有效载荷转换为主机的原生布局,并通过 --with-mcp 在该主机的配置文件中注册 MCP 服务器。 符合规范的代理插件 1.
概述(AI 翻译)
last_validated:2026-03-16
特工布雷恩
基于RAG(检索增强生成)的文档索引和语义搜索系统,适用于AI代理和应用。Agent Brain支持使用自然语言智能查询文档和源代码。
概述
Agent Brain 通过 Claude Code 插件提供以 AI 为先的文档和代码搜索,包含技能、命令和代理。使用斜杠命令搜索,使用代理进行复杂研究任务,技能用于智能查询优化。
| 组件 | 描述 |
|---|---|
| 插件 | 30个斜杠指令,3个特工,2个Claude代码技能 |
| 技能智能搜索模式选择与查询优化 | |
| 特工 | 研究助理,搜索助理,设置助理 |
| 服务器 | FastAPI后端用于索引和检索 |
| CLI | 命令行工具(插件内部也使用) |
快速启动(Claude Code 插件)
1.安装插件
安装Claude Code插件时不使用
pip。该插件是 通过上述市场安装;底层的 Python 包 (agent-brain-rag、agent-brain-cli)由
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
last_validated: 2026-03-16
Agent Brain
A RAG-based (Retrieval-Augmented Generation) document indexing and semantic search system for AI agents and applications. Agent Brain enables intelligent querying of documentation and source code using natural language.
Overview
Agent Brain provides AI-first document and code search through a Claude Code plugin with skills, commands, and agents. Use slash commands to search, agents for complex research tasks, and skills for intelligent query optimization.
| Component | Description |
|---|---|
| Plugin | 30 slash commands, 3 agents, 2 skills for Claude Code |
| Skills | Intelligent search mode selection and query optimization |
| Agents | Research assistant, search assistant, setup assistant |
| Server | FastAPI backend for indexing and retrieval |
| CLI | Command-line tool (also used by plugin internally) |
Quick Start (Claude Code Plugin)
1. Install the Plugin
# 1. Add the Agent Brain marketplace (the repo is a plugin marketplace)
claude plugins marketplace add SpillwaveSolutions/agent-brain
# 2. Install the plugin from that marketplace
claude plugins install agent-brain@agent-brain-marketplace
Installing a Claude Code plugin does not use
pip. The plugin is installed through the marketplace above; the underlying Python packages (agent-brain-rag,agent-brain-cli) are installed for you by the/agent-brain-setupwizard (or manually viapip— see CLI Usage).
Other hosts
The same plugin installs into Codex, Cursor, Grok Build, and OpenCode through the CLI. Each command converts the shared payload into the host’s native layout and, with --with-mcp, registers the MCP server in that host’s config file.
pip install agent-brain-rag agent-brain-cli agent-brain-ag-mcp
agent-brain install-agent --agent codex --with-mcp # .codex/skills/agent-brain + AGENTS.md; MCP in ~/.codex/config.toml
agent-brain install-agent --agent cursor --with-mcp # .cursor/plugins/agent-brain + .cursor/rules; MCP in .cursor/mcp.json
agent-brain install-agent --agent grok --with-mcp # .grok/plugins/agent-brain; zero-config Claude load, MCP in .mcp.json
agent-brain install-agent --agent opencode --with-mcp # .opencode/plugins/agent-brain; MCP in opencode.json
A conforming Agent Plugins 1.0 client reads agent-brain-plugin/plugin.json, skills/, and mcp.json directly. See docs/HOSTS.md for the manifest each host reads.
2. Set Up Your Project
In Claude Code, run:
/agent-brain-setup
This interactive wizard will:
- Install the Python packages (
agent-brain-rag,agent-brain-cli) - Configure your API keys
- Initialize the project
- Start the server
- Index your documentation
3. Search with Commands
/agent-brain-search "how does authentication work"
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →