Flockdeck docs

Using Flockdeck

What comes back, and what keeps running

Closing the window is not meant to cost you anything. Layouts, projects and conversations are restored on the next run, and agents can be left running without a window at all.

On the next run

Layouts are saved per project. Tabs, splits, proportions and working directories come back, every project you had open is reopened, each pane starts the agent and model it had, and each one resumes the conversation it had rather than starting an empty one. The project you name on the command line is the one you land in; the rest are restored around it.

A project whose folder is not there when Flockdeck starts — on a USB stick that is not plugged in, or a network drive not yet connected — is not opened, but it stays in the list for the next ten starts, so it comes back with its folder. Closing it, once it is back and open, takes it off the list.

Started without one — from the Start menu, a shortcut, or a terminal in your home folder — Flockdeck opens the projects you had open last time and lands in the one you were in. Your home folder opens as a project only when there were none; to open it on purpose, run flockdeck -C ~.

A layout is written when the window closes or reloads, when you detach, restart or quit, when a project is closed, and every half minute while Flockdeck runs — so if it is killed or crashes, it comes back as it was at most half a minute before. Which projects were open is not on that timer: it is written when the window closes or reloads, when you detach, and when Flockdeck stops, so after a crash the next start reopens the projects that were open at the last of those.

A saved file Flockdeck cannot read — a layout, the list of open projects, your preferences — is never written over. It is moved aside, beside the original, with .unread on the end (or .damaged, when it could be read but made no sense, or is a layout saved by a newer version of Flockdeck), and that run goes on without it. The window says so, and where the file is kept, within half a minute of opening.

That works because a pane is identified by a session id handed to the agent when the pane is created, and handed back when it is restored. Pane identity and conversation identity are the same thing, which is what makes restore meaningful rather than cosmetic.

Two things have to hold for a conversation to come back: the agent has to be able to reattach one by id, and it has to have written a transcript to reattach. So a pane opened and never prompted starts a fresh conversation rather than dying on restore, and a pane running an agent that cannot resume comes back in the right place, in the right directory, with an empty conversation. Agents and models says which is which.

A layout saved by a build that knew only about Claude is read without a murmur: its panes come back running Claude Code at whatever model the CLI is set to, and nobody is asked anything.

Detaching

Detach, in the command palette, closes the window and leaves every agent running.

flockdeck -detach   # start that way, with no window
flockdeck           # come back to it
flockdeck -quit     # stop everything

Closing the window normally still quits, so nothing is left running by accident.

flockdeck -detach gives the terminal back. On macOS and Linux, closing the terminal a Flockdeck was started from quits an attached run the orderly way, saving the layout first; a detached one, started with -detach or detached from the palette, carries on.

Reloading the window

Each pane keeps a bounded ring buffer of recent output, so a window that reconnects or is reloaded replays it into a fresh terminal. Reloading the page costs you scrollback beyond that buffer, not the conversation.