Commands
Keys, menus, mods and your agents all change Woolshed through the same commands. Run them from a shell with woolshed do.
The one way to change anything; keys, mods (run(name, args)), menus and you use the same list. woolshed commands prints every one with its arguments (which are required) and what it does. Unknown argument names are errors and list valid names; they never fall back to the current target. For example, closing a space uses woolshed do space.close --id <id> --confirmed true, not --space. Target IDs (id, pane, space, terminal) must be strings. Other non-null types are rejected before a current-target default applies; null means omitted. The main ones:
- Spaces:
space.new {name?, folder?, tab?, argv?, task?, machine?}, or withmod, props?instead ofargv/taskfor a space whose first tab's only pane is a mod (a chat in a folder with no space yet) (machine: another machine fromhc machine ls; omitted: the focused space's machine for keys and clicks, this computer for scripts;"": this computer. The space lives there, its terminals start in that machine's home unless folder, and its tabs and splits stay there;spaces()gives each space'smachine, null here),space.close {id?, confirmed?},space.rename {id?, name}("": its automatic name again),space.move {id, index},space.select {index | id, here?},space.next,space.prev,space.send {id?, to?}(show it in another window, astab.send). With noargv, the target core chooses that machine's default shell (PowerShell 7 when available on Windows). - Tabs:
tab.new {name?, space?, folder?, argv?, task?}(argv: an agent to run, task: its first message). Agents run in your interactive shell (including fish), which stays open after the agent exits. A terminal that exits with a nonzero code within two seconds of launch shows an error toast with its exit code and last output lines. Ortab.new {name?, space?, mod, props?}for a tab whose only pane is a mod (a file, a board; split a shell in beside it like any tab),tab.close {id?, confirmed?}(closing the last tab closes its space and asks first unless confirmed),tab.rename {id?, name}("": its number again),tab.move {id, index},tab.select {index | id, here?}(another window showing it comes to the front instead, unlesshere: true),tab.next,tab.prev,tab.send {id?, to?}(show it in another window:toa window number, or "next", the default: the window on the next screen, opened there when it has none; this window moves on to a tab no window shows, or shows nothing),tab.drag {id}(for tab bar mods: run it when a tab is pressed; the app follows the pointer, and a release past the window's edge sends the tab to the window there, or to a new window on that screen; released inside, nothing happens),tab.settle {id?},tab.unsettle {id?}(index, next and prev skip settled tabs). - Panes:
pane.split {direction: "right" | "down", pane?, argv? | mod?, props?}(a new terminal, or a mod pane),pane.close {pane?},pane.zoom {pane?},pane.focus {pane | terminal},pane.go {direction},pane.swap {direction}.pane.goprefers the most recently focused pane along the nearest edge in that direction; unvisited panes fall back to overlap, then top/left layout order.pane.goalso reaches visible mods whosemod.jsonsays"focusable": true, and starts from that mod while it holds the keyboard.pane.swapuses geometry only. Focus history lasts until the window closes.pane.focus {terminal}prefers the first visible layout terminal block showing that address, then its model pane. Clicking a terminal block focuses it too. While a layout terminal block is focused, implicit split/close/zoom/go/swap andterminal.showfail, as doterminal.open/terminal.keepwith place right/down. They never act on the terminal's source pane. An explicitpanestill targets that model pane; composition edits belong to the mod (edit its layout instead). - Terminals:
terminal.open {argv?, folder?, place?, name?}(foldersets the starting directory for tabs and right/down splits, with or withoutargv),terminal.kill {terminal},terminal.keep {terminal, place?},terminal.park {terminal},terminal.peek {terminal}(peek over the tab, with keep-as-tab and close),terminal.show {terminal?, pane?},terminal.search(screen and scrollback; find bar state stays with that terminal),terminal.copy,terminal.paste(copied files, such as Finder's or a clipboard manager's image, as if dropped; an image alone asterminal.paste_imagepastes it),terminal.paste_image(Ctrl+V: an image, into a terminal on another machine: copied there, its path pasted; on Windows, clipboard text is pasted; otherwise Ctrl+V goes to the program, which reads the clipboard itself). TIFF and BMP clipboard images are converted to PNG before sending,terminal.right_click {to: "program" | "menu", terminal?}(where right-clicks go when the program takes the mouse; Shift+right-click is always Woolshed's menu),terminal.scroll {lines | pages | to: "top" | "bottom", terminal?}(moves Woolshed's view of the history, not the program: negative lines or pages go up, toward history; pages may be fractional, one page is the terminal's rows; on the alternate screen, such as vim or less, there is no history, so nothing moves),terminal.rename {terminal?, name?}(names a terminal, default the focused one: its pane header, the agent lists and alerts show the name instead of its title; no name asks the person, an empty name goes back to its title; kept on the terminal as its labelwoolshed.name, so every client of its core shows it),terminal.clear {terminal?}(clears the screen and scrollback in this window, then sends Ctrl+L so a shell draws a fresh prompt; a full-screen program such as vim or less is left as it is; other windows and the program's own output are unchanged),terminal.select {move?, count?, mark?, select?, to?, block?, swap?, copy?, exit?, terminal?}(copy mode: a keyboard cursor over the screen and history, drawn as a one-cell selection; the first call puts it at the program's cursor, or at the bottom of the view when scrolled back.move:left,right,up,down,next-word,prev-word,end-word,next-big-word,prev-big-word,end-big-word,line-start,first-char,line-end,page-up,page-down,half-page-up,half-page-down,top,bottom,screen-top,screen-middle,screen-bottom, repeatedcounttimes;mark: truestarts the selection at the cursor,falsedrops it;select: "word" | "line"selects the one under the cursor;to: {row, col}jumps on the visible screen;block: trueselects a rectangle;swaptrades cursor and mark;copy: truecopies the marked text and leaves;exit: trueleaves. The view follows the cursor. It answers{active, cursor: {row, col, line}, mark, block, text, rows, cols}(rowon the visible screen,linefrom the top of the history), sowoolshed do terminal.select '{"select":"line"}'reads a line. Typing or a mouse selection ends it. A mod drives it from keys withrun("terminal.select", ...); the gallery's Copy mode does, vi style),terminal.pin {terminal, pinned}(pins an agent to the top of the agent lists; kept on the terminal, so every client of its core shows it, and gone when the terminal ends; read it asagents()pinned). Copy, paste, paste-image and implicit right-click targeting follow keyboard focus, including peek and floating terminals; with no terminal holding keyboard focus, they use the focused pane or block. Dragging a text selection past the terminal's top or bottom scrolls while held; releasing stops it. Programs that track the mouse still get their mouse events (hold Shift to select text instead). A drag stays with the terminal where it started, including its release outside the pane; other panes don't receive it. Terminals display Kitty graphics, including Unicode placeholder images used by programs such as yazi; partial images and scrolling follow the placeholder cells. - Agents:
agent.next,agent.prev,agent.focus {terminal}(when another window shows that agent, that window comes to the front and focuses it),agent.answer {terminal, answer}: answers one that needs you in its terminal,"allow"(Enter: its dialog's first choice, yes),"deny"(Esc), an option's number ("1"-"9"), or"reply"(shows it and opens Reply). Keys go in only while it's still blocked (hc keys --if blocked), so a late answer never lands in its prompt. - Layout:
layout.switch {name?},layout.toggle {id},layout.show {id},layout.hide {id},layout.resize {id, px | weight},layout.select {stack, child},layout.set {layout}(personal tree edits; on shipped layouts only click/look fields change),layout.reset {name?}(reset a shipped layout and its clicks),layout.clone {name, as?}(duplicate, then switch; default<name>-copy). - App:
mod.clone {name, as?}(duplicate; default<name>-copy),mod.open {name}(again: closes it),overlay.close {id?},app.help(again: closes it),app.palette(again: closes it),app.settings {section?}(sections:look,keyboardandvoiceon macOS,machines,accounts(not on Windows),alerts,updates,privacy; Machines lists, updates, renames and removes ssh machines; Accounts connects and signs out GitHub and GitLab; settings edit the same files you do).app.check_updates(only a successful check reports Up to date; a failed check clears the checked time and can be retried),app.update_core(a newer Woolshed Core of this generation, terminals kept; never one a package manager owns),app.welcome {page?}(the welcome again; page 2 is signing in),app.whats_new,app.feedback {message?, from?}(from"person"or"agent"; opens a review window, where the person can paste up to 3 screenshots; never sends until the person clicks Send, and Send stays off unlessWOOLSHED_FEEDBACK_URLis set: Woolshed has no feedback server of its own),app.reset,app.theme {name},app.zoom_in,app.zoom_out,app.zoom_reset,app.update(restart into a downloaded update). Add machine (mod.open machine-add) lists all named ssh-config hosts in a scrollable list. Its "Go through Systems Manager (SSM)" adds an AWS instance with no open SSH port: it checks the AWS CLI and the Session Manager plugin (through the login shell), tests that SSM sees the instance online (aws ssm describe-instance-information), and appends aHostto~/.ssh/configwhose ProxyCommand runsaws ssm start-sessionby full path; the person's ssh key must already be on the instance. Its "Make one on your Hetzner, DigitalOcean or AWS account" (mod.open machine-add {cloud: true}) makes a new Ubuntu server with that provider's own tool (hcloud,doctl,aws) and the person's own sign-in, so it's their credentials and their bill: it uploads their ssh public key, creates the server (on AWS also awoolshed-sshsecurity group open to this computer's address only), appends aHostwithStrictHostKeyChecking accept-newto~/.ssh/config, then adds it (installing Woolshed Core). It names the price and the provider before anything is made and never deletes servers: it shows the delete command. Never create a server for the person without their go-ahead on the price. Setup prompts open above the picker; close the setup terminal to return to the updated list and any machine-specific guidance. If a remote machine was rebuilt or replaced and a different core answers there, its sidebar offers Connect: explicitly forget the old identity and pair again with the same name and target. Other unreachable machines don't offer this. - Browser (web pages you and the person both use; see “Browser”):
browser.open {url?, id?, place?, new?},browser.navigate {url},browser.back,browser.forward,browser.reload {hard?},browser.click {ref | selector | text | x, y},browser.type {text, ref | selector | into?, clear?, submit?},browser.key {key, times?},browser.scroll {dy? | to? | ref | selector | text},browser.text {selector?},browser.tree,browser.shot {path?, full? | ref | selector | text},browser.console {level?, since?, clear?},browser.eval {js},browser.wait {text? | selector? | url?, gone?, timeout?},browser.viewport {width, height, scale?, mobile?} | {fit: true},browser.pick {timeout?},browser.ls,browser.close. Each takesid(default: the page last used or shown). - Window:
window.minimize,window.maximize(or back),window.close. - Screens:
window.new {display?, space?, tab?, layout?}(another window on a display: "next", the default, is the next display left to right without a Woolshed window, or a number from 1 at the left; it showstab,spaceor a tab no window shows;layout: its own),window.spread(a window on every display without one),window.gather(closes the windows on other screens; nothing ends),window.focus {window}(a number). Commands from a shell go to the window last in front;woolshed do --window N ...picks one (alsols,status,shot). See “Several screens” under the model. - Account:
account.sign_in(the browser opens to approve this computer),account.sign_out(sync stops, Voice goes back to Standard, nothing is deleted),account.sync {choice?}(sync now; on a computer's first sync,choiceanswers "merge", "account" or "computer"),account.delete_synced {confirmed: true}(deletes what's synced and turns sync off here). Ask the person before signing out or deleting. See “Your Woolshed account and sync”. - Plans:
account.plans {reason?}(the plans sheet;reason"computers" says why; any other shows the plans),account.checkout {plan?}(Stripe Checkout in the browser: "pro_monthly", the default, with 3 months free the first time; "pro_yearly"; "bundle_monthly" for Pro + Voice; signs in first),account.billing(Stripe's portal: card, invoices, switch, cancel). Never start a checkout the person didn't ask for. See “Woolshed Pro”. - Voice:
voice.sign_inandvoice.sign_out, the same asaccount.sign_inandaccount.sign_out. - Your computers (Woolshed Pro):
computers.approve {request}andcomputers.deny {request}(a computer asking to join; ask the person to check the code first),computers.trust {by}andcomputers.distrust {by}(Trust it / Not me on a list waiting here,confirmin computers/status.json: only once the person says the computerbyshows the same code; never decide it yourself),computers.remove {id}(ask first: that computer loses its way to the others),computers.refresh,computers.link_phone(the Link your phone sheet with its QR code; see “Your computers”). The vault:vault.put {entry},vault.delete {id},vault.import_ssh_config,vault.open {id},vault.add_machine {id}. See “Your computers”. - macOS:
app.quit,app.hide,app.hide_others,app.show_all.
When the user runs a command without a required name (a key, a click), Woolshed asks them. You never get a dialog: pass every required argument, or the command says what's missing.
From a shell:
woolshed do tab.new --name "fix login" --argv '["claude"]' --task "look at the login bug"
woolshed do pane.split:right
woolshed ls # spaces, their tabs and terminals (sub-agents under their parent), and the windows
woolshed do --window 2 tab.select --id <tab> # in window 2 (woolshed ls lists the windows)
woolshed status # what's on screen: layout, focus, overlays, zoom, errors from files and mods
woolshed commands # every command and its arguments
woolshed do prints what the command made ({ "space", "tab", "terminal" }, { "pane", "terminal" }) or { "error": "..." } and exits 1.
Your agents read these same words: Woolshed writes this guide to ~/.config/woolshed/AGENTS.md on every start. In it, “you” is the agent and “the person” is you.