Delphi RAG lint knows your code.
DL is a free code index and linter for Delphi developers and team leads with a big, old or busy code base. It parses every unit of your projects and of the libraries they use, then answers exact questions about the code, finds what is wrong with it and helps you change it without breaking it. It also charts the code, writes its documentation from facts, and keeps your database fields in one repository that code and forms are checked against.
Offline: your code stays on your machine. No cloud, no account, no API key. Indexing, queries, lint and fixes all run locally, also on a machine with no network at all.
No AI inside, but AI-ready. The same question always gets the same answer, because it comes from parsed facts, not from a model’s guess. Your AI assistant or editor can ask DL over MCP or LSP and get exact answers in seconds instead of grepping for minutes.
What it does for you
Find and navigate
Where a symbol is declared, who really calls it, which unit to add to uses, where a caption or SQL text lives. Exact answers across .pas, .dfm and .sql.
Lint and fix
557 rules in 23 categories, from bug patterns to security and FireDAC; 275 carry a CWE id. 147 of them fix the code, and the compiler checks every fix. Code metrics, up to a maintainability index per routine.
Field Repository
The fields of your Firebird database in one file: lengths, lookups, field events. DL checks code and forms against it, brings forms and grids in line with it, and generates ORM units, data services and Delphi enums from it.
Change safely
See what a change would break before you make it. Untangle uses cycles, remove dead code, rename and refactor with the compiler as referee.
Document your code
Delphi XML doc comments, the ones Help Insight shows and DocInsight reads, written from facts the index holds, never invented; a finding when a comment no longer matches its code; an API reference site.
Charts and reports
Dependencies, call butterflies, layer diagrams and change impact, as charts and as text: in a dockable RAD Studio window, in the browser or from the command line.
Works in your tools
A RAD Studio plugin, a language server for VS Code and other editors, and an MCP server for AI assistants.
Under the hood
Two indexes in plain SQLite files, built on your machine and kept current incrementally. What they hold, and what the first build costs.
The compile gate now proves the compiler built every unit a fix rewrote, and refuses the fix if it did not. Seventeen new rules, eleven more that fix the code, four new charts. Every ORM generator run can be checked and undone. No re-index. Everything else →
The first time, DL indexes your whole Delphi library in the background, once per platform: hours of heavy CPU work, with Windows still usable. Afterwards it only re-reads what changed. The full note, with our timings →
Proven every day on Micronite
We build DL alongside HTR Micronite, our quality and production-control software for manufacturers, and we use it throughout Micronite’s development: everything on these pages ran on a large, real Delphi code base before it reached you.