Super-Brain: Your codebase's working memory. Local graph + vector intelligence for AI coding assistants.
Project description
Super-Brain
Your codebase's working memory — local, fast, permanent.
Super-Brain gives your AI coding assistant a persistent, structured understanding of your code. Instead of re-reading files every turn, your assistant queries a local knowledge graph and gets back the exact functions, call paths, and semantics it needs.
100% local. 14 IDEs supported. Zero code uploaded.
The 30-second pitch
AI coding assistants have a context problem. Every session starts from zero. Every question re-reads the same files. Every long task burns tokens on exploration instead of answers.
Super-Brain fixes that. It ingests your code once, builds a call graph and vector index, and exposes it to your assistant via MCP. From then on:
- "What calls
processPayment?" → one graph query, millisecond response - "Explain the auth flow" → retrieve the actual path from HTTP handler to session store
- "Where's this class used?" → transitive closure, not grep
- "Summarize this module" → pre-clustered subsystems, already grouped
No cloud. No re-ingestion per session. No fabricated call relationships.
Why Super-Brain
| Pain point | Claude Code / Codex / Cursor / Copilot alone | With Super-Brain |
|---|---|---|
| Session amnesia | Starts from zero every session | Graph persists on disk |
| Re-reading files | Every turn | One ingest, then queries |
| Exploration cost | Scales with codebase | Flat, query-shaped |
| Call graph | Grep-and-hope | Deterministic, AST-derived |
| Path reasoning | Chains of reads | path_between one-hop |
| Privacy | Code uploads to vendor | Nothing leaves your machine |
| Cross-repo | One project at a time | Unlimited repos, one graph |
| Docs & audio | Invisible | First-class via ingest-doc / ingest-audio |
| Hallucinated dependencies | Possible under load | Zero — AST is ground truth |
| Language coverage | Top ~20 | 306 via tree-sitter |
See the full comparison for 12 detailed pain points.
Install
pip install agsuperbrain
Or with uv:
uv add agsuperbrain
Before you install
- Python 3.11, 3.12, or 3.13 — Python 3.14 is not yet supported (native-extension deps don't ship wheels for 3.14).
- Windows only — install Visual Studio Build Tools 2022 with the "Desktop development with C++" workload. Several deps compile native code and need a C/C++ toolchain. WSL2 users can skip this.
- FFmpeg — required only if you plan to ingest audio/video. Skip it for code-only use.
Full prerequisites and troubleshooting: Installation guide.
Quick start
agsuperbrain init # configures + auto-ingests + indexes
agsuperbrain claude-install # or: cursor-install, aider-install, etc.
The first command sets up config, auto-detects your source directory, builds the graph, embeds it for semantic search, and starts the background watcher — all in one pass. The second wires Super-Brain into your AI coding tool.
That's it. Your assistant now has permanent, structured access to your codebase.
Works with 14 AI coding tools
One install command per platform:
| Tool | Command |
|---|---|
| Claude Code | agsuperbrain claude-install |
| Cursor | agsuperbrain cursor-install |
| Aider | agsuperbrain aider-install |
| Codex | agsuperbrain codex-install |
| OpenCode | agsuperbrain opencode-install |
| GitHub Copilot CLI | agsuperbrain copilot-install |
| VS Code Copilot Chat | agsuperbrain vscode-install |
| Gemini CLI | agsuperbrain gemini-install |
| Hermes | agsuperbrain hermes-install |
| Kiro | agsuperbrain kiro-install |
| Google Antigravity | agsuperbrain antigravity-install |
| OpenClaw | agsuperbrain openclaw-install |
| Factory Droid | agsuperbrain droid-install |
| Trae / Trae CN | agsuperbrain trae-install |
All at once: agsuperbrain install --platform all.
Also works with any MCP-speaking agent framework (LangChain, LangGraph, AutoGen, CrewAI, SmolAgents).
What it gives you
- 306 language support — Python, JS/TS, Go, Rust, Java, C/C++, Ruby, PHP, Kotlin, Swift, Scala, and 296 more via tree-sitter
- Deterministic extraction — call graph comes from AST, not LLM inference
- Hybrid retrieval — vector search for semantics + graph expansion for structure
- Local LLM (optional) — bundled Llama-3.2-1B for free, offline answers
- Interactive visualization — Cytoscape.js graph, click to navigate
- File watcher — code changes re-indexed automatically
- Community detection — Leiden clustering surfaces subsystems
- Multimodal — ingest PDFs, DOCX, MD, audio, and video into the same graph
Privacy by default
Every byte Super-Brain touches stays on your machine:
- Graph database: local KùzuDB file
- Vector store: local Qdrant directory
- Embeddings: local sentence-transformers
- LLM (optional): local llama.cpp
- Transcription: local faster-whisper
No accounts. No telemetry. No network required.
Configuration
Create or edit .agsuperbrain/config.yaml:
exclude:
- .venv
- node_modules
watcher:
debounce_ms: 500
graph:
db_path: ./.agsuperbrain/graph
vector:
db_path: ./.agsuperbrain/qdrant
Super-Brain also honors .gitignore and the Super-Brain-specific .agsuperbrainignore.
Requirements
- Python 3.11, 3.12, or 3.13 (3.14 not yet supported — native-extension wheels unavailable)
- Windows only: Visual Studio Build Tools 2022 with "Desktop development with C++" workload
- ~500 MB disk (5 GB with embedding-model cache, 8 GB with local LLM)
- FFmpeg (only if you ingest audio/video)
Documentation
License
Apache License 2.0 — see LICENSE.
Contributing
Contributions welcome. Open an issue first for anything non-trivial so we can align on approach.
Star history
Built by MEDHIRA — engineering intelligence across everything.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agsuperbrain-0.0.1.tar.gz.
File metadata
- Download URL: agsuperbrain-0.0.1.tar.gz
- Upload date:
- Size: 753.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe954c4c6b9616582db1ee9eb4c781162eee102b27922efaa0a3cd0f99c64f4d
|
|
| MD5 |
1f2e08c45ee9ae4bc2b93834b71291df
|
|
| BLAKE2b-256 |
050b2b404efd25ef86a3cc3c00313596573faa4723d97cfa2a50ccc71d4c5fe7
|
File details
Details for the file agsuperbrain-0.0.1-py3-none-any.whl.
File metadata
- Download URL: agsuperbrain-0.0.1-py3-none-any.whl
- Upload date:
- Size: 111.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e71c95a358b34ed9ef3cc20f07b1547551577b867e48fd0ad66514fbf3427c9c
|
|
| MD5 |
d968f98962a0ea2cf21983ab611f452b
|
|
| BLAKE2b-256 |
d4c8a36259cb2e1a89fba97541cdf2b5e5cde77b915e481a5888e0e20259b43a
|