Skip to content

v0.1.5

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Nov 19:47
· 215 commits to main since this release
522b79a

PasClaw is an Object Pascal (FPC + Delphi) AI agent framework — a local
gateway, web UI, CLI, TUI and native desktop app for running agentic
coding/chat workflows against any provider.

This release has 37 pull requests since v0.1.4. Most of them are about what
the agent is allowed to do and how its work gets checked: an ordered
permissions list, git worktrees for subagents, background shell jobs,
held-out verification, and team boards that enforce review instead of asking
for it in a prompt. PasClaw can now be driven from an editor over the Agent
Client Protocol, and a terminal can attach to a running gateway. The web UI
has a new design and a context breakdown.

Several defaults changed, and a gateway with no token now refuses some
requests it used to answer. Read Upgrading before you install.

Downloads

You're on… Download
Windows (x64, incl. Windows-on-ARM) PasClaw-0.1.5-x64-setup.exe
Windows (32-bit) PasClaw-0.1.5-x86-setup.exe
Windows — portable (no installer) PasClaw-0.1.5-x64-portable.zip · PasClaw-0.1.5-x86-portable.zip
Linux (x86-64) pasclaw-0.1.5-linux-x86_64.tar.gz
Linux (ARM64) pasclaw-0.1.5-linux-aarch64.tar.gz

The Windows installers are self-contained (SQLite linked statically, TLS via
Windows SChannel) and can add pasclaw to your PATH. On Windows-on-ARM the
x64 installer runs via the built-in x64 emulation.

The Linux tarballs bundle OpenSSL 1.0.2 next to the binary so HTTPS works out
of the box; their only runtime dependency is libsqlite3 (apt install libsqlite3-0 if it's missing). Unpack and run ./pasclaw.

Highlights

Teams that enforce their own rules

Rules like "have the test engineer verify before you close it" used to live
only in role prompts, and nothing enforced them. Now the task store and the
tools do, and a team project does not need to be a git repository.

  • Review. A task reaches the new review status only through
    task action=submit with evidence, and leaves it only through a verdict
    from a reviewer who did not do the work, or from you. A rejection goes back
    to the same owner with the reason. Acceptance criteria freeze once work
    starts, and every change is logged in projects/<p>/activity.jsonl. When
    no agent is named as reviewer, only you can give the verdict. (#622, #627)
  • Dependencies and claiming. Tasks can wait on other tasks.
    task action=next claims the oldest ready task under one lock, so two
    agents never get the same one. Leases hand back work whose holder's run
    died. (#622)
  • Needs you. An agent escalates with agent action=ask_operator. A
    desktop window collects decisions, pending permission requests and reviews
    only you can give. Decisions can be announced in a chat and answered there
    (D12 yes) by senders listed in decisions.answer_from. (#622)
  • Proven rules. When the same cause is rejected twice, a check can be
    drafted. It counts as proven only if it fails on the rejected snapshot and
    passes on the accepted one, and it is installed only when you approve it.
    (#622)
  • Lanes. A template agent can be limited to path globs. Its file writes
    elsewhere are refused. (#622)
  • Faster handoffs. Mail now wakes the team tick. In the recorded replay
    (make bench-teamboard) a handoff went from about 30 s to under a second.
    (#623)
  • Software Factory. Start → Software Factory, or Build with a team in
    Ask, takes one sentence and a team template and opens a window with the
    conversation with the team's lead beside its live board. (#624)
  • No flags to set. A standing agent always has the board tools and the
    agent tool. An ordinary chat finds them with tool_search and asks you
    before using one. (#624)
  • Security Engineer. A new team member that follows untrusted input to
    where it is used, files only holes it has demonstrated, and fixes each kind
    at the boundary with a test that sends the attack. It joins
    software-team, and a new security template sweeps an existing project.
    A fixed finding can be turned into a proven check that keeps that kind of
    hole shut. (#625)

Editors and terminals

  • pasclaw acp runs PasClaw as an Agent Client Protocol agent, so Zed,
    JetBrains IDEs and ACP plugins for Neovim and Emacs can drive it. It uses
    the same loop, tools, permission rules, sessions, modes and providers as
    pasclaw agent. The editor sees tool calls, diffs, the plan, permission
    prompts and cancel, and the editor's folder is the session's project. See
    docs/acp.md. (#630–#635)
  • Token streaming. OpenAI-compatible providers and Anthropic now stream
    replies as they are written. Before, the OpenAI-compatible stream handed
    over the whole reply as one chunk. Model thinking streams to ACP editors
    separately from the reply. Gemini and the relay provider still send each
    round whole. (#633, #634, #635)
  • Attach mode. A running gateway writes $PASCLAW_HOME/run/gateway.json.
    pasclaw agent --attach and pasclaw tui --attach then run each turn on
    the gateway's session, instead of writing the same session files as a
    second writer with no lock. cli.attach: auto attaches whenever a gateway
    is up. (#613)

What the agent may do

  • Ordered permissions. One permissions list of allow / deny / ask rules
    over tool names and their resources; the last match wins. An ask reaches
    the TUI footer, the CLI prompt, the desktop, an ACP editor or the
    component's OnAsk. With nobody to ask, the answer is deny.
    <home>/policies.json holds rules that PUT /v1/config cannot change, and
    pasclaw permissions test <tool> [resource] shows what the gate would
    decide. (#611)
  • No more side doors. Tool calls made from execute_code scripts now
    pass the same gates as direct calls. Shell skills pass the denylist and run
    through the active shell backend. shell_exec has a timeout. (#608)
  • Git worktrees. worktree_create / worktree_list / worktree_remove,
    and spawn / spawn_background can give a subagent its own checkout so
    two of them stop breaking each other's build. Sessions remember the folder
    they worked in. (#612)
  • Background shell jobs. shell_background runs a build or a test suite
    as a job with a handle. Its result reaches the model at the start of its
    next turn, and cancel kills the command and everything it started. (#619)

Checking the work

  • Held-out verification. verification.scenarios names a directory of
    checks the agent never sees. They run after the model's final answer. A
    failure comes back to the model as one more turn, up to
    verification.max_rounds. /v1/chat reports a verification object, and
    /v1/chat/completions and /v1/responses end an unverified answer with a
    notice that says so. (#618)
  • pasclaw learn now gives each failure to the tool that caused it,
    counts misuse notes, and runs in the nightly pasclaw maintain, which adds
    a SCARS.md anchor for each problem that recurs across sessions. (#628)

Memory and maintenance

  • The always-loaded memory files (SOUL.md, USER.md, MEMORY.md, two
    daily notes) are each capped by memory_core_budget_bytes, with a note
    that memory_search reaches the rest. (#606)
  • pasclaw maintain is a nightly pass: it sweeps expired facts, sizes the
    memory files, summarises sessions, audits skills, and can ask for a
    critique and back up. Schedule it with
    pasclaw cron add nightly "0 3 * * *" @maintain. (#606)
  • pasclaw backup / restore, rotated 7 daily / 4 weekly / 6 monthly.
    (#606)
  • background_model moves distillation, compaction, the heartbeat, the
    goals judge and the maintenance review to a cheaper model on the default
    provider. pasclaw route report shows the split. (#606)

PasClaw Browser

A Windows desktop browser on WebView2 where every tab has a PasClaw chat
beside it that can read the page and change it. It has six page tools, stamps
every message with the tab's URL, title and selection, and asks before any
change to the page. Each tab is its own session. It is not in the downloads
above: build browser-desktop/PasclawBrowser.dproj with Delphi 11 or later,
on Windows. (#604)

Web UI

  • Redesign. One set of design tokens, a real light theme instead of an
    inverted dark one, one icon set, and a layout that works at phone width.
    (#638)
  • Context breakdown. The context button in the chat toolbar, or /context, shows what the next turn
    puts in front of the model, part by part, against the model's window or
    the compaction threshold. It is backed by POST /v1/context. (#636)
  • Stats. The Stats tab and /v1/stats showed token counts no provider
    had reported, in the billions or negative. That is fixed, and a
    Reset totals button clears what earlier builds saved. (#639, #640, #641)
  • A provider error is shown as an error turn with retry. It is no longer
    saved as the assistant's reply. (#636)
  • A reply with CRLF line endings no longer freezes the tab. (#637)

Cost and speed

  • Code Mode for MCP servers. A server's tools are called from a script
    and never sent to the model as schemas. Only the script's output enters the
    conversation. (#609)
  • Fewer schemas. --no-mcp keeps built-in tools deferred behind
    tool_search, which makes its requests 34% smaller on the RAG bench.
    desktop stays deferred until a desktop connects. (#615)
  • Fewer turns. The prompt now says that every call in one response runs
    before the model is asked again, and it lists the workspace's top level.
    The RAG bench task went from 6 turns to 2. (#616)
  • Two seconds off every turn. In a home nobody had steered, each loop
    iteration waited 2 s on a lock it could never take. Fixed on the gateway,
    the CLI and the TUI. (#617)
  • code_outline finds where a name is defined, or what a file or folder
    holds, without listing every use. On 34 real lookups it returned 7,021
    bytes where grep_files returned 47,690. (#626, #627)

Skills and prompt

  • /name args runs an installed prompt skill in pasclaw agent and the TUI,
    with $ARGUMENTS and $1..$9 in its template. Frontmatter gains
    agent:, model: and subagent:. (#614)
  • Config instructions adds files, globs and URLs to the prompt after
    AGENTS.md. (#614)
  • prompt_cache.warm keeps the provider's prompt cache warm while you are
    idle. It is off by default, and each ping is a billed request. (#614)

Gateway security

  • An unset ${PASCLAW_GATEWAY_TOKEN} in config.json used to become the
    token itself, as literal text from a public template. It now means no
    token. (#629)
  • A gateway with no token refuses requests from other sites' pages and from
    DNS-rebinding pages. Before, such a page could drive the agent and its
    shell. (#629)

Upgrading

Most changes need nothing from you. The ones below change a default, change
what you see, or refuse something that used to be allowed. No PR in this
release asks you to migrate data. The new review task status is "appended
to the status list, so existing stored values don't change meaning" (#622),
and an empty permissions list "changes nothing" (#611).

Gateway and API

  • An unset ${PASCLAW_GATEWAY_TOKEN} is no token. Before, the marker's
    literal text was accepted as the token. Now "GetEffectiveGatewayToken
    returns '' for a marker whose variable is unset, which means no token."
    For deployments: "A Docker or DigitalOcean deploy without the token now has
    no token. Requests through the app's domain get 403 with a message saying
    to set PASCLAW_GATEWAY_TOKEN; health checks still pass." Set the
    variable. (#629)
  • A gateway with no token refuses other sites and domain names. It
    answers 403 to "an Origin from another site (another site, another port,
    null)", which "also refuses the --apps-port origin, so app code can't
    call the main API", and to "a Host that is a domain name other than
    localhost, *.localhost or a name in the new gateway.allowed_hosts."
    In the PR's words: "Breaking for one setup: a token-less gateway reached by
    a domain name (a reverse proxy, a LAN name, a remote
    pasclaw relay --gateway-url http://name:8088) now gets 403 until that
    name is added to gateway.allowed_hosts, or a token is set. … Reaching it
    by IP works as before." Without the relay token, /v1/relay/* "answers only
    the gateway's own pages (Sec-Fetch-Site: same-origin) and non-browsers."
    CLI tools, SDKs, MCP clients, the web UI, the desktop and any gateway with
    a token are unaffected. (#629)
  • Docker and DigitalOcean examples bind to loopback. "docker/README.md
    and make -C digitalocean run publish on 127.0.0.1", and ".env.example
    no longer carries a placeholder token that everyone can read." (#629)
  • Provider errors are HTTP errors. A provider refusal on
    /v1/chat/completions "now gets HTTP 502
    {"error": {message, type: "provider_error", upstream_status}}, or, with
    stream: true, an OpenAI error frame then [DONE]." Before, it was HTTP
    200 with the error text as the reply, and a named session saved it as an
    assistant message. A client that reads only the reply text should handle
    the 502. (#636)
  • GET /v1/config masks more. It now uses the same masking function as
    pasclaw backup --redact, which also masks "the webhook-style
    channels[].target and crons[].channel_target." (#606)
  • Ctrl-C stops the gateway cleanly. Before, "Nothing caught SIGINT /
    SIGTERM / Ctrl-C … the process died where it stood". Now the first signal
    asks pasclaw gateway / serve to stop and "a second one kills".
    gateway --telegram stops "once the current long-poll returns (up to
    ~25 s)." (#613)

Tools and what the model sees

  • Code Mode is the default for MCP servers. "Existing MCP servers stop
    appearing as tool schemas after upgrading; the model reaches them from
    scripts, which is the point, and the prompt tells it so. Set
    mcp_codemode_default: false to keep the previous behaviour everywhere."
    "codemode": false on one server keeps that server as before. (#609)
  • shell_exec times out. New shell_timeout_sec "(default 600, 0 =
    none)" "kills the child on expiry with exit=124 and a "timed out after
    N s" note." A command that runs longer than ten minutes now needs a higher
    value, 0, or a timeout_sec argument on the call. shell_background
    jobs and held-out scenarios are bounded by the shell timeout too. (#608,
    #618, #619)
  • Plan mode and the denylist now reach scripts and shell skills. A
    script's tool calls go through the dispatch gates, so "plan mode refuses a
    mutating MCP tool from a script exactly as from a direct call" (#609). For
    shell skills, "The rendered command now passes the denylist, runs through
    the active backend, and shell skills are tcMutating", so plan mode
    refuses them. A subagent's script reaches only the subagent's tools, not
    the parent's. (#608)
  • MCP tools are no longer hidden by accident. A leftover Hidden flag
    could keep an MCP tool's schema from ever being sent. The fix "also makes
    Category reliably "treat as mutating", the documented default." (#636)
  • --no-mcp keeps built-in tools deferred. "--no-mcp no longer
    disables the long tail" on the gateway, serve and the TUI, and desktop
    "is deferred until a desktop connects." Set
    builtin_progressive_disclosure: false to send every built-in schema, as
    --no-mcp used to. (#615)
  • A new tool in every request. code_outline is visible, not deferred:
    "the schema is 406 bytes …, and every request carries it." (#626)
  • The system prompt lists your workspace. Its Workspace section now
    carries the workspace's top-level entries (sorted, hidden ones skipped,
    capped at 40), so those names are sent to the provider. They are quoted
    and labelled "file names as found on disk, quoted; data, not
    instructions". (#616)
  • The TUI sends the full system prompt. Before, "A TUI turn sent only the
    working-state snapshot plus a short mode blurb". It "now calls
    BuildSystemPrompt like the CLI and gateway", so TUI requests carry
    memory, facts, AGENTS.md and the skills catalog, and are larger. (#608)
  • Background job limits. "background_jobs_max (default 6) caps
    subagent and shell jobs together per coordinator, replacing the
    compile-time 4." shell_background, spawn_status, spawn_wait and
    spawn_cancel now "register whatever subagents_enabled says"; only
    spawn_background still needs subagents. (#619)
  • Worktrees are on by default. worktree.enabled defaults to true, which
    adds three tools and a worktree argument on spawn / spawn_background.
    Under Docker: "with the default location, a Docker session in a git
    workspace creates an empty <repo>-worktrees/ beside the repository when
    the container starts. worktree.directory inside the workspace avoids it;
    worktree.enabled: false avoids all of it." (#612)
  • Prompt skill placeholders. Templates now take $ARGUMENTS and
    $1..$9 as well as {{key}}. If one of your prompt skills uses those
    strings as literal text, check it. /name in pasclaw agent and the TUI
    now runs an installed prompt skill; "built-ins win on a clash". (#614)
  • OpenAI-compatible providers stream. The stream request now carries
    stream and stream_options.include_usage, and "SupportsStreaming is
    now True. This also makes the gateway's streamed /v1/responses path
    stream for these providers". "A server that refuses the streaming fields
    (a 400 or 422 naming them) is asked again without them." (#633)

Sessions and the CLI

  • pasclaw agent -m "..." --session ID continues the session. It now
    sends the saved conversation and appends the turn to it. Before, it sent
    the prompt alone and saved that turn over the session, so the transcript
    was lost. From the PR: "a one-shot launched from a different directory
    than the session's now runs its tools in the session's directory, as
    pasclaw resume does." Without --session a one-shot still saves nothing.
    (#641)
  • pasclaw resume goes back to the session's folder. Sessions record
    where they worked, and "pasclaw resume makes it the workspace again when
    it still exists." (#612)

Teams

  • Team members always have their tools; chats ask. "A standing agent
    always has the board tools and the agent tool." An ordinary chat finds
    them with tool_search and is asked before each use. With nobody to ask,
    "the call is refused, never quietly allowed." "The old switches
    [desktop_tools_enabled, agent_tools_enabled] still mean "yes, every
    chat" for configs that set them." "These tools aren't exposed over
    PasClaw's MCP server, which has nobody to ask." (#624)
  • Reviewed boards. "team up turns review on for its board." There, "an
    agent's done is refused, and a finished job submits the task instead of
    closing it. The operator can still close anything". The file tools can no
    longer write the board's own files. (#622)
  • Nobody to review means you. "An agent's verdict needs a non-empty
    reviewer list that names it, and the operator can always give one." When a
    task has no reviewer, for example a lead's own task on a board without
    review.by, the verdict waits for you in Needs you. (#627)
  • software-team has a Security Engineer. "sec joins software-team on the
    default tier, not fast, and the kickoff hands it a "Security sweep" task
    that waits on the build." (#625)
  • Smaller team changes. agent list "returns each role's first line
    instead of every full role prompt". Assigning a task now messages the
    owner, and "the lead's role no longer messages assignees as well". A team
    the board parked goes back to work when new work arrives; "A team the
    operator parked (team down, CLI or HTTP) stays parked." (#623)

Memory and maintenance

  • Memory files are capped. The always-loaded files are "each cut at
    memory_core_budget_bytes (default 16 KB, 0 = no cap) on a line
    boundary". A larger MEMORY.md is cut, and the model is told how many
    bytes were left out and that memory_search reaches them. Set 0 to load
    whole files. SOUL.md and USER.md are loaded when present. (#606)
  • fast_model now carries background work. background_model, "falling
    back to fast_model, then the main model, now carries fact distillation
    (CLI, TUI, gateway), history compaction …, the heartbeat, the goals judge
    and the maintenance review." "A config with neither key behaves exactly as
    before." If you set fast_model, that work moves to it, on the default
    provider only. (#606)
  • Backups contain your keys. "config.json goes in as is by default
    (backup.include_secrets: true), so a restore brings every connected API
    back. That makes the archive a credential". Use --redact, or
    backup.include_secrets: false, for a masked copy. (#606)
  • pasclaw maintain writes SCARS.md. The nightly pass, and
    @maintain, now add "an anchor for each recurring pattern it lacks".
    "Existing anchors, and what the operator wrote under them, are left
    alone." --dry-run leaves the file untouched. (#628)

Stats and the web UI

  • Stats totals saved by earlier builds stay wrong. #639 fixes the
    counting, but "Totals already saved are not corrected." The Stats
    tab's Reset totals button, or POST /v1/stats/reset, "sets every saved
    counter to zero. Conversations are kept." The reset "cannot be undone",
    prompt_cache_warm_pings "is not reset", and "A session open in another
    process (a TUI, say) writes the counters it holds in memory back with its
    next save." (#639, #640)
  • The theme follows the OS. "With no saved theme choice, someone whose OS
    is set to light now gets the light theme. Before, the default was always
    dark." Some labels changed: "Params" is now "Parameters", "details" is
    "Tool details", and the mode button reads Build / Plan / Improve / Space.
    (#638)

First run

pasclaw onboard   # configure a provider + workspace
pasclaw serve     # start the gateway + web UI

Docs are bundled in each download under docs/, and in the repo README.