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.
Metadata
Release files for agsuperbrain 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agsuperbrain-0.0.1.tar.gz | 753.0 kB | Without provenance | Details for agsuperbrain-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agsuperbrain-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for agsuperbrain-0.0.1-py3-none-any.whl |
Total release size: 864.7 kB
Release files / agsuperbrain-0.0.1.tar.gz
| Download URL | agsuperbrain-0.0.1.tar.gz |
|---|---|
| Size | 753.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe954c4c6b9616582db1ee9eb4c781162eee102b27922efaa0a3cd0f99c64f4d
|
|
BLAKE2b-256 checksum How to use checksums |
050b2b404efd25ef86a3cc3c00313596573faa4723d97cfa2a50ccc71d4c5fe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / agsuperbrain-0.0.1-py3-none-any.whl
| Download URL | agsuperbrain-0.0.1-py3-none-any.whl |
|---|---|
| Size | 111.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e71c95a358b34ed9ef3cc20f07b1547551577b867e48fd0ad66514fbf3427c9c
|
|
BLAKE2b-256 checksum How to use checksums |
d4c8a36259cb2e1a89fba97541cdf2b5e5cde77b915e481a5888e0e20259b43a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for agsuperbrain 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.