Author Topic: Lazarus Coding Agent – Open-Source AI Coding Agent for Lazarus [Beta]  (Read 407 times)

aolbrich

  • Newbie
  • Posts: 2
Hi everyone,

I've been experimenting with bringing a proper AI coding agent directly into Lazarus, and I've now reached the point where I'd like to share the first beta with the community.
(tested only on linux so far)
Lazarus Coding Agent

The idea is not just to add an AI chat window to Lazarus, but to build something closer to the agent experience available in modern AI coding environments: an agent that understands the project, can inspect and modify files, use tools, build the project, see errors, and continue working on a task.

The current beta includes:

- Ask mode – questions, explanations and coding help without modifying the project
- Plan mode – analyse a task and create an implementation plan before touching the code
- Agent mode – autonomously work through multi-step coding tasks using tools
- Read, search, create and modify project files
- Run commands and build Lazarus projects
- Inspect build/compiler errors and continue working from them
- Conversation history and automatic context management for longer sessions
- Multiple LLM providers: OpenAI, OpenRouter, Nous Portal, Ollama/local models and custom OpenAI-compatible endpoints
- Model selection directly from the Lazarus toolbar

Native Lazarus integration with a dockable/floating agent window

There is quite a bit more planned, including better Lazarus/Free Pascal awareness, codebase indexing/RAG, documentation knowledge and eventually specialised cooperating agents.

A note about the beta: so far I've only developed and tested it on Linux. Lazarus is cross-platform, but I haven't yet tested this version on Windows or macOS. I plan to test Windows next.

So if anyone feels adventurous enough to try it on another platform, I'd be particularly interested in hearing what works — and what breaks. 🙂

The project is open source and available here:

https://github.com/olbrichattila/lazcodingagent

Installation instructions are in the README.

This is an early beta, so bugs and rough edges are expected. I'd be very interested in feedback from Lazarus users about what an AI agent should understand about Lazarus and Free Pascal that generic coding agents don't.

Contributions, ideas, bug reports and criticism are all welcome.

My longer-term goal is fairly simple: I'd like Lazarus to have a genuinely useful open-source agentic coding experience of its own.

« Last Edit: October 04, 2026, 11:18:55 pm by aolbrich »

 

TinyPortal © 2005-2018