Sentinel IR: a structural code index so AI agents stop brute-reading repos

Beautiful_River5349 · reddit · 2026-11-16

Arguing that giving AI coding agents raw repo access is like handing a doctor an unsorted pile of patient records, the author built sentinel-ir-mcp: a local Rust engine that extracts a compact Structural Intermediate Representation (IR) — a deterministic map of symbols, signatures, exports, and relationships.

Agents in Claude Desktop, Cursor, or Windsurf currently brute-force: list directories, open massive files, and read thousands of lines just to locate a function — causing context bloat (hallucinations, missed edge cases) and token/latency waste. With Sentinel IR, the agent queries the structural map first and only opens raw source when actually reading or editing implementation.

Key points:

Playground, GitHub/GitLab repos, Glama and MCP Registry listings, and npm packages are live; issue reports welcome — especially files that fool the analyzer.

Original post →

More from coding & agent

coding & agent channel →