PasClaw is an ultra-lightweight personal AI agent in Delphi Object Pascal — a CLI assistant, HTTP gateway, OpenAI-compatible API, embedded web UI, MCP integration, scheduled tasks, skills, and channel bots, all in one binary.
The main README.md at the repo root is the landing page. These docs go deeper.
- Getting started — install with FPC or Delphi, run
pasclaw onboard, send your first message. - Configuration —
~/.pasclaw/config.jsonshape, environment variables,$PASCLAW_HOMElayout. - Commands — the top-level commands, their flags, and what each one writes to disk.
- Providers — the 19-entry catalog (Anthropic / OpenAI / Gemini / Groq / DeepSeek / OpenRouter / Ollama / vLLM / ...), fallback chain, prompt caching.
- Tools — built-in tools the model sees on every turn (
fs_read,fs_write,fs_grep,shell_exec,web_search,web_fetch,memory_search,session_search,kb_*,vault_*,send_message,execute_code,spawn,tool_output_get). - Advisor — a second model the agent consults mid-task through the
advisortool:advisor.*config,--advisor/--no-advisor,/advisor, what it is sent, the per-turn cap. - Web search —
web_search/web_fetchproviders and configuration. - Memory — the three tiers, the always-loaded budget,
workspace/memory/, FTS5 + hybrid vector backend,memory_fetch. - Maintenance — the nightly pass the gateway runs on its own (and
pasclaw maintainby hand): sweeps facts, sizes the core memory, audits skills and reviews the day. - Backup —
pasclaw backup/restore: archives with a redacted config and restore notes inside, rotated 7 / 4 / 6. - Knowledgebase —
pasclaw kbfor indexing reference documents (markdown / source code / HTML). - Skills —
$PASCLAW_HOME/workspace/skills/, GitHub + ClawHub install, SKILL.md format. - Sessions — persistence, resume,
/new//reset//compact, mid-looppasclaw steer. - Checkpoints —
/undo//redofor file-edit rewind via the zpaq-backed snapshot journal. - Workflows — saved tool chains: each one a tool (
wf_<id>) for the agent and over/mcp, every step through the permission rules, the agent asks you in the chat before saving one, and an approvals list holds the ones saved while nobody could be asked. - MCP servers — stdio + streamable-HTTP transports,
pasclaw mcp catalog, the bundled built-in list. - Cron — scheduled tasks, at-least-once delivery, per-job channel sinks.
- Agents — standing agents: a durable roster, and the mailbox they reach each other through (including mid-turn).
- Gateway and OpenAI-compatible API —
/v1/chat/completions,/v1/responses,/v1/mcp, embedded web UI, route table. - Editors: the Agent Client Protocol —
pasclaw acpfor Zed, JetBrains and other ACP clients: tool calls with diffs, permission prompts, plans, modes, saved sessions. - Desktop — the desktop client: workspaces, projects/tasks/jobs, the app factory, answer pages, and the system suite.
- Workspaces plan — making a workspace a real isolation boundary, and putting virtual desktops inside it.
- Auto-router upgrade plan — typed reasons, circuits, one cheap tier, and an offline tuning loop, borrowed at scale from experiential.
- Agent teams — ready-made team templates: pick one, point it at a goal or an existing project's task list, and it starts working.
- Agent teams plan — the design story behind them.
- Team board plan — rules the board holds instead of the prompts: a second agent's verdict, frozen criteria, dependencies, one queue for the human's calls, repeated causes turned into proven rules. Ideas from Pullboard.
- Chat channels — Telegram, Discord, Slack, Teams, LINE, WhatsApp, Matrix, IRC, Email.
- DOS —
PCLAW.EXE, the agent on an MS-DOS PC, reaching the model over a serial line throughpasclaw bridge. - Windows XP — the full
pasclaw.exebuilt for 32-bit Windows with Free Pascal, made to load on XP; HTTPS through OpenSSL, no bridge. - FreePascalOS —
pasclawfor the x86-64 UEFI OS written in Free Pascal, with its own compiler target; HTTPS through the system'slibhttp; what is left out, and the GPLv3 note for binaries. - Embedding in your own app —
TPasClawAgent/TPasClawServerTComponents for VCL/FMX/CLI binaries.
- Security and sandbox — workspace boundary, shell denylist, ordered allow/deny/ask permissions + policies file, SSRF guard, hashline race-safety.
- Observability — OpenTelemetry tracing,
/v1/stats, TUI/statsoverlay. - Troubleshooting — common errors and what to check.
- Architecture — how the agent loop, tool dispatch, fallback walk, and hooks fit together.
- Contributing — repo layout, build conventions, test conventions, PR style.
- Changelog — feature-by-feature history.
- container2wasm browser build — make PasClaw run in a browser tab via container2wasm.
Looking for the high-level pitch? See the root README.md.