explaingit

regyssilveira/radia-plugin

13PascalAudience · developerComplexity · 3/5Setup · moderate

TLDR

RadIA adds an AI chat panel inside the Delphi IDE so you can explain code, fix bugs, generate tests, and refactor without leaving your editor. Supports Gemini, OpenAI, Claude, DeepSeek, Groq, and local Ollama models.

Mindmap

mindmap
  root((RadIA Plugin))
    AI Providers
      Google Gemini
      OpenAI
      Anthropic Claude
      DeepSeek and Groq
      Local Ollama models
    Chat Panel
      Edge browser renderer
      Markdown support
      Slash commands
      Saved history
    Code Actions
      Explain selection
      Refactor code
      Generate unit tests
      Find bugs
    Editor Integration
      Diff view apply
      Compiler error help
      Docs comment gen
    Data Tools
      JSON to Delphi class
      SQL to Delphi class
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Ask AI to explain or refactor a selected block of Delphi code without leaving the IDE

USE CASE 2

Right-click a compiler error and get an AI-suggested fix instantly

USE CASE 3

Generate unit tests or structured documentation comments for existing methods

USE CASE 4

Convert a JSON example or SQL table definition into Delphi data classes automatically

Tech stack

PascalDelphiEdge WebView2OllamaOpenAI APIGemini APIAnthropic APIPowerShell

Getting it running

Difficulty · moderate Time to first run · 30min

Requires Delphi 10.4+ on Windows 10/11. Install via PowerShell script or the IDE package manager, then add your own API key for whichever AI provider you choose.

No license information is mentioned in the explanation.

In plain English

RadIA is a plugin for the Embarcadero Delphi programming environment that adds an AI chat assistant directly inside the IDE. Delphi is a development tool for building Windows applications, and its IDE is the workspace where developers write and compile their code. This plugin attaches a chat panel to the sidebar of that workspace so you can ask AI questions without leaving the editor. The README is primarily in Brazilian Portuguese. The chat panel is rendered using a built-in Edge browser component, which lets it display formatted messages with code highlighting and Markdown support. It connects to whichever AI provider you configure: supported options include Google Gemini, OpenAI, Anthropic Claude, DeepSeek, Groq, and local models run through a tool called Ollama. You bring your own API key for each service. Conversation history is saved automatically to a local file so you can pick up where you left off after closing and reopening the IDE. Beyond basic chat, the plugin integrates with the Delphi code editor in several ways. You can select any block of code, right-click it, and get options to explain what it does, improve or reorganize it, generate unit tests for it, or look for bugs. When the plugin suggests a rewritten version, it shows a side-by-side comparison highlighting removed lines in red and new lines in green, with a single button to apply the change directly to your file. The plugin also connects to the compiler output panel, so you can right-click a build error and ask the AI to explain and suggest a fix. Additional features include automatic generation of structured documentation comments above method definitions, and a converter that can produce Delphi data classes from a JSON example or an SQL table definition. Slash commands in the chat box give quick access to common actions. The plugin requires Delphi version 10.4 or later and Windows 10 or 11. Installation can be done through a PowerShell script or manually through the IDE's package manager. Adding support for a new AI provider involves registering a new class in a metadata-driven registry rather than modifying the core plugin code.

Copy-paste prompts

Prompt 1
I have selected this Delphi procedure. Explain what it does in plain English and suggest any improvements: [paste code]
Prompt 2
Here is a Delphi compiler error message. Explain why it happens and show me the corrected code: [paste error]
Prompt 3
Generate a complete DUnit/DUnitX unit test suite for this Delphi method: [paste method]
Prompt 4
Convert this JSON structure into a Delphi data class with typed fields and a constructor: [paste JSON]
Prompt 5
Write structured XMLDoc comment blocks for each public method in this Delphi class: [paste class]
Open on GitHub → Explain another repo

← regyssilveira on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.