agent-brain
View on GitHubLocal-first RAG memory for AI agents: hybrid + GraphRAG search, MCP server with OAuth 2.1, plugin for Claude Code / OpenCode / Codex.
Local-first RAG memory server for AI agents: hybrid BM25+vector plus GraphRAG search over docs and code, exposed via FastAPI REST API and an MCP server with OAuth 2.1. Ships a Claude Code plugin (30 commands, 3 agents, 2 skills) and installers for Codex, Cursor, Grok and OpenCode.
Use Cases
Natural-language search over docs and source codePersistent long-term memory for AI coding agentsDependency and call-graph queries ('what calls X?')AST-aware code chunking across 10 languagesHybrid BM25 + vector retrieval tuningFully offline local RAG via OllamaExpose RAG retrieval to agents over MCP with OAuth 2.1Claude Code / Codex / Cursor / OpenCode plugin install
Built With
- Language
- Python
- Frameworks
- FastAPI · ChromaDB · LlamaIndex · tree-sitter · Kuzu · Uvicorn · Click · Rich · Poetry · Ollama · MCP
Tags
agent-memory · graphrag · rag · mcp · hybrid-search · semantic-search · knowledge-graph · chromadb · claude-code · codex · opencode · oauth · local-first · bm25 · vector-search · code-indexing