Permissions
PreviewPreview. What an extension's tile may do, and how you decide. This page is written for people installing extensions first, and for authors after that.
- What a tile can do without asking
- The grants
- The permission screen
- Agents opening a tile
- Signed packages and updates
- Unsigned preview tiles
- For authors
- What comes later
- External browser links
What a tile can do without asking
A tile runs in a sandbox. It starts with no files, no network and no programs: it can't read your projects, reach the internet, start anything or see your agents' terminals. It can't read other extensions' data, settings or secrets.
What every tile has, with no permission, reaches only its own things:
- its own views in the layout, drawn by Pitwall;
- its own Log;
- its own timers, which pause while it is hidden;
- its own stored data, at most 10 MiB, and its own database, at most 100 MiB;
- its own settings and secrets, which you set in Settings;
- toasts, at most 3 a minute;
- one button in the top bar, if it declares one, which you can hide;
- the extension's own server, if it has one.
Platform services describes each of these for authors.
The grants
| Permission | Gives | Starts | Risk |
|---|---|---|---|
memory | More memory than the 64 MiB every tile gets, up to the size the extension names (at most 512 MiB) | granted | Low: it can use more of your computer's memory |
sql | A larger database than the 100 MiB every tile gets, up to the size the extension names (at most 2048 MiB) | granted | Low: it can use more of your disk |
net | Connections to the servers the extension names, listed on the permission screen | on | Medium: what it reads or sends goes to those servers |
notify | Notifications, at most 3 a minute | on | Low |
show | Opening a file in Pitwall's editor, or a web page in a web tile | off | Low: it shows you something; it gets nothing back |
agents.read | Your agents' names, kinds, projects, branches and states, whether one waits on you, and how many items wait in its Next up; badges on agents' rows; naming the agent a question is from | on | Medium: a state can say what an agent waits on. Never what is on their screens |
agents.queue | Putting text in an agent's Next up, marked with the extension's name. Nothing it puts there is sent until you press Send, unless you let it send without asking | off | High: text an agent gets becomes what it does, with its own permissions in your repositories |
projects.read | Your projects' folders; badges on projects' rows | on | Low |
files.read | Reading the files of the project each of its tiles is open in, and following their changes. Never .git, never another project | on | Medium: what it reads, a .env file too, can reach the servers it may connect to |
files.write | Writing, making, renaming and moving to the Trash files of the project each of its tiles is open in. Never .git or Pitwall's own files | off | High: you and your agents run what is in your projects; a file it changes changes what runs next |
agents.env | Variables on the agents Pitwall starts from now on, in the projects ticked under Projects on its card. The permission screen lists the variable names as the extension wrote them; its card shows their values. A value is plain text, one of its own settings or the agent's name, session and project, never a secret. Names Pitwall or an agent uses for its own setup (PATH, HOME, PITWALL_*, loader and runtime variables like LD_*, DYLD_* and NODE_OPTIONS, proxies, GIT_*, an agent's own login and server variables like ANTHROPIC_*, OPENAI_*, CLAUDE_*, CODEX_*, COPILOT_*, GITHUB_*) are refused | off | Medium: an agent and the tools it runs read them; a value that points somewhere else changes where they connect |
programs | Request native programs matching the declared command patterns, after exact-command approval; optionally download SHA-256-pinned executables from declared HTTPS URL patterns | off | High: approved native programs run as you outside the component sandbox |
shortcut | Keys that open one of its tiles from anywhere in Pitwall (A shortcut to open a tile). Never Pitwall's own keys; you can change them in its card | off | Low: its keys open its tile instead of doing what they did before |
Badges on sidebar rows and questions in the floating control need no permission: the extension declares them ("badges": true, "asks": true), and the permission screen lists them under "Adds to Pitwall" ("badges and short notes on agents' and projects' rows in the sidebar", "questions in the floating control, answered there or in its tile"). A connection status on its card ("status": true) needs none either.
memory and sql are granted with the extension when you turn it on: the permission screen and the extension's card show them with their size ("256 MiB"), not as a switch. pitwall extension check shows the sizes an extension asks for.
net
The permission screen lists each server the extension may reach, as its manifest writes it (api.example.com, *.example.org for its subdomains). Only these, over HTTPS; plain http only to your own computer, when listed. Pitwall checks each address before connecting and on every redirect, and sends no cookies or passwords of its own. An approved supervised program can give its component temporary HTTP access to its declared loopback listen address while running, without net. The legacy service block keeps its own-server exception until its migration.
programs
This permission allows an extension to request native helpers outside the tile sandbox. Its screen lists 1–16 command patterns and up to 16 optional HTTPS download patterns, exactly as written. It starts off. Patterns bound what it may request; each resolved command still needs Run, Always or Deny on Pitwall's own sheet.
The sheet names the executable, arguments, working folder, environment references and temporary loopback HTTP access. Always is tied to that exact request, including timeout or supervised mode, private-output mode and listen address. Changing any of these asks again. Allowed lines are on the extension's page under Programs with Remove; removing a line affects future requests, not a process already started. Permission, settings, patterns and resolved paths are rechecked after approval, so a stale approval cannot authorize a changed command.
Approved programs receive a minimal environment plus the variables the extension explicitly requests. Declared secret settings are supplied by reference in that environment, resolved by the host after approval and redacted from returned output and Log. A private-output command returns its bounded text once without keeping it in Log, Activity, status or Debug; authors must consume and discard it rather than store or display it.
There are four shared pending/running one-shot and download slots, plus four supervised programs per extension. Runs last at most ten minutes; stdout and stderr are each limited to 1 MiB. Supervised exits retry after 1, 5 and 30 seconds. Stop, revoke, turning the extension off, update, remove and quitting Pitwall stop its managed process groups and their children. A server already listening is used only after exact approval; Pitwall never kills that unrelated process, and Stop or revoke still removes its temporary HTTP reach. Hidden program components may tick at most once a second without rendering hidden views.
Downloads check the current permission, exact HTTPS-origin/path patterns on every redirect, a pinned SHA-256, and bounded archives before publishing a new path under the extension's data folder. Existing paths are never replaced; use a new version's path. Downloading does not authorize running the result. Programs and servers has the manifest, SDK APIs and harness examples.
notify
A notification is the system's when you aren't looking at Pitwall, and a toast in Pitwall's window. At most 3 a minute, and the same words only once in 10 minutes.
files.read and files.write
A tile reaches only the project it is open in: its space's project, the project of the agent it was opened next to, or the project whose sidebar menu opened it. It never picks a folder of its own, and a tile open in no project reaches none. The permission screen names the project folders its open tiles are in now ("the project its tile is open in" before any is open). Every change it makes to a project's files, and every refusal, is in its Activity. .git is never read or changed, Pitwall's own .pitwall.json and .pitwall/ never changed, and deleted files go to the Trash.
More grants come with the services that need them, each with its own risk note on the permission screen: git in your projects and the clipboard, each when a tile needs it (what comes later).
The permission screen
An installed extension is off until you turn it on in Settings → Extensions. Before installing, Pitwall lists the tiles it adds and each permission it asks for, with the author's reason and, for memory, the size. When you turn it on, the permission screen shows the same permissions, to grant or refuse each, and for an extension that only adds tiles it says that its tiles run sealed off from your computer and get only what you grant there.
After that, the extension's card in Settings → Extensions lists each permission and whether it is granted. A permission with a switch can be taken back at any time, and it applies to the running tile at once, with no restart: the tile hears it (GrantsChanged), its next call that needs it is refused, and what it started under the grant ends. A request still on its way when net is taken back arrives refused (denied), and its answer is dropped; its watches in a project end when files.read is taken back; its badges on agents or projects go with agents.read or projects.read. Granting works the same way (a permission an update added, allowed on the card, applies at once), and so does a setting that changes the address net may reach. memory and sql have no switch; they are set when the tile starts, so a new size (after an update) takes effect when it starts again. Turning the extension off stops its tiles at once, and its badges and questions go. Every call a tile makes to your agents is in the extension's Activity, marked "tile".
Agents opening a tile
Agents need no permission from the extension to open its tiles: every tile can be opened by the agents Pitwall starts, with content in it, and an extension can declare tools that show things in its tile (Agent tools). These show and present tools only change what the sandboxed tile shows: the agent gets nothing of the tile back, what it put there is marked with its name and you can Undo it, and Pitwall refuses to let it replace anything you edited there. So they are on by default and allowed in agents without asking.
Tools that give agents more ask you, in Pitwall's approval dialog:
readreturns what the tile has, your edits included. It asks the first time; Always for <agent> lets that agent read again without asking.actdoes something outside the tile (the network, a service). It asks each call, with the agent, its project, the tool and its arguments; Always for <agent> is offered too, except for a tile that can put text in your agents' Next up or start agents, whoseacttools ask every time.- Neither is ever in the allow lists Pitwall passes agents at launch. Your "Always" answers are on the extension's card ("Allowed without asking") and in Settings → Agents, each with Revoke.
- During a
show,presentorreadcall the tile runs without its acting permissions (net,show,notify,files.write,agents.queue,agents.start,agents.focus,programs), so a tool can't act while it says it only reads.
You decide which tiles agents may use:
- Per tile: "Agents can use <name>" on the extension's card in Settings → Extensions, with the names of its tools. Off, its tools are gone from every agent's list at once.
- All tiles: "Agents can use tiles" in Settings → Agents (
agents.tileTools). - Before turning it on: the permission screen lists a tile's tools under "Adds to Pitwall", and an author can keep a tile from agents with
"agents": false.
Each call is in the extension's Activity on its card: which agent, which tool and item, the input (all of it for act), and whether it ran or why not.
Signed packages and updates
A tile extension usually comes as a signed .pwtile file (Install). Installing it trusts its signing key for that extension, and every update must be signed by the same key. An update grants nothing new by itself: new permissions, more memory, a larger database and new net servers each wait on the card until you allow them. Added or changed program/download patterns also require a new programs grant; exact-command approvals still apply. When new servers are added, you are asked about net again.
Unsigned preview tiles
An author can also share a tile as an unsigned package or as a folder. A folder is installed from Settings → Extensions → Install from folder…, or with pitwall extension install <folder> which you install from Settings → Extensions → Install from folder… or with pitwall extension install <folder> (Quick start). The folder must add tiles and contain no adapter, legacy service, setup actions or legacy agent environment block. A component may declare the new programs permission; installing its folder grants neither that permission nor its exact native commands.
Such an extension comes from an "unsigned preview folder", and its install review and permission screen carry the warning "Unsigned, preview: only install tiles from people you trust". Nobody has checked who made it or what it contains. It runs in the same sandbox with the same limits as any tile, and it can do only what you grant it. A folder is never updated: installing a newer folder replaces it. An unsigned package shows "Unsigned: nobody vouches for this file" and installs only with Install unsigned. Installing from the address of a folder served over HTTPS is coming in this preview.
With agents.env granted, its card shows what agents get under the permission, and a Projects list with a tick for each of your projects. Every project is ticked, those you add later too; untick one and agents started there get neither its variables nor its skill for agents. Agents already running keep the variables they started with: they are listed as running agents that use an old setup, and restarted as "After its updates, restart agents that use the old setup" says.


A tile loaded with pitwall extension dev is a development extension: it is listed as one in Settings → Extensions and runs from the author's folder, where it is.
For authors
Every permission names your reason: one line the user reads before granting it. Ask only for what the tile uses.
In extension.json, a permission's value is its reason, or an object with the reason and the permission's settings:
memory: its size in MiB, more than 64 and at most 512:"memory": { "reason": "To hold large diagrams", "mib": 128 }.sql: its size in MiB, more than 100 and at most 2048:"sql": { "reason": "To keep a year of builds", "mib": 500 }.net: the hosts, at most 32:"net": { "reason": "To read your builds", "hosts": ["ci.example.com"] }. A host the user sets is named by itsurlsetting,"{setting:server}"(Platform services).programs: command and optional download patterns:"programs": { "reason": "Run its local helper", "commands": [{ "command": "helper", "args": ["--version"] }], "downloads": ["https://downloads.example.com/helper/*"] }. Programs are names on PATH or paths under{data}; argument patterns use literals,*for one argument or final**for the rest. Unrestricted**is refused for shells/interpreters. See Programs and servers.agents.env: the variable names, 1 to 16, upper-case letters, digits and_:"agents.env": { "reason": "So its plugin finds the server", "names": ["MY_SERVER_URL", "MY_SESSION"] }. The tile sets their values withagents::set_env(Platform services). An update that adds a name asks the user again.notify,show,files.read,files.writeandshortcut: the reason alone (shortcutwith a tile that has a"shortcut").
In the tile, cx.is_granted("memory") and cx.granted() say what the user granted. When it changes, the tile hears Event::GrantsChanged, and by default it renders again. A call that needs a permission the tile wasn't granted fails with HostError::Denied; the tile should carry on without it and say what is missing.
A setting referenced by a network host or program permission pattern can only be changed through the host-owned setting field. The component's settings::set returns Denied for that key or a secret. A valid field edit updates a granted dynamic network host and preserves an explicit network refusal; it never regrants the other declared hosts.
Test both cases with the harness: Harness::build(…).grant("memory") starts the tile with the grant.
What comes later
| Phase | Grants |
|---|---|
| On demand | git.read, git.write, git.remote, clipboard.read, each when a tile needs it |
A "Run tiles from others" switch in Settings → Extensions will stop every tile not made by Pitwall at once.
External browser links
show.browser lets a component use show::browser(url) to open an HTTPS link (or HTTP to this computer) in the external browser. It starts off and may bring the browser forward. It is separate from show, which opens files and web tiles inside Pitwall. Existing show grants do not grant it.
Pitwall does not save the browser URL as a web location or include it in Log, Activity or diagnostics. The browser controls its own history. An action can therefore open a one-time sign-in link without keeping that credential in Pitwall. Do not put the link in the component's own logs or saved state.