Layouts
A layout is the whole window as one JSON file. Woolshed ships three; ask your agent for another, or take one from the gallery.
Each file is one whole window. layout.switch (ctrl-shift-l) cycles through them, layout.switch {name} picks one; shared("layout") is the shown one's name. Woolshed ships main ("Woolshed": spaces by machine, the agents list and history (past sessions, below) on the left, workspace-chrome; new-session, the start screen, fills the work area while no space is open and opens from the tab bar's +: a prompt, the installed agents to send it to (one or several: each gets its own tab with the prompt as its first message), Connect for the others (the connect dialog: installs with Homebrew where the vendor packages it, else the vendor's installer, checks the agent starts, and signs in through the browser, with every command's output under Show details; Gemini CLI no longer signs personal Google accounts in, so Connect asks for a Gemini API key, saved to ~/.gemini/.env, and offers Antigravity (agy, Google's own agent) for a Google account; the start screen marks Gemini without a key Set up), and in the prompt's bar its folder (recent ones first, then Clone from GitHub or GitLab… and New repository…, also Clone a repo and New repo under the prompt: the repos dialog, below, whose clone becomes the folder), a worktree per task (on by default in a repo, one checkout per agent, its branch named from the prompt; the toggle's choice is kept as worktrees in shared "changes.settings", and the checkout goes once its pull request merges or closes: Changes, below), Claude Code's model and, for Claude Code, Codex, Kimi Code, Antigravity and Gemini on this computer, its view: Terminal (its own interface, the default) or Chat (the chat mod as its tab, below); it starts in a tab of the folder's space or a new space. The prompt goes on the agent's command line, except for Kimi Code (it reads a bare word as a subcommand): Kimi starts bare and its terminal types into it once it's ready (after the folder-trust question): /login if it has no sign-in yet, then, signed in, the prompt; new-menu is the older + menu, whose agents open new-session; panes as cards with a header; Files, Changes and Server panels on the right, files, changes and server (below), opened from the tab bar and remembered per space (which ones: shared "workspace.panels", set by the welcome; Server's button also shows once any project has a server); Changes keeps a checkpoint of every agent turn, to undo any of them (below); a status bar, workspace-status: the machine, the branch, the repo on GitHub or GitLab with its menu, the branch's open pull request and its checks, below, and the shown project's site on its right (server with props {part: "status"}; click it for the Server panel)), and as examples terminals ("Terminals": tabs in the title bar, panes as cards, a space picker) and win98 ("Woolshed 98": a whole desktop in one mod, win98). Add a layout by writing a new file, or take one from the gallery (see “The gallery”). The Files panel supports Windows folder paths with spaces, parentheses and apostrophes, and preserves Unicode file and folder names (including Chinese). Directory links expand as folders; their contents load only when expanded.
Woolshed's own layouts and mods are read-only. They are replaced whole on every start. Use settings.json for look (fonts, sizes, theme, colors, sounds), where the layout leaves them unset. Woolshed (main) has no look of its own, so your settings decide it; Woolshed 98 and Terminals bring their own look. The theme picker overrides any layout. To change a shipped layout's look beyond that, or its structure/code, clone it and edit the clone:
woolshed do layout.clone '{"name":"main","as":"my-layout"}'
woolshed do mod.clone '{"name":"files","as":"my-files"}'
The default clone name is <name>-copy; an existing name is refused. layout.clone switches to the clone. In the palette: Duplicate layout or Duplicate mod. Clones are yours and never updated. They record cloned_from: {name, version} and copy the layout and its clicks as-is, including its look. A cloned layout keeps its mod references: clone a mod too and point your layout's content.mod to it to change code. Mod clones rewrite their own mods/<name>/ asset paths and self-opening overlay names to the new name.
If you edit a shipped file anyway, the next start moves it to <name>-edited (a mod folder or layout JSON; a number is added if taken), copies its layout clicks, restores Woolshed's version and shows a toast. No-longer-shipped things go if untouched, otherwise they stay.
Clicks (sizes, shown/hidden, stack child, floating spots, theme picks, background, text size, pane header height and border/focus look) live in layouts/.state/ and survive restarts. Don't edit those files. A deliberate layout-file edit beats a click on that field. layout.reset {name} resets a shipped layout and its clicks, keeping its previous file aside as <name>.json.old-<time>.
A layout is a tree of nodes. Four types:
block: shows content."content"is{ "mod": "<folder>", "props": {...} },{ "terminal": "t7" },{ "tab": "active" }(the shown tab's terminals as it arranges them;"empty": { "mod": ..., "props": ... }is shown there while no space is open, asmainshowsnew-session), or{ "agent": "focused" }(one agent's terminal, full size: the one chosen withagent.focus/agent.next, else the focused pane's agent, else the first agent).row/column: children side by side / stacked.stack: shows one child ("active": "<child id>"), with an optional"header"(a mod that draws tabs, or"tabs"for a plain built-in strip).
Properties any node can have:
id(unique; commands use it),size:{ "px": 240 }or{ "weight": 2 }(shares of what fixed siblings leave),min/max(px),hidden.- Paint:
background(a color;{ "gradient": ["#2a6cbd", "#0b2a57"], "angle": 165 }; or{ "image": "backgrounds/sky.jpg", "fit": "cover" | "contain" }, a path in the home folder),border({ "width": 1, "color": "border" }),radius,shadow("sm" | "md" | "lg"),focus({ "border": {...} }when the focused pane is inside). padding: space inside the node's edge, px:16or[vertical, horizontal].- row/column:
gap(px between children),divider({ "width": 1, "color": "border" }),resizable(default true: drag the boundary). This applies to that row/column only. movable(default true): panes can be dragged by the app's top-center grip within a split tab. Unlikeresizable, it inherits: the nearest explicit ancestor wins, through the tab tree and then the layout's tab block and its ancestors. Root"movable": falseopts the layout out. Composition terminal blocks aren't tab panes and never drag. Center drop swaps panes; an edge drop places beside it. Escape or dropping inside the window but outside another pane cancels. Dragged past the window's edge, a pane goes to another screen: dropped on another Woolshed window it joins the tab shown there (beside the pane under the pointer; a tab on another machine refuses it), dropped on an empty part of a display it becomes a new tab of its space in a new window there. It keeps running; a tab or space it empties closes; nothing ends. Zoomed tabs don't drag; one-pane tabs drag only when there's another window or display to take them to. The grip appears on top-edge hover, regardless of the header's position or presence. Only the grip starts dragging; header mods don't need drag handlers.panes()exposesmovable.floating: blocks over this node (below).window_drag: true: dragging the node moves the window, a double-click maximizes it. A mod's own control inside opts out by stopping the press:.on_mouse_down("left", (_e, cx) => cx.stop_propagation()).- Root only:
"titlebar": "none"hides the system title bar so the layout draws its own (a bar mod in awindow_dragblock). macOS keeps its window buttons over the layout at"traffic_lights": [x, y](px); leave them room. Where the system draws no buttons (window().buttons, Linux and Windows), the bar draws them withwindow.minimize,window.maximize,window.close. Windows' shipped tab bar and system strip use vector window icons, with a restore icon when maximized, rather than font glyphs. - Root only:
"preview": "layouts/<name>.svg"(or png): the picture the settings screen shows for this layout. Draw one when you make a layout; without it the person sees a plain frame. New layouts andthemes/*.jsonshow up in settings by themselves. - Root only:
"terminal_menu": "my-menu"chooses the mod for terminal right-clicks (including Shift+right-click). Omit it for the shippedmenu; an unknown mod logs a warning and falls back tomenu. Clone a shipped layout before changing this field. Other menus are unchanged. - Colors are theme names (
border,accent,surface, ...) or#rrggbb[aa].
A personal terminal menu replaces the whole menu; it doesn't merge items. Create mods/my-menu/main.js and mod.json (e.g. {"place":"none","overlay":{"width":280,"height":100}}), then set the layout root's "terminal_menu": "my-menu". It opens as a pointer popup, default 220×260 px; its mod.json overlay width/height override those defaults. It gets props() = {tab: "pane", target: {pane, terminal}, overlay}. Always use target.terminal or target.pane in actions, not the focused terminal: right-clicking a different terminal must act on the one clicked. For example:
import { View, div } from "gpui-kit";
import { props, run, closeOverlay } from "woolshed";
export default class MyMenu extends View {
render() {
return div().id("split-target").child("Split this pane").on_click(() => {
const {target, overlay} = props();
closeOverlay(overlay);
run("pane.split", {pane: target.pane, direction: "right"});
});
}
}
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.