Skip to main content

🧠 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.

Small models, big-model results, at low cost. NOVUS RAG gives small models everything they need to plan and code like a big one: the structural map, the project memory, its own conventions and a review step. The default stack — OpenCode hy4-flash plus local embeddings with Ollama (nomic-embed-text) — keeps the bill low; the LLM is billed by token/quota. A $0 setup is possible with your own free/free-tier models or a local endpoint, but the historical free OpenCode Go models (beam-free, hy4-flash-free) are no longer served. OpenRouter and any Anthropic-compatible endpoint remain options.

Español: README.es.md

From a task to the exact places to change, in one call

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 small model $0
Small 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.

Without the RAG the agent implements a postponed task; with NOVUS RAG it stops before writing a line

The before/after, same task, same small 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 (PyPI, no clone needed):

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 default local setup

Piece What Cost
LLM OpenCode with hy4-flash, falling back to deepseek-v4.1-flash → glm-5.3-flash → gpt-6-luna; several accounts rotate automatically low cost (beam-free was deprecated)
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 new userDelete or removeUser is flagged with the name to use (deleteUser); if they are editarUsuario, so is eliminarUsuario. 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. NOVUS RAG reads and writes the memory through its own MCP tools (remember, forget, project_memory); Engram's CLI/MCP is optional for direct inspection.

  • 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_status drive 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 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

MIT

Metadata

Release files for novus-rag 11.9.177

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for novus-rag 11.9.177
File Size Uploaded Provenance Actions
novus_rag-11.9.177.tar.gz 638.5 kB With provenance Details for novus_rag-11.9.177.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for novus-rag 11.9.177
File Interpreter ABI Platform Actions
novus_rag-11.9.177-py3-none-any.whl Python 3 none any Details for novus_rag-11.9.177-py3-none-any.whl

Total release size: 1.2 MB

Release files / novus_rag-11.9.177.tar.gz

Download URL novus_rag-11.9.177.tar.gz
Size 638.5 kB
Tags Source
SHA-256 checksum
How to use checksums
60fed5e4317b36976463810a780f2103253e67f5fffc45f42a9a504232d77edb
BLAKE2b-256 checksum
How to use checksums
9fcc338d5e973436b68610ee4a70a79902964924fa67646201d68912cc44dfc2
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 log

Release files / novus_rag-11.9.177-py3-none-any.whl

Download URL novus_rag-11.9.177-py3-none-any.whl
Size 544.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38fefdbf74b78aa56fb9d147e3594a63b32f00b19f6a5812e3d77b875520b96f
BLAKE2b-256 checksum
How to use checksums
738ef0286cc41c0afaa8da6d654ee6a6b7eb38601ad6b186a3b6b463a7c4f9f7
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 log

Security for novus-rag 11.9.177

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.

Select from 2 files

Attestation for novus_rag-11.9.177.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 log

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.

Release history Release notifications | RSS feed

This release

11.9.177 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page