🧠 NOVUS RAG
Your agents hallucinate schemas and lie about compilation. NOVUS RAG stops them.
NOVUS RAG is an MCP server that indexes your projects and hands your agent a structural map —
real dependencies (not "semantically similar" ones), graph communities, the tables each method
reads and writes, routes from the front through the gateway to the microservice, events and
observers, and the business rules documented in your project — before it touches a single file.
Every fact comes with a verifiable path:line.
The brain knows your code and each project's own patterns. The memory keeps what you decided: tasks and their state, postponements, your conventions, how your projects relate — in every new chat. Your agents (Claude Code, Codex, Cursor…) do the typing; NOVUS RAG tells them where, how, and whether they should.
It is not a code search engine. It is a structural map read from the index, not written by an LLM.
Runs for free: free LLM models through OpenCode and local embeddings with Ollama
(nomic-embed-text). Paid providers (OpenRouter, any Anthropic-compatible endpoint) are an
option, not a requirement.
Español: README.es.md
The numbers (real runs, not marketing)
Above the fold, because they are the only claim that matters:
| What the run measured | Result |
|---|---|
| Models that stopped a task the project memory had postponed (7 of 7) | 7 / 7 |
| Activity-log feature: 11 files, compiled, reviewed, merged, by a free model | $0 |
| Small/free models reaching big-model quality on the same tasks | all 7 |
Source and method: docs/BENCHMARK.md. Reproducible with bench/make_demo.py,
bench/tasks.json and bench/measure.py.
The before/after, same task, same free model: without the RAG it implements a task the project memory had postponed; with the RAG it stops before writing a line. Real transcripts and how to reproduce them: docs/COMPARATIVE.md.
┌──────────────┐ ┌─────────────────┐ ┌──────────────────┐ ┌──────────────┐
│ Your projects│ ──► │ novus-rag sync │ ──► │ Local index │ ──► │ Your agent │
│ (supported │ │ AST + graph + │ │ (LanceDB) │ │ via MCP │
│ stacks) │ │ conventions │ │ per branch │ │ (any client) │
└──────────────┘ └─────────────────┘ └──────────────────┘ └──────────────┘
Quickstart
git clone https://github.com/JSNavas/novus-rag.git
cd novus-rag && ./install.sh # venv, dependencies, the `novus-rag` CLI and a setup wizard
novus-rag doctor # checks the environment and prints the exact fix for anything missing
novus-rag demo # optional: see a real analysis on a demo project in /tmp, no keys needed
novus-rag mcp-config claude # register the MCP in your agent (or codex, opencode, cursor…)
cd ~/code/your-project && novus-rag sync
sync is progressive: in about a minute the structural index (AST, schema,
business rules) is queryable and you can start working; the LLM phases
(summaries, graph, conventions) finish in the background on their own, and an
interrupted indexing RESUMES where it stopped — it never starts from zero.
novus-rag status your-project # indexing level per pillar + whether the background is still running
Or, with uv (no clone needed once published):
uv tool install novus-rag
novus-rag mcp-config claude
The wizard (novus-rag init, run it again at any time) asks for your language, LLM provider,
keys and embeddings. Keys are stored in ~/.novus-rag/.env (mode 600), never in the repo.
The free setup
| Piece | What | Cost |
|---|---|---|
| LLM | OpenCode with beam-free, falling back to deepseek-v4.1-flash; several accounts rotate automatically |
$0 |
| Embeddings | nomic-embed-text on Ollama, 768 dimensions, local |
$0 |
| Index | LanceDB on your disk | $0 |
ollama pull nomic-embed-text
novus-rag init # OpenCode and local embeddings are the defaults
Prefer a paid provider? Pick OpenRouter, or point [llm] base_url to any Anthropic-compatible
endpoint. Each embeddings model keeps its own index, so switching never mixes vectors.
What it gives your agent
- From the task to the code.
analyze_implementation_task("<ticket text>", projects)takes the task as written (English or Spanish, no method names) and returns where each concept lives, which project to touch, the propagation map (callers, routes, front → gateway → service, tables and who writes and reads them, event chains, observers, policies), the current schema, the literal bodies to change and the project's own rules. - One call, every angle.
analyze_feature("<feature>")returns business rules, conventions, architecture, dependencies and snippets in parallel. - Literal facts. Schema, HTTP routes and method bodies come straight from the index. What an LLM writes is marked as such.
- Multi-project for real. Cross-service HTTP calls, shared tables and per-branch freshness. Comparison questions ("how was this done in X versus Y?") answer each project separately.
- Your business rules. Markdown docs in
docs/describing rules, requirements or policies are indexed section by section and shown next to the code that implements them. - Learns your vocabulary. Nothing about a specific project lives in the code: each project's jargon is learned from its own index.
- Your project's own patterns, enforced. If your methods are
editUser/createUser, a newuserDeleteorremoveUseris flagged with the name to use (deleteUser); if they areeditarUsuario, so iseliminarUsuario. Same for tables, columns, foreign keys, date and boolean columns, file names, folder suffixes and route segments — all measured on the project itself. - Knows why the code is like this. The commits of the files a task touches that explain something (including PR descriptions merged with squash) come with the implementation guide.
- One check after editing.
review_change(paths)runs the real compiler or linter, checks the naming pattern and the majority rules, flags keys, SQL injection, another user's id in the URL, prices from the client, unsigned webhooks, uploads, races and debug leftovers, and lists who else calls the changed code and which tests were not touched. - Any MCP client. Claude Code, Codex, OpenCode, Cursor, Cline, Antigravity. The agent contract travels inside the server, not in files you have to copy.
Validated with real tasks: NestJS · Symfony · Laravel (+ DDD) · Remix · Vue · KrakenD. Also indexes: Next.js · React Router 7 · React · Angular · Nuxt · Svelte · Express · Python · Rust. Full list and what each level means: docs/STACKS.md.
Advanced
Memory across chats (Engram) — optional, recommended
With Engram, what you decide (tasks and their state, postponements, your own conventions, which project is the front of which back) is saved and comes back in every new chat. Ask to run a phase you postponed and the RAG stops to ask. The memory is read-only from NOVUS RAG's side; it is written through Engram's own CLI.
- A memory across chats: tasks, decisions, conventions, project relations.
- Ask to run a postponed phase and the RAG stops to ask before writing a line.
- The memory belongs to the RAG's view of the project; Engram is the memory, NOVUS RAG is the brain.
See docs/ENGRAM.md and docs/ORCHESTRATION.md.
Orchestration: a planner and its sub-agents — advanced
NOVUS RAG is not only an executor's tool. A planner can break a feature into subtasks, each with a cached guide, and hand them to sub-agents that run in their own threads and copies of the project. Roles, tickets, the cached guide and the commit style travel inside the brief.
register_plan,update_subtask,plan_statusdrive the plan.- Each subtask's guide is prepared in the cache while the planner works.
- Sub-agents never merge into the main branch; they commit on their own branch.
- See docs/ORCHESTRATION.md.
Documentation
| Doc | What you will find |
|---|---|
| docs/INSTALL.md | Requirements, providers, MCP registration, verification, troubleshooting |
| docs/OPERATIONS.md | Daily flow, freshness and git hooks, layered configuration, exclusions |
| docs/STACKS.md | Supported stacks and languages |
| docs/COMMANDS.md | Command reference |
| docs/ARCHITECTURE.md | Components, chunk types, the six pillars, pipeline, stack detection |
| docs/MCP-TOOLS.md | The twelve tools, modes and intent catalog |
| docs/ORCHESTRATION.md | A planner and its sub-agents: roles, tickets, the cached guide |
| docs/BENCHMARK.md | Small and free models as executors, with and without the RAG |
| docs/AGENT-CONTRACT.md | The contract every agent follows, guarantee markers |
| docs/INTERNALS.md | Hang protection, versioned caches |
| docs/ENGRAM.md | Optional memory across sessions |
| docs/DECISIONS.md | The non-obvious whys, with measurements |
Compatibility
- Python 3.13-3.14 · macOS and Linux
- MCP clients: Claude Code · Codex · OpenCode · Cursor · Cline · Antigravity
Contributing
Bug reports with a reproducible task are the most valuable contribution. See CONTRIBUTING.md and, for security issues, SECURITY.md.
License
Metadata
Release files for novus-rag 11.9.166
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 |
|---|---|---|---|---|
| novus_rag-11.9.166.tar.gz | 637.7 kB | With provenance | Details for novus_rag-11.9.166.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| novus_rag-11.9.166-py3-none-any.whl | Python 3 | none | any | Details for novus_rag-11.9.166-py3-none-any.whl |
Total release size: 1.2 MB
Release files / novus_rag-11.9.166.tar.gz
| Download URL | novus_rag-11.9.166.tar.gz |
|---|---|
| Size | 637.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e11414d92e800f544fb343c1f12f837506ad72ab1ab161cc06d820589317ea2
|
|
BLAKE2b-256 checksum How to use checksums |
0b2bf53ef50b3b96f702e774805eab9a9f3fda16eb95ec2dc1150a7254421a5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / novus_rag-11.9.166-py3-none-any.whl
| Download URL | novus_rag-11.9.166-py3-none-any.whl |
|---|---|
| Size | 547.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca7f56560896ed3dac067fc57393a84d1a6fb6bf325a4f7b8e4da2f6ead5215a
|
|
BLAKE2b-256 checksum How to use checksums |
330443c14f7040f58fb730aceb7cbf55e6827f9daecd16b3305d2273d9c895b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for novus-rag 11.9.166
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for novus_rag-11.9.166.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA 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.