01
Cross-index search
One query fans out across every index in the workspace — product repos, dependencies, old versions — and comes back as a single ranked answer.
Context infrastructure for coding agents
Rhei builds a local evidence graph of your code, remembers what agents actually use, and hands every agent the right files, slices, and receipts — over MCP.
curl -fsS https://rhei.team/install | bashLocal-first by default. Pro keeps understanding when your codebase outgrows your laptop.
Copied. Paste into your terminal.
Five subsystems run under every agent session — each one observable, each claim backed by a receipt.
Receipt
› $ rhei graph · acme-web
2.6k nodes · 7 edge kinds · 12 languages
checkout.ts → 9 callers · 3 co-change partners
Less context waste.
Measured on replayed agent sessions, not synthetic benchmarks.
51.6%
fewer tokens
Right-sized context for review
89.6%
fewer tool calls
Less tool churn to reach signal
33.5%
faster runs
Same quality, less waiting
02 / Workspace
Add product repos, dependency repos, old versions, examples. Rhei indexes each one locally and answers across all of them at once — while workspace memory compounds with every session.
web
4.2k nodes
api
2.6k nodes
ui-kit
1.1k nodes
infra
640 nodes
legacy-v1
3.8k nodes
docs
320 nodes
◆2 repos · checkout/retry.ts + api/payments.ts · memory “retry boundary” reused
01
One query fans out across every index in the workspace — product repos, dependencies, old versions — and comes back as a single ranked answer.
02
Every session feeds the evidence ledger. What agents reuse gets cheaper to find; what they contradict decays. The workspace gets smarter as it grows.
03
New repos don’t bloat context. Cold code rests until evidence brings it forward, so ten indexes cost about as much attention as one.
03 / Agent Interface
Rhei is a self-tuning code graph memory for agents. Quiet code stays cheap, useful code becomes active when agents need it, and the graph learns from what agents actually use — keeping usefulness separate from truth, so memory earns its place instead of polluting context.
Why is auth failing across web + API?
More tokens · still guessing
1 tool call · paths, reuse, impact
Intent becomes a scoped goal with relevant files, components, constraints, and next steps.
The graph keeps quiet code cheap, brings useful code forward when agents need it, and learns from what agents actually use.
Agents receive evidence before execution, while humans keep approval over what changes.
Goals, checkpoints, decisions, edits, and outcomes carry forward into the next session.
04 / Local
Rhei starts on your machine. It maps your repo, builds local code intelligence, and exposes that context to coding agents over MCP. You can use local setup without an account. Pro features are optional. Hosted services for deeper context, team memory, and governance workflows only turn on after you opt in.
01
Repo structure, symbols, relationships, and relevant context are built locally.
02
Codex, Cursor, Claude Code, and other MCP clients can query your local code intelligence.
03
Hosted services for deeper context, team memory, and governance workflows require sign-in and explicit approval.
05 / Enterprise
Teams that cannot leak code do not need another assurance page. They need a system where the safe path is the default path — and every exception leaves a receipt.
local mode
In local mode, code, the graph index, reports, and memory never leave the machine. No account required, no source upload — by architecture, not by policy.
never · metadata_only · selected_slices
Cloud features only see what the configured mode allows. “never” means never — features degrade to local behavior instead of leaking source.
default
Rhei does not train models on customer code by default, and non-zero-retention provider paths are labeled before they can be enabled for a workspace.
audit trail
Cloud assist, context decisions, and memory promotions are receipt-backed. You can see what was sent, what was used, and why — per request.
enterprise
Private Docker / VPC deployment with SSO, access and policy controls, and audit support. The same local-first engine, governed at org level.
workspace memory
Team memory is scoped per workspace and member. Knowledge is promoted by corroboration, decays when contradicted, and stays inspectable.
Rheicurl -fsS https://rhei.team/install | bashGetAuthorize first. Copy after sign-in.