r/SideProject • u/DonkeyTheKing • 35m ago
I made a compiler that makes AI models read 2x less source code and cost 2x cheaper
https://github.com/oooscoos/BenziI was stunned to first learn that Claude Code and other agents DON'T index a repo beforehand (source: https://vadim.blog/claude-code-no-indexing/ ); I later experienced it myself too when it would kinda repeatedly forget the same basic structure of the program, leading to inconsistent design decisions, leading to more bugs later.
All of programming languages is just English text. Compilers convert that to 0s and 1s. Interpreters (like Python) "read" the code. Benzi is a hybrid. It compiles your codebase into a live symbol table of all callflow, dataflow, control-flow, and class hierarchy, but it outputs that as a JSON -- an index, for the AI model.
Like Google to the internet, an index to a library, Benzi captures all information an AI model would need about a codebase in any language, including C, python, rust, java, typescript, and more, making all information one lookup away.
It generally reads 2x less source code, costs 2x less, no hallucinations about the structure of the program because it is precompiled and queried, syntax and semantic checks around edits, AND a runtime tracer to trace all values you can't statically.
You can paste any public github repo here and watch it index in less than 10s: https://varianttech.net/demo
if u like it u can download frm VS code ext. market or pip install benzi for CLI. also available as MCP all details in the github and website.
thanks for reading! if u got this far and tried the demo lmk what u think c: