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:
- Local-first and deterministic: Rust, stdio-based MCP, no cloud uploads, works offline
- Engineering focused on "boring" reliability: cross-platform determinism, sentinel-ir-mcp doctor environment diagnostics, adversarial testing behind corporate proxies, custom TLS certificates, and non-ASCII Windows paths across macOS/Windows/Linux
Playground, GitHub/GitLab repos, Glama and MCP Registry listings, and npm packages are live; issue reports welcome — especially files that fool the analyzer.
More from coding & agent
- Gemini 4 Hydrogen launched: 2.5x faster than 3.8 Flash, but how much is batching? — krishnan · 2026-11-16
- Running 13 agents in parallel: handhold the critical bits, let the rest rip all day — willcb · 2026-11-16
- Agent sessions stall silently when no worker polls—ops must watch for it — krishnan · 2026-11-16
- Self-hosted Managed Agents migrates nothing—not even session history—and drops webhooks and cron — krishnan · 2026-11-16
- Self-hosting agents buys control but you own the server, database, sandboxes and every release — krishnan · 2026-11-16
- Researchers formally specify ops interfaces for CockroachDB, Kafka and RabbitMQ to make AI operators verifiable — tianyin_xu · 2026-11-16