gener8v macOS utilities
Desktop utilities for Claude Code on macOS. /macos:tile does the work — it lays an app's windows out in an even grid; /macos:arrange turns plain language into the right tile command, shows you the plan, and applies it when you say so. No third-party window manager needed.
/macos:tile Terminal --front 2 --cols 1 --region 0,0,25,100 --save dev
/macos:arrange two terminals stacked in the left quarter of my monitor, save it as dev
/macos:tile --run dev
/macos:tile
/macos:tile <App Name> [--screen N] [--region R] [--front N] [--match TEXT] [--cols N] [--gap SIZE] [--margin SIZE] [--dry-run]
/macos:tile --list
/macos:tile … --save NAME | … --add NAME | --run NAME | --layouts | --forget NAME
By default it takes every on-screen window of one app and lays them out as equal cells that fill the usable area of one monitor (menu bar and Dock excluded), with a gutter between windows and at the edges. --region narrows the area, --front and --match narrow the windows. Windows on other monitors are pulled onto the target; minimized windows and windows in other Spaces are left alone.
| Option | Meaning |
|---|
<App Name> | name, bundle id or .app file name, case-insensitive — Code, vscode, Visual Studio Code all find VS Code; multi-word names may be unquoted. An ambiguous name lists the candidates instead of guessing |
--screen N | target monitor, by the index --list prints. Default: the monitor under the app's front window |
--region R | part of that monitor: left, right, top, bottom, the four corners (top-left …), left-third / middle-third / right-third, left-two-thirds / right-two-thirds, or x,y,w,h in percent of the usable area (0,0,25,100 = left quarter). Synonyms normalise ("Left Half", "upper right") |
--front N | only the N frontmost windows; the others stay where they are |
--match TEXT | only windows whose title contains TEXT, case-insensitive |
--cols N | force N columns. Default: chosen from the window count and the shape of the area — two windows on an ultrawide become two tall columns, eight become 4×2 |
--gap SIZE | gutter between windows and at the edges: a percentage of the monitor's shorter side (2.5%, the default — 36 px on a 1440-px-tall display) or pixels (36). --gap 0 is edge to edge |
--margin SIZE | outer gutter only, when it should differ from --gap |
--dry-run | print the plan, move nothing. Needs no permissions |
--list | monitors (index, name, usable area, left / right / main tags) and running apps with their window counts and which monitor they are on |
/macos:tile --list
/macos:tile Terminal --dry-run # plan only
/macos:tile Google Chrome # every Chrome window, whole monitor, auto grid
/macos:tile Code --cols 2 --screen 2 # two columns on the second monitor
/macos:tile Terminal --front 2 --region left # the two frontmost Terminal windows, left half
/macos:tile Code --match docs --region top-right # the VS Code window whose title contains "docs", top-right corner
/macos:tile Slack --gap 0 # no gutters
/macos:tile Slack --gap 1% --margin 4% # 1 % between windows, 4 % at the monitor edges
Gutters stay relative to the whole monitor, so a half-region layout lines up with a full one. To change the gutter defaults for every run, set TILE_GAP and/or TILE_MARGIN (either form). For the skill they go in Claude Code's settings.json env block, because the pre-execution shell does not read your shell profile:
{ "env": { "TILE_GAP": "3%" } }
Output
The plan names the app, the monitor (and region), and the layout — 2 windows (of 3; front 2) → 1 col × 2 row, cell 1210×652, gap 35 (2.5%), margin 35 (2.5%) — then one line per window with its current rect and its target. After an apply each line ends with ✓; ✓ snapped to … when an app that sizes windows in character cells (Terminal) landed a few pixels short; ✗ app settled at … when the app refused the size (minimum or maximum window sizes); ✗ could not move when the write failed. A summary closes it: Tiled 2 of 2 windows.
Saved layouts
Any tile command can be saved by name and replayed, and a layout can have several steps:
/macos:tile Terminal --front 2 --cols 1 --region 0,0,25,100 --save dev # save (and run) step 1
/macos:tile Code --region right-two-thirds --add dev # append step 2
/macos:tile --run dev # run every step, in order (--dry-run previews them all)
/macos:tile --layouts # list (--forget dev deletes one)