RAG vs turn-scoped context
Last updated 3 September 2026
| RAG for code | Hexum | |
|---|---|---|
| Unit | Embedded chunks | This turn’s files, then one symbol |
| Protocol | Whatever the app uses | MCP at https://hexum.dev/mcp |
| Architecture gate | Usually none | hexum_check, no LLM |
This is not a takedown of RAG. It is a different job: turn-scoped context plus a deterministic import check. hexum_shrink.
FAQ
How does Hexum reduce tokens?
The agent calls hexum_shrink before it reads widely. The model is sent this turn, not the repository. On MBPP, measured context dropped about 85% with the same tests passing. Example turn: 18.2k → 3.1k tokens, 41 files → 6. See /benchmarks and /methodology.
What is Hexum?
Hexum is the control plane for coding agents. One hexum_live_ key authorizes hosted MCP on hexum.dev and on efficient, arch, review, control, and loop subdomains. hexum_shrink sends this turn instead of the repository. hexum_check fails a forbidden import without calling a model. On MBPP, context dropped about 85% with the same tests passing.
Does Hexum store my repo?
No. Zero Data Retention is on Usage and Teams. MCP payloads are not stored. Hexum does not train on your code. Policy: /zdr.