Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
31464f3
fix: load embedding model with configured settings
Sebastiangmz Jul 1, 2026
a6704d0
fix: normalize graph repository lookups
Sebastiangmz Jul 1, 2026
5fc9488
fix: harden repository lifecycle operations
Sebastiangmz Jul 1, 2026
763ed5f
fix: stabilize CLI and MCP interface paths
Sebastiangmz Jul 1, 2026
4076feb
fix: harden Gradio repository workflows
Sebastiangmz Jul 1, 2026
9428b7d
feat: verify citations against indexed snapshots
Sebastiangmz Jul 6, 2026
bdd59cc
fix: route UI questions through retrieval service
Sebastiangmz Jul 6, 2026
168aad1
test: cover API grounded response contracts
Sebastiangmz Jul 6, 2026
aa69061
test: cover MCP grounded response contracts
Sebastiangmz Jul 6, 2026
7ad551c
test: stabilize provider config environment isolation
Sebastiangmz Jul 6, 2026
53d0e5c
feat: split EvalFly deterministic suites
Sebastiangmz Jul 6, 2026
118089d
docs: align README with portfolio readiness evidence
Sebastiangmz Jul 6, 2026
f5e8e7b
docs: add portfolio completion evidence records
Sebastiangmz Jul 6, 2026
2b2b032
fix: lazy-load embedding runtime dependencies
Sebastiangmz Jul 6, 2026
8ed177b
fix: lazy-load UI runtime dependencies
Sebastiangmz Jul 6, 2026
cf33da7
fix: lazy-load vector store runtime dependency
Sebastiangmz Jul 6, 2026
6aa7499
fix: lazy-load ingestion runtime dependencies
Sebastiangmz Jul 6, 2026
3baec6d
fix: lazy-load UI ingestion helpers
Sebastiangmz Jul 6, 2026
a399f23
fix: skip UI runtime setup for injected services
Sebastiangmz Jul 6, 2026
b12250e
fix: satisfy source type baseline
Sebastiangmz Jul 6, 2026
d0f77ec
test: type dynamic fake seams
Sebastiangmz Jul 6, 2026
9debd3b
fix: wire snapshot citation verification
Sebastiangmz Jul 7, 2026
d857321
fix: type verifier factory lookup
Sebastiangmz Jul 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 34 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

CodeRAG is a verified codebase context engine for agents and developers. It indexes repositories, retrieves grounded code context, verifies citations against retrieved chunks, and exposes the results through CLI, REST, MCP, and a local web UI. It is not an autonomous coding agent and does not edit repositories.
CodeRAG is a verified codebase context engine for agents and developers. It indexes repositories, retrieves grounded code context, verifies citations against indexed snapshot evidence, and exposes the results through CLI, REST, MCP, and a local web UI. It is not an autonomous coding agent and does not edit repositories.

## 🚀 Quick Start

```bash
# Install
pip install code-rag-me

# Configure (get free API key from https://console.groq.com/keys)
# Configure a cloud provider key, or skip generation with MODEL_PROFILE=retrieval-only
coderag setup

# Start web interface
Expand All @@ -21,6 +21,17 @@ coderag serve

Open http://localhost:8000 to use the web interface.

### Minimal verified local flow

```bash
coderag index https://github.com/pallets/markupsafe
coderag repos --format json
coderag context-pack <repo-id-or-prefix> "escape function" --format json
coderag query <repo-id-or-prefix> "What does MarkupSafe's escape function do? Cite the relevant source lines." --format json
```

Expected completion signal: the query response has `grounded: true`, non-empty `citations`, non-empty `citation_verifications`, and evidence chunks. Use `MODEL_PROFILE=retrieval-only` for retrieval/context-pack workflows that must not require an LLM key.

### Claude Desktop Integration (MCP)

```bash
Expand All @@ -30,11 +41,11 @@ coderag mcp-install
# Restart Claude Desktop
```

Now you can use CodeRAG directly in Claude Desktop!
After restart, Claude Desktop can use the local CodeRAG MCP tools configured by `coderag mcp-install`.

## ✨ Features

- **Verified citations**: Answers include citations like `[file:start-end]` and expose verification status.
- **Verified citations**: Answers include citations like `[file:start-end]`, verify them against indexed file snapshots plus retrieved evidence, and fall back to deterministic evidence when a model omits or invents citations.
- **Hybrid retrieval and context packs**: Combine semantic and lexical retrieval without requiring generation.
- **Code graph intelligence**: Python and TypeScript/JavaScript symbols, references, and blast-radius evidence are indexed when supported.
- **Cloud or local LLM**: Use Groq, OpenAI, Anthropic, OpenRouter, Together, or explicitly configured local models.
Expand Down Expand Up @@ -315,15 +326,29 @@ SERVER_PORT=8000

Configuration is stored in `~/.config/coderag/config.json` after running `coderag setup`.

## Production readiness
## Production readiness and evidence

Current release-candidate work is evidence-gated. The supported default is local loopback (`127.0.0.1`) with user-configured model credentials. Binding to public interfaces requires explicit host, trusted CORS origins, authentication, and network controls outside CodeRAG's defaults.
CodeRAG is complete for the portfolio/local-product scope: a verified codebase context engine with CLI, REST, MCP, and local web UI surfaces. Current evidence covers a real local MarkupSafe indexing/query flow with generated answers, grounded citations, context packs, API, MCP, CLI, UI screenshots, and negative cases.

- Cloud LLM providers send prompt context to the selected provider. Use local/private profiles only when configured and verified for your environment.
What is claimed:

- Local loopback operation (`127.0.0.1`) with user-configured model credentials.
- Durable SQLite repository/job state, hybrid retrieval, graph-backed code intelligence where supported, and deterministic citation verification against indexed snapshots.
- Safe default posture: trusted CORS is required for non-local browser origins, remote model code is disabled unless explicitly configured, and retrieval-only workflows can run without an LLM key.
- Unsupported graph languages degrade explicitly to text/chunk retrieval; they do not report fake graph confidence.
- CodeRAG verifies citations against retrieved chunks, but it does not prove repository correctness, execute arbitrary project tests, or make autonomous code changes.

Release-candidate evidence is committed in `docs/superpowers/plans/2026-06-30-m7-release-run-record.md`, `evals/runs/20260630-m7-production-rc.json`, and `evals/reports/20260630-m7-production-rc.md`.
What is not claimed:

- Hosted SaaS or multi-user production deployment readiness.
- That CodeRAG proves repository correctness, executes arbitrary project tests, or makes autonomous code changes.
- Physical headed-browser proof in every harness. The latest local UI E2E captured DOM/screenshot evidence; if a visible browser is required, run the same frozen plan with a headed Playwright-capable driver.

Evidence:

- Portfolio completion plan: `docs/superpowers/plans/2026-07-02-coderag-portfolio-complete.md`
- Real local E2E plan and run record: `docs/superpowers/plans/2026-07-02-coderag-portfolio-e2e-plan.md`, `docs/superpowers/plans/2026-07-02-coderag-portfolio-e2e-run-record.md`
- Portfolio readiness review: `docs/superpowers/plans/2026-07-02-coderag-portfolio-readiness-review.md`
- M7 release-candidate evidence: `docs/superpowers/plans/2026-06-30-m7-release-run-record.md`, `evals/runs/20260630-m7-production-rc.json`, `evals/reports/20260630-m7-production-rc.md`

## 🏗️ Architecture

Expand Down
Loading
Loading