Skip to content

Benzi

Compiler-backed coding agent that compiles your codebase into a resolved, queryable map of calls, data flow, control flow, and class hierarchy first; then it reads, explains…

Install: claude mcp add --scope user benzi -- benzi-mcp

Works with Claude Code · 155 GitHub stars

Install

$claude mcp add --scope user benzi -- benzi-mcp

Install command taken from the project's README or registry entry. Always review code before running it.

Language Agnostic · Model Agnostic · Compiles Locally · BYOK · MCP Compatible

    

    

Contents

What is Benzi — how it works in one paragraph Live demos — StallionSwipe, or any repo you paste Language support — ten languages, and where the depth is uneven Getting started — the Benzi agent (VS Code or headless), or the compiler over MCP SWE-bench Verified — 412/500 (82.4%) for $12.96 How it works — compile, query, edit, verify Tools — 16 of the 35+ the index makes possible What the index actually changes — lines read vs three other harnesses Features — six states, runtime tracer, live call graph, memory, markup engine FAQ & comparisons — privacy, pricing, limits, and how Benzi compares

What is Benzi

Most AI coding agents grep and glob raw source code into AI model's context window and hope the model finds what matters. Benzi parses every file first — a real compiler, built on tree-sitter — into a precise, queryable map. Every symbol, every call edge, every reference, every class in its inheritance chain. One pass, done.

Every file parsed, imports resolved, class ancestry built, every identifier traced to its definition — before a single question is answered. Call flow and data flow join at every call site, so a bad value traces to its origin in one tool call. Claude Code greps; Cursor embeds; Aider maps signatures; Benzi resolves — in O(1). Ten languages so far, plus a markup engine for HTML, CSS, and DOM-JS — see Language support.

You can try pasting this repo's link to Benzi in the live demo too!

Benzi on SQLite

Live demos

StallionSwipe · Python, HTML, CSS, JS — a dating app for horses, greenfielded by Benzi from scratch in a single chat session. No image is a file: every horse portrait is procedural SVG, generated in code. Match with one and it flirts back through a real model, live. Frontend, backend, and the prompts — all written by Benzi. Try it live.

Or, try any repo of your choice at all here — point Benzi at any public GitHub repo and it builds the index live. varianttech.net/demo.

Language support

Python · JavaScript · TypeScript · Java · C# · C++ · C · Go · Rust · Ruby

One compiler, ten languages — each is a tree-sitter grammar plugin, so the core of the map (symbols, call edges, references, inheritance, data flow) is built the same way everywhere.

Depth is uneven. Python is deepest, and the only one with the runtime tracer. Every language reaches the core of the map, but each has its own constructs, not all modelled yet. For most code, every other language's map comes close to Python's.

Runtime tracer: temporarily broken (October 14, 2026). Traced runs still execute, but they miss calls made inside comprehensions, lambdas and generator expressions, and most method calls on Python 3.9–3.10 projects. A fix is coming in the next release.

Incremental reindexing is also less optimized for C, C++, Rust, and Ruby — it works, just not as fast on a large edit loop.

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related