Archex turns a repo into deterministic context bundles for coding agents

tom_mathews · reddit · 2026-07-23

Archex is a local-first code context system for coding agents that builds a ranked, token-budgeted bundle instead of letting agents grep a repo blindly.

It uses BM25F, local embeddings, and graph expansion over imports, types, and callers, and keeps the whole path deterministic with no hosted inference, API key, or telemetry in the core flow. The author reports a head-to-head benchmark on a 19-task external-repo set: required-file recall of 0.95 versus 0.32 for cocoindex-code and 0.70 for Graphify, with far fewer completion-penalty tokens and 0 ms cold start. The project supports 26 languages, ships an MCP server with 17 tools, plus CLI, Python API, and Docker.

Related event: Archex Releases Local MCP Code Context Server(3 posts)→

Original post →

More from coding & agent

coding & agent channel →