Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey, Delphi Android, Delphi IOS

Build Better Code With Two AI Models Working Together

Developer Ilia Kuzmin has released DelphiLoop, an agentic AI coding application built entirely in Delphi that uses two AI models in a continuous generate > review > refine loop to produce higher-quality Object Pascal code.

Instead of relying on a single LLM response, DelphiLoop assigns one model as the Executor to write code while a second Reviewer analyzes it for bugs, memory leaks, logic errors, and poor practices. The cycle repeats until the reviewer reports no remaining issues or a configurable iteration limit is reached.

DelphiLoop works with local models through Ollama as well as cloud providers including OpenAI, OpenRouter, and other OpenAI-compatible APIs. Models can be mixed and matched, allowing, for example, a local coding model to collaborate with a cloud-based reviewer.

The application also includes a native FireMonkey chat interface, Delphi syntax highlighting, collapsible code revisions, customizable agent prompts, token usage tracking, and one-click code copying—all implemented without browser components or external dependencies.

Check the DelphiLoop source for how it uses two AI agents to iteratively write and improve Delphi code.

Exit mobile version