novus-rag 11.9.153__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- novus_rag-11.9.153/LICENSE +21 -0
- novus_rag-11.9.153/PKG-INFO +227 -0
- novus_rag-11.9.153/README.md +200 -0
- novus_rag-11.9.153/_version.py +6 -0
- novus_rag-11.9.153/bench/__init__.py +1 -0
- novus_rag-11.9.153/bench/compare_demo.py +262 -0
- novus_rag-11.9.153/bench/make_demo.py +568 -0
- novus_rag-11.9.153/bench/measure.py +91 -0
- novus_rag-11.9.153/bench/scale_benchmark.py +239 -0
- novus_rag-11.9.153/conftest.py +61 -0
- novus_rag-11.9.153/extractors/__init__.py +60 -0
- novus_rag-11.9.153/extractors/angular.py +21 -0
- novus_rag-11.9.153/extractors/base.py +39 -0
- novus_rag-11.9.153/extractors/django.py +21 -0
- novus_rag-11.9.153/extractors/generic.py +21 -0
- novus_rag-11.9.153/extractors/laravel.py +21 -0
- novus_rag-11.9.153/extractors/nestjs.py +21 -0
- novus_rag-11.9.153/extractors/nextjs.py +21 -0
- novus_rag-11.9.153/extractors/node.py +21 -0
- novus_rag-11.9.153/extractors/python.py +21 -0
- novus_rag-11.9.153/extractors/react.py +21 -0
- novus_rag-11.9.153/extractors/react_router.py +21 -0
- novus_rag-11.9.153/extractors/remix.py +21 -0
- novus_rag-11.9.153/history.py +70 -0
- novus_rag-11.9.153/i18n.py +428 -0
- novus_rag-11.9.153/implementation_plan.py +221 -0
- novus_rag-11.9.153/index_project.py +6711 -0
- novus_rag-11.9.153/llm.py +523 -0
- novus_rag-11.9.153/memory.py +517 -0
- novus_rag-11.9.153/naming.py +660 -0
- novus_rag-11.9.153/novus_banner.py +65 -0
- novus_rag-11.9.153/novus_cli.py +1113 -0
- novus_rag-11.9.153/novus_config.py +267 -0
- novus_rag-11.9.153/novus_help.py +89 -0
- novus_rag-11.9.153/novus_hooks.py +281 -0
- novus_rag-11.9.153/novus_list.py +23 -0
- novus_rag-11.9.153/novus_mcp.py +11043 -0
- novus_rag-11.9.153/novus_pack.py +682 -0
- novus_rag-11.9.153/novus_rag.egg-info/PKG-INFO +227 -0
- novus_rag-11.9.153/novus_rag.egg-info/SOURCES.txt +101 -0
- novus_rag-11.9.153/novus_rag.egg-info/dependency_links.txt +1 -0
- novus_rag-11.9.153/novus_rag.egg-info/entry_points.txt +2 -0
- novus_rag-11.9.153/novus_rag.egg-info/requires.txt +16 -0
- novus_rag-11.9.153/novus_rag.egg-info/top_level.txt +29 -0
- novus_rag-11.9.153/novus_rules.py +547 -0
- novus_rag-11.9.153/novus_rules_en.py +420 -0
- novus_rag-11.9.153/novus_setup.py +378 -0
- novus_rag-11.9.153/novus_telemetry.py +251 -0
- novus_rag-11.9.153/novus_watch.py +131 -0
- novus_rag-11.9.153/orchestrator.py +529 -0
- novus_rag-11.9.153/pyproject.toml +65 -0
- novus_rag-11.9.153/qa_review.py +695 -0
- novus_rag-11.9.153/rag_evidence.py +156 -0
- novus_rag-11.9.153/setup.cfg +4 -0
- novus_rag-11.9.153/task_resolver.py +1983 -0
- novus_rag-11.9.153/test/test_arrow_modules.py +73 -0
- novus_rag-11.9.153/test/test_business_docs.py +35 -0
- novus_rag-11.9.153/test/test_cache_version.py +151 -0
- novus_rag-11.9.153/test/test_campos_repetidos.py +14 -0
- novus_rag-11.9.153/test/test_chunk_integrity.py +241 -0
- novus_rag-11.9.153/test/test_contradictions.py +689 -0
- novus_rag-11.9.153/test/test_conventions_padding.py +197 -0
- novus_rag-11.9.153/test/test_copia_sin_dependencias.py +28 -0
- novus_rag-11.9.153/test/test_demo.py +64 -0
- novus_rag-11.9.153/test/test_docs_consistency.py +77 -0
- novus_rag-11.9.153/test/test_doctor.py +77 -0
- novus_rag-11.9.153/test/test_embed_cache.py +147 -0
- novus_rag-11.9.153/test/test_extractors.py +63 -0
- novus_rag-11.9.153/test/test_freshness_branch.py +199 -0
- novus_rag-11.9.153/test/test_frontend_cross_calls.py +100 -0
- novus_rag-11.9.153/test/test_history.py +32 -0
- novus_rag-11.9.153/test/test_hooks.py +128 -0
- novus_rag-11.9.153/test/test_i18n.py +30 -0
- novus_rag-11.9.153/test/test_implementation_plan.py +82 -0
- novus_rag-11.9.153/test/test_intent_keyword_boundaries.py +199 -0
- novus_rag-11.9.153/test/test_intent_type_filter.py +116 -0
- novus_rag-11.9.153/test/test_language_contracts.py +605 -0
- novus_rag-11.9.153/test/test_llm.py +585 -0
- novus_rag-11.9.153/test/test_llm_caido_no_degrada.py +72 -0
- novus_rag-11.9.153/test/test_mcp_health.py +283 -0
- novus_rag-11.9.153/test/test_memory.py +235 -0
- novus_rag-11.9.153/test/test_microservicios.py +203 -0
- novus_rag-11.9.153/test/test_multi_project.py +338 -0
- novus_rag-11.9.153/test/test_naming.py +105 -0
- novus_rag-11.9.153/test/test_negation_reconciliation.py +212 -0
- novus_rag-11.9.153/test/test_novus_config.py +67 -0
- novus_rag-11.9.153/test/test_novus_help.py +38 -0
- novus_rag-11.9.153/test/test_novus_mcp_guide_cache_race.py +109 -0
- novus_rag-11.9.153/test/test_novus_mcp_guide_timeout.py +72 -0
- novus_rag-11.9.153/test/test_novus_pack.py +86 -0
- novus_rag-11.9.153/test/test_novus_setup.py +176 -0
- novus_rag-11.9.153/test/test_orchestrator.py +238 -0
- novus_rag-11.9.153/test/test_orm_writes.py +292 -0
- novus_rag-11.9.153/test/test_qa_review.py +316 -0
- novus_rag-11.9.153/test/test_rag_quality.py +98 -0
- novus_rag-11.9.153/test/test_repomix_contract.py +180 -0
- novus_rag-11.9.153/test/test_single_budget.py +207 -0
- novus_rag-11.9.153/test/test_status_indexing_level.py +158 -0
- novus_rag-11.9.153/test/test_task_resolver.py +262 -0
- novus_rag-11.9.153/test/test_telemetry.py +90 -0
- novus_rag-11.9.153/test/test_treesitter_parity.py +121 -0
- novus_rag-11.9.153/test/test_verify_tsconfig.py +290 -0
- novus_rag-11.9.153/tool_docs_es.py +203 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jesús Navas
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: novus-rag
|
|
3
|
+
Version: 11.9.153
|
|
4
|
+
Summary: The brain and the memory for your AI agents: a structural map of your projects, served over MCP.
|
|
5
|
+
Author: JSNavas
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: lancedb==0.30.2
|
|
11
|
+
Requires-Dist: pyarrow==26.0.1
|
|
12
|
+
Requires-Dist: pandas==3.1.1
|
|
13
|
+
Requires-Dist: numpy==2.5.5
|
|
14
|
+
Requires-Dist: openai==2.36.0
|
|
15
|
+
Requires-Dist: anthropic==2.12.0
|
|
16
|
+
Requires-Dist: mcp==1.27.1
|
|
17
|
+
Requires-Dist: fastmcp==3.2.4
|
|
18
|
+
Requires-Dist: httpx==0.28.1
|
|
19
|
+
Requires-Dist: tree-sitter==0.27.0
|
|
20
|
+
Requires-Dist: tree-sitter-language-pack==1.28.0
|
|
21
|
+
Requires-Dist: python-dotenv==1.2.2
|
|
22
|
+
Requires-Dist: requests==2.34.2
|
|
23
|
+
Requires-Dist: pytest==9.2.0
|
|
24
|
+
Requires-Dist: pytest-asyncio==1.5.0
|
|
25
|
+
Requires-Dist: rich==15.0.0
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
|
|
28
|
+
<h1 align="center">🧠 NOVUS RAG</h1>
|
|
29
|
+
|
|
30
|
+
<p align="center"><b>Your agents hallucinate schemas and lie about compilation. NOVUS RAG stops them.</b></p>
|
|
31
|
+
|
|
32
|
+
NOVUS RAG is an MCP server that indexes your projects and hands your agent a structural map —
|
|
33
|
+
real dependencies (not "semantically similar" ones), graph communities, the tables each method
|
|
34
|
+
reads and writes, routes from the front through the gateway to the microservice, events and
|
|
35
|
+
observers, and the business rules documented in your project — before it touches a single file.
|
|
36
|
+
Every fact comes with a verifiable `path:line`.
|
|
37
|
+
|
|
38
|
+
**The brain** knows your code and each project's own patterns. **The memory** keeps what you
|
|
39
|
+
decided: tasks and their state, postponements, your conventions, how your projects relate — in
|
|
40
|
+
every new chat. Your agents (Claude Code, Codex, Cursor…) do the typing; NOVUS RAG tells them
|
|
41
|
+
where, how, and whether they should.
|
|
42
|
+
|
|
43
|
+
It is not a code search engine. It is a structural map read from the index, not written by an LLM.
|
|
44
|
+
|
|
45
|
+
**Runs for free:** free LLM models through OpenCode and local embeddings with Ollama
|
|
46
|
+
(`nomic-embed-text`). Paid providers (OpenRouter, any Anthropic-compatible endpoint) are an
|
|
47
|
+
option, not a requirement.
|
|
48
|
+
|
|
49
|
+
> Español: [README.es.md](README.es.md)
|
|
50
|
+
|
|
51
|
+
<p align="center">
|
|
52
|
+
<img src="docs/img/demo.gif" alt="From a task to the exact places to change, in one call" width="900">
|
|
53
|
+
</p>
|
|
54
|
+
|
|
55
|
+
## The numbers (real runs, not marketing)
|
|
56
|
+
|
|
57
|
+
Above the fold, because they are the only claim that matters:
|
|
58
|
+
|
|
59
|
+
| What the run measured | Result |
|
|
60
|
+
|---|---|
|
|
61
|
+
| Models that **stopped** a task the project memory had postponed (7 of 7) | **7 / 7** |
|
|
62
|
+
| Activity-log feature: 11 files, compiled, reviewed, merged, by a free model | **$0** |
|
|
63
|
+
| Small/free models reaching big-model quality on the same tasks | **all 7** |
|
|
64
|
+
|
|
65
|
+
Source and method: [docs/BENCHMARK.md](docs/BENCHMARK.md). Reproducible with `bench/make_demo.py`,
|
|
66
|
+
`bench/tasks.json` and `bench/measure.py`.
|
|
67
|
+
|
|
68
|
+
<p align="center">
|
|
69
|
+
<img src="docs/img/before-after.gif" alt="Without the RAG the agent implements a postponed task; with NOVUS RAG it stops before writing a line" width="900">
|
|
70
|
+
</p>
|
|
71
|
+
|
|
72
|
+
*The before/after, same task, same free model: without the RAG it implements a task the project
|
|
73
|
+
memory had postponed; with the RAG it stops before writing a line. Real transcripts and how to
|
|
74
|
+
reproduce them: [docs/COMPARATIVE.md](docs/COMPARATIVE.md).*
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
┌──────────────┐ ┌─────────────────┐ ┌──────────────────┐ ┌──────────────┐
|
|
78
|
+
│ Your projects│ ──► │ novus-rag sync │ ──► │ Local index │ ──► │ Your agent │
|
|
79
|
+
│ (supported │ │ AST + graph + │ │ (LanceDB) │ │ via MCP │
|
|
80
|
+
│ stacks) │ │ conventions │ │ per branch │ │ (any client) │
|
|
81
|
+
└──────────────┘ └─────────────────┘ └──────────────────┘ └──────────────┘
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Quickstart
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
git clone https://github.com/JSNavas/novus-rag.git
|
|
88
|
+
cd novus-rag && ./install.sh # venv, dependencies, the `novus-rag` CLI and a setup wizard
|
|
89
|
+
novus-rag doctor # checks the environment and prints the exact fix for anything missing
|
|
90
|
+
novus-rag demo # optional: see a real analysis on a demo project in /tmp, no keys needed
|
|
91
|
+
|
|
92
|
+
novus-rag mcp-config claude # register the MCP in your agent (or codex, opencode, cursor…)
|
|
93
|
+
cd ~/code/your-project && novus-rag sync
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
`sync` is progressive: in about a minute the structural index (AST, schema,
|
|
97
|
+
business rules) is queryable and you can start working; the LLM phases
|
|
98
|
+
(summaries, graph, conventions) finish in the background on their own, and an
|
|
99
|
+
interrupted indexing RESUMES where it stopped — it never starts from zero.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
novus-rag status your-project # indexing level per pillar + whether the background is still running
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Or, with `uv` (no clone needed once published):
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
uv tool install novus-rag
|
|
109
|
+
novus-rag mcp-config claude
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
The wizard (`novus-rag init`, run it again at any time) asks for your language, LLM provider,
|
|
113
|
+
keys and embeddings. Keys are stored in `~/.novus-rag/.env` (mode 600), never in the repo.
|
|
114
|
+
|
|
115
|
+
### The free setup
|
|
116
|
+
|
|
117
|
+
| Piece | What | Cost |
|
|
118
|
+
|---|---|---|
|
|
119
|
+
| LLM | OpenCode with `beam-free`, falling back to `deepseek-v4.1-flash`; several accounts rotate automatically | $0 |
|
|
120
|
+
| Embeddings | `nomic-embed-text` on [Ollama](https://ollama.com), 768 dimensions, local | $0 |
|
|
121
|
+
| Index | LanceDB on your disk | $0 |
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
ollama pull nomic-embed-text
|
|
125
|
+
novus-rag init # OpenCode and local embeddings are the defaults
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Prefer a paid provider? Pick OpenRouter, or point `[llm] base_url` to any Anthropic-compatible
|
|
129
|
+
endpoint. Each embeddings model keeps its own index, so switching never mixes vectors.
|
|
130
|
+
|
|
131
|
+
## What it gives your agent
|
|
132
|
+
|
|
133
|
+
- **From the task to the code.** `analyze_implementation_task("<ticket text>", projects)` takes
|
|
134
|
+
the task as written (English or Spanish, no method names) and returns where each concept lives,
|
|
135
|
+
which project to touch, the propagation map (callers, routes, front → gateway → service, tables
|
|
136
|
+
and who writes and **reads** them, event chains, observers, policies), the current schema, the
|
|
137
|
+
literal bodies to change and the project's own rules.
|
|
138
|
+
- **One call, every angle.** `analyze_feature("<feature>")` returns business rules, conventions,
|
|
139
|
+
architecture, dependencies and snippets in parallel.
|
|
140
|
+
- **Literal facts.** Schema, HTTP routes and method bodies come straight from the index. What an
|
|
141
|
+
LLM writes is marked as such.
|
|
142
|
+
- **Multi-project for real.** Cross-service HTTP calls, shared tables and per-branch freshness.
|
|
143
|
+
Comparison questions ("how was this done in X versus Y?") answer each project separately.
|
|
144
|
+
- **Your business rules.** Markdown docs in `docs/` describing rules, requirements or policies are
|
|
145
|
+
indexed section by section and shown next to the code that implements them.
|
|
146
|
+
- **Learns your vocabulary.** Nothing about a specific project lives in the code: each project's
|
|
147
|
+
jargon is learned from its own index.
|
|
148
|
+
- **Your project's own patterns, enforced.** If your methods are `editUser`/`createUser`, a new
|
|
149
|
+
`userDelete` or `removeUser` is flagged with the name to use (`deleteUser`); if they are
|
|
150
|
+
`editarUsuario`, so is `eliminarUsuario`. Same for tables, columns, foreign keys, date and
|
|
151
|
+
boolean columns, file names, folder suffixes and route segments — all measured on the project
|
|
152
|
+
itself.
|
|
153
|
+
- **Knows why the code is like this.** The commits of the files a task touches that explain
|
|
154
|
+
something (including PR descriptions merged with squash) come with the implementation guide.
|
|
155
|
+
- **One check after editing.** `review_change(paths)` runs the real compiler or linter, checks the
|
|
156
|
+
naming pattern and the majority rules, flags keys, SQL injection, another user's id in the URL,
|
|
157
|
+
prices from the client, unsigned webhooks, uploads, races and debug leftovers, and lists who
|
|
158
|
+
else calls the changed code and which tests were not touched.
|
|
159
|
+
- **Any MCP client.** Claude Code, Codex, OpenCode, Cursor, Cline, Antigravity. The agent contract
|
|
160
|
+
travels inside the server, not in files you have to copy.
|
|
161
|
+
|
|
162
|
+
**Validated with real tasks:** NestJS · Symfony · Laravel (+ DDD) · Remix · Vue · KrakenD.
|
|
163
|
+
**Also indexes:** Next.js · React Router 7 · React · Angular · Nuxt · Svelte · Express · Python · Rust.
|
|
164
|
+
Full list and what each level means: [docs/STACKS.md](docs/STACKS.md).
|
|
165
|
+
|
|
166
|
+
## Advanced
|
|
167
|
+
|
|
168
|
+
<details>
|
|
169
|
+
<summary><b>Memory across chats (Engram)</b> — optional, recommended</summary>
|
|
170
|
+
|
|
171
|
+
With [Engram](docs/ENGRAM.md), what you decide (tasks and their state, postponements, your own
|
|
172
|
+
conventions, which project is the front of which back) is saved and comes back in every new chat.
|
|
173
|
+
Ask to run a phase you postponed and the RAG stops to ask. The memory is read-only from NOVUS RAG's
|
|
174
|
+
side; it is written through Engram's own CLI.
|
|
175
|
+
|
|
176
|
+
- A memory across chats: tasks, decisions, conventions, project relations.
|
|
177
|
+
- Ask to run a postponed phase and the RAG stops to ask before writing a line.
|
|
178
|
+
- The memory belongs to the RAG's view of the project; Engram is the memory, NOVUS RAG is the brain.
|
|
179
|
+
|
|
180
|
+
See [docs/ENGRAM.md](docs/ENGRAM.md) and [docs/ORCHESTRATION.md](docs/ORCHESTRATION.md).
|
|
181
|
+
|
|
182
|
+
</details>
|
|
183
|
+
|
|
184
|
+
<details>
|
|
185
|
+
<summary><b>Orchestration: a planner and its sub-agents</b> — advanced</summary>
|
|
186
|
+
|
|
187
|
+
NOVUS RAG is not only an executor's tool. A planner can break a feature into subtasks, each with a
|
|
188
|
+
cached guide, and hand them to sub-agents that run in their own threads and copies of the project.
|
|
189
|
+
Roles, tickets, the cached guide and the commit style travel inside the brief.
|
|
190
|
+
|
|
191
|
+
- `register_plan`, `update_subtask`, `plan_status` drive the plan.
|
|
192
|
+
- Each subtask's guide is prepared in the cache while the planner works.
|
|
193
|
+
- Sub-agents never merge into the main branch; they commit on their own branch.
|
|
194
|
+
- See [docs/ORCHESTRATION.md](docs/ORCHESTRATION.md).
|
|
195
|
+
|
|
196
|
+
</details>
|
|
197
|
+
|
|
198
|
+
## Documentation
|
|
199
|
+
|
|
200
|
+
| Doc | What you will find |
|
|
201
|
+
|---|---|
|
|
202
|
+
| [docs/INSTALL.md](docs/INSTALL.md) | Requirements, providers, MCP registration, verification, troubleshooting |
|
|
203
|
+
| [docs/OPERATIONS.md](docs/OPERATIONS.md) | Daily flow, freshness and git hooks, layered configuration, exclusions |
|
|
204
|
+
| [docs/STACKS.md](docs/STACKS.md) | Supported stacks and languages |
|
|
205
|
+
| [docs/COMMANDS.md](docs/COMMANDS.md) | Command reference |
|
|
206
|
+
| [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | Components, chunk types, the six pillars, pipeline, stack detection |
|
|
207
|
+
| [docs/MCP-TOOLS.md](docs/MCP-TOOLS.md) | The twelve tools, modes and intent catalog |
|
|
208
|
+
| [docs/ORCHESTRATION.md](docs/ORCHESTRATION.md) | A planner and its sub-agents: roles, tickets, the cached guide |
|
|
209
|
+
| [docs/BENCHMARK.md](docs/BENCHMARK.md) | Small and free models as executors, with and without the RAG |
|
|
210
|
+
| [docs/AGENT-CONTRACT.md](docs/AGENT-CONTRACT.md) | The contract every agent follows, guarantee markers |
|
|
211
|
+
| [docs/INTERNALS.md](docs/INTERNALS.md) | Hang protection, versioned caches |
|
|
212
|
+
| [docs/ENGRAM.md](docs/ENGRAM.md) | Optional memory across sessions |
|
|
213
|
+
| [docs/DECISIONS.md](docs/DECISIONS.md) | The non-obvious whys, with measurements |
|
|
214
|
+
|
|
215
|
+
## Compatibility
|
|
216
|
+
|
|
217
|
+
- Python 3.11+ · macOS and Linux
|
|
218
|
+
- MCP clients: Claude Code · Codex · OpenCode · Cursor · Cline · Antigravity
|
|
219
|
+
|
|
220
|
+
## Contributing
|
|
221
|
+
|
|
222
|
+
Bug reports with a reproducible task are the most valuable contribution. See
|
|
223
|
+
[CONTRIBUTING.md](CONTRIBUTING.md) and, for security issues, [SECURITY.md](SECURITY.md).
|
|
224
|
+
|
|
225
|
+
## License
|
|
226
|
+
|
|
227
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<h1 align="center">🧠 NOVUS RAG</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center"><b>Your agents hallucinate schemas and lie about compilation. NOVUS RAG stops them.</b></p>
|
|
4
|
+
|
|
5
|
+
NOVUS RAG is an MCP server that indexes your projects and hands your agent a structural map —
|
|
6
|
+
real dependencies (not "semantically similar" ones), graph communities, the tables each method
|
|
7
|
+
reads and writes, routes from the front through the gateway to the microservice, events and
|
|
8
|
+
observers, and the business rules documented in your project — before it touches a single file.
|
|
9
|
+
Every fact comes with a verifiable `path:line`.
|
|
10
|
+
|
|
11
|
+
**The brain** knows your code and each project's own patterns. **The memory** keeps what you
|
|
12
|
+
decided: tasks and their state, postponements, your conventions, how your projects relate — in
|
|
13
|
+
every new chat. Your agents (Claude Code, Codex, Cursor…) do the typing; NOVUS RAG tells them
|
|
14
|
+
where, how, and whether they should.
|
|
15
|
+
|
|
16
|
+
It is not a code search engine. It is a structural map read from the index, not written by an LLM.
|
|
17
|
+
|
|
18
|
+
**Runs for free:** free LLM models through OpenCode and local embeddings with Ollama
|
|
19
|
+
(`nomic-embed-text`). Paid providers (OpenRouter, any Anthropic-compatible endpoint) are an
|
|
20
|
+
option, not a requirement.
|
|
21
|
+
|
|
22
|
+
> Español: [README.es.md](README.es.md)
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<img src="docs/img/demo.gif" alt="From a task to the exact places to change, in one call" width="900">
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
## The numbers (real runs, not marketing)
|
|
29
|
+
|
|
30
|
+
Above the fold, because they are the only claim that matters:
|
|
31
|
+
|
|
32
|
+
| What the run measured | Result |
|
|
33
|
+
|---|---|
|
|
34
|
+
| Models that **stopped** a task the project memory had postponed (7 of 7) | **7 / 7** |
|
|
35
|
+
| Activity-log feature: 11 files, compiled, reviewed, merged, by a free model | **$0** |
|
|
36
|
+
| Small/free models reaching big-model quality on the same tasks | **all 7** |
|
|
37
|
+
|
|
38
|
+
Source and method: [docs/BENCHMARK.md](docs/BENCHMARK.md). Reproducible with `bench/make_demo.py`,
|
|
39
|
+
`bench/tasks.json` and `bench/measure.py`.
|
|
40
|
+
|
|
41
|
+
<p align="center">
|
|
42
|
+
<img src="docs/img/before-after.gif" alt="Without the RAG the agent implements a postponed task; with NOVUS RAG it stops before writing a line" width="900">
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
*The before/after, same task, same free model: without the RAG it implements a task the project
|
|
46
|
+
memory had postponed; with the RAG it stops before writing a line. Real transcripts and how to
|
|
47
|
+
reproduce them: [docs/COMPARATIVE.md](docs/COMPARATIVE.md).*
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
┌──────────────┐ ┌─────────────────┐ ┌──────────────────┐ ┌──────────────┐
|
|
51
|
+
│ Your projects│ ──► │ novus-rag sync │ ──► │ Local index │ ──► │ Your agent │
|
|
52
|
+
│ (supported │ │ AST + graph + │ │ (LanceDB) │ │ via MCP │
|
|
53
|
+
│ stacks) │ │ conventions │ │ per branch │ │ (any client) │
|
|
54
|
+
└──────────────┘ └─────────────────┘ └──────────────────┘ └──────────────┘
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Quickstart
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
git clone https://github.com/JSNavas/novus-rag.git
|
|
61
|
+
cd novus-rag && ./install.sh # venv, dependencies, the `novus-rag` CLI and a setup wizard
|
|
62
|
+
novus-rag doctor # checks the environment and prints the exact fix for anything missing
|
|
63
|
+
novus-rag demo # optional: see a real analysis on a demo project in /tmp, no keys needed
|
|
64
|
+
|
|
65
|
+
novus-rag mcp-config claude # register the MCP in your agent (or codex, opencode, cursor…)
|
|
66
|
+
cd ~/code/your-project && novus-rag sync
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`sync` is progressive: in about a minute the structural index (AST, schema,
|
|
70
|
+
business rules) is queryable and you can start working; the LLM phases
|
|
71
|
+
(summaries, graph, conventions) finish in the background on their own, and an
|
|
72
|
+
interrupted indexing RESUMES where it stopped — it never starts from zero.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
novus-rag status your-project # indexing level per pillar + whether the background is still running
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Or, with `uv` (no clone needed once published):
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
uv tool install novus-rag
|
|
82
|
+
novus-rag mcp-config claude
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The wizard (`novus-rag init`, run it again at any time) asks for your language, LLM provider,
|
|
86
|
+
keys and embeddings. Keys are stored in `~/.novus-rag/.env` (mode 600), never in the repo.
|
|
87
|
+
|
|
88
|
+
### The free setup
|
|
89
|
+
|
|
90
|
+
| Piece | What | Cost |
|
|
91
|
+
|---|---|---|
|
|
92
|
+
| LLM | OpenCode with `beam-free`, falling back to `deepseek-v4.1-flash`; several accounts rotate automatically | $0 |
|
|
93
|
+
| Embeddings | `nomic-embed-text` on [Ollama](https://ollama.com), 768 dimensions, local | $0 |
|
|
94
|
+
| Index | LanceDB on your disk | $0 |
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
ollama pull nomic-embed-text
|
|
98
|
+
novus-rag init # OpenCode and local embeddings are the defaults
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Prefer a paid provider? Pick OpenRouter, or point `[llm] base_url` to any Anthropic-compatible
|
|
102
|
+
endpoint. Each embeddings model keeps its own index, so switching never mixes vectors.
|
|
103
|
+
|
|
104
|
+
## What it gives your agent
|
|
105
|
+
|
|
106
|
+
- **From the task to the code.** `analyze_implementation_task("<ticket text>", projects)` takes
|
|
107
|
+
the task as written (English or Spanish, no method names) and returns where each concept lives,
|
|
108
|
+
which project to touch, the propagation map (callers, routes, front → gateway → service, tables
|
|
109
|
+
and who writes and **reads** them, event chains, observers, policies), the current schema, the
|
|
110
|
+
literal bodies to change and the project's own rules.
|
|
111
|
+
- **One call, every angle.** `analyze_feature("<feature>")` returns business rules, conventions,
|
|
112
|
+
architecture, dependencies and snippets in parallel.
|
|
113
|
+
- **Literal facts.** Schema, HTTP routes and method bodies come straight from the index. What an
|
|
114
|
+
LLM writes is marked as such.
|
|
115
|
+
- **Multi-project for real.** Cross-service HTTP calls, shared tables and per-branch freshness.
|
|
116
|
+
Comparison questions ("how was this done in X versus Y?") answer each project separately.
|
|
117
|
+
- **Your business rules.** Markdown docs in `docs/` describing rules, requirements or policies are
|
|
118
|
+
indexed section by section and shown next to the code that implements them.
|
|
119
|
+
- **Learns your vocabulary.** Nothing about a specific project lives in the code: each project's
|
|
120
|
+
jargon is learned from its own index.
|
|
121
|
+
- **Your project's own patterns, enforced.** If your methods are `editUser`/`createUser`, a new
|
|
122
|
+
`userDelete` or `removeUser` is flagged with the name to use (`deleteUser`); if they are
|
|
123
|
+
`editarUsuario`, so is `eliminarUsuario`. Same for tables, columns, foreign keys, date and
|
|
124
|
+
boolean columns, file names, folder suffixes and route segments — all measured on the project
|
|
125
|
+
itself.
|
|
126
|
+
- **Knows why the code is like this.** The commits of the files a task touches that explain
|
|
127
|
+
something (including PR descriptions merged with squash) come with the implementation guide.
|
|
128
|
+
- **One check after editing.** `review_change(paths)` runs the real compiler or linter, checks the
|
|
129
|
+
naming pattern and the majority rules, flags keys, SQL injection, another user's id in the URL,
|
|
130
|
+
prices from the client, unsigned webhooks, uploads, races and debug leftovers, and lists who
|
|
131
|
+
else calls the changed code and which tests were not touched.
|
|
132
|
+
- **Any MCP client.** Claude Code, Codex, OpenCode, Cursor, Cline, Antigravity. The agent contract
|
|
133
|
+
travels inside the server, not in files you have to copy.
|
|
134
|
+
|
|
135
|
+
**Validated with real tasks:** NestJS · Symfony · Laravel (+ DDD) · Remix · Vue · KrakenD.
|
|
136
|
+
**Also indexes:** Next.js · React Router 7 · React · Angular · Nuxt · Svelte · Express · Python · Rust.
|
|
137
|
+
Full list and what each level means: [docs/STACKS.md](docs/STACKS.md).
|
|
138
|
+
|
|
139
|
+
## Advanced
|
|
140
|
+
|
|
141
|
+
<details>
|
|
142
|
+
<summary><b>Memory across chats (Engram)</b> — optional, recommended</summary>
|
|
143
|
+
|
|
144
|
+
With [Engram](docs/ENGRAM.md), what you decide (tasks and their state, postponements, your own
|
|
145
|
+
conventions, which project is the front of which back) is saved and comes back in every new chat.
|
|
146
|
+
Ask to run a phase you postponed and the RAG stops to ask. The memory is read-only from NOVUS RAG's
|
|
147
|
+
side; it is written through Engram's own CLI.
|
|
148
|
+
|
|
149
|
+
- A memory across chats: tasks, decisions, conventions, project relations.
|
|
150
|
+
- Ask to run a postponed phase and the RAG stops to ask before writing a line.
|
|
151
|
+
- The memory belongs to the RAG's view of the project; Engram is the memory, NOVUS RAG is the brain.
|
|
152
|
+
|
|
153
|
+
See [docs/ENGRAM.md](docs/ENGRAM.md) and [docs/ORCHESTRATION.md](docs/ORCHESTRATION.md).
|
|
154
|
+
|
|
155
|
+
</details>
|
|
156
|
+
|
|
157
|
+
<details>
|
|
158
|
+
<summary><b>Orchestration: a planner and its sub-agents</b> — advanced</summary>
|
|
159
|
+
|
|
160
|
+
NOVUS RAG is not only an executor's tool. A planner can break a feature into subtasks, each with a
|
|
161
|
+
cached guide, and hand them to sub-agents that run in their own threads and copies of the project.
|
|
162
|
+
Roles, tickets, the cached guide and the commit style travel inside the brief.
|
|
163
|
+
|
|
164
|
+
- `register_plan`, `update_subtask`, `plan_status` drive the plan.
|
|
165
|
+
- Each subtask's guide is prepared in the cache while the planner works.
|
|
166
|
+
- Sub-agents never merge into the main branch; they commit on their own branch.
|
|
167
|
+
- See [docs/ORCHESTRATION.md](docs/ORCHESTRATION.md).
|
|
168
|
+
|
|
169
|
+
</details>
|
|
170
|
+
|
|
171
|
+
## Documentation
|
|
172
|
+
|
|
173
|
+
| Doc | What you will find |
|
|
174
|
+
|---|---|
|
|
175
|
+
| [docs/INSTALL.md](docs/INSTALL.md) | Requirements, providers, MCP registration, verification, troubleshooting |
|
|
176
|
+
| [docs/OPERATIONS.md](docs/OPERATIONS.md) | Daily flow, freshness and git hooks, layered configuration, exclusions |
|
|
177
|
+
| [docs/STACKS.md](docs/STACKS.md) | Supported stacks and languages |
|
|
178
|
+
| [docs/COMMANDS.md](docs/COMMANDS.md) | Command reference |
|
|
179
|
+
| [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | Components, chunk types, the six pillars, pipeline, stack detection |
|
|
180
|
+
| [docs/MCP-TOOLS.md](docs/MCP-TOOLS.md) | The twelve tools, modes and intent catalog |
|
|
181
|
+
| [docs/ORCHESTRATION.md](docs/ORCHESTRATION.md) | A planner and its sub-agents: roles, tickets, the cached guide |
|
|
182
|
+
| [docs/BENCHMARK.md](docs/BENCHMARK.md) | Small and free models as executors, with and without the RAG |
|
|
183
|
+
| [docs/AGENT-CONTRACT.md](docs/AGENT-CONTRACT.md) | The contract every agent follows, guarantee markers |
|
|
184
|
+
| [docs/INTERNALS.md](docs/INTERNALS.md) | Hang protection, versioned caches |
|
|
185
|
+
| [docs/ENGRAM.md](docs/ENGRAM.md) | Optional memory across sessions |
|
|
186
|
+
| [docs/DECISIONS.md](docs/DECISIONS.md) | The non-obvious whys, with measurements |
|
|
187
|
+
|
|
188
|
+
## Compatibility
|
|
189
|
+
|
|
190
|
+
- Python 3.11+ · macOS and Linux
|
|
191
|
+
- MCP clients: Claude Code · Codex · OpenCode · Cursor · Cline · Antigravity
|
|
192
|
+
|
|
193
|
+
## Contributing
|
|
194
|
+
|
|
195
|
+
Bug reports with a reproducible task are the most valuable contribution. See
|
|
196
|
+
[CONTRIBUTING.md](CONTRIBUTING.md) and, for security issues, [SECURITY.md](SECURITY.md).
|
|
197
|
+
|
|
198
|
+
## License
|
|
199
|
+
|
|
200
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Single source of truth for the Novus RAG stack version.
|
|
2
|
+
# Importado por novus_mcp.py e index_project.py para que un solo cambio
|
|
3
|
+
# acá propague a todos los headers, logs y banners de ambos archivos.
|
|
4
|
+
#
|
|
5
|
+
# Bump aquí cuando cierres una versión (P*, milestone).
|
|
6
|
+
NOVUS_RAG_VERSION = "V11.9.153"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Demo and benchmark utilities packaged for `novus-rag demo`."""
|