Coffer

Stop throwing windows. Own the workspace

Category
Window Manager
WM Type
layout
License
free
Open Source
No
Keybindings
Yes
Scripting
Yes
Last Update
—

Features

  • Named Multi-App Layouts
  • Gapless Canvas
  • Layouts Stored as JSON Files
  • Apply and Undo
  • Titled Window List for Agents
  • Local Agent Server
  • Per-Display Layouts by Display UUID
  • Adaptive AirPlay Display Matching
  • Screen-Share Shield for a Zone

About

Coffer keeps named multi-app layouts on a gapless canvas, and each layout is a plain JSON file. Before moving anything, apply reads each window's real Accessibility frame, and a local agent server lets AI agents list open windows by app and title and place them on a given desktop.

Who It's For

Coffer is for people who rearrange the same set of apps every day, such as a terminal or container tool on one side and a browser on the other. They want to save that arrangement once and get it back in one action. Its local agent server also makes it relevant to developers who let AI agents drive the desktop and need those agents to find windows by app and title and move them reliably.

How It Works

A Coffer layout is a named set of zones on a gapless canvas. Each zone names an app and a fractional rectangle of the screen. Running apply (⌘↩) first reads each window's actual frame through the macOS Accessibility API, then moves the apps into their zones, and undo (⌘Z) puts the previous frames back. One layout can follow different desks. The project's example has a "Regular" setup that follows the MacBook and a "Work" setup that follows a Dell monitor, matched by display UUID so the match survives macOS renaming the panel. Coffer also handles AirPlay displays. It matches the wireless display and waits 180ms for the stream size to settle, because AirPlay UUIDs change between Wi-Fi sessions. For screen sharing, the right-hand zone can be blacked out with a "shield", and Esc clears it.

For agents, the local server "lists what is open, then places the apps you name". A single call takes app names and a screen and returns each window's size, and placement can target a specific desktop (for example, "Grok Bot and Mail on desktop 3"). The site says this fills a gap that shell scripts can't: a shell hits AXError -25211, while Coffer reads the window titles and gives the agent the list.

Configuration

Layouts are JSON files. This example is from the project's site:

// layouts/tria.json
{
  "name": "tria",
  "schemaVersion": 1,
  "zones": [
    { "id": "zone-left", "app": "OrbStack", "rect": { "x": 0, "width": 0.25 } },
    { "id": "zone-right", "app": "Safari", "rect": { "x": 0.65, "width": 0.35 } }
  ]
}

rect values are fractions of the screen width, so the same layout scales across displays.

Compared to Alternatives

Compared to Lattix and Display Maid, which are paid apps for saving and restoring layouts across monitors, Coffer is free for now and stores its layouts as hand-editable JSON rather than leaving them inside the app. Its local agent server and titled window list are aimed at AI-agent workflows, and the site describes this as something other window managers can't do: "Other window managers can throw a window. They cannot tell an agent the app and the title on desktop 3." Coffer is new, though (version 0.1.0), so it has a much shorter track record than established tools.

Requirements

  • macOS 14 or later
  • Apple silicon and Intel
  • Accessibility permission (System Settings → Privacy & Security → Accessibility)
  • Free for now: canvas, apply, undo, the titled window list, placement, tether, and AirPlay are listed at $0
  • Early release: version 0.1.0

Getting Started

Download Coffer, open the download, and move Coffer to Applications. On first launch, allow Coffer under System Settings → Privacy & Security → Accessibility. Define a layout's zones on the canvas, press ⌘↩ to apply it, and press ⌘Z to undo if the result isn't right. The site says the source of both servers is in the repo to read, but it doesn't link a public repository. See coffer.magio.ie for details.

Discussion