PITWALL

pitwall extension

The user's extensions: see how each stands and set one up, each step approved by the user in Pitwall (list, status, log, install, on, setup, service, first-run, set, secret, connection…). For authors, check, test and new work on a folder, offline, without the app (exit status 1 when a check fails); dev builds a tile and loads it into the running app.

extension check

Read an extension's folder without running anything: its manifest and limits, the files it names, and what it would run and set, in plain words. For a tile: its component's world and imports (only WIT 0.1 and WASI 0.2), its size, its input schemas and permission reasons. A component file alone (tile.wasm) is checked as such.

pitwall extension check [OPTIONS] <FOLDER>
Argument
FOLDERThe extension's folder (the one with extension.json), its extension.json, or a component (.wasm).

extension test

Run what the folder's test/pitwall.json expects: its actions' command lines, the variables it sets, its adapter's run and its agreement with its fake server (skipped when the adapter's program, such as node, isn't installed). For a tile project (Cargo.toml and contributes.tiles): build it, check it, and run cargo test (its output on stderr).

pitwall extension test [OPTIONS] <FOLDER>
Argument
FOLDERThe extension's folder.
pitwall extension test . --human        # in CI: exit status 1 when a check fails

extension new

Write a starter into a new folder: a manifest, a Node adapter that speaks protocol 1 and shows one inbox thread, a README and test/pitwall.json. Its id is the folder's name. With --protocol 2 it asks for agents.read and shows your agents in its thread. With --view it draws a list view tile instead, with a palette command and a note on your agents' rows. With --service it adds a tiny local server (server.mjs) that Pitwall keeps running while the extension is on, once the user confirms its command. With --template or --program it writes a tile instead: a Rust project (Cargo.toml, extension.json, src/lib.rs, tests/, README.md, and the authoring skill for coding agents) built to a WebAssembly component with the pitwall-extension SDK.

