Woolshed's files

Woolshed redraws itself from the files in ~/.config/woolshed while it runs. Here's what each one decides, and how to change them safely.

FileWhat it decidesApplied
layouts/<name>.jsonthe window and its whole look: blocks, theme, fonts, backgrounds, pane frames; one file per layout (main, terminals, win98, any you add)live
keys.jsonwhat every key doeslive
settings.jsonthe person: zoom, sounds, fonts for every layoutlive
mods/<name>/panels: small JavaScript programslive (hot reload)
programs.jsonhow programs show (name, icon, tile), on top of the built-in tablelive
icons/the shipped program iconswritten by Woolshed (put your own elsewhere)
frame/the app's own screens (welcome, ...)rewritten by Woolshed on every start: don't edit, it won't stick
account/plan.jsonFree or Pro, agents running here, the last error (no secrets)written by Woolshed: read it, don't edit (the app checks its own signed copy)
view.jsonthis screen's selected space/tab/pane, zoom, settled tabs, recent spaces and seen attention (window 1; window n's is view-<n>.json)written by Woolshed
screens.jsonthe windows on other screens: each one's display, place, layout, and whether it's folded away because its display is unpluggedwritten by Woolshed
shared.json, data/, seen.json, installed.json, window.json, windows.jsonmod state, bookkeeping, where the window was (size, maximized), mods' windows (spots, kept ones)written by Woolshed

Shared state is saved atomically in the background, with the latest change winning. If shared.json is invalid, Woolshed logs a warning and keeps it as shared.json.corrupt-<time> before starting empty. woolshed check uses empty shared state in memory and leaves this file untouched.

Changing things safely

  • Edits apply at once. If a file is invalid, the app keeps the last good version and writes why to <name>.error (layout.error, keys.error, settings.error, programs.error). Check after every edit.
  • woolshed check <mod folder> loads a mod once and checks its initial description and eager native elements, including virtual lists and motion. It does not lay out the mod or run deferred rows, nested renders, or later async states. Never call a mod done without a passing check; also try it in the app.
  • Escape hatch: ctrl-alt-shift-escape always works: it sets the shown layout and keys.json aside (*.reset-<time>) and goes back to the default main layout. Nothing can rebind it.

Seeing the window

woolshed shot [file.png] saves the last rendered window frame as a PNG and prints its absolute path (default: woolshed-shot.png in your current folder). Use it when debugging mod UIs: inspect spacing, colors, terminal images, overlays, popups and floats. It captures the app, not the desktop, at the window’s physical pixel size, even when covered or minimized. No screen-recording permission is needed. Woolshed must be running; before its first frame or during GPU recovery it reports an error instead of a PNG. WOOLSHED_HOME selects which running window to ask, as with status.

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.