Delphi-RAG-Lint
Products · DL (drag-lint)

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.

557lint rules
418on by default
147can fix the code
01 — What it does

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.

Find and navigate →

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.

Lint and fix →

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.

Field Repository →

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.

Change safely →

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.

Document your code →

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.

Charts and reports →

Works in your tools

A RAD Studio plugin, a language server for VS Code and other editors, and an MCP server for AI assistants.

Works in your tools →

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.

Under the hood →
New in 1.66

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 →

After you install or update: expect a busy machine for a while

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 →

02 — Built for our own work

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.

On a big project, DL probably knows more about your code than your senior developer does. It finds the needle in the haystack. It also tells you that there is a needle in there, and helps you get it out.