pitwall extension new [OPTIONS] <FOLDER>
Argument
FOLDERThe folder to make (absent or empty), named like my-extension.
Option
--name <NAME>What Pitwall calls it (default: from the folder's name).
--protocol <PROTOCOL>The adapter protocol it speaks: 1 (an inbox of its own) or 2 (also reads Pitwall, with permissions).
--viewA view tile, a palette command and sidebar notes (format 2, protocol 2) instead of an inbox.
--serviceAn inbox and a small local server Pitwall keeps running while it is on: the extension's service (format 2, protocol 1).
--template <TEMPLATE>A tile (a Rust WebAssembly component) from this template: blank (a counter), list (a checklist an agent can open with items), form (a form with a setting, opened with a draft), program (a Setup view that runs an approved native helper).
--programA tile with a Setup view and a native helper through the public Programs SDK. The example checks Git's version after approval.
--sdk <CHECKOUT>With --template or --program: take the SDK from this checkout of Pitwall's repository (path dependencies; relative when the new folder is inside the checkout) instead of its git URL.
--no-skillWith --template or --program: don't copy the authoring skill into .agents/ and .claude/; AGENTS.md points to the SDK's own copy instead (for a tile kept inside Pitwall's repository, where copies would drift).
pitwall extension new ~/code/my-inbox --name "My inbox"
pitwall extension check ~/code/my-inbox --human
pitwall extension test ~/code/my-inbox --human

extension dev

Develop a tile: build it (cargo build --release --target wasm32-wasip2), copy the component beside extension.json, check it, and ask the running Pitwall to load it as a development extension (reloaded keeping its state); then again after every change to the folder until stopped. One JSON line per round.

pitwall extension dev [OPTIONS] [FOLDER]
Argument
FOLDER (optional)The tile project (default: this folder).
Option
--onceOne round, then exit (status 1 when the build or the check failed).

extension list

The installed extensions (id, name, version, on or off, where it came from, an update already known) and those Pitwall ships that aren't installed. Fetches nothing.

pitwall extension list [OPTIONS]

extension status

One extension's setup as data: its checklist (each step done, to do or blocked, and why), connections (secrets only as set or not), the adapter's state, the service's, permissions, accounts not set up yet, and next: the one step to take, by you or by the user.

pitwall extension status [OPTIONS] <ID>
Argument
ID
Option
--connection <CONNECTION>The connection to show (name or id; default: the one Settings shows).

extension log

Its card's Log: protocol lines, stderr and its service's output, secrets already taken out.

pitwall extension log [OPTIONS] <ID>
Argument
ID
Option
--lines <LINES>The newest this many lines (at most 500).

extension install

Install one Pitwall ships; a tile package (a .pwtile file, with its signature beside it as <file>.pwsig), installed or, when it is installed already, updated to it; or (a folder: a path with a /) an extension of tiles from a folder on this computer, as a preview: copied, unsigned, never updated. A package's signature is checked before anything is unpacked; its key is trusted for the extension's updates from then on. It stays off. Asks the user.

pitwall extension install [OPTIONS] <ID>
Argument
IDIts id, a .pwtile file, or the folder with its extension.json.
Option
--unsignedA package without a signature may install (marked as a preview, as a folder is).
--new-keyA package signed by another key than the installed version (or not signed while it was) may replace it; the new key is trusted from then on. Only when its author told you the key changed.

extension pack

Package a tile extension into a .pwtile file: its extension.json, tile.wasm, README.md, and if there a licence, CHANGELOG.md, agents/SKILL.md, the input schemas its tiles name, assets/ (svg, png, webp) and screenshots/ (png, webp). Nothing else of the folder (sources, target/). The component is checked first, as check does. The same files give the same file. Offline.

pitwall extension pack [OPTIONS] [FOLDER]
Argument
FOLDER (optional)The tile project (default: this folder). Build it first (pitwall extension dev --once).
Option
-o, --out <OUT>Where to write it (default: <id>-<version>.pwtile in the folder).

extension sign

Sign a .pwtile with an encrypted Pitwall signing key, writing <file>.pwsig beside it. Make keys with pitwall catalog setup --directory <dir> and keep them out of repositories. Prompts for the password, or reads PITWALL_SIGN_PASSWORD. Offline.

pitwall extension sign [OPTIONS] <FILE>
Argument
FILEThe package.
Option
--key <KEY>Your encrypted Pitwall key (or set PITWALL_SIGN_KEY).

extension publish

Prepare a signed .pwtile for the extensions index: writes its entry (extensions/<id>.toml, and authors/<handle>.toml the first time), beside the file or into your clone of the index with --index-dir, and prints the link that opens the pull request on GitHub. Release the .pwtile and its Pitwall signature on GitHub first. Never pushes or uploads anything. Offline.

pitwall extension publish [OPTIONS] --repository <REPOSITORY> --author <AUTHOR> <FILE>
Argument
FILEThe signed package (its .pwsig beside it).
Option
--repository <REPOSITORY>Its source on GitHub (https://github.com/<owner>/<name>), where it is released. Required.
--author <AUTHOR>Your handle in the index (authors/<handle>.toml). Required.
--github <GITHUB>Your GitHub login (default: the repository's owner).
--category <CATEGORIES>A category (git, ci, databases, apis, notes, monitoring, docs, fun, other); up to 3. Needed for a new extension.
--license <LICENSE>Its licence as SPDX (MIT, Apache-2.0…). Needed for a new extension.
--commit <COMMIT>The commit its component was built from (default: the folder's git HEAD).
--url <URL>The release asset's address (default: <repository>/releases/download/v<version>/<file name>).
--index-dir <INDEX_DIR>Your clone of the index (a fork): the entry is read and written there; you commit and push it yourself.
--updateAn update to a listed extension, without a clone: prints the [[versions]] block to add and the link to edit the entry.
--index <INDEX>The index repository on GitHub.

extension on

Turn it on, granting what its permission screen grants by default (reading; nothing that acts). The approval shows what it runs, sets and adds. Asks the user.

pitwall extension on [OPTIONS] <ID>
Argument
ID

extension off

Turn it off. Asks the user.

pitwall extension off [OPTIONS] <ID>
Argument
ID

extension check-updates

Look at its source for a newer release, as "Check for updates" does. Installs nothing.

pitwall extension check-updates [OPTIONS] <ID>
Argument
ID

extension update

Update it to the release found (check-updates first). The approval lists what changes. Asks the user.

pitwall extension update [OPTIONS] <ID>
Argument
ID

extension remove

Remove it: its settings and secrets go, its service's data stays. Asks the user.

pitwall extension remove [OPTIONS] <ID>
Argument
ID

extension setup

Run a setup action (default: the first not done). The approval lists each command line, per account. Asks the user.

pitwall extension setup [OPTIONS] <ID>
Argument
ID
Option
--action <ACTION>The action's id (see status).
--connection <CONNECTION>The connection whose settings it uses (name or id).

extension service

Its local service: confirm its commands (and start it), start, stop, restart (or look again), or update (its install action, then started again). Never one running elsewhere. Asks the user.

pitwall extension service [OPTIONS] <ID> <WHAT>
Argument
ID
WHAT

extension first-run

Its service's first run (a first sign-in): the link it prints opens in the user's browser; you only hear that it did. Asks the user.

pitwall extension first-run [OPTIONS] <ID>
Argument
ID

extension set

Set a plain setting (never a secret). Asks the user.

pitwall extension set [OPTIONS] <ID> <KEY> <VALUE>
Argument
ID
KEY
VALUE
Option
--connection <CONNECTION>The connection (name or id; default: the one Settings shows).

extension secret

Show the user a secret setting's field in Pitwall, next to your terminal. Its value never comes or goes here: wait for the user and read status to see it set.

pitwall extension secret [OPTIONS] <ID> <KEY>
Argument
ID
KEY
Option
--connection <CONNECTION>
--agent <AGENT>The agent whose terminal Settings opens beside (default: the one running this, from PITWALL_AGENT_ID).

extension connection add

Add a connection (another server or key).

pitwall extension connection add [OPTIONS] <ID> <NAME>
Argument
ID
NAME

extension connection rename

Rename connection CONNECTION (name or id).

pitwall extension connection rename [OPTIONS] <ID> <CONNECTION> <NAME>
Argument
ID
CONNECTION
NAME

extension connection remove

Remove connection CONNECTION with its settings and secrets.

pitwall extension connection remove [OPTIONS] <ID> <CONNECTION>
Argument
ID
CONNECTION
Option
--default <DEFAULT>When it is the default: the connection that becomes the default.

extension tools

The tools its tiles give agents (all extensions' without an id): name, kind (show, present, read, act), what it does, its input.

pitwall extension tools [OPTIONS] [ID]
Argument
ID (optional)

extension commands

The tools its tiles offer the command line ("expose"), with their arguments: what run takes.

pitwall extension commands [OPTIONS] [ID]
Argument
ID (optional)

extension call

Call one of its tiles' tools with a JSON input; the result as MCP gives it to agents. Who calls is who runs this: an agent in its terminal, or you in a plain Pitwall terminal (read runs, act asks you in Pitwall); outside Pitwall only show tools.

pitwall extension call [OPTIONS] <ID> <TOOL>
Argument
ID
TOOLThe tool's name (current_messages, or hello__current_messages).
Option
--input <INPUT>The input as JSON text, or - to read it from stdin.
--timeout <TIMEOUT>Give up sooner than the tool's own time (seconds; never longer).

extension run

Run one of its tiles' commands: --<property> <value> for each input property after --, or --json <text|-> for the whole input. Prints the result's JSON (its text with --human). Exit status: 1 the tile answered with an error, 3 refused or denied, 4 not available, 5 timed out.

pitwall extension run [OPTIONS] <ID> <COMMAND> [-- <PROPS>...]
Argument
ID
COMMAND
PROPS (optional)The input's properties: -- --item a --text "hi".
Option
--json <JSON>The whole input as JSON text, or - for stdin.
--timeout <TIMEOUT>Give up sooner than the tool's own time (seconds; never longer).