PasClaw Star on GitHub
Open Source · Delphi Object Pascal

PasClaw

An AI Agent forged in Embarcadero Delphi — native code, tool-using LLM loops, and cross-platform muscle.

// Native binaries// Tool-calling loop// MIT licensed
Delphi Object Pascal AI Agents FireMonkey Cross-Platform VCL LLM Tools Native Speed Open Source Delphi Object Pascal AI Agents FireMonkey Cross-Platform VCL LLM Tools Native Speed Open Source Delphi Object Pascal AI Agents FireMonkey Cross-Platform VCL LLM Tools Native Speed Open Source

// Capabilities

Built for serious agents

Native Pascal Core

Compiled, fast, and binary-small. No interpreter, no runtime tax.

Tool-Using Loop

Reason → call tool → observe → repeat. Built-in agent control flow.

Cross-Platform

FireMonkey + VCL targets: Windows, macOS, Linux, iOS, Android.

Streaming Output

Token-by-token streaming responses straight into your Pascal app.

Extensible Tools

Register custom Pascal procedures the model can invoke at runtime.

Open Source

MIT licensed. Built by the Delphi community, for the Delphi community.

// Pipeline

A simple agentic loop

01

Prompt

Send a user goal into the agent from any Pascal app.

02

Reason + Tool-call

PasClaw plans, invokes registered Pascal tools, and observes results.

03

Result

Streaming response delivered back to your UI or service.

// Code

Pascal, with claws

agent.pas
uses
PasClaw.Agent, PasClaw.Tools;
var
Agent: TPasClawAgent;
Reply: string;
begin
Agent := TPasClawAgent.Create('claude-3-5-sonnet');
try
Agent.RegisterTool(TWebSearchTool.Create);
Agent.RegisterTool(TFileSystemTool.Create);
Reply := Agent.Run('Summarize the latest Delphi release notes.');
Writeln(Reply);
finally
Agent.Free;
end;
end.

Build AI agents in Pascal

Clone the repo, register your tools, ship a native agent. PasClaw is MIT licensed and ready to extend.