PasClaw
An AI Agent forged in Embarcadero Delphi — native code, tool-using LLM loops, and cross-platform muscle.
// 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
Prompt
Send a user goal into the agent from any Pascal app.
Reason + Tool-call
PasClaw plans, invokes registered Pascal tools, and observes results.
Result
Streaming response delivered back to your UI or service.
// Code
Pascal, with claws
usesPasClaw.Agent, PasClaw.Tools;varAgent: TPasClawAgent;Reply: string;beginAgent := TPasClawAgent.Create('claude-3-5-sonnet');tryAgent.RegisterTool(TWebSearchTool.Create);Agent.RegisterTool(TFileSystemTool.Create);Reply := Agent.Run('Summarize the latest Delphi release notes.');Writeln(Reply);finallyAgent.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.