rag-reviewer
Русский
AI-assisted pull-request reviews grounded in whole-repository context: hybrid search, a code
graph, and inline comments anchored to changed lines.
Requires Python 3.11–3.13 and external Voyage, PostgreSQL/ParadeDB, and Neo4j services.
Publishing reviews also requires credentials for the selected version-control provider.

Start here
Choose the shortest route for what you need now. Both routes lead to the same workflows and
reference sections later in this document.
Try reviewer
You need Python 3.11–3.13, uv, Docker, a Voyage API key, and a
version-control system (VCS) token if reviewer should read or publish pull-request reviews. The
stores run locally; embedding and reranking requests go to Voyage.
-
Install the launcher, synchronize reviewer's managed artifacts, start the stores, and configure
reviewer:
uv tool install rag-reviewer
reviewer update
docker compose -f ~/.config/rag-reviewer/docker-compose.yml up -d
reviewer init
reviewer update creates the managed Compose file next to the env file in
$XDG_CONFIG_HOME/rag-reviewer/ (~/.config/rag-reviewer/ by default). One store stack therefore
serves every repository, and the Compose project name stays independent of the current working
directory. The command also refreshes detected AI-client integrations and skills.
-
See the supported AI clients and connect one:
reviewer install --list
reviewer install codex
-
Build the branch-scoped searchable snapshot called the base index, then check the environment
and inspect index freshness:
reviewer index /path/to/repo --ref main
reviewer check
reviewer status /path/to/repo --branch main --json
Indexing initializes the chunks schema that reviewer check queries, so a fresh installation
must index before checking. The check validates every configured VCS provider; its successful
identity check does not prove repository-specific permissions. The status payload should show an
indexed SHA and drift == 0.
Full indexing sends code chunks to Voyage and can be slow on its free tier. Without a base
index, PR review has only the diff and its temporary changed-file index (overlay), and therefore
thinner repository context.
-
Open a new client session and run the first review:
# Claude Code
/rag-reviewer:review-pr owner/repo#123 --dry-run
# Codex
$rag-reviewer:review-pr owner/repo#123
Invocation syntax differs by client. A dry run returns grounded findings without publishing;
a normal run publishes through publish_review and therefore requires VCS write credentials.
For a temporary launcher without a persistent tool installation:
uvx --from rag-reviewer@latest reviewer
Deploy for a team
This route assumes that team members open their AI-client sessions on one shared host under one
service account. Each client launches its own reviewer-mcp stdio process; those processes share
PostgreSQL/ParadeDB and Neo4j through the Compose services bound to 127.0.0.1, plus the service
account's reviewer env. It is not one central MCP daemon. MCP requests carry repository, branch,
project, and provider_options, and tool results return selected code context to the AI client.
For separate workstations, use secured network-accessible stores and configure their DSNs and
reviewer env on every workstation instead of using the loopback Compose defaults.
-
On the shared host, start the stores and configure secrets for the service account.
reviewer update
docker compose -f ~/.config/rag-reviewer/docker-compose.yml up -d
reviewer init
-
Choose repository and branch scope. Set DEFAULT_REPO as the fallback repo, and either
the ordered REVIEW_BRANCHES CSV allowlist in server env or (preferred) a per-repo home
layer — see Repositories and branches. Put repository-specific
policy, ignored paths, context limits, and non-secret board metadata in .review.yml.
-
Build and verify every tracked branch.
reviewer index /srv/rag_for_git --ref main --repo mimfort/rag_for_git
reviewer check
reviewer status /srv/rag_for_git --branch main --json
-
Connect team clients.