Delphi-RAG-Lint
← DL (drag-lint) · Works in your tools

In the IDE you use, for the assistant you use.

DL is one engine on your machine with several ways in: a RAD Studio plugin, a VS Code extension, a language server for any LSP editor, an MCP server for AI assistants, and the command line. All of them ask the same index and get the same answers.

RAD Studio 13 Florence
Delphi IDE plugin: menus, hints, quick fixes.
VS Code
An extension over the DL language server; the .vsix is on the release page.
Any LSP editor
drag-lint lsp, standard protocol.
AI assistants
drag-lint serve: an MCP server.
01 — RAD Studio

A plugin for RAD Studio 13 Florence

The plugin adds a drag-lint menu and a submenu on the editor’s right-click menu, enabled by what the caret is on: Find Usages, Rename Symbol, Safe Delete, the hover card, Go to Definition. A dockable drag-lint panel and the Structure window show findings, with Fix it and Document it a right-click away, and a graph viewer draws the charts. The plugin reindexes your project and shows the progress in the IDE, and it can lint an editor buffer before you save it.

Rest the mouse on a name and DL tells you about it; where it has nothing to show, a drag-lint strip names what is under the pointer instead, such as an identifier that is not indexed yet, a keyword or a word in a comment. A row in a chart opens its line in the editor through a draglint:// link. The engine also indexes source written for older Delphi versions.

IDE menu reference · Editor right-click submenu · drag-lint panel · Click-to-source · Installation

02 — VS Code and other editors

A language server for any editor

VS Code. An extension over the DL language server: since 1.65 the .vsix comes with each release on the release page. Its Problems list stays current, also for files an AI agent edits on disk, and it can add a missing unit to uses when you save; dropping an unused unit on save is opt-in.

Any LSP editor. drag-lint lsp starts a standard language server over stdio. It answers hover, go to definition, completion and diagnostics, plus outline, implementation, rename, code lens, inlay hints, call and type hierarchy, highlights and folding, all from the index.

VS Code extension · Auto uses on save · lsp · LSP features

03 — AI assistants

Exact answers for your AI assistant

No AI runs inside DL. drag-lint serve is an MCP server over local stdio, so an AI assistant can ask the index instead of grepping: where a symbol is, who calls it, what a change would break, which class implements an interface, which routine raises an exception. It opens every index read-only.

That makes the assistant better at Delphi: exact answers replace pages of search results, so it spends seconds and a few tokens where it used to spend minutes and many. One command registers the server with Claude Code, VS Code or Cursor, merged into the existing configuration, backed up and removable.

MCP server · serve · Register the MCP server · Article: what the index saved you

04 — Command line

Scripts and builds

Everything on these pages is also a drag-lint command, many with JSON output, so it fits a build script or a CI job. workspace index indexes every project registered in a workspace in one pass. To keep formatting consistent too, DL can drive YADF, our Delphi formatter, on one unit or a whole project.

Command-line reference · workspace index · Format with YADF

DL earns its keep inside RAD Studio every day on HTR Micronite, the production software we build it alongside.