PITWALL

pitwall open

Show files or a folder to the user in Pitwall's file viewer (it only displays; the user may edit and save there): files as tabs (path:line[:col] opens at a line), a folder or a whole worktree as a tree with each file's git status. Opens in a window of its own (beside the agent's terminal if you docked it there), without bringing Pitwall forward over another app. Off with agents.showFiles. With --web, a web page instead: in the agent's page tile next to its terminal (or a window of its own), http and https only; it only shows the page to the user. Off with agents.showWeb. With --settings, Pitwall's Settings at a page instead, in the Settings tile (next to the agent's terminal unless it is open already); it only shows Settings to the user. Off with agents.showSettings. With --device, a device's screen instead (an iOS Simulator, an Android emulator or phone): in a device tile next to the agent's terminal; one still booting is waited for (up to a minute). It only shows the screen to the user. Off with agents.showDevice.

pitwall open [OPTIONS] [FILE]...
Argument
FILE (optional)Files to open: absolute, or relative to --root (default: this folder). src/main.rs:42 or src/main.rs:42:7 opens at that line.
Option
--web [URL]A web page instead of files: its address (http or https; a bare host gets https://, localhost and LAN hosts http://). Alone, an empty page with its address field ready. It goes to the page the agent opened before unless --where names a place.
--settings [PAGE]Pitwall's Settings instead of files: at this page (general, agents, profiles, accounts, extensions, rules, appearance, folderAccess, peers, about; alone, the page shown last), in the Settings tile.
--extension <ID>With --settings: this extension's card unfolded on the Extensions page (its id).
--device [DEVICE]A device's screen instead of files: its name ("iPhone 17"), a simulator's UDID or an adb serial (emulator-5554). Alone, the one booted device. Opens in a device tile next to the agent's terminal.
--folder <DIR>A folder to show as a tree (relative to --root, default: this folder). With only --root, that folder is shown. One in another git worktree than the one shown roots the viewer at that worktree.
--root <DIR|WORKTREE>The folder the viewer's tree is rooted at (exactly, also inside the agent's own folder), and relative paths are in: a folder, or a git worktree by its folder name or branch (of the agent's repository, or of one directly inside the agent's folder). Default: this folder, shown in the git worktree it is in.
--agent <AGENT>Whose viewer (id or name; default: $PITWALL_AGENT_ID, the agent this runs in).
--where <PLACE>right, left, above or below (a files tile on that side of the agent's terminal, in the Pitwall window that shows it), replace (a files tile in that terminal's place; the terminal leaves the layout and keeps running) or window (a window of its own). Default: where the agent's files are already, else right. (beside: right.).
--of <AGENT>With --where: next to (or, with replace, in place of) this agent's terminal (id or name, in the same space) instead.