Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PasClaw documentation

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

  • Getting started — install with FPC or Delphi, run pasclaw onboard, send your first message.
  • Configuration — ~/.pasclaw/config.json shape, environment variables, $PASCLAW_HOME layout.
  • Commands — the top-level commands, their flags, and what each one writes to disk.

Capabilities

  • 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 advisor tool: advisor.* config, --advisor / --no-advisor, /advisor, what it is sent, the per-turn cap.
  • Web search — web_search / web_fetch providers 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 maintain by 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 kb for 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-loop pasclaw steer.
  • Checkpoints — /undo / /redo for 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).

Interfaces

  • Gateway and OpenAI-compatible API — /v1/chat/completions, /v1/responses, /v1/mcp, embedded web UI, route table.
  • Editors: the Agent Client Protocol — pasclaw acp for 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 through pasclaw bridge.
  • Windows XP — the full pasclaw.exe built for 32-bit Windows with Free Pascal, made to load on XP; HTTPS through OpenSSL, no bridge.
  • FreePascalOS — pasclaw for the x86-64 UEFI OS written in Free Pascal, with its own compiler target; HTTPS through the system's libhttp; what is left out, and the GPLv3 note for binaries.
  • Embedding in your own app — TPasClawAgent / TPasClawServer TComponents for VCL/FMX/CLI binaries.

Operations

  • 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 /stats overlay.
  • Troubleshooting — common errors and what to check.

Inside PasClaw

  • 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.

Specialised


Looking for the high-level pitch? See the root README.md.