# Introduction URL: https://flow.worldbreakstudios.com/docs/getting-started/introduction What Flow is, how its sessions, tiles and tabs fit together, the top-level pages, and a map of these docs. Flow is a GPU-accelerated terminal workspace for macOS, built for agent-driven development. You run many terminal sessions side by side, each in its own working directory (often its own git worktree), with a coding agent in each one, and you watch and steer them from one window. A new session starts the agent command for you (`claude` by default), so "open a session" usually means "start an agent on a checkout". ## The core model Everything in the Sessions page is built from three nested things: | Thing | What it is | Where you see it | |---|---|---| | Session | One row in the sidebar, with its own working directory. Some menus and actions call it a **group** ("Close group", "Pin group"). | The sidebar's Sessions list, or a tab in the horizontal tab strip | | Tile (pane) | One rectangle of a session's split layout. A session is a split tree of tiles. | The main area | | Tab | One terminal, web page, Files browser, Notes notebook, pull request review or New tab launcher inside a tile. | The tab strip at the top of each tile | Every session has a **primary pane**: the left-most tile, which holds exactly one tab (usually the agent) and shows a header with the git branch, the title and the pull request instead of a tab strip. Other tiles sit to its right. See [Sessions, tiles and tabs](https://flow.worldbreakstudios.com/docs/workspace/groups-and-tiles.md). On top of sessions, Flow adds: - **Labels** to sort sessions into spaces, picked from the spaces bar at the bottom of the sidebar ([Labels and spaces](https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces.md)). - **Session groups** that put several sessions under one sidebar row ([Session groups](https://flow.worldbreakstudios.com/docs/workspace/session-groups.md)). - **Persistent shells** that keep running when you quit or update Flow ([Persistent sessions](https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions.md)). - **Snooze**, which parks a session until something happens, such as the agent's next message, a PR approval or CI finishing ([Notifications and snooze](https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze.md)). ## Top-level pages Flow's window shows one page at a time. Sessions is the default; the others open from the sidebar's Tools band, the sidebar header, a shortcut or the command palette. | Page | What it shows | How to open it | |---|---|---| | Sessions | The terminal workspace: the selected session's tiles and tabs. | `⌃⌥⌘1` (Go to Sessions) | | Dashboard | The primary pane of every session in the selected label as live cards in a grid, with the focused session's other panes in a side panel. | `⌘G` or the grid chip in the sidebar header | | CLI tool pages | One full-page terminal per CLI tool you register in Settings › Tools. | Its row in the Tools band | | Trash | Every managed git worktree with a verdict on how safe it is to delete, and the delete flow. | `⌃⌥⌘3` or the Tools band | | Puddle | This device, pairing invites and your paired devices. Only while the Puddles experiment is on. | `⌃⌥⌘2` or the Tools band | | Task Manager | Every live terminal session with its process metrics, refreshed every 2 seconds while shown. | The Tools band, or "Go to Task Manager" in the palette | | Factory | Sessions you add move through the gates of a plan and are scored, so only what needs you asks for attention. Factory experiment only. | `⌘;` or the factory chip in the sidebar header | | Schedules | Commands and agents that run on a timer. Automations experiment only. | The Tools band, or "Go to Schedules" | | Pull Requests | Two pages: **Reviews** (PRs waiting on your review) and **My PRs**. Pull requests experiment only. | The Tools band | | Settings | Its own window, not a page. | `⌘,` or the gear chip in the sidebar header | ## Experiments Some features are off until you turn them on in **Settings › Experiments**. Each is a boolean setting `features.` that defaults to `false` and is tagged Beta or Alpha. | Experiment | What it turns on | |---|---| | Flow agent | A floating terminal running an agent CLI that drives the workspace (`⌃⌘J`) | | Web tabs | Browser tabs beside your terminals ([Web tabs](https://flow.worldbreakstudios.com/docs/workspace/webview-tabs.md)) | | Puddles | Pairing your other devices ([Puddle](https://flow.worldbreakstudios.com/docs/features/puddle.md)) | | Pull requests | The Reviews and My PRs pages | | Automations | The Schedules page and the scheduler | | Factory (Alpha) | The Factory page | | Decisions (Alpha) | Bring-your-own decisions model, set up in Settings › Decisions | | Notebooks (Alpha) | Runnable cells in a Notes page's Preview | | Link router (Alpha) | Routing links by rules when Flow is your default browser | | Claude image previews | Previews of `[Image #N]` placeholders in Claude Code panes | ## A license is required Flow runs under a license: a free trial or a paid plan. Until one is active, the window shows a welcome screen where you paste your key. See [Plans](https://flow.worldbreakstudios.com/docs/licensing/plans.md) and [Activation](https://flow.worldbreakstudios.com/docs/licensing/activation.md). ## Map of the docs | Section | Start here | |---|---| | Getting started | [Installation](https://flow.worldbreakstudios.com/docs/getting-started/installation.md), [Interface tour](https://flow.worldbreakstudios.com/docs/getting-started/interface-tour.md), [Keyboard shortcuts](https://flow.worldbreakstudios.com/docs/getting-started/keyboard-shortcuts.md), [Command palette](https://flow.worldbreakstudios.com/docs/getting-started/command-palette.md) | | Workspace | [Sessions, tiles and tabs](https://flow.worldbreakstudios.com/docs/workspace/groups-and-tiles.md), [Persistent sessions](https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions.md), [Dashboard](https://flow.worldbreakstudios.com/docs/workspace/dashboard.md), [Labels and spaces](https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces.md), [Session groups](https://flow.worldbreakstudios.com/docs/workspace/session-groups.md), [Pop-outs and window locks](https://flow.worldbreakstudios.com/docs/workspace/pop-outs-and-window-locks.md), [Notifications and snooze](https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze.md), [Web tabs](https://flow.worldbreakstudios.com/docs/workspace/webview-tabs.md) | | Features | [Files](https://flow.worldbreakstudios.com/docs/features/files.md), [Code navigation](https://flow.worldbreakstudios.com/docs/features/code-navigation.md), [Pull requests](https://flow.worldbreakstudios.com/docs/features/pull-requests.md), [Notebooks](https://flow.worldbreakstudios.com/docs/features/notebooks.md), [Trash](https://flow.worldbreakstudios.com/docs/features/trash.md), [Task Manager](https://flow.worldbreakstudios.com/docs/features/task-manager.md), [Flow agent](https://flow.worldbreakstudios.com/docs/features/flow-agent.md), [Snippets and clipboard](https://flow.worldbreakstudios.com/docs/features/snippets-and-clipboard.md) and more | | Configuration | [Settings](https://flow.worldbreakstudios.com/docs/configuration/settings.md), [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md), [.flowspace.json](https://flow.worldbreakstudios.com/docs/configuration/flowspace.md), [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md), [Appearance](https://flow.worldbreakstudios.com/docs/configuration/appearance.md) | | CLI and automation | [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md), [drop](https://flow.worldbreakstudios.com/docs/cli/drop.md), [ghx and gitx](https://flow.worldbreakstudios.com/docs/cli/ghx-and-gitx.md), [Claude Code](https://flow.worldbreakstudios.com/docs/cli/claude-code.md), [Agent skills](https://flow.worldbreakstudios.com/docs/cli/agent-skills.md) | | Sync and devices | [Overview](https://flow.worldbreakstudios.com/docs/sync/overview.md), [Remote hosts](https://flow.worldbreakstudios.com/docs/sync/remote-hosts.md), [Mobile](https://flow.worldbreakstudios.com/docs/sync/mobile.md) | | Licensing | [Plans](https://flow.worldbreakstudios.com/docs/licensing/plans.md), [Activation](https://flow.worldbreakstudios.com/docs/licensing/activation.md) | --- # Installation and updates URL: https://flow.worldbreakstudios.com/docs/getting-started/installation Install Flow from its disk image, pick a release channel, keep it updated, put flow-cli, drop and ghx on your PATH, and grant macOS permissions. Flow ships as a signed disk image on the public GitHub releases page of `worldbreakstudios/flow-app`. You drag it to Applications once; after that Flow checks for new versions itself and can install them in place. No GitHub account or `gh` login is needed for any of this. ## Requirements - macOS 11.0 or later. - Current releases are built for Apple silicon: the disk image is named `Flow--macos-arm64.dmg`. - A license (a free trial or a paid plan). Flow opens to a welcome screen until you activate one; see [Activation](https://flow.worldbreakstudios.com/docs/licensing/activation.md). ## Install Flow 1. Open the releases page: `https://github.com/worldbreakstudios/flow-app/releases`. 2. Pick a release and download its `.dmg` (and, to verify it, its `SHA256SUMS` file). 3. Optional: check the download from the folder you saved both files to: ```sh shasum -a 256 -c SHA256SUMS ``` 4. Open the disk image and drag **Flow** to **Applications**. 5. Eject the disk image and open Flow from Applications. 6. Paste your license key into the welcome screen and press Return. > **Warning:** Run Flow from Applications, not from the mounted disk image. Flow does not offer to install its command-line tools when it runs from a mounted volume or from a macOS App Translocation path, and the updater will not replace an app there. ### Which release to download Releases come in three kinds, and the in-app channels nest: Stable is inside Dev, which is inside Experimental. | Kind | How it looks on the releases page | Channel that receives it | |---|---|---| | Stable | A `vX.Y.Z` release not marked Pre-release | Stable, Dev, Experimental | | Dev | A `vX.Y.Z` release marked **Pre-release**, titled "(dev)" | Dev, Experimental | | Experimental | A `vX.Y.Z-exp.N` pre-release, titled "(experimental)", published hourly | Experimental only | > **Note:** If the releases page lists no Stable release yet, download the newest Dev release and set the release channel to Dev (below), or Flow will find nothing newer to update to. ## Updates Flow looks for new releases over plain HTTPS. Settings are in **Settings › About › Updates**: | Setting | Key | Type | Default | What it does | |---|---|---|---|---| | Check for updates automatically | `updates.check` | bool | `true` | Checks 5 seconds after launch, then every 6 hours. Nothing is downloaded until you choose to install. | | Install updates automatically | `updates.auto` | bool | `false` | Downloads and installs a found update without asking. Flow never relaunches on its own. | | Release channel | `updates.channel` | `stable`, `dev` or `experimental` | `stable` | Which releases count. Stable gets finished releases, Dev also gets prereleases, Experimental adds the hourly builds. | ### Install an update 1. When an update is found, a toast says so. You can also run **Check for updates…** from the command palette (`⇧⌘P`) or press the pill beside the version in Settings › About. 2. Choose **Download and install update…** (palette) or the Settings pill. Flow downloads the disk image into `~/.flow/updates/`, checks it against the release's `SHA256SUMS` (a mismatch is a failure, never skipped) and swaps the new `Flow.app` in place of the running one. 3. Press **Relaunch now** in the toast, the Settings pill, or run **Relaunch to update** from the palette (listed only while an installed update waits). If `/Applications` is not writable by your user (a standard account), macOS asks for an administrator password once for the swap. Dismissing that prompt cancels the install and changes nothing. Persistent shells survive the update: they keep running while Flow relaunches and the panes reattach. See [Persistent sessions](https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions.md). ### When updates stop - A network error, a timeout or GitHub's anonymous rate limit is silent; the periodic check keeps going, and a manual **Check for updates…** reports the reason in a toast. - If the releases repository answers "not found", Settings › About shows "Updates unavailable" and the periodic check stops until Flow restarts. ## Command-line tools on your PATH Flow.app carries its command-line tools in `Flow.app/Contents/MacOS`. Installing them puts one symlink per tool into `/usr/local/bin`, so the tools on your PATH are always those of the installed app and update with it. | Tool | What it is | Docs | |---|---|---| | `flow-cli` | Drives a running Flow over its command bus | [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md) | | `drop` | The git worktree tool | [drop](https://flow.worldbreakstudios.com/docs/cli/drop.md) | | `ghx` | The cached GitHub CLI front end | [ghx and gitx](https://flow.worldbreakstudios.com/docs/cli/ghx-and-gitx.md) | | `gitx` | A `git` passthrough that tells `ghx` about pushes | [ghx and gitx](https://flow.worldbreakstudios.com/docs/cli/ghx-and-gitx.md) | | `sink` | The sync engine's CLI | [Sink](https://flow.worldbreakstudios.com/docs/sync/sink.md) | To install them: 1. On first launch from Applications, Flow asks "Install command-line tools?" once. Accept it. 2. Later, use **Settings › Advanced › Command-line tools**, or run **Install command-line tools…** from the command palette. 3. If `/usr/local/bin` is not writable, macOS asks for an administrator password once for all the links. The Settings row shows the state: "Installed in /usr/local/bin", "Not installed", or which tools are linked and which are missing. Flow never replaces a file it does not own: if `/usr/local/bin/ghx` is someone else's binary, that tool is skipped with "… exists and isn't Flow's; skipped" and the others are still linked. Check the result from a new terminal: ```sh which flow-cli drop ghx flow-cli --help ``` To route `gh` and `git` in your own shells through `ghx` and `gitx`, use the two buttons in **Settings › General › Pull requests** ("Route gh through ghx", "Route git through gitx"); see [ghx and gitx](https://flow.worldbreakstudios.com/docs/cli/ghx-and-gitx.md). ## Mermaid diagrams need nothing installed Mermaid diagrams in pull request pages and Notes previews are drawn locally with a copy of mermaid.js bundled in Flow. You do not need to install mermaid-cli, and no diagram text leaves your Mac. ## macOS permissions Flow asks for these only when a feature needs them. | Permission | Needed for | Where to grant it | |---|---|---| | Accessibility | Locking other apps' windows to a session, pasting from clipboard history into another app, snippet keyword expansion | System Settings › Privacy & Security › Accessibility | | Paste from Other Apps (macOS 15.4 and later) | Recording clipboard history | System Settings › Privacy & Security › Paste from Other Apps, or the button in Settings › Clipboard | | Notifications | Banners for notification kinds set to "Notification Center". Flow posts them through AppleScript, so macOS lists them under **Script Editor**. | System Settings › Notifications | | Administrator password | Linking the command-line tools into a protected `/usr/local/bin`; updating Flow in `/Applications` from a standard account | Asked at the time | To start Flow when you log in, turn on **Settings › General › Startup › Open at login**. ## Where Flow keeps your data | Path | What is in it | |---|---| | `~/.flow/settings.json` | Your settings, a flat JSON object | | `~/.flow/license.json` | Your license token and device id | | `~/.flow/sessions/` | Persistent shell holders' sockets and locks | | `~/.flow/history/` | Per-pane zsh history | | `~/.flow/updates/` | Downloaded updates | | `~/Library/Application Support/flow/state.db` | Sessions, layouts, tabs, closed-session history | | `~/Library/Application Support/flow/groups.json` | New session picker favorites and recents | --- # Interface tour URL: https://flow.worldbreakstudios.com/docs/getting-started/interface-tour A walk around Flow's window: the sidebar, header chips, Tools band, spaces bar, tiles and tab strips, the primary pane header and the pages. Flow's main window has two parts: the **sidebar** on the left, which lists your sessions and tools, and the **main area**, which shows the current page (Sessions by default). This page names every part so the rest of the docs can refer to them. ## The sidebar The sidebar is one column, top to bottom: 1. **Header**: the window's traffic lights, then chips at the right. 2. **Tools band**: your CLI tools and tool pages. 3. **Pinned** and **Sessions** sections, with a **New session** row under the Sessions caption. 4. A bottom dock with the **Snoozed** and **History** sections. 5. The **spaces bar**: label chips. Drag the sidebar's right edge to resize it. Press `⌘S` (labelled "Focus terminals") to hide or show it; while it is hidden, a "Show sessions" button floats beside the traffic lights. Right-click empty sidebar space to switch to horizontal tabs ("Use horizontal tabs"). ### Header chips | Chip | What it does | |---|---| | Factory | Opens or closes the Factory page (`⌘;`). Shown only while the Factory experiment is on; lit on its page, with a blue dot while something there needs you. | | Dashboard | Opens or closes the [Dashboard](https://flow.worldbreakstudios.com/docs/workspace/dashboard.md) (`⌘G`). | | Settings | Opens the Settings window (`⌘,`). | | Hide sidebar | Hides the sidebar, as `⌘S` does. | ### Tools band Under the header sits a "Tools" caption (click it to fold the band) and one row per tool: CLI tools you registered, flow tools, and the tool pages: Trash (with its worktree count), Task Manager, Schedules, Reviews and My PRs (the last three only while their experiments are on) and Puddle (only while Puddles is on). Click a row to open its page. The Task Manager row shows a live CPU and memory readout beside its label. Choose which rows show, and their order, in **Settings › Tools**. With every row switched off there is no band. See [Tool pages](https://flow.worldbreakstudios.com/docs/features/tool-pages.md). ### Session sections | Section | What is in it | |---|---| | Pinned | Sessions you pinned. Shown while there are some, and while you drag a session row (drop it on the caption to pin it). | | Sessions | Every other session in the selected label. The caption is always shown; click it to fold the list (the New session row stays). | | Snoozed | Snoozed sessions, docked at the bottom. Click its caption to fold it. | | History | Closed sessions of the selected label, newest first, as dim rows. Folded by default; click a row to restore it. | Each section scrolls on its own under its caption. A session row is one line: its program icons, an unread dot while it wants attention, the title (bold while unread), the time of its last attention, a merge badge (green check when its pull request is ready to merge, red alert when it has conflicts) and a pull request glyph. - Click a row to switch to that session. Right-click it for its menu: Mark as unread, Pin group, Snooze, session group choices, Close session and the Labels checklist. - Drag a row to reorder it. Dragging across the Pinned boundary pins or unpins it; dropping it on a label chip adds that label. ### Spaces bar The bar at the bottom holds **All sessions**, one chip per label and a "+" that creates a label. Clicking a chip filters the sidebar and the Dashboard to that label. See [Labels and spaces](https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces.md). ## The main area on the Sessions page The selected session's tiles fill the main area. See [Sessions, tiles and tabs](https://flow.worldbreakstudios.com/docs/workspace/groups-and-tiles.md) for what you can do with them. ### The primary pane and its header The left-most tile is the session's **primary pane**. It has no tab strip; instead its header row shows, left to right: | Part | What it shows | Click | |---|---|---| | Branch pill | `repo / branch` (or the short commit when detached), the branch's `+added −removed` counts and, in amber, `● N` uncommitted files. Only in a git checkout. | Opens the file picker on the session's changed files | | Title chip | The session's program icons, the pane's title and a folder button | Folder button: Change directory. Right-click it for Change directory… and Copy path | | Context chip | A paperclip and a count, while an agent's context card is minimized | Expands the card | | PR pill | The pull request's state, `#number`, a state word and the checks as `✓ passed/total`. Only when the branch has a PR. | Opens the PR as a review tab, or in the browser when `git.open_pr_in_review` is off | | "+" | Shown on a session that is not in a session group | New session in a group with this one | On a narrow pane the header sheds parts in order: the "+", the context chip, the counts, the PR pill, then the branch pill. Clicking anywhere else on the header focuses the pane. ### Tab strips Every other tile has a tab strip. The active tab is a raised chip with its icon, title and ×; other tabs show their icon and title. A "+" after the last tab opens a new tab; right-click it for a menu with Terminal, Files and Notes. Each tab wears its program's icon card (see [Tab icons](https://flow.worldbreakstudios.com/docs/features/tab-icons.md)). ### Header buttons and folded panes A tile in a split has two buttons at its top right: - **⤢** "Collapse everything else" (focus mode, `⌥⌘F`); once the others are folded it becomes "Expand everything else". - **–** "Collapse pane" (`⌥⌘M` toggles the focused pane). A collapsed pane takes no space; it becomes a small **gutter pill** on the seam it folded onto. Click the pill to bring it back. ### Session group bar While the selected session belongs to a [session group](https://flow.worldbreakstudios.com/docs/workspace/session-groups.md), a bar across the top of the main area shows the group's chip, one tab per member and a "+". ## Pages The main area shows other pages too: the Dashboard, CLI tool pages, the Trash, the Puddle, the Task Manager, the Factory, Schedules and the two Pull Requests pages. They are listed, with how to reach each, in the [Introduction](https://flow.worldbreakstudios.com/docs/getting-started/introduction.md). Settings is a separate window (`⌘,`) with these sections: About, General, Notifications, Snooze, Code, Clipboard, Appearance, Icons, Tools, Repos, Keyboard, Experiments, Decisions (while that experiment is on), Link router (while that experiment is on) and Advanced. ## Other windows | Window | What it is | |---|---| | Command palette | A Spotlight-style window for every command, setting and session (`⇧⌘P`, or `⌥⌘P` from any app). See [Command palette](https://flow.worldbreakstudios.com/docs/getting-started/command-palette.md). | | Toasts | Notifications stack at the main window's bottom-right; hover the stack to expand it. See [Notifications and snooze](https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze.md). | | Flyover terminal | A separate, ordinary terminal window with its own tabs, outside every session (`` ⌘` `` toggles it). Its frame is remembered. | | Label windows | A second full window showing only one label's sessions. See [Labels and spaces](https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces.md). | | Pop-outs | A tab lifted into its own window. See [Pop-outs and window locks](https://flow.worldbreakstudios.com/docs/workspace/pop-outs-and-window-locks.md). | ## Horizontal tabs instead of the sidebar Turn on **Settings › Appearance › Layout › Horizontal tabs** (`appearance.horizontal_tabs`, default off) to replace the sidebar column with one strip across the top of the window: a label button, the session tabs, Snoozed and History chips, and the Factory, Dashboard and Settings chips. See [Labels and spaces](https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces.md). --- # Keyboard shortcuts URL: https://flow.worldbreakstudios.com/docs/getting-started/keyboard-shortcuts Every default Flow shortcut by area, the system-wide hotkeys, the fixed keys, the unbound actions and how to rebind any of them. Every Flow shortcut is a ⌘ chord bound to a named action, and every action can be rebound. The tables below list the defaults exactly as Flow ships them, grouped the way **Settings › Keyboard** groups them. The setting key is what you write in `~/.flow/settings.json` to rebind it (see [How to rebind](https://flow.worldbreakstudios.com/docs/getting-started/keyboard-shortcuts.md#how-to-rebind)). > **Note:** A few shortcuts only do something in a context: a web tab, a Files tab, the Dashboard, or while an experiment (Settings › Experiments) is on. The Notes column says so. ## Default shortcuts ### Layout | Shortcut | Action | Setting key | Notes | |---|---|---|---| | `⌘D` | Split side-by-side | `keyboard.split_right` | Splits the focused tile; the new pane opens the New tab launcher (or a terminal, per `tabs.new_tab`). | | `⇧⌘D` | Split stacked | `keyboard.split_down` | | | `⌥⌘M` | Collapse/expand pane | `keyboard.toggle_collapse` | Folds the focused pane into a gutter pill, or brings it back. | | `⌥⌘F` | Focus mode: collapse other panes / zoom the dashboard card | `keyboard.toggle_focus_others` | Folds every other pane, or expands them again. On the Dashboard it zooms the focused card. | | `⌘S` | Focus terminals | `keyboard.toggle_sidebar` | Hides or shows the sidebar. | | `⌘G` | Toggle dashboard | `keyboard.toggle_dashboard` | | | `⌥⌘S` | Toggle dashboard side panel | `keyboard.toggle_dashboard_side` | Dashboard only. | | `⌥⌘G` | Cycle dashboard PR filter | `keyboard.dashboard_pr_filter` | Dashboard only: All → Working → Complete. | | `⌘→` | Focus dashboard side panel | `keyboard.dashboard_focus_side` | Dashboard only: keyboard to the side panel. | | `⌘←` | Focus dashboard card | `keyboard.dashboard_focus_card` | Dashboard only: keyboard back to the card. | | `⇧⌘E` | Toggle file explorer | `keyboard.toggle_files_explorer` | Files tab. | | `⌥⌘E` | Filter files | `keyboard.filter_files` | Files tab: focuses the explorer filter. | | `⌘;` | Toggle factory | `keyboard.toggle_factory` | Factory experiment only. | | `⌥⌘\` | Close the Factory pane | `keyboard.factory_close_pane` | Factory experiment only. | ### Tabs & sessions | Shortcut | Action | Setting key | Notes | |---|---|---|---| | `⌘T` | New tab | `keyboard.new_tab` | In the focused tile; from the primary pane the tab opens to its right. | | `⌥⌘B` | New webview… | `keyboard.new_webview` | Web tabs experiment only. | | `⌥⌘R` | Review pull request | `keyboard.review_pull_request` | Opens the session's PR as a review tab. | | `⇧⌘T` | Reopen closed session | `keyboard.reopen_closed_session` | Opens the History restore palette for the last closed session. | | `⇧⌘Z` | Snooze / wake group | `keyboard.toggle_snooze` | Wakes a snoozed session; otherwise snoozes per `snooze.default`. | | `⌘F` | Find in page… | `keyboard.find_in_page` | Web tab, or a Files tab code view. | | `⌘L` | Focus address bar | `keyboard.focus_address` | Web tab address bar. | | `⇧⌘O` | Open in default browser | `keyboard.open_in_browser` | Web tab. | | `⇧⌘C` | Copy link | `keyboard.copy_link` | Web tab. | | `⌃⌘P` | Print… | `keyboard.print_page` | Web tab. | | `⌥⌘I` | Developer tools | `keyboard.developer_tools` | Web tab. | | `⌃⌘I` | Site information | `keyboard.site_info` | Web tab: toggles the Site popover. | | `⇧⌘[` | Previous tab | `keyboard.prev_tab` | Within the focused tile. | | `⇧⌘]` | Next tab | `keyboard.next_tab` | Within the focused tile. | | `⌘O` | Open file in editor | `keyboard.open_in_editor` | | | `⌥⌘O` | Open in Files | `keyboard.open_in_files` | On a PR review diff line: opens it in a Files tab. | | `⌘B` | Go to definition | `keyboard.go_to_definition` | Files tab caret. See [Code navigation](https://flow.worldbreakstudios.com/docs/features/code-navigation.md). | | `⇧⌘B` | Find references | `keyboard.find_references` | Files tab caret. | | `⌃⌥⌘N` | New label | `keyboard.new_section` | Creates a label and opens the label editor. | ### Focus | Shortcut | Action | Setting key | Notes | |---|---|---|---| | `⌘[` | Focus previous tile | `keyboard.prev_tile` | | | `⌘]` | Focus next tile | `keyboard.next_tile` | | | `⇧⌘H` | Focus pane left | `keyboard.focus_left` | | | `⇧⌘J` | Focus pane down | `keyboard.focus_down` | | | `⇧⌘K` | Focus pane up | `keyboard.focus_up` | | | `⇧⌘L` | Focus pane right | `keyboard.focus_right` | | | `⇧⌘↑` | Previous sidebar tab | `keyboard.prev_sidebar_tab` | Walks tool rows and sessions, wrapping. ⇧⌘← in horizontal tabs mode. | | `⇧⌘↓` | Next sidebar tab | `keyboard.next_sidebar_tab` | ⇧⌘→ in horizontal tabs mode. | ### Editing | Shortcut | Action | Setting key | Notes | |---|---|---|---| | `⌘C` | Copy selection | `keyboard.copy` | | | `⌘V` | Paste | `keyboard.paste` | | ### App | Shortcut | Action | Setting key | Notes | |---|---|---|---| | `⌥⇧⌘B` | New webview from command… | `keyboard.new_webview_from_command` | Web tabs experiment only: the URL is the first line a command prints. | | `⇧⌘N` | New session… | `keyboard.new_group` | The New session flow. | | `⌘W` | Close tab | `keyboard.close_tab` | Pinned tabs never close. On the primary pane it asks to close the session. | | `⇧⌘W` | Close group | `keyboard.close_group` | Closes the session after a confirm. | | `⌥⌘P` | Pin / unpin tab | `keyboard.toggle_pin_tab` | Also the default system-wide palette hotkey (see below). | | `⌥⌘T` | Show / hide title bar | `keyboard.toggle_title_bar` | Web tab: shows or hides its toolbar. | | `⌘Q` | Quit | `keyboard.quit` | | | `⇧⌘←` | Previous label | `keyboard.prev_page` | Cycles labels, wrapping. ⇧⌘↑ in horizontal tabs mode. | | `⇧⌘→` | Next label | `keyboard.next_page` | ⇧⌘↓ in horizontal tabs mode. | | `⌘,` | Open settings | `keyboard.open_settings` | | | `⇧⌘P` | Command palette | `keyboard.command_palette` | | | `⌘P` | Find file | `keyboard.find_file` | The palette's file picker. | | `⇧⌘F` | Search in files | `keyboard.search_in_files` | The file picker in search mode. | | `` ⌘` `` | Toggle Flyover Terminal | `keyboard.toggle_flyover` | The separate flyover terminal window. | | `⇧⌘S` | Save as workspace | `keyboard.save_workspace` | Saves the layout as a `.flowspace.json` profile. | | `⇧⌘G` | Open pull request | `keyboard.open_pr_in_github` | A review tab while `git.open_pr_in_review` is on (default), else the browser. | | `⇧⌘M` | Merge pull request | `keyboard.merge_pr` | Merges the session's PR when it can be merged. | | `⌃⌘J` | Toggle Flow agent | `keyboard.toggle_flow` | Flow agent experiment only; also works system-wide. | | `⌘=` | Increase font size | `keyboard.increase_font_size` | Terminal text while a terminal is focused, else the app chrome. | | `⌘-` | Decrease font size | `keyboard.decrease_font_size` | | | `⌃⌥⌘C` | Screenshot to clipboard | `keyboard.screenshot_to_clipboard` | | | `⌃⌥⌘S` | Screenshot to file | `keyboard.screenshot_to_file` | | | `⌃⌥⌘1` | Go to Sessions | `keyboard.go_to_sessions` | | | `⌃⌥⌘3` | Go to Trash | `keyboard.go_to_trash` | | | `⌃⌥⌘2` | Go to Puddle | `keyboard.go_to_puddle` | Puddles experiment only. | | `⌥⌘N` | Notification history | `keyboard.show_notifications` | The notification history menu; marks everything read. | ## System-wide hotkeys These work from any app, with Flow in the background. They are registered with macOS, so another app that already owns a chord can keep it from registering. Rebind them in the "Global hotkeys" rows of Settings › Keyboard, or with the keys below; the value `none` turns one off. | Default | What it does | Setting key | |---|---|---| | `⌥⌘P` | Command palette (anywhere) | `keyboard.global_palette` | | `⌥⌘V` | Clipboard history (anywhere) | `keyboard.global_clipboard` | | `⇧⌘,` | Search snippets (anywhere) | `keyboard.global_snippets` | | `⇧⌘1` | Paste next from clipboard cycle (anywhere) | `keyboard.global_clipboard_cycle` | | `⇧⌘2` | Reset clipboard cycle (anywhere) | `keyboard.global_clipboard_cycle_reset` | | `⌃⌘J` | Toggle Flow agent, while the Flow agent experiment is on | `keyboard.toggle_flow` | Global hotkey values use their own spelling, for example `alt+meta+KeyP` (the default palette hotkey), `shift+meta+Comma` or `ctrl+meta+Space`. > **Note:** `⌥⌘P` is both the in-app "Pin / unpin tab" default and the default system-wide palette hotkey. Rebind one of them if you use both. ## Fixed keys These keys are not in the bindings table and cannot be rebound. | Keys | Where | What they do | |---|---|---| | `⌘1` – `⌘9` | Anywhere in a workspace window | Switch to the Nth session in the sidebar (on the Dashboard, the Nth card; in a label window, that window's own sessions) | | `⌃1` – `⌃9` | Sessions page, while the session is in a session group | Switch to the group's Nth member | | `⌃Tab` / `⌃⇧Tab` | Same | Next / previous member, wrapping (a focused Files tab keeps its own `⌃Tab`) | | `⌘1` – `⌘7` | New tab launcher | Pick a tab type: Terminal, Web, Pull request, Files, Notes, Run, Shells (six types, `⌘1` – `⌘6`, while web tabs are off) | | `⌥1` – `⌥9` | New tab launcher | Launch the Nth visible run row | | `⌘1` / `⌘2` | Label editor | Glyph tab / Theme tab | | `↑` `↓` `↩` `⎋` `⌫` | Command palette | Move, run, clear or close, and on an empty query go back a step | | `⇧⌘H` `⇧⌘J` `⇧⌘K` `⇧⌘L`, `⌘[` `⌘]`, `⇧⌘` arrows | Dashboard | Move the focused card through the grid (the same actions as on Sessions) | ## Horizontal tabs swap four arrows With horizontal tabs on (`appearance.horizontal_tabs`), sessions run left to right and labels top to bottom, so the four `⇧⌘` arrow steps trade places: `⇧⌘←` / `⇧⌘→` step the session tabs and `⇧⌘↑` / `⇧⌘↓` step the labels. A custom arrow chord you bound to one of these four mirrors the same way. The stored `keyboard.*` value always holds the vertical layout's chord. ## Actions without a default shortcut These actions run from the command palette (`⇧⌘P`), menus or `flow-cli action ` until you give them a chord. Some appear only while their experiment is on or in a context (a pop-out, a session group, a snoozed session). | Action | Setting key | Settings › Keyboard group | |---|---|---| | New terminal | `keyboard.new_terminal` | Tabs & sessions | | Browse files | `keyboard.new_files_tab` | Tabs & sessions | | Change directory… | `keyboard.change_directory` | Tabs & sessions | | Notes | `keyboard.new_notes_tab` | Tabs & sessions | | New Shells tab | `keyboard.new_shells_tab` | Tabs & sessions | | New remote session… | `keyboard.new_remote_session` | Tabs & sessions | | Open PR as session… | `keyboard.open_pr_session` | Tabs & sessions | | Go links | `keyboard.go_links` | App | | Create go link | `keyboard.new_go_link` | App | | Clipboard history | `keyboard.clipboard_history` | App | | Search snippets | `keyboard.search_snippets` | App | | Create snippet | `keyboard.create_snippet` | App | | Import snippets | `keyboard.import_snippets` | App | | Export snippets | `keyboard.export_snippets` | App | | Paste next from clipboard cycle | `keyboard.clipboard_cycle_next` | App | | Reset clipboard cycle | `keyboard.clipboard_cycle_reset` | App | | Pick color | `keyboard.pick_color` | App | | Close session everywhere | `keyboard.close_group_everywhere` | App | | Pin/unpin group | `keyboard.toggle_pin` | App | | Babysit/stop babysitting group | `keyboard.toggle_babysit` | Tabs & sessions | | Mark group unread | `keyboard.mark_unread` | Tabs & sessions | | Toggle context card | `keyboard.toggle_context_card` | Layout | | Open agent details | `keyboard.open_agent_details` | Tabs & sessions | | New session group | `keyboard.new_session_group` | Tabs & sessions | | New session in group… | `keyboard.new_session_in_group` | Tabs & sessions | | Rename session group… | `keyboard.rename_session_group` | Tabs & sessions | | Remove from session group | `keyboard.remove_from_session_group` | Tabs & sessions | | Ungroup sessions | `keyboard.ungroup_sessions` | Tabs & sessions | | Close session group | `keyboard.close_session_group` | Tabs & sessions | | Next session in group | `keyboard.next_group_member` | Tabs & sessions | | Previous session in group | `keyboard.prev_group_member` | Tabs & sessions | | Expand/collapse session group | `keyboard.toggle_session_group_fold` | Tabs & sessions | | Add to session group… | `keyboard.add_to_session_group` | Tabs & sessions | | Toggle tabs mode | `keyboard.toggle_horizontal_tabs` | Layout | | Toggle PR details panel | `keyboard.toggle_pr_meta` | Layout | | Toggle PR activity order | `keyboard.toggle_pr_activity_order` | Layout | | Toggle PR diff groups panel | `keyboard.toggle_pr_groups` | Layout | | Toggle Markdown preview | `keyboard.toggle_markdown_preview` | Layout | | Request reviewers… | `keyboard.request_reviewers` | Layout | | Browse settings… | `keyboard.browse_settings` | App | | Show changes | `keyboard.show_changes` | App | | Mark PR ready for review | `keyboard.mark_pr_ready` | App | | Convert PR to draft | `keyboard.convert_pr_to_draft` | App | | Close pull request | `keyboard.close_pr` | App | | Enable auto-merge | `keyboard.enable_auto_merge` | App | | Disable auto-merge | `keyboard.disable_auto_merge` | App | | Change PR status… | `keyboard.pr_status` | App | | Switch session… | `keyboard.switch_session` | Tabs & sessions | | Go to first tool page | `keyboard.go_to_tool` | App | | Go to Task Manager | `keyboard.go_to_tasks` | App | | Go to Schedules | `keyboard.go_to_schedules` | App | | Go to Reviews | `keyboard.go_to_pr_reviews` | App | | Go to My PRs | `keyboard.go_to_my_prs` | App | | Go to Factory | `keyboard.go_to_factory` | App | | Invite a device to your puddle… | `keyboard.puddle_invite` | App | | Toggle the Factory secondary pane | `keyboard.factory_toggle_secondary` | Layout | | Add session to the Factory… | `keyboard.factory_add` | Tabs & sessions | | Remove session from the Factory | `keyboard.factory_remove` | Tabs & sessions | | Install command-line tools… | `keyboard.install_cli` | App | | Route gh through ghx (~/.zshrc)… | `keyboard.toggle_gh_alias` | App | | Route git through gitx (~/.zshrc)… | `keyboard.toggle_git_alias` | App | | Check for updates… | `keyboard.check_for_updates` | App | | Download and install update… | `keyboard.install_update` | App | | Relaunch to update | `keyboard.relaunch_for_update` | App | | Clear notifications | `keyboard.clear_notifications` | App | | Toggle Do Not Disturb | `keyboard.toggle_do_not_disturb` | App | | Open label in new window | `keyboard.open_label_window` | App | | Lock Window to Session… | `keyboard.lock_window` | Tabs & sessions | | Locked Windows… | `keyboard.locked_windows` | Tabs & sessions | | Pop out tab | `keyboard.pop_out_tab` | Tabs & sessions | | Return pop-out to session | `keyboard.return_pop_out` | Tabs & sessions | | Pin pop-out on top | `keyboard.toggle_pop_out_pin` | Tabs & sessions | | Cycle pop-out mode | `keyboard.cycle_pop_out_mode` | Tabs & sessions | | Focus pop-out's session | `keyboard.focus_pop_out_session` | Tabs & sessions | | Caffeinate | `keyboard.caffeinate` | App | | Decaffeinate | `keyboard.decaffeinate` | App | | Caffeinate for… | `keyboard.caffeinate_for` | App | | Caffeinate until… | `keyboard.caffeinate_until` | App | | Caffeinate status | `keyboard.caffeine_status` | App | | Caffeine in menu bar | `keyboard.toggle_caffeine_menu_bar` | App | | Keep display awake | `keyboard.toggle_caffeine_display` | App | | Test decisions model connection | `keyboard.test_decisions_model` | App | | Run all cells | `keyboard.run_all_cells` | App | | Restart kernel | `keyboard.restart_kernel` | App | | Clear outputs | `keyboard.clear_outputs` | App | | Evaluate hunk classifier | `keyboard.eval_hunk_classifier` | App | ## How to rebind **In Settings:** open **Settings › Keyboard** (`⌘,`), click a row, then press the new chord. Every app shortcut needs ⌘ plus any of ⌃, ⌥ and ⇧. Press ⎋ to cancel, or ⌫ on its own to leave the action unbound. If two actions share a chord only the first one in the list runs, and Settings marks the conflict. **Restore defaults** resets every shortcut. **With flow-cli, while Flow runs:** write the action's `keyboard.` key. It applies at once. ```sh flow-cli settings set keyboard.new_terminal cmd-ctrl-t flow-cli settings set keyboard.toggle_pin_tab none ``` **In the settings file:** quit Flow first (it reads `~/.flow/settings.json` at launch and rewrites it on every change), then add `keyboard.` keys. A chord is written as dash-separated tokens: `cmd` (implied, may be left out), `ctrl`, `alt` (or `opt`), `shift`, then the key. Use `up`, `down`, `left`, `right` for arrows and `minus` for `-`. The value `none` unbinds an action. ```json { "keyboard.new_terminal": "cmd-ctrl-t", "keyboard.toggle_pin": "cmd-ctrl-u", "keyboard.toggle_pin_tab": "none" } ``` **From a script:** run any action by name, bound or not: ```sh flow-cli action split_right flow-cli action toggle_dashboard ``` More on keybindings and settings files: [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md) and [Settings](https://flow.worldbreakstudios.com/docs/configuration/settings.md). --- # Command palette URL: https://flow.worldbreakstudios.com/docs/getting-started/command-palette Open Flow's command palette anywhere, run any action or setting, start new sessions, switch the target session, and how it ranks and remembers what you pick. The command palette is one searchable list of everything Flow can do: every action, every setting, your sessions, your files, and (when you type a query) a Spotlight-style launcher for apps, calculations, go links, system actions and web searches. It is its own window, so you can summon it over any app. ## Open it | How | Opens | |---|---| | `⇧⌘P` inside Flow | The palette at its root | | `⌥⌘P` from any app | The palette at its root, over the app you are in, without bringing Flow's main window forward | | `⌘P` / `⇧⌘F` | The file picker: find a file, or search in files | | `⌥⌘V` from any app | Clipboard history | | `⇧⌘,` from any app | Snippet search | | `⇧⌘N`, the sidebar's New session row | The New session flow | The palette opens on the display you are working on. Clicking elsewhere hides it but keeps your query and position, so the hotkey brings it back where you left off. After 2 minutes hidden it resets, and the next open starts fresh at the root. ⎋ closes the palette from the root; in the file picker and go links it first clears a non-empty query. ## Run an action At the root the palette lists every action, grouped under captions: Session, Tiles, Navigate, Edit, Clipboard & links, View, App and Caffeine. Each row shows its shortcut, if it has one. 1. Type to filter. Matching is fuzzy (the letters in order, not necessarily together), and the matched letters are highlighted. 2. Move with `↑` / `↓` and press `↩`, or click a row. Context-aware rows appear only when they apply. For example, the pull request rows (Merge pull request, Convert to draft, Mark ready for review, Close pull request, Change PR status…) are listed only when the target session's PR allows them, "Relaunch to update" only while an installed update waits, and experiment pages only while their experiment is on. ### The target session Actions that work on a session act on the **target session**, shown in a chip at the right of the palette's footer (or "No session"). Click the chip, or run **Switch session…**, to pick another session or tool from a fuzzy list; the palette returns to the root with the new target. ## Change settings from the palette Every row of the Settings window is also a palette row, with its live control. - With a query, matching settings are listed under a "Settings" caption after the commands (so typing a command's name still runs the command), with a "Show all" row when more match. Shortcut rows are listed only when the query names a shortcut word. - With an empty query, the root opens with "Recently changed": settings you changed from the palette in this run. - **Browse settings…** lists every setting, with section chips. On a highlighted setting row: | Key | Does | |---|---| | `↩` | The row's main action: flip a toggle, open a list, start recording a shortcut | | `←` / `→` | Step the value (previous / next choice, or a stepper by one step) | | `⌘⌫` | Reset the row to its default | | `⌘↩` | Open the row in the Settings window | A list, terminal theme or font opens a drill-in whose highlighted option previews live. ## Start a new session **New session…** (`⇧⌘N`) is a four-step flow. A step bar shows where you are, and each pick collapses into a chip in the header. | Step | What you pick | |---|---| | Repository | The directory: favorites, recents, then `~`, `~/src` and every folder in `~/src`, with git repos marked. Type to filter; click a row's star to make it a favorite. | | Base | Git repos only: a new branch off the default branch (a new worktree), the repo root with no worktree, an existing worktree, or a branch | | Layout | Shown only when the directory has saved workspace profiles in `.flowspace.json`: "Default — single pane" or a profile | | Label | No label, an existing label, or "New label…", named from what you type | The last screen summarizes the picks; press `↩` (Create session) to create it. `⌫` on an empty query goes back one step, and clicking a chip jumps back to that step. See [Sessions, tiles and tabs](https://flow.worldbreakstudios.com/docs/workspace/groups-and-tiles.md#create-a-session) for what happens next. **New remote session…** runs the same kind of flow for an ssh host: Host, Directory, Persistence, Label. See [Remote hosts](https://flow.worldbreakstudios.com/docs/sync/remote-hosts.md). ## The launcher: type anything When you type a query at the root, the palette also searches beyond Flow. Sections appear in this order, each only when it has a match: | Section | What it holds | `↩` | `⌘↩` | |---|---|---|---| | Answer card | A calculation, unit or currency conversion, stock quote or color | Copies the answer | | | Top hit | What you picked for this exact query before, else a go link named exactly the query, else the best app | Runs it | | | Applications | Matching apps | Launches | Reveals in Finder | | Commands | Matching actions | Runs | | | Go links | Your `go/` links whose name matches | Opens (or fills in arguments) | | | System actions | Mute, sleep, empty Trash and the like | Runs | | | System settings | Matching System Settings panes | Opens | | | Snippets | Matching snippets | Pastes | | | Search | A web search with `palette.search_engine`, then one-argument web go links | Searches in the browser | Searches in a web tab (web tabs on) | Destructive system actions (Empty Trash, Log Out, Restart, Shut Down, the Quit All rows) need two presses: the first `↩` arms the row ("Press ↩ again to …"), the second runs it. Prefixes switch the palette into a mode: | Type | Opens | |---|---| | `/` as the first character | The file picker in search (grep) mode | | `go/` | Go links, with the rest as the query (`go/pr/241` searches for `pr/241`) | | `go` then `⇥` | Go links | | `caffeinate 2h`, `awake until 6pm` | A Caffeinate card for that duration or time | The web search engine is **Settings › General › Command palette › Web search** (`palette.search_engine`); a custom engine uses the "Search URL" row. Go links live in `~/.flow/golinks.json`. ## How ranking and history work **Fuzzy ranking.** Commands are scored by how well your query matches their label; ties keep the order of the action list. **Learned top hits.** Flow remembers which row you pick for each query, in `~/.flow/palette_usage.json`. A pick's score halves every 14 days and grows by one each time you pick it again; once a row reaches 1.5 for a query (about two recent picks; one pick never promotes) it becomes that query's **Top hit**. Queries are compared trimmed, lowercased and with spaces collapsed. At most 8 picks per query and 500 queries are kept. **History.** Like a shell, `↑` on an empty root (with the first row highlighted) walks back through what you ran from the root, newest first; `↓` walks forward, and past the newest returns to the empty root. The entry's text fills the field, still editable, with the row it ran highlighted so `↩` runs it again. History lives in `~/.flow/palette_history.json`: at most 100 entries, duplicates moved to the front, nothing over 512 characters, and nothing that looks like a secret. Both files are global: they are shared by every Flow build and worktree on your Mac. ## Other palette modes The palette also hosts these, each documented on its own page: - The file picker (`⌘P`, `⇧⌘F`): [Files](https://flow.worldbreakstudios.com/docs/features/files.md). - Clipboard history and snippets (`⌥⌘V`, `⇧⌘,`): [Snippets and clipboard](https://flow.worldbreakstudios.com/docs/features/snippets-and-clipboard.md). - Locked windows: [Pop-outs and window locks](https://flow.worldbreakstudios.com/docs/workspace/pop-outs-and-window-locks.md). - Add to session group…: [Session groups](https://flow.worldbreakstudios.com/docs/workspace/session-groups.md). - Caffeinate: [Notifications and snooze](https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze.md#keep-your-mac-awake). --- # Sessions, tiles and tabs URL: https://flow.worldbreakstudios.com/docs/workspace/groups-and-tiles Create sessions with their own working directory, split them into tiles, manage tabs, the primary pane rule, closing and reopening closed sessions. A **session** is one row in the sidebar: a working directory plus a layout of terminals and other tabs. Some menus and actions call it a **group** ("Pin group", "Close group"); it is the same thing. Each session's layout is a split tree of **tiles** (panes), and each tile holds one or more **tabs**. Everything you open in a session starts in its working directory. ## Create a session 1. Press `⇧⌘N`, click **New session** under the Sessions caption, or run **New session…** from the command palette. 2. **Repository**: pick the directory. The list shows Favorites, then Recents (the last 8), then All: your home folder `~`, `~/src` and every folder directly inside `~/src`, with git repos marked. Type to filter by name or path. Click a row's star to make it a favorite. 3. **Base** (git repos only): pick what to open. - **new branch off default**: a new git worktree on a new branch from the default branch (made with [drop](https://flow.worldbreakstudios.com/docs/cli/drop.md)). - **repo root (no worktree)**: the repository itself. - An existing worktree, or a local or remote branch. 4. **Layout** (only when the directory has workspace profiles in `.flowspace.json`): "Default — single pane" or a saved profile. See [.flowspace.json](https://flow.worldbreakstudios.com/docs/configuration/flowspace.md). 5. **Label**: No label, an existing label, or "New label…" (named from what you type). See [Labels and spaces](https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces.md). 6. Review the summary and press `↩` to create the session. In the flow, `⌫` on an empty query goes back one step, and clicking a step's chip jumps back to it. Favorites and recents are saved in `~/Library/Application Support/flow/groups.json`. ### The command a new session runs A new session's primary pane runs the **Primary command**: **Settings › General › Sessions › Primary command** (`session.primary_command`, text, default `claude`). Set it to another agent CLI, or to an empty value for a plain shell. You can override it per repository (it is a personal setting: a team file in a repo cannot set it); see [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md). ## The primary pane rule Every session has a primary pane, and Flow keeps one layout rule for it: - With one tile, that tile is the primary. - With more than one tile, the primary is the left column and every other tile sits to its right. - The primary holds exactly one tab. A new tab opened from it moves into a tile on the right, and focus follows it. - The primary has no tab strip. Its header shows the branch, the title with its folder button and the pull request; see [Interface tour](https://flow.worldbreakstudios.com/docs/getting-started/interface-tour.md#the-primary-pane-and-its-header). - The primary's tab cannot be dragged, take a dropped tab, or pop out. ## Working directory Each session has its own working directory. Every new tab and split in it starts there; a tab you drag in from another session keeps its own shell and directory. To change it: 1. Click the folder button in the primary pane's title chip (or right-click it and choose **Change directory…**, or run **Change directory…** from the palette). 2. Type a path: `~` and `~/…`, a path relative to the current directory, and `.` / `..` all work. The directory must exist. 3. Press `↩`. New tabs and splits start in the new directory. Open panes stay where they are, except the primary: if its shell is sitting at a bare prompt (no command running), Flow types a `cd` into it. Right-click the folder button and choose **Copy path** to copy the directory. ## Tabs | To | Do | |---|---| | Open a tab in the focused tile | `⌘T`, or the "+" at the end of the tab strip | | Always open a terminal | Right-click "+" and pick Terminal, or run **New terminal** | | Switch tabs in a tile | `⇧⌘[` / `⇧⌘]`, or click | | Pin a tab | `⌥⌘P` or the tab's right-click menu. Pinned tabs sort to the front, keep their full title and cannot be closed until unpinned. | | Move a tab | Drag it along the strip to reorder, onto another tile's strip or middle to move it there, onto a tile's edge to split it out, or onto a session row in the sidebar to send it to that session | | Close a tab | `⌘W` or its × | ### The New tab launcher With **Settings › General › Tabs › New tab** set to Ask (`tabs.new_tab`: `ask`, the default, or `terminal`), `⌘T`, the "+" and a new split open a **New tab** launcher instead of a terminal. Type and press `↩`: | You type | It opens | |---|---| | Nothing | A terminal | | A URL (`https://…`, `localhost:3000`, `example.com`) | A web tab (web tabs experiment on) | | `#123` | That pull request | | A path with no spaces (`/…`, `~/…`, `./…`) | A Files tab (an executable or missing path runs as a command instead) | | Anything else | A terminal running it as a command | Or pick a tab type: `⌘1` Terminal, `⌘2` Web, `⌘3` Pull request, `⌘4` Files, `⌘5` Notes, `⌘6` Run, `⌘7` Shells. With web tabs off there is no Web tile and the rest move up (`⌘1` to `⌘6`). The launcher also lists run commands from the repo's `.flowspace.json` and its run providers (`⌥1` to `⌥9` launch the first nine; see [Run providers](https://flow.worldbreakstudios.com/docs/configuration/run-providers.md)) and recent web pages. Set New tab to Terminal to get a plain terminal every time. ### Tab kinds | Kind | What it is | |---|---| | Terminal | A shell or program on a terminal | | Web | A web page ([Web tabs](https://flow.worldbreakstudios.com/docs/workspace/webview-tabs.md)) | | Pull request review | A PR's summary and changes ([Pull requests](https://flow.worldbreakstudios.com/docs/features/pull-requests.md)) | | Files | A read-only browser of the session's directory ([Files](https://flow.worldbreakstudios.com/docs/features/files.md)) | | Notes | The session's notebook of Markdown pages ([Notebooks](https://flow.worldbreakstudios.com/docs/features/notebooks.md)) | | Shells | The shells an agent ran in this session ([Persistent sessions](https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions.md#agent-shell-capture)) | | Details | An agent's context card expanded into a page | | New tab | The launcher above, which turns into one of the others | ## Splits and focus | To | Do | |---|---| | Split the focused tile side by side / stacked | `⌘D` / `⇧⌘D` | | Resize | Drag the divider between tiles | | Move focus to the next / previous tile | `⌘]` / `⌘[` | | Move focus left / down / up / right | `⇧⌘H` / `⇧⌘J` / `⇧⌘K` / `⇧⌘L` | | Fold the focused pane, or unfold it | `⌥⌘M`, or the pane's – button | | Fold every other pane (focus mode), or unfold them | `⌥⌘F`, or the pane's ⤢ button | A folded pane takes no space and becomes a gutter pill on the seam it folded onto; click the pill to unfold it. Folding never changes the split ratios, so unfolding restores the layout exactly. When pills pile up on one seam they combine into one pill with a chooser, past the number set in **Settings › General › Panes › Combine collapsed panes** (`panes.combine_pills`: `2`, `3` (default), `4` or `never`). ## Switch sessions - Click a row in the sidebar. - `⌘1` to `⌘9` jump to the Nth entry in the sidebar (a session group counts as one). - `⇧⌘↑` / `⇧⌘↓` step through the sidebar's tool rows and sessions. - **Switch session…** in the palette lists every session and tool. ## The session menu Right-click a session row for: | Item | Does | |---|---| | Mark as unread | Puts the unread dot back on the primary pane | | Pin group / Unpin group | Moves the session into or out of the Pinned section. Pinned and snoozed exclude each other. | | Snooze | Parks the session until a condition ([Notifications and snooze](https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze.md)) | | Babysit | Has the Flow agent watch the session ([Flow agent](https://flow.worldbreakstudios.com/docs/features/flow-agent.md)) | | Session group items | New group with this session, Add to / Move to group, Remove from group ([Session groups](https://flow.worldbreakstudios.com/docs/workspace/session-groups.md)) | | Close session | Closes it after a confirm | | Labels | One checkable row per label | ## Close tabs and sessions - `⌘W` closes the active tab. A pinned tab does not close. Closing a tile's last tab closes the tile. - `⌘W` on the primary pane's tab, `⇧⌘W` (Close group), or **Close session** in the row menu closes the whole session after a confirm. - Closing a tab or session ends its shell, even with persistent sessions on, and deletes that pane's shell history. ## Reopen a closed session Closed sessions are kept on a stack of up to 100. 1. Press `⇧⌘T` (**Reopen closed session**). The palette opens on the last closed session with **As it was closed** selected. 2. Press `↩` to rebuild it with its saved layout: its tabs and their launch commands, in fresh shells. Or pick another layout. The sidebar's **History** section (folded by default; click its caption) lists the closed sessions of the selected label, newest first, each showing what its row showed when it closed. Click one to restore it the same way. An entry whose directory no longer exists is dropped from the list. A reopened session starts with no locked windows and new shell history. ## What is saved Flow saves every session, its layout, tabs, labels and pins to `~/Library/Application Support/flow/state.db` as you work, and restores them on the next launch. Whether the shells themselves keep running between launches is the **Persist sessions** setting; see [Persistent sessions](https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions.md). To reuse a layout for new sessions, press `⇧⌘S` (**Save as workspace**): name it and pick where to save it. It becomes a profile in the Layout step of New session. See [.flowspace.json](https://flow.worldbreakstudios.com/docs/configuration/flowspace.md). --- # Persistent sessions and shell history URL: https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions Keep shells running across Flow restarts and updates, how panes reattach, per-pane zsh history, the gh and git shell aliases, and agent shell capture. With **Persist sessions** on (the default), the shell in each pane runs inside a small holder process, `flow-session`, that keeps going when Flow quits. Relaunch or update Flow and every pane reattaches to its own shell, with its recent output replayed, so a long build or an agent mid-turn carries on. Your sessions, labels and layouts are restored on every launch either way; this setting decides whether the shells themselves survive. ## Turn it on or off | Setting | Key | Type | Default | |---|---|---|---| | Settings › General › Sessions › Persist sessions | `terminal.persist` | bool | `true` | - **On**: shells keep running when Flow quits, and panes reattach to them on relaunch. - **Off**: every pane is a plain shell that ends with Flow. On the next launch the same layout comes back with fresh shells. Sharing a session with a paired device, and starting sessions from one, need Persist sessions on. See [Puddle](https://flow.worldbreakstudios.com/docs/features/puddle.md). ## What survives, and what ends a shell | Event | The shell | |---|---| | Quitting Flow, or Flow relaunching after an update | Keeps running; the pane reattaches on the next launch | | Closing the tab, its tile or its session in Flow | Ends: Flow hangs up the shell (and kills it after one second if it is still there) | | The shell exiting (`exit`, the program ending) | The pane closes. For a session's primary pane that closes the session. | Holders are independent of Flow's version: one started by an older Flow keeps running across an update, and the new Flow reattaches to it. ### What reattaching looks like On reattach the holder replays the last 1 MiB of the shell's output, then resizes the terminal so a full-screen program (an editor, `htop`, an agent's UI) redraws itself. Anything you type while the replay is still arriving is discarded, so a reply meant for an old prompt never reaches the shell. ### If a pane cannot attach - If the connection to a live holder breaks, or another Flow attached to the same session, the pane stays open with a one-line notice. Press `↩` in it to reattach. It never reattaches on its own, so two copies of Flow cannot steal a session back and forth. - If the holder speaks a different protocol version, the pane says so instead of showing garbage. - If no session can be started at all, the pane runs a plain login shell and says why. - If the `flow-session` helper is missing from `Flow.app`, panes run plain shells with a notice that they will not survive a restart. Reinstall Flow, or turn Persist sessions off. ## Inspect holders from a terminal `flow-session` lives inside the app bundle; it is not linked onto your PATH. ```sh /Applications/Flow.app/Contents/MacOS/flow-session list ``` Each line is `name`, the shell's process id, and `attached` or `detached`, separated by tabs. A holder is `attached` while a Flow pane is connected to it. ```sh # end one session's shell, as closing its tab would /Applications/Flow.app/Contents/MacOS/flow-session kill NAME ``` Holders keep their sockets and locks in `~/.flow/sessions/` (created with mode 700). Inside a persistent shell, `FLOW_SESSION_NAME` holds the session's name. ## Per-pane shell history In zsh, the up arrow in a Flow pane recalls that pane's own commands, not every other pane's, the way Terminal.app does. Other shells, bash included, are left alone. How it behaves: - A persistent pane keeps its history in `~/.flow/history/NAME.history`, named after its holder, so a pane restored after a relaunch gets its history back. - A new persistent pane starts with a copy of your global history (your `HISTFILE`) as it is at that moment; commands other panes run later do not appear in it. - When a shell exits, its commands are also appended to your global `HISTFILE`, so new shells and other terminals see them. - A pane without a holder (Persist sessions off) reads your global history and deletes its own file when it exits. - Closing a persistent pane in Flow deletes its history file. History files unused for 30 days are removed at launch. Flow does this by pointing `ZDOTDIR` at a small shim directory that sources your own `.zshenv`, `.zprofile`, `.zshrc` and `.zlogin`, then sets the pane's history file. Your configuration still loads as usual. ### Turn per-pane history off Your global behaviour is kept, with no per-pane history, when any of these is true after your `.zshrc` runs: - `HISTFILE` is unset or empty, - `SAVEHIST` is `0`, - the `SHARE_HISTORY` option is set. ### Limits - A `ZDOTDIR` set in `/etc/zshenv` overrides the shim: no per-pane history. - `NO_RCS` set in your own `.zshenv` stops the later startup files and the per-pane history. - `exec zsh` starts a shell without the shim; the commands typed before it are folded in the next time the pane starts. - A session reopened from History is a new pane with fresh history, since closing it deleted its file. ## Route gh and git through ghx and gitx Flow can add two small, marked blocks to the end of your `~/.zshrc` so that `gh` and `git` typed in your shells (and run by agents in them) go through Flow's `ghx` and `gitx`. `ghx` serves GitHub reads from its cache and refreshes it after writes; `gitx` runs the real `git` and tells `ghx` after a push. Turn each on or off with the buttons in **Settings › General › Pull requests** ("Route gh through ghx", "Route git through gitx"), or the palette actions **Route gh through ghx (~/.zshrc)…** and **Route git through gitx (~/.zshrc)…**. The blocks look like this: ```text # >>> flow: route gh through ghx (managed by Flow Settings) >>> if command -v ghx >/dev/null 2>&1; then alias gh=ghx; fi # <<< flow: route gh through ghx <<< # >>> flow: route git through gitx (managed by Flow Settings) >>> if command -v gitx >/dev/null 2>&1; then alias git=gitx; if (( $+functions[compdef] )); then compdef gitx=git; fi; fi # <<< flow: route git through gitx <<< ``` - Only new shells pick them up; running shells keep the old `gh` and `git` until they re-read `~/.zshrc`. - The tools must be on your PATH (see [Installation](https://flow.worldbreakstudios.com/docs/getting-started/installation.md#command-line-tools-on-your-path)); without them the `command -v` guard leaves `gh` and `git` alone, and Flow warns you. - Turning one off removes exactly its block. A symlinked `~/.zshrc` is followed and its target edited. - `zsh -c` scripts, bash and programs that exec `gh` directly do not see the aliases. More in [ghx and gitx](https://flow.worldbreakstudios.com/docs/cli/ghx-and-gitx.md). ## Agent shell capture When Claude Code runs shell commands in a Flow pane, Flow can record each one, with its output, and show them in a **Shells** tab for that pane: live output, interrupt, kill, rerun and copy, and a list of runs. The tab opens by itself the first time an agent in the session runs a shell; you can also run **New Shells tab** or pick Shells in the New tab launcher. | Setting | Key | Values | Default | |---|---|---|---| | Settings › General › Agents › Shell capture | `shells.capture` | `off` (Off), `background` (Background only), `all` (All shells) | `all` | Turning capture on applies to panes opened afterwards; turning it off, or switching between Background only and All shells, applies from the next shell in panes already open. Records are kept in `~/.flow/shells/`, readable only by you (commands and their output can hold secrets); the output Flow copies for one run is capped at 16 MiB. --- # Dashboard URL: https://flow.worldbreakstudios.com/docs/workspace/dashboard Watch and type into every session of a label at once as live cards, with PR status on each card and the focused session's other panes in a side panel. The Dashboard swaps the Sessions page for a grid of **cards**: the primary pane of every session in the selected label, each a live terminal you can read and type into. It is made for watching several agents at once. The focused session's other panes sit in a **side panel** at the right, fully usable without leaving the page. ## Open and close it - Press `⌘G` (**Toggle dashboard**), or click the grid chip in the sidebar header. Press it again, or the × in the Dashboard's header bar, to go back to Sessions. - **Open →** on a card, or **Go to session** in its right-click menu, leaves for the Sessions page with that session's primary pane focused. The cards are the sessions the sidebar lists for the selected label, in the same order (a folded Sessions list still shows its cards). Pick another label in the spaces bar to see its sessions. A [label window](https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces.md#label-windows) has its own Dashboard of its own sessions. ## The header bar | Control | What it does | |---|---| | All / Working / Complete | Filters by pull request: Working is everything not finished (no PR, a draft or an open PR); Complete is merged or closed. `⌥⌘G` cycles it. | | All / Unread | Shows only unread cards. | | × | Closes the Dashboard. | The two filters combine, start at All each time the Dashboard opens, and never hide the focused card. ## A card | Part | What it shows | |---|---| | Header | The unread dot, the session's title and, on cards at least 300 px wide, `repo/branch` with the branch tinted by its PR's state | | PR status line | Only when the branch has a pull request: `✓ Approved`, and how mergeable it is (Mergeable, Conflicts, N checks failing, Checks pending, Blocked, Behind base). Click a checks count to open a menu of the checks; pick one to open it in the browser. | | Merge pill | Only while the PR can be merged (open, not a draft, mergeable, nothing failing or pending). Press it, or `⇧⌘M` on the focused card, to merge. | | PR label | `#N` and its state. On a live PR it opens a status menu: Merge pull request, Convert to draft or Mark ready for review, Close pull request, Open in GitHub. On a merged or closed PR it opens the PR. | | Body | The session's real terminal, resized to the card | | Footer | When it last wanted attention (and, while unread, a live count of how long it has waited), the branch's diff, a hint of its other tabs ("N tabs · ● M unread") and **Open →** | The focused card has a 2 px accent border; an unread card a faint accent border and tint. Right-click a card for: Copy, Go to session, Mark as unread, Pin / Unpin, Snooze and Close session. ## Focus, typing and unread The focused card is the active session; keys and paste go to its terminal. - Click a card (or its row in the sidebar) to focus it and mark it read. - Move focus with the keyboard: `⇧⌘H` / `⇧⌘J` / `⇧⌘K` / `⇧⌘L`, `⌘[` / `⌘]`, the `⇧⌘` arrows, or `⌘1` to `⌘9`. A card reached by keyboard is marked read once focus has rested on it for 1 second. - Opening the Dashboard, having a card on screen, and typing into it never mark anything read, so an agent's attention signal always leaves its dot. - `⌥⌘F` on a card zooms it to fill the grid; press it again to return. ## The side panel The side panel lays out the focused session's other panes, exactly as they sit right of the primary on the Sessions page. | To | Do | |---|---| | Show or hide the panel | `⌥⌘S`, or the panel chip left of the × | | Resize it | Drag the gap between the grid and the panel | | Move the keyboard into the panel / back to the card | `⌘→` / `⌘←`, or click | | Open a tab, close a tab, cycle tabs | `⌘T`, `⌘W`, `⇧⌘[` / `⇧⌘]` while a side tile has the keyboard. `⌘T` from the card opens the new tab in the panel. | | Split a side tile | `⌘D` / `⇧⌘D` | | Fold the grid and give the panel the whole area | ⤢ on a side tile; the grid becomes a "Dashboard" pill at the left edge. `⌘←` or the pill brings it back. | Everything else works as on Sessions: dragging tabs between side tiles, folding panes into gutter pills, clicking links, web tabs with their toolbar. On the card itself, `⌘W` still closes the session. When the focused session is a single primary pane, the panel shows **Add a pane** with a **New tab** button. With no card focused it says "No session focused". The panel opens by default at half the width; Flow remembers whether it is open and its width. ## Scrolling and the minimap When the cards do not fit, a "↓ N more" pill floats at the bottom (with an unread count when some of those cards are unread) and "↑ N more" at the top; click either to scroll a row. A rail at the far right holds a scrollbar and, by default, a **minimap**: one block per card, coloured for unread and focused cards and marked with its PR state. Click a block to focus that card. ## Settings | Setting | Key | Type | Default | |---|---|---|---| | Settings › General › Dashboard › Minimap | `dashboard.minimap` | bool | `true` | | Settings › Appearance › Dashboard › Card width | `dashboard.card_w` | px, 240 to 1200 in steps of 20 | `560` | | Settings › Appearance › Dashboard › Card height | `dashboard.card_h` | px, 170 to 990 in steps of 20 | `430` | Card width and height are the column and row pitch the grid aims for, at the default text size; smaller fits more sessions. ## Limits - Cards never show a web tab: a primary that is a web page shows its title instead. - The Snooze banner is not shown on cards; snooze from the card's menu, and see the banner on the Sessions page. - The filters and the zoom are not saved. - Pull request facts on cards come from the same background refresh the sidebar uses; the Dashboard does not fetch on its own. --- # Labels, spaces and label windows URL: https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces Sort sessions with labels, switch spaces from the spaces bar, give a label its own glyph and theme, open a label in its own window, or use horizontal tabs. A **label** is a tag you put on sessions. Each label is a **space**: pick it in the spaces bar at the bottom of the sidebar and the sidebar and the Dashboard show only the sessions that carry it. A session can carry any number of labels, and **All sessions** shows everything. Labels can have their own glyph, terminal theme and sidebar colours, and can open in a window of their own. ## Create a label - Click the round **+** at the right of the spaces bar. Flow creates "Label N" with the folder glyph, selects it and opens the label editor so you can name it. - Press `⌃⌥⌘N` (**New label**). - In the New session flow's Label step, choose **New label…**; it is named from what you typed. ## Put sessions in labels | To | Do | |---|---| | Add or remove labels on a session | Right-click its row; the menu ends with a checkable row per label | | Add a label | Drag the session's row onto the label's chip (the chip shows a ring while you hover) | | Label a new session | Pick the label in the New session flow's Label step (it opens on the label you have selected) | Dropping a row on **All sessions** changes nothing. Removing a label from a session never closes it. ## Switch spaces - Click a chip in the spaces bar. The selected chip has a faint fill; it is how the sidebar shows which label you are in. - `⇧⌘←` / `⇧⌘→` step to the previous / next label, wrapping around. - A chip shows a small badge while one of its sessions is unread. Hover a chip for its name. When the chips do not fit, unselected chips shrink to dots and widen again under the pointer; past that, a **more** chip (an ellipsis) lists the hidden ones. Labels with no sessions fold into a single **stack dot** at the right end ("Empty labels (N)"); click it to fan them out and pick one. `⇧⌘←` / `⇧⌘→` skip empty labels. Drag chips to reorder them. ## The chip menu Right-click a label chip for: | Item | Does | |---|---| | Edit… | Opens the label editor | | Delete label | Deletes the label (asks first while any session carries it). Sessions are never closed. | | Open in New Window / Show Window / Close Window | Opens the label in its own window, brings that window forward, or (in that window) closes it | ## The label editor The editor has two tabs (`⌘1` / `⌘2`): **Glyph** 1. Type the name in **Name**. The real chip in the spaces bar updates as you type. 2. Pick a glyph: switch between **Icons** and **Emoji**, type in **Search** to filter, and click a cell. You can also type or paste any emoji into Search. Enter in Search applies the first cell; Tab moves between Name and Search. **Theme**, for the Light or Dark appearance (switch at the top): - **Terminal theme**: "Use default (…)" or any terminal theme, used for every terminal while this label is selected. Stored as `terminal.label..`. - **Sidebar**: the sidebar's ground for this label: a solid colour or a gradient, with grain, presets and Reset (back to the base ground). Theme changes apply to the whole window immediately while the label is selected. **Done**, `↩` or a click back in the main window keeps your edits. ⎋ or **Restore original** puts back the original name and glyph; theme changes are kept either way. ## Label windows A label window is a second full Flow window that shows and manages only one label's sessions: its own sidebar, tiles and Dashboard. **Open one** from the label chip's menu (**Open in New Window**), with **Open label in new window** in the palette, or from a terminal: ```sh flow-cli window open-label Work # a label id or name flow-cli window focus-label Work flow-cli window close-label Work ``` While it is open: - Every session carrying that label lives only in that window. In the main window the label's chip brings the label window forward instead of selecting the label. - A session with the labels of two open windows belongs to the window opened first. - It shows only the Sessions page and the Dashboard; actions for other pages bring the main window forward. It has no Tools band, and its spaces bar is a single pill with the label's glyph and name (right-click it for the chip menu). - It follows your tab style (sidebar or horizontal tabs) until you switch the style in that window; from then on it keeps its own. Close it with its red close button or **Close Window**: its sessions go back to the main window. Open label windows and their frames are restored on the next launch. ## Paired devices in the spaces bar With the Puddles experiment on and a paired device, the spaces bar also shows a chip for each device (and its labels) after your own. Selecting one shows that device's sessions as if they were local. See [Puddle](https://flow.worldbreakstudios.com/docs/features/puddle.md). ## Horizontal tabs Turn on **Settings › Appearance › Layout › Horizontal tabs** (`appearance.horizontal_tabs`, bool, default `false`), run **Toggle tabs mode** from the palette, or right-click empty sidebar space and choose **Use horizontal tabs**. The sidebar column is replaced by one strip across the top of the window. Left to right: | Part | What it does | |---|---| | Label button | The selected label's glyph and name; opens the label dropdown: a filter field, Tools, All sessions, every label with its member count, "Create “…”" for a new name, New session and Edit labels… | | Session tabs | The label's pinned sessions (with a pin glyph), then the others, then "+". A session group shows as one tab. | | Snoozed and History chips | Dropdowns of snoozed sessions (with a wake button) and closed sessions (click to restore) | | Factory, Dashboard and Settings chips | As in the sidebar header | Session tabs work like sidebar rows: click to switch, right-click for the session menu, drag to reorder or pin (dropping on the middle of a tab joins its session group). Picking **Tools** in the label dropdown swaps the tabs for one tab per tool. In this mode the four `⇧⌘` arrow steps trade places: `⇧⌘←` / `⇧⌘→` move between session tabs and `⇧⌘↑` / `⇧⌘↓` between labels (Tools is one of the stops). Right-click empty strip space and choose **Use vertical tabs** to go back. --- # Session groups URL: https://flow.worldbreakstudios.com/docs/workspace/session-groups Gather several sessions that belong to one piece of work under one sidebar row, switch between members with ⌃1–⌃9, and pin, snooze or close them together. A **session group** puts a few sessions (say, agents in their own worktrees, directories or repos that belong to one piece of work) under one row in the sidebar, the way a browser's tab groups do. The members keep their own directories and layouts; the group gives them one row, one bar to switch between them, and one pin and snooze. ## Make a group Any of these: - Right-click a session row and choose **New group with this session**. - Drag a session row onto the middle of another session's row. Flow asks for the new group's name. - Click the **+** at the right of an ungrouped session's primary pane header. It starts the New session flow, and the new session lands in a group with this one. - Run **New session group** from the palette: it makes a group of the active session (refused when it is already in one). An unnamed group reads "Untitled group". A group of one member stays a group; a group whose last member leaves is deleted. ## Add, move and remove members | To | Do | |---|---| | Add a session to a group | Right-click it › **Add to group ›**, drag its row onto the group's row or onto the group bar, or run **Add to session group…** | | Start a new session in the group | **New session in group** (group menu, the bar's **+**, or the palette) | | Move a member to another group | Right-click it › **Move to group ›** | | Take a member out | Right-click it › **Remove from group**, or drag its row to a spot outside the group | | Reorder members | Drag a member row along the group | | Dissolve the group | **Ungroup** (the sessions are kept) | | Close every member | **Close group…** (one confirm for all) | A new session started in a group lands right after the active member and becomes the active one. ## The sidebar row A group's row shows a pile of up to three members' icons (the active one in front), the group's name, an unread dot while a member wants attention, a working glyph while a member's agent is mid-turn, and the active member's time. Its members show as indented rows under it while it is expanded. The chevron toggles that. Right-click the row for the group menu: | Item | Does | |---|---| | Rename group… | Names the group | | New session in group | Starts the New session flow for this group | | Collapse group / Expand group | Hides or shows the member rows | | Expand when focused | The default: members show only while the group holds the session you are on | | Pin group / Unpin group | Pins every member | | Snooze | Snoozes every member | | Ungroup | Dissolves the group, keeping the sessions | | Close group… | Closes every member after one confirm | A collapsed group's row reads "name / active member's title". A click on the row switches to its active member; dragging it moves the whole group. ## The group bar While you are on a member, a bar spans the top of the Sessions area, above every pane: - the **group chip** (its icons, name and a chevron), which opens a menu listing every member (with its `repo/branch` and `⌃N` key) to switch to, then New session in group, Rename group…, Ungroup and Close group; - one **tab per member**, with its title, unread dot, working glyph and repo; the active member's tab has a × that closes that member after a confirm; right-click a tab for that session's menu; - a **+** for New session in group. Drop a session row on the bar to add it to the group. The bar is shown on the Sessions page only, not on Dashboard cards, pop-outs or tool pages. ## Keys | Keys | Does | |---|---| | `⌃1` to `⌃9` | Switch to the group's Nth member | | `⌃Tab` / `⌃⇧Tab` | Next / previous member, wrapping | These keys work on the Sessions page while the current session is in a group, and cannot be rebound. A focused Files tab keeps its own `⌃Tab`, and in a group of one `⌃Tab` goes to the terminal. The palette also has these actions, all unbound by default: New session group, New session in group…, Rename session group…, Remove from session group, Ungroup sessions, Close session group, Next session in group, Previous session in group, Expand/collapse session group, Add to session group… ## What members share - **Pin and snooze**: pinning, snoozing or waking any member applies to every member, a session that joins takes the group's state, and a woken group moves to the top as one block. - **Focus**: switching to a member makes it the group's active member; closing the active member hands that to its neighbour. Members can be local sessions, sessions on a remote host, or sessions from a paired device, mixed in one group. ## From the command line ```sh flow-cli bundle new 2 3 --name "Checkout redesign" # group sessions 2 and 3 flow-cli bundle add "Checkout redesign" 5 # add session 5 flow-cli bundle fold "Checkout redesign" open # auto | open | closed | toggle flow-cli bundle ungroup "Checkout redesign" # keep the sessions flow-cli bundle close "Checkout redesign" --yes # close every member ``` With no session named, `new`, `add` and `remove` act on the active session. See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md). --- # Pop-outs and window locks URL: https://flow.worldbreakstudios.com/docs/workspace/pop-outs-and-window-locks Lift any tab into its own floating window (grouped, free-standing or in the Dock, optionally pinned on top), and lock other apps' windows to a session. Two features take windows out of the main window's layout. A **pop-out** lifts one of your session's tabs into a floating window of its own. A **window lock** ties another app's window (a browser, a simulator, a design tool) to a session, so it shows only while you are on that session. ## Pop-outs Any tab of a session can pop out: a terminal, a web tab, Files, Notes, a pull request review or a New tab. The one exception is the primary pane's tab, which is the session itself. ### Pop a tab out - Right-click the tab and choose **Pop Out** (the last row of the tab menu), or - run **Pop out tab** from the palette for the focused tab, or - from a terminal: `flow-cli popout open --mode free`. The pop-out opens over the tile it came from. Its window has the tab strip in its title bar and three buttons at the right: | Button | Does | |---|---| | Focus | **Focus Session**: brings forward the window that owns the session and shows the session there | | Mode | Opens the mode menu: Grouped with Session, Free-Standing, Show in Dock (a choice of one), Pin on Top, Focus Session, Return to Session | | Pin | Pins the window on top (filled in the accent colour while pinned) | Drag the band under the buttons to move the window; double-click it to zoom. `⌘T` inside a pop-out adds a tab to it. A pop-out never splits. ### Modes | Mode | When the window shows | |---|---| | Grouped with Session (the default) | Only while its session is the one shown in the window that owns it. Switch sessions and it hides; switch back and it returns above that window. | | Free-Standing | Always | | Show in Dock | Always, and it gets its own Dock icon and ⌘-Tab entry, titled "session name — kind" | **Pin on Top** works in any mode: the window floats above other windows, on every Space and over full-screen apps. If the Dock helper cannot start, or it quits, the pop-out falls back to Free-Standing. ### Typing and actions in a pop-out Typing and tab actions (new tab, close tab, next tab) act on the pop-out's tabs. Session-level actions (switching sessions, New session, the Dashboard, other pages) go to the window that owns the session, which comes forward. Split, collapse and tile-focus actions do nothing in a pop-out. ### Put it back - The red close button, **Return to Session** (mode menu or tab menu) or **Return pop-out to session** in the palette moves its tabs back into the session: into the tile they came from, else the first tile right of the primary, else a new tile. Nothing is lost. - `⌘W` on a pop-out's last tab closes that tab, and the pop-out with it. - Closing the session closes its pop-outs too. Pop-outs, their mode, pin and frame are saved with the session and come back on the next launch. ### Palette actions and the CLI All unbound by default: **Pop out tab**, **Return pop-out to session**, **Pin pop-out on top**, **Cycle pop-out mode**, **Focus pop-out's session**. ```sh flow-cli popout open --group 2 --tab 1 --mode grouped # grouped | free | docked flow-cli popout pin ID on # on | off | toggle flow-cli popout mode ID docked flow-cli popout return ID ``` `ID` is the pop-out's id, listed under `windows` in `flow-cli state`. ## Window locks A locked window belongs to one session: it is hidden whenever you switch away from that session and shown again when you switch back, the same rule a grouped pop-out follows. Use it for the browser window, simulator or app a session is working on. > **Note:** Window locks need the Accessibility permission. The first time, Flow shows the macOS prompt; allow Flow in System Settings › Privacy & Security › Accessibility, then try again. ### Lock a window 1. Switch to the session the window belongs to. 2. Run **Lock Window to Session…** from the palette (unbound by default; give it a shortcut in Settings › Keyboard if you use it often). 3. Flow covers your displays with a picker. Point at the window you want: it is highlighted with a button, **Lock to (session)**, or **Move to (session)** if it is locked to another session. 4. Click the button. Click **Cancel**, or leave the picker alone for 60 seconds, to stop. **Locked Windows…** opens a list of windows in the palette instead, front to back, with the one locked to the current session checked. Use it to reach a window that is hidden. Press `↩` on a row to lock it to the current session, or to unlock it if it already is. ### While a window is locked - When it is on screen, Flow draws a quiet border around it and a small tab at its top centre naming its session. Hover the tab for three buttons: jump to its session, pin, and unlock. - **Pin** keeps the window above the Flow window that owns its session (not above other apps). - A window is locked to at most one session; locking it to another moves it. - Windows are hidden by hiding or minimizing their app, without animation; Flow never moves them off screen. ### Limits - Full-screen windows can't be locked, and are never moved. - A session reopened from History has no locks. - Closing a locked window removes its lock. Quitting Flow releases every locked window. - While the license screen is up, every locked window is released (the locks are kept). From a terminal: `flow-cli window-lock list`, `flow-cli window-lock add --window-id N`, `flow-cli window-lock remove --window-id N`, `flow-cli window-lock pin --window-id N`. --- # Notifications, snooze and caffeine URL: https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze How Flow notifies you and where each kind goes, Do Not Disturb, snoozing a session until a condition wakes it, and keeping your Mac awake. Flow tells you things in two ways. **Unread dots** on sessions say an agent wants you (a turn finished, a question, a bell); they live in the sidebar, the tab strips and on Dashboard cards. **Notifications** report everything else: the answer to what you just did, an update, a scheduled run, a message from a script. This page covers notifications, **snoozing** a session until something happens, and **caffeine**, which keeps your Mac awake. ## Notifications Every notification has a **kind**, and each kind has a delivery you choose in **Settings › Notifications**: | Delivery | What happens | |---|---| | Toast | A card in the stack at the main window's bottom-right, and a record in the history | | Notification Center | A macOS banner (listed under Script Editor in System Settings › Notifications), and a record in the history | | History only | Only the record in the history | | Off | Nothing, not even a record | ### Kinds Each kind is stored as `notifications.`, with the value `toast`, `system` (Notification Center), `silent` (History only) or `off`. | Kind (Settings label) | id | Default | Raised by | |---|---|---|---| | Answers to your actions | `feedback` | Toast | What you just did, done or refused: a link copied, a failed save. Only Toast or Notification Center, and Do Not Disturb never holds it. | | Agent messages | `agent.message` | Toast | An agent or script running `flow-cli notify` | | Link routing | `links` | Toast | A link from another app that could not open where it was routed | | Background pull request operations | `pr.ops` | Toast | A PR operation the Factory started on its own finishing or failing | | Snoozed session woke | `snooze.wake` | Notification Center | A snoozed session waking, while Snooze's notification is on | | Caffeinate wore off | `caffeinate` | Toast | Caffeinate ending on its own | | Scheduled runs | `schedules.runs` | Toast | A scheduled run starting (Automations on) | | Schedules Inbox | `schedules.inbox` | Toast | A run leaving something in the Inbox (Automations on) | | Schedule failures | `schedules.failed` | Toast | A run failing or not starting, a worktree left behind, schedules unable to run while Flow is quit (Automations on) | | Join requests | `puddle.pairing` | Toast | A device asking to join your puddle (Puddles on) | | Someone is viewing a session | `puddle.viewing` | History only | A paired device starting to view a session (Puddles on) | | Sessions started from another device | `puddle.created` | Toast | A paired device starting a session on this Mac (Puddles on) | | Sessions changed from another device | `puddle.remote_action` | History only | A paired device closing, renaming or pinning a session (Puddles on) | | An agent needs you on another Mac | `puddle.attention` | Toast | An agent wanting you on one of your Macs while you use another (Puddles on) | | Updates | `updates` | Toast | A new version found by the periodic check, or an automatic install's outcome | | License | `license` | Toast | Your license changing on its own | | Flow services | `system` | Toast | Flow's command bus going down or coming back | ### Do Not Disturb Do Not Disturb (`notifications.dnd`, bool, default `false`) turns every Toast and Notification Center delivery into History only, except **Answers to your actions**. Turn it on in Settings › Notifications, in the history menu, or with **Toggle Do Not Disturb** in the palette. ### Toasts Toasts stack at the bottom-right of the main window, newest in front. Hover the stack to fan it out; only then can you click a toast's action button, its ×, or **Clear all**. Short status toasts ("Copied") disappear after 3 seconds, but not while the pointer is over the stack; notifications that need you stay until you dismiss them. At most 4 toasts are kept; the oldest status toast goes first. ### Notification history Press `⌥⌘N` (**Notification history**) to open the history menu at the window's top-right: unread records first, each with its title, detail, age and (with Puddles) the Mac it came from, then Do Not Disturb, **Notification settings…** and **Clear all**. Opening it marks everything read. Clicking a record runs its action if it had one, otherwise copies its text. **Clear notifications** in the palette clears the history and the toasts. The history holds up to 200 records and is kept in memory only, so it starts empty on each launch. ### Post a notification from a script or agent ```sh flow-cli notify "Tests passed" --detail "412 passed in 38s" ``` This raises an **Agent messages** notification, delivered as that kind's setting and Do Not Disturb say. `--kind` accepts only `agent.message`, so a script can never pose as one of Flow's own kinds. ## Snooze a session A snoozed session leaves the Sessions list for the **Snoozed** section at the bottom of the sidebar and **wakes by itself** when its condition holds: by default it moves to the top of Sessions, turns unread and posts a notification. Use it to park an agent until it needs you, its PR gets a review, or CI finishes. ### Snooze from the menu 1. Right-click the session (or its Dashboard card) and open **Snooze**, or press `⇧⌘Z` (with the default setting it opens the same menu at the session's row). 2. Pick when it should wake: - **Favorites** (starred conditions; by default 30 minutes and PR approved) and your recent conditions. - **For ›** a quick duration: 15m, 30m, 1h, 2h, Tomorrow 9am. - **Until ›** Next message, PR approved, CI passes (CI finishes when it is set to wake on pass or fail), each of your named watches, and **Until I wake it**. - **Custom…** to type a time, a duration or a command. 3. In the **Wake early if…** panel, tick what may wake it sooner (ticked from your defaults), then press **Snooze** or `↩`. Star any condition in the menu to add it to your favorites. Rows that need a pull request (PR approved, CI) are disabled when the session has none; a watch needs the session to have a directory. ### Wake-early items | Group | Item | Default | |---|---|---| | Agent | Claude asks a question | on | | Agent | Needs permission | on | | Agent | Errors or crashes | on | | Agent | Context nearly full | off | | PR | A new comment | on | | PR | Approved | on | | PR | Changes requested | on | | PR | Reviewed with comments | off | | PR | You're mentioned | on | | PR | Merged or closed | off | | CI | A check fails | on | | CI | All checks finish | off | | Watches | Any named watch you add | none | PR items skip bots, the people in your ignore list and your own activity, and count only what happens after you snoozed. Expand **A check fails · N of M checks** to choose which CI checks count for this repository; the choice is remembered for later snoozes there. ### While it is snoozed On the Sessions page a banner across the session's primary pane shows the condition, the last watch result and "wakes early on N things", with **Change…**, **Wake now** and **Edit** (change what wakes it early). In the sidebar a snoozed row shows its condition and an amber "N held" count of events that did not wake it. After it wakes, its row wears a "woke" pill until you dismiss the banner. To wake it yourself: press `⇧⌘Z` on it, click **Wake now**, or use the Snooze row in its menu. ### Settings › Snooze Every `snooze.*` setting is personal: a team file in a repository can never set one (a checked-in watch would run someone else's command). You can override them per repository in the repository view of Settings › Snooze. | Row | Key | Default | |---|---|---| | When I snooze without choosing (used by `⇧⌘Z`) | `snooze.default` | `ask` (Ask each time); or `30m`, `unread`, `pr`, `ci` | | Favorites | `snooze.favs` | 30 minutes, PR approved | | Recent conditions | `snooze.recents_n` | `3` (`0` off, `3`, `5`) | | Quick durations | `snooze.durations` | `15m`, `30m`, `1h`, `2h`, `Tomorrow 9am` | | Until next message | `snooze.trig.unread` | on | | Ignore turns shorter than | `snooze.unread_min` | `30s` (`off`, `30s`, `2m`, `5m`) | | Until PR approved | `snooze.trig.pr` | on | | Also wake on changes requested | `snooze.pr_changes` | on | | Until CI finishes | `snooze.trig.ci` | on | | Wake when checks | `snooze.ci_mode` | `pass` (or `any`: pass or fail) | | Ask what wakes it early each time | `snooze.ask_wake` | on (off: a pick snoozes at once with the defaults) | | Wake-early defaults | `snooze.ov.question`, `perm`, `error`, `context`, `comment`, `approved`, `changes`, `reviewed`, `mention`, `closed`, `ci_fail`, `ci_done`; `snooze.ov.watches` | as in the table above | | Ignored people and bots | `snooze.ignore_authors` | none | | Ignored checks (`*` matches anything) | `snooze.ignore_checks` | none | | Chosen checks | `snooze.check_picks` | none | | Move to top of Sessions | `snooze.wake.top` | on | | Mark as unread | `snooze.wake.unread` | on | | System notification | `snooze.wake.notify` | on | | Play a sound | `snooze.wake.sound` | off | ### Watches A watch is a shell command Flow runs in the session's directory on an interval; the session wakes when it **exits 0**. Named watches live in `snooze.watches` as a JSON list of `{"name", "cmd", "every"}` and show in Snooze › Until and in Settings › Snooze. - The command runs with `sh -c` (POSIX sh, no aliases, Flow's PATH), stdin closed and output discarded. - `every` is a number and `s`, `m` or `h` (default `30s`, never below 5 seconds). Each run is killed after 60 seconds. - Any other exit, or a timeout, means "not yet". ```json [ { "name": "PR merged", "cmd": "gh pr view --json state -q .state | grep -qx MERGED", "every": "1m" }, { "name": "Health", "cmd": "curl -sf -m 10 https://example.com/health >/dev/null", "every": "30s" } ] ``` Test a watch by hand in the session's directory first: `sh -c 'the command'; echo "exit=$?"`. Don't negate a command that can fail for other reasons with `!`: it would wake on any error. ### Snooze from the command line ```sh flow-cli snooze api-work 2h --wake question,perm,ci-fail flow-cli snooze api-work woken --wake approved,changes,closed flow-cli snooze 3 --wake none 'cmd:test -f dist/app.zip' flow-cli snooze-wake api-work +ci-done -ci-fail flow-cli wake api-work "Picked it up" ``` | Spec | Wakes when | |---|---| | `30m`, `4pm`, `tomorrow 9am` | That time arrives | | `unread` | The session's agent sends its next message | | `pr` | Its PR is approved (also merged or closed) | | `ci` | Its CI finishes, per `snooze.ci_mode` | | `activity` | Someone else comments on or reviews its PR | | `ci-fail` | The first counted check fails | | `watch:NAME` | A named watch exits 0 | | `cmd:COMMAND` | A one-off command exits 0 | | `woken` | Never by itself (Until I wake it) | The session is its index or name from `flow-cli state`. `--wake` takes comma-separated items (`question`, `perm`, `error`, `context`, `comment`, `approved`, `changes`, `reviewed`, `mention`, `closed`, `ci-fail`, `ci-done`, `watch:NAME`), `none` or `default`; the CLI never changes your defaults. A session with no PR refuses `pr`, `ci`, `activity` and `ci-fail`. A [session group](https://flow.worldbreakstudios.com/docs/workspace/session-groups.md) sleeps and wakes as one. ## Keep your Mac awake Caffeinate keeps your Mac (and, by default, its display) from sleeping: indefinitely, for a duration, or until a time. It is handy while agents work unattended. ### Start and stop it - In the palette, run **Caffeinate** (indefinitely), **Caffeinate for…** or **Caffeinate until…**, then pick a preset or type your own. **Decaffeinate** stops it. - Or type straight at the palette's root: `caffeinate 90m`, `awake 2h`, `coffee until 6pm` shows a card; press `↩`. - Or use the coffee cup in the menu bar: Decaffeinate, Caffeinate › Indefinitely, 10 Minutes, 30 Minutes, 1 Hour, 2 Hours, 4 Hours, 8 Hours, 12 Hours, Custom…, then Keep display on and Hide from menu bar. - Or from a terminal: ```sh flow-cli caffeinate on # indefinitely flow-cli caffeinate 90m # a duration, at most 48h flow-cli caffeinate until 6pm # or "until tomorrow 9am" flow-cli caffeinate off ``` Durations accept forms like `45m`, `1.5h`, `1:30`, `half an hour` (a bare number is minutes), up to 48 hours. Times accept `6pm`, `18:00`, `tomorrow 9am`, `eod` (6 PM), `noon` and `midnight`. The **for** presets are 15 minutes to 12 hours; the **until** presets are End of day, Midnight, Tomorrow morning and Lunch. ### Settings | Setting | Key | Default | |---|---|---| | Keep display awake | `caffeine.display` | on (changing it while caffeinated changes the running one too) | | Caffeine in menu bar | `caffeine.menu_bar` | on | | Countdown beside the cup | `caffeine.menu_bar_timer` | on | Toggle the first two with the palette actions **Keep display awake** and **Caffeine in menu bar**; **Caffeinate status** shows the cup and opens its menu. A run survives relaunching Flow (an expired one is cleared quietly). Quitting Flow lets the Mac sleep again. While the license screen is up, caffeine is paused and resumes after activation. When a run ends on its own you get a **Caffeinate wore off** notification. --- # Web tabs URL: https://flow.worldbreakstudios.com/docs/workspace/webview-tabs Open web pages as tabs beside your terminals: the address bar (⌘L), Site and Tools popovers, favicons, find and zoom, and where links open. A web tab is a real web page (the system's WebKit, as in Safari) living in a tile next to your terminals: docs, a local dev server, a dashboard. It has its own toolbar with an address bar, and it can be split, dragged, popped out and restored like any other tab. > **Note:** Web tabs are an experiment. Turn them on in **Settings › Experiments › Web tabs** (`features.web_tabs`, default off). While it is off nothing creates a new web tab and links open in your browser; web tabs you already have keep working. ## Open a web tab | How | What happens | |---|---| | `⌥⌘B` **New webview…** | A prompt asks for a URL (or a search) and opens it in the focused tile | | `⌥⇧⌘B` **New webview from command…** | A prompt asks for a command. Flow runs it in a login shell from the session's directory and opens the first line it prints as the URL (handy for a dev server that prints its address). | | The New tab launcher (`⌘T`) | Type a URL (`https://…`, `localhost:3000`, `example.com`), or pick the **Web** tile (`⌘2`). Recent pages for this repository are listed there too. | | A link | Clicking a link opens a web tab when **Open links in** is set to Flow tab, or with ⇧ held when it is set to Browser (see below) | Links a page opens in a new window (`target=_blank`, `window.open`) stay in the same tab. ## The toolbar Each web tab has a toolbar above the page: - **Back**, **Forward** and **Reload**. - The **address pill**, centred. At rest it shows the page's address without `https://`. Its lock or info glyph at the left opens the Site popover. - The **More** button at the right, which opens the Tools popover. **Show / hide title bar** (`⌥⌘T`) hides or shows the toolbar of the focused web tab. ### Use the address bar 1. Press `⌘L` (**Focus address bar**) or click the address pill. The whole address is selected. 2. Type a URL, a host, or anything else, and press `↩`: - text with a scheme must be `http` or `https`; - text that looks like a host (`localhost`, an IP address, or a dotted name such as `docs.rs`, with an optional port and path) gets `https://`; - anything else is a web search. 3. Press ⎋ to cancel. Any ⌘ shortcut that the field does not use ends the edit and does its usual job (`⌘W`, `⌘T`, `⇧⌘P`…). The search engine is the `webview.search_url` setting, a URL with `%s` where the query goes (default `https://www.google.com/search?q=%s`): ```sh flow-cli settings set webview.search_url "https://duckduckgo.com/?q=%s" ``` ### The Site popover Click the lock / info glyph or press `⌃⌘I` (**Site information**): the connection, rows for cookies, permissions and the certificate (shown but not available yet), and **Clear browsing data…**. ### The Tools popover Click **More**: | Tool | Shortcut | |---|---| | Find in page | `⌘F` | | Zoom (a stepper with the current percentage; click it to reset to 100%) | | | Open in default browser | `⇧⌘O` | | Copy link | `⇧⌘C` | | Print… | `⌃⌘P` | | Developer tools (Web Inspector) | `⌥⌘I` | | Clear browsing data… | | The shortcuts work whenever a web tab is the focused tab. Popovers close on ⎋, on a click anywhere else, or when you switch tab, session or page. ## Favicons and the tab strip Once a page's icon loads, the tab shows it on a card coloured to match (with tab icons turned off, as a round favicon, and a globe until it loads). See [Tab icons](https://flow.worldbreakstudios.com/docs/features/tab-icons.md). ## Choose where links open **Settings › General › Tabs › Open links in** (`links.open_in`) decides where a web link you click in Flow opens: | Value | Label | A click opens | A ⇧-click opens | |---|---|---|---| | `browser` (default) | Browser | Your default browser | A Flow web tab | | `app` | Flow tab | A Flow web tab | Your default browser | ⇧ is the one modifier that flips it: - In a terminal, ⌘-click a link to open it (a plain click also works in the focused pane when the program there is not using the mouse); ⌘⇧-click for the other target. - On a pull request page, ⇧-click. - On a go link in the palette, ⇧↩. With web tabs off, links always open in your browser. To route links from every app by rules (Flow tabs, other browsers, a chooser), see the [Link router](https://flow.worldbreakstudios.com/docs/features/link-router.md). ## Privacy and data - Every web tab identifies itself as Safari and shares one website data store: cookies, cache and storage are common to all web tabs. **Clear browsing data…** empties it. - Flow records the pages you visit (per repository) so the New tab launcher can list recent pages. - Web tabs are saved with their session and come back when Flow relaunches or the session is reopened. ## Where web tabs work - On the Sessions page, in any tile. - On the [Dashboard](https://flow.worldbreakstudios.com/docs/workspace/dashboard.md), in the side panel (cards never show a web page). - In a [pop-out](https://flow.worldbreakstudios.com/docs/workspace/pop-outs-and-window-locks.md) window. --- # Code navigation URL: https://flow.worldbreakstudios.com/docs/features/code-navigation Go to definition, find references and jump history in the Files tab, with standard-library sources, language docs and external code search. The Files tab's code view can jump to a symbol's definition and list its references without a language server. Each lookup is one quick search of your disk (ripgrep, else `git grep`), so there is no index to build and nothing runs in the background between lookups. When one hit clearly wins, Flow opens it. When several could be right, they open in the file picker and you choose. If nothing on disk matches, the language's docs and an external code search are one keystroke away. Code navigation works in **Rust, Python, Java, JavaScript / TypeScript, shell (sh, bash, zsh), C and C++**. The language comes from the file extension. A file with no extension counts as shell when its `#!` line names sh, bash, zsh, dash or ksh. In any other file type, a lookup shows *No code navigation for this file type* in the tab's footer. ## Look up a symbol Open a file in a [Files tab](https://flow.worldbreakstudios.com/docs/features/files.md) first. Then: | Gesture or key | What it does | |---|---| | ⌘-hover | Underlines the word a ⌘-click would look up, and the pointer becomes a hand | | ⌘-click | Moves the caret to the word and goes to its definition | | ⌥⌘-click | Finds references | | ⇧⌘-click | Goes to the definition. If nothing on disk defines it, opens the first escape row directly: the docs, else the external search, in the other place (see [Where links open](#where-links-open)) | | `⌘B` | Go to definition at the caret (`keyboard.go_to_definition`) | | `⇧⌘B` | Find references at the caret (`keyboard.find_references`) | | `F12` / `⇧F12` | Definition / references at the caret, while the code view holds the keyboard | | `⌃-` / `⌃⇧-` | Back / forward through the jump history, while the code view holds the keyboard | | `Esc` | Cancels a lookup that is still running | "Go to definition" and "Find references" are also in the [command palette](https://flow.worldbreakstudios.com/docs/getting-started/command-palette.md), and you can rebind them in Settings › Keyboard. They act on the focused Files tab's caret, so with no Files tab focused or no caret they do nothing. The code view holds the keyboard after you click in the code or land on a jump (the caret shows). Clicking in the explorer gives the keyboard back to the explorer. While a lookup runs, the footer reads *Finding `X`…*. Pressing ⌘-click again, or moving on before it answers, drops the old answer. Moving on means another line, tab, group or page, or a palette you opened yourself, so a late answer never pulls you back. ## What opens - **One clear winner** opens straight away, with the caret on the symbol. A file under the tab's folder opens in the same tab. A file outside it (a dependency, or the repository top above the tab's folder) opens in a Files tab rooted at that file's own folder. - **Several plausible hits** open the file picker in **Defs** mode with the ranked hits already listed and the first one selected and previewed. - **The caret is already on the definition**: you get its references instead, as in an IDE. This also covers a struct field, an enum variant, a TypeScript class field (`name: string;`) and a Python `self.x = 0` in `__init__`. A C prototype is not a definition, so its caret goes to the function. - **Find references** always opens the picker in **Refs** mode, even when there are no references. Then the list is empty and its first escape row is selected, so `↩` searches outside. - **Nothing on disk**: the Defs picker opens empty with its first escape row selected, which is the docs for a language word, else *Search for more on github.com…* (or your configured host). - **A keyword** (`fn`, `def`, `class`, `if`) searches nothing and goes straight to the empty picker with its docs row. ## Where Flow looks Every lookup searches your disk first. The docs and the external search come only after that. In order, stopping at the first step that answers: 1. **The file itself.** Unless the word is a member access (`obj.x`, `self.x`, `p->x`) or an import binds it, Flow takes the nearest binding at or above the caret: `let`, a parameter, `for … in`, destructuring, `with … as`, `local x` or a shell function. 2. **A Rust enum variant** (`Verdict::Jump`, `Self::Empty`, or `Some` / `None` / `Ok` / `Err`). Flow finds the enum first, then the variant inside it. 3. **The repository.** The search root is the file's git top level. Flow matches the language's definition shapes (functions, types, classes, methods, constants, macros) and respects `.gitignore`. Hidden folders are skipped, except `.github`, `.husky`, `.circleci`, `.buildkite`, `.devcontainer`, `.gitlab` and `.config`. Agents' worktree copies under `.claude/` and `.worktrees/` are never searched. The open file's own definitions always count, even when the file is untracked or has no extension. 4. **Fields, attributes and variants**, for a member access that found no method or function. This covers struct fields, enum variants, Python `self.x` attributes, JS / TS class fields, `this.x =` and `exports.x =`. 5. **Dependencies on disk** (local tabs only): - **JS / TS:** a bare import's nearest `node_modules` package. - **Python:** a package in a virtualenv's `site-packages` (`$VIRTUAL_ENV`, `.venv`, `venv`, `env`). - **Rust:** a crate's sources under `$CARGO_HOME/registry/src`, at the version `Cargo.lock` names. - Java, C, C++ and shell have no dependency step. 6. **The standard library** (local tabs only). Flow searches the version chosen in [Settings › Code › Languages](#standard-library-sources) for built-ins and standard names such as `derive`, `Vec`, `len`, `setTimeout` and `printf`. For C and C++ it searches the SDK headers for any name. These hits show their origin in the picker, for example `fn · std · Rust 1.83`. 7. **Escape rows.** Nothing on disk: the empty Defs picker described above. ### How hits are ranked Flow drops lines that only look like definitions: calls, uses (`struct S *p`) and whole-line comments. The remaining hits rank by: - **Where they are.** A path matching the file's import ranks far above the rest, then the same file, the same folder and shared parent folders. - **What they define.** Types, functions and modules rank above methods, then macros and constants, then variables. A declaration (a C prototype, a forward `struct S;`) never ranks above a definition. - **Tests and build output.** Test files and vendored or build folders rank lower. Each picker row ends with a tag that says what the line defines and why it ranks, for example `fn · imported`, `local · same file`, `method` or `var · reference`. ## Defs and Refs in the file picker Defs and Refs are modes of the [file picker](https://flow.worldbreakstudios.com/docs/features/files.md#find-file-and-search-in-files), after Grep. `⇥` cycles to them. When a Files tab lookup opened the picker, it ranks with that lookup's language, imports and file for as long as the query is still that symbol. Type any other symbol (two characters or more) and the picker searches every supported language's definitions (Defs) or whole-word occurrences (Refs) in the picker's folder. | Key | What it does | |---|---| | `↩` | Opens the hit at its line with the caret on the symbol (a lookup's pick is recorded in the jump history) | | `⌘↩` | Opens it in a new split | | `⌥↩` | Reveals its folder in the explorer | | `⌃↩` | Runs the first escape row, from any row | | `⇧↩` on an escape row, `⌃⇧↩` on any row | The same, opening the URL in the other place | | `⌃D` | Pins the hit as a [search-result pin](https://flow.worldbreakstudios.com/docs/features/files.md#pinned-files-and-pinned-results) | ### Escape rows A Defs, Refs or Grep list ends with extra rows once its search is done: 1. **Language docs**, such as `Rust docs: derive…`, for one of the language's own words or a symbol the standard library defined. In shell this row is `man ls` instead (`man bash: if` for a keyword or bash builtin; `man zshbuiltins`, `man zshzle` or `man zshcompsys` for zsh-only ones). It opens a new terminal tab running `man`, which closes when you quit the page. 2. **Search for more on github.com…** (or your configured host). Escape rows are not counted as hits, and the preview shows the URL or command instead of a file. Grep lists have only the search row. Files, Changed, Recent and Pinned have none. With nothing to run, `⌃↩` explains in the footer: *Type a query to search for more* or *Type at least 2 characters*. ## Language words and their docs Some words belong to the language rather than your code: - **Keywords:** `fn`, `def`, `class`, `if`, `then`. - **Built-ins:** - Rust attributes inside `#[…]` (`derive`, `cfg`, `test`) and std macros called with `!` (`println!`, `vec!`). - Java annotations (`@Override`). - Python builtins and decorators (`len`, `print`, `property`, `dataclass`). - C preprocessor directives on a `#` line. - Shell builtins (`echo`, `cd`). - **Standard names:** - Rust's prelude (`Vec`, `Option`) and anything through `std::`. - Python names through a stdlib module (`os.path.join`). - JS / TS globals (`setTimeout`, `Promise`, `console.log`). - Java's `java.lang` names. - C's libc (`printf`, `malloc`) and C++'s `std::` names. For these words, the picker's escape rows start with the docs, at the version you use: | Language | Docs URL | Version used | |---|---|---| | Rust | `https://doc.rust-lang.org/{version}/std/?search={symbol}` | The chosen or on-disk toolchain (`stable` without one) | | Python | `https://docs.python.org/{version}/search.html?q={symbol}` | `major.minor` (`3` without one) | | JS / TS | `https://developer.mozilla.org/en-US/search?q={symbol}` | none | | Java | `https://docs.oracle.com/en/java/javase/{version}/docs/api/search.html?q={symbol}` | The JDK's feature release (`21` without one) | | C / C++ | `https://en.cppreference.com/mwiki/index.php?search={symbol}` | none | | Shell | `man` in a terminal tab | none | You can replace a language's docs URL in Settings › Code › Per language, or with `code_search.docs` in `.flowspace.json` (see below). An override for shell gives shell a docs row too. ## Standard library sources The standard-library step searches one copy of each language's sources. **Settings › Code › Languages** has one row per language. Each row shows what is on disk (version and origin) and what is downloaded (with its size), and has a version picker: **Auto** (what is on disk) or a specific version. The row also has **Download** / **Remove** buttons (Java: **Extract sources** / **Remove**), and **Cancel** while one runs. | Language | Found on disk | Download | |---|---|---| | Rust | rust-src of a rustup toolchain (`rustup component add rust-src`), a `stable` one first | `rust-src` from static.rust-lang.org, checked against its published SHA-256 | | Python | The stdlib of the repository's `.venv` / `venv` base interpreter, else `python3`'s | The Python source tarball from python.org (HTTPS only, no checksum) | | JS / TS | The repository's `node_modules/typescript/lib` | The `typescript` package from the npm registry, checked against its sha512 integrity | | Java | Installed JDKs (9 or later), each `lib/src.zip` | None. **Extract sources** unzips a JDK's `java.*` modules once | | C / C++ | The Xcode SDK's `usr/include` (C++ adds `usr/include/c++/v1`) | None | | Shell | Nothing (uses `man`) | None | Rust and Python offer recent stable releases. TypeScript offers the npm registry's tags, and **Download latest** never picks a beta or release candidate. Downloads are stored in `~/Library/Application Support/flow/lang/` and shared by every worktree. A failed or cancelled download leaves nothing behind. A missing tool (no rustup, `python3`, JDK or Xcode) simply reads as "not found". Flow never triggers the Command Line Tools install prompt. | Setting | Type | Default | Effect | |---|---|---|---| | `code_nav.lang.rust.version` (also `python`, `jsts`, `java`, `c`, `shell`) | string | `auto` | The version the standard-library step searches when it is installed (else the one on disk), and the version the docs links name. C++ uses the `c` key | ## Jump history Every jump records where the caret was, whether the jump was direct or a pick from a lookup's picker. Each session has one history, shared by all its Files tabs. - The history holds up to 50 places. A repeat collapses into one entry, and a new jump clears the forward list. - `⌃-` goes back. It brings the place's tab to the front and reopens its file, so `⌃-` in a dependency's tab returns you to the tab you jumped from. - `⌃⇧-` goes forward. The history lasts until Flow quits. ## External code search When you run a *Search for more* row, Flow opens a code-search URL. By default that is GitHub code search: `https://github.com/search?type=code&q={query}`. ### Settings › Code The **Code search** block picks the engine: **GitHub** (the default), **Sourcegraph** (with a base URL for a self-hosted instance) or **Custom** (one URL template). The **Per language** block has a search template and a docs template for each language. An empty field uses the engine, or the language's built-in docs. Enter saves a field, and anything but an `http://` or `https://` URL is refused. Changes apply at once, with no restart. The block's first row says which search is in use for the active session's checkout and which layer set it (for example `github.com · repo .flowspace.json overrides Settings`). | Setting | Type | Default | Effect | |---|---|---|---| | `code_search.engine` | `github`, `sourcegraph` or `custom` | `github` | Where *Search for more* goes | | `code_search.sourcegraph_url` | URL | empty (`https://sourcegraph.com`) | The Sourcegraph instance, when the engine is Sourcegraph | | `code_search.url` | URL template | empty (GitHub) | The template, when the engine is Custom | | `code_search.by_lang.LANG` | URL template | empty (the engine) | One language's search template, in place of the engine | | `code_search.docs.LANG` | URL template | empty (built-in docs) | One language's docs row | `LANG` is one of `rust`, `python`, `java`, `jsts`, `shell`, `c`, `cpp`. ### code_search in .flowspace.json A repository can set its own search in `.flowspace.json` under the `code_search` key. A language without a `by_lang` entry uses `url`: ```json { "code_search": { "url": "https://sourcegraph.com/search?q=context:global+{symbol}+lang:{lang}", "by_lang": { "java": "https://opengrok.example.com/source/search?defs={symbol}&project=main" }, "docs": { "shell": "https://docs.example.com/search?q={symbol}" } } } ``` A subdirectory's file, your per-repository file and the repository's own `.flowspace.json` all beat Settings › Code, one field and one language at a time. Settings fill whatever the files leave out. To make your Settings win everywhere, mark `code_search` `!important` at the User scope: use the toggle on Settings › Repos, or add `"!important": ["code_search"]` to `~/.flow/flowspace.json`. See [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md) and [.flowspace.json](https://flow.worldbreakstudios.com/docs/configuration/flowspace.md). Placeholders in a template (each URL-encoded): | Placeholder | Is | |---|---| | `{symbol}` | The name looked up, with an import alias resolved to its original name. `{text}` is the same | | `{lang}` | GitHub's language name (`Rust`, `TypeScript`, `C++`, …) | | `{module}` | The import's module as written (`serde::de`, `os.path`, `./x`) | | `{package}` | The module's first segment (`serde`, `react`) | | `{path}` | The current file, relative to the search root | | `{repo}` | `owner/name` of the repository's `origin`, when known | | `{query}` | GitHub-style: `symbol:NAME language:LANG` for a definition, `NAME language:LANG` for references, plus the package for a third-party import | > **Note:** Only the built-in Sourcegraph engine speaks Sourcegraph's query syntax. Every template you write yourself keeps the GitHub-style `{query}`, so a template for a Sourcegraph instance should use `{symbol}`, as in the example above. A query you type in the picker with no Files tab behind it (Grep, or a free-typed Defs / Refs symbol) has no language. It always uses `url`, never a `by_lang` template, and `{lang}`, `{module}`, `{package}` and `{path}` are empty. A remote tab uses Settings alone, and `{repo}` is empty there. ### Where links open The search and docs URLs open like any other web link, as set by `links.open_in` (Settings › General › Tabs, "Open links in", shown while the web tabs experiment is on): | Setting | Type | Default | Effect | |---|---|---|---| | `links.open_in` | `browser` or `app` | `browser` | Opens web links in your browser, or in a webview tab in Flow | In the picker, `⇧↩` on the *Search for more* row (or `⌃⇧↩` anywhere) flips that choice for one search. A ⇧⌘-click with no local definition also goes to the other place. Opening links in Flow needs the web tabs experiment (`features.web_tabs`). While it is off, links always open in the browser and ⇧ flips nothing. See [Webview tabs](https://flow.worldbreakstudios.com/docs/workspace/webview-tabs.md). ## From the command line Scripts and agents can drive code navigation through `flow-cli` (see [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md)): ```sh # Go to definition / find references at a 1-based line and 0-based column # of the focused group's Files tab (or at the caret) flow-cli files-nav def 120 8 flow-cli files-nav refs # Step the jump history flow-cli files-nav back flow-cli files-nav forward # Settings › Code › Languages flow-cli lang-sources list flow-cli lang-sources download rust 1.83.0 flow-cli lang-sources cancel rust ``` `files-nav` also takes `--group NAME`. `flow-cli state` reports each Files tab's last lookup under `nav`. ## Limits - **Pattern matching, not type resolution.** An overloaded name, a method called on an expression of unclear type, or a macro-generated item may rank wrong or not be found. `obj.len()` finds every `len` method, ranked by path. The picker is there for these cases. - **Remote tabs** skip the dependency and standard-library steps and use the code search from Settings only. The repository search runs on the host. - **Files on a paired device** have no code navigation (*Go to definition is not available for files on another device*). - Searches stop at 200 definition hits, 500 reference hits, 20 hits per file and 1 MB files (8 MB for standard-library files). Without ripgrep or a git checkout nothing can be searched. - You can look up a word inside a comment, but a whole-line comment never counts as a definition, and in Refs, comment-only lines rank last. --- # Files URL: https://flow.worldbreakstudios.com/docs/features/files Browse a session's files read-only in the Files tab, find files and text with the file picker, pin results, and open file links from terminal output. Flow gives each session a way to look at its code without leaving the workspace: - **The Files tab** is a read-only, editor-style browser of the session's working directory, with an explorer, syntax-highlighted code, git change markers, find in file and a Markdown preview. - **The file picker** (`⌘P`, `⇧⌘F`) finds files by name or by content, lists the branch's changes, and keeps your recent and pinned files per repository. - **File links** make every path a terminal prints clickable, opening it in a Files tab at the right line. Nothing here edits your files. The only write is **Revert** on a changed hunk, and Flow asks before it reverts. ## Open a Files tab - Run **Browse files** from the [command palette](https://flow.worldbreakstudios.com/docs/getting-started/command-palette.md) (`keyboard.new_files_tab`, unbound by default). It opens a new Files tab on the session's working directory in the focused tile. Each new tab is separate, with its own open files. - Right-click a tile's **+** button and pick **Files**. - Pick a file in the [file picker](#find-file-and-search-in-files), or click a [file link](#file-links-in-terminal-output) in a terminal. Both reuse the session's Files tab on that folder when there is one. - In a pull request review tab's Changes view, use **Open in Files** (`⌥⌘O`, `keyboard.open_in_files`, or right-click a diff row). It opens that file at that line in a Files tab on the PR's local checkout, and is disabled for a file the PR deletes or a branch that is not checked out locally. A Files tab remembers its open files, expanded folders, explorer width and label across restarts. To rename it, use **Rename…** in the tab chip's menu. A blank name goes back to the folder's name. Local tabs refresh by themselves when files change on disk. `⌘R` refreshes at once. In a remote session, the tab browses the folder on the ssh host. In a session mirrored from a paired device, it browses that device's folder over your [Puddle](https://flow.worldbreakstudios.com/docs/features/puddle.md). ## The Files tab The tab has three parts: the open-files bar on top, the code area on the left and the explorer on the right. ### Open-files bar - **Preview tile.** A single click in the explorer opens a file as the *preview* tile (its name in italics), which the next single click replaces. Double-click a file, or press `↩` on it, to keep it open. - **Switching and closing.** Click a tile to switch to it, and drag tiles to reorder them. Close a tile with its **×** or a middle click. `⌃Tab` / `⌃⇧Tab` cycle the open files, and `⌘W` closes the active file (with no file open, it closes the tab). - **Names and status.** When two open files share a name, each tile shows a faint folder hint. Tiles carry the file's git status letter. - **More controls.** **Close others** keeps only the active file. The **⌄** button lists every open file. ### Explorer The explorer shows the folder tree, with git status letters (**M** modified, **A** added, **D** or **!** in red) on files. - **Filter files** (`⌥⌘E`, `keyboard.filter_files`, or click the round field) switches the tree to a flat, fuzzy-ranked list of matching files, at most 80. The filter skips `.git`, `.hg`, `.svn`, `node_modules` and `target`, and stops after 5,000 entries (it says so when it does). - **Compact folders** (the toggle in the explorer header) merges a chain of single-child folders into one row such as `src/app/core`. - **Toggle file explorer** (`⇧⌘E`, `keyboard.toggle_files_explorer`) hides or shows the explorer. Drag its left edge to resize it (dragging it narrow closes it), and double-click the edge to reset its width. In a narrow pane the explorer hides automatically. - **Right-click a row** for Add note, Annotate lines, Copy @mention, Copy path and Reveal in Finder. See [Notes](https://flow.worldbreakstudios.com/docs/features/notes.md). Explorer keys, while the explorer has the keyboard: | Key | Does | |---|---| | `j` / `↓`, `k` / `↑` | Move the cursor. On a file, it opens as the preview tile | | `↩` | Keep a file open, or fold / unfold a folder | | `Space` | Fold / unfold | | `→` / `←` | Expand (or step into an open folder) / collapse (or jump to the parent) | ### Code view Text files show with line numbers and syntax highlighting. - **Selecting.** Click to place a caret, drag to select, and double- or triple-click to select a word or a line. `⌘C` copies the selection. - **Caret keys.** While the code view has the keyboard, the arrows (and `j` / `k`) move the caret. `⌥←` / `⌥→` move by word. Home, End, `⌃A` and `⌃E` go to the line's start or end, PgUp and PgDn move a page, and `⌘↑` / `⌘↓` jump to the file's start or end. Hold ⇧ with any of them to extend the selection. - **Leaving.** `Esc` collapses a selection, then hands the keyboard back to the explorer. - **Code navigation.** ⌘-click a symbol to go to its definition. See [Code navigation](https://flow.worldbreakstudios.com/docs/features/code-navigation.md). ### Changes in the gutter Lines that differ from git's index are marked in the gutter: green for added, amber for modified, a red mark for deleted. The **changes pill** in the breadcrumb row shows the totals (`+N −N`). - **Peek.** Click a marker or the pill to open an inline peek of that hunk, with **Stage hunk**, **Revert** and **Add note**. `⌥⇧↓` / `⌥⇧↑` step through the hunks, and `Esc` closes the peek. - **Revert** asks for confirmation first, because it cannot be undone. ### Find in file `⌘F` (`keyboard.find_in_page`) over a text file opens the find widget, or the magnifier in the breadcrumb row does. A one-line selection seeds the query. With no text file shown, `⌘F` focuses the explorer's filter instead. | Key (in the find field) | Does | |---|---| | `⌥1` / `⌥2` / `⌥3` | Text, Fuzzy or Semantic mode | | `⌥C` / `⌥W` / `⌥R` | Match case / whole word / regular expression (Text uses all three; Fuzzy only case) | | `⌥L` | Show or hide the results list | | `↩` / `⇧↩` | Next / previous match (wrapping) | | `↑` / `↓` | Step matches in Fuzzy mode | | `Esc` | Close. The current match becomes the selection | The count reads `N of M`. Text search stops at 2,000 matches (`2000+`), and Fuzzy lists the best 60 lines. An invalid regex says *Invalid regex*. **Semantic** mode is not available yet: it searches nothing and says *Coming soon*. The same widget also searches a Shells tab's output. ### Markdown preview For a `.md`, `.markdown` or `.mdx` file, the **Preview** pill in the breadcrumb row (or **Toggle Markdown preview** in the palette, `keyboard.toggle_markdown_preview`, unbound) renders the file in a reading column. Mermaid diagrams render, and images show a placeholder. Click the pill again for the code. While the preview is on, the caret keys, code navigation and find don't act on the hidden code. ### Open in an editor The **Open** button in the breadcrumb row opens the active file in the first installed editor among Zed, Cursor, VS Code and Xcode, else in the default app. Its menu lists every installed editor, plus **Reveal in Finder**, **Copy path** and **New terminal here**. **Open file in editor** (`⌘O`, `keyboard.open_in_editor`) does the same from the keyboard. A remote tab has only **Copy path**. ### What the preview shows | File | Shown as | |---|---| | Text and code | The code view, up to 2 MB and 20,000 lines, each line cut at 4,000 characters | | Images (`png`, `jpg`, `jpeg`, `gif`, `webp`, `bmp`, `svg`, `ico`, `tiff`, `heic`) | The image, inline | | Web pages (`html`, `htm`), videos (`mp4`, `mov`, `webm`, `m4v`), PDFs | A card with **Open in webview**, which opens the file in a webview tab. With the web tabs experiment off, a plain notice | | Binary, too large, missing or unreadable | A notice saying which | Remote and paired-device tabs don't fetch images, videos or PDFs. ## Find file and search in files The file picker is a large card in the command palette, with a ranked list on the left and a live preview on the right. | Action | Default | Opens the picker in | |---|---|---| | Find file (`keyboard.find_file`) | `⌘P` | Files mode | | Search in files (`keyboard.search_in_files`) | `⇧⌘F` | Grep mode | | Show changes (`keyboard.show_changes`) | unbound | Changed mode | The picker searches one **scope**: a session's directory, local or on an ssh host, or a flyover tab's. It starts with the focused session. `⌃R` (or a click on the folder chip) cycles the scope and keeps the query. ### Modes `⇥` / `⇧⇥` cycle the modes and keep the query. Inside the picker, `⇧⌘G` jumps to Changed, `⌘E` to Recent and `⇧⌘O` to Pinned. | Mode | Lists | |---|---| | **Files** | Every file in the scope, fuzzy-ranked. In a git checkout this is `git ls-files` (tracked and untracked, `.gitignore` respected). Otherwise ripgrep's or `find`'s file list, up to 100,000 files. The best 500 show | | **Grep** | File contents, from 2 characters, through ripgrep with smart case. A query that is a valid regex runs as one, else as plain text. Up to 500 matches. Without ripgrep, `git grep` in a git checkout | | **Defs** / **Refs** | Definitions / references of a symbol. See [Code navigation](https://flow.worldbreakstudios.com/docs/features/code-navigation.md) | | **Changed** | The branch's changed files with `+` / `−` counts (see below) | | **Recent** | Files you opened from the picker in this repository, newest first, up to 50 | | **Pinned** | Your pinned files, then your pinned search results | ### Query syntax Files mode uses fzf-style queries: | Query | Matches | |---|---| | `foo bar` | Both terms, fuzzy, in any order | | `'foo` | `foo` exactly, anywhere | | `^foo` / `foo$` | Paths that start / end with `foo` | | `!foo` | Paths without `foo` | | `\ ` | A literal space | Each term is case-insensitive unless it has an uppercase letter. Accents are ignored, so `cafe` finds `café.md`. Pinned files rank first. ### Picker keys | Key | Does | |---|---| | `↩` | Opens the file, kept, in the scope session's Files tab (reused, so picks gather in one tab). A Grep, Defs or Refs hit lands on its line | | `⌘↩` | Opens it in a Files tab in a new split to the right | | `⌥↩` | Reveals its folder in the explorer | | `↑` `↓`, `⌃N` `⌃P`, `⌃J` `⌃K` | Move the selection | | `⌃D` | Pin or unpin the selection (see [Pinned files and pinned results](#pinned-files-and-pinned-results)) | | `⌃Y` | Copy the selected file's full path | | `⌃U` / `⌃D` | Scroll the preview half a page, after you click the preview | | `⌃L` | Diff lens for a pinned result (Pinned mode) | | `⌃B` | Changed: switch between the branch and uncommitted changes | | `⌘C` | Copy the text selected in the preview | | `⌫` on an empty query | Back to the palette | | `Esc` | Close | Drag the card's right or bottom edge to resize it, and drag the line between the list and the preview to resize the list. Flow remembers both, and a double-click on the divider resets it. The preview shows up to 200 lines of the file, draws images inline, and shows your [notes](https://flow.worldbreakstudios.com/docs/features/notes.md) on the file as cards. ### Changed mode Changed lists what your branch changes, exactly as `git diff --stat $(git merge-base HEAD BASE)` would, including uncommitted work. The base is the open pull request's target when the branch has one, else `origin/HEAD`, `origin/main` or `origin/master` (then local `main` / `master`). The preview shows every hunk of the file, and `↩` opens the file at its first changed line. `⌃B` (or the **vs main | Uncommitted** toggle) switches to changes against `HEAD` only. ## Pinned files and pinned results Pins belong to the **repository**, not the checkout. They show in every worktree of it, on its main checkout and in a clone on an ssh host. Pins and recents need a git repository (*Pins need a git repository*). - **Pin a file.** Press `⌃D` on a file in Files, Recent or Changed. A pinned file that this branch doesn't have shows *not on this branch*, and `↩` loads the base branch's version read-only. - **Pin a search result.** Press `⌃D` on a Grep, Defs or Refs hit. That pins the hit with its search (mode, query, line), not just the file, and the row shows a star. Flow keeps a snapshot of files up to 2 MB, so the pin can find its place again after the file changes. Pressing `⌃D` on the same hit again unpins it. A hit inside a dependency can't be pinned. In Pinned mode each result pin shows where it stands now: | Badge | Means | |---|---| | `exact` | The file is unchanged | | `line N → M` | The pinned line moved | | `line N · file changed` | The file changed but the line is still there | | `changed · N matches` | The line is gone; the query matches again in the file | | `file only` | Only the file is left; the pin opens at the old line | | `moved → FILE:LINE` | The file is gone; its content was found in another file | | `deleted or moved` | Nothing was found. `↩` opens nothing | | `couldn't read` | The file could not be read; the preview says why | `⌃L` turns on the **diff lens**, which shows the changes between the pinned snapshot and the file now. ## File links in terminal output Paths a terminal prints become links, underlined like URLs. Flow recognises: - absolute paths, `~/` paths, and `./` and `../` paths - relative `dir/file` paths and bare `name.ext` names - a `:line`, `:line:col` or `(line,col)` suffix - the `a/` and `b/` prefixes git diff prints A path is checked against the pane's working directory, then the repository top. A bare name or `dir/file` path is also matched against the repository's files. Folders link too. Numbers, dates and version strings never become links. | Click | Does | |---|---| | Click | Opens the file in the session's Files tab on its repository (else its parent folder), at the line and column when the link named them. A folder is revealed and selected | | ⇧-click | Reveals it in Finder | A plain click opens a link only in the pane that already has the keyboard. A ⌘-click opens it from any pane. Dragging a selection over a link doesn't open it. When a name matches several files, its underline is thinner and fainter, and a click shows a menu of up to 20 candidates to choose from. File links work in local panes only. A path the grid wrapped across rows is one link, but a path the program broke with its own newline is not. ## Images Image files open inline in the Files tab and in the file picker's preview (see [What the preview shows](#what-the-preview-shows)). ### Claude image previews > **Note:** Claude image previews are an experiment (BETA). Turn them on in Settings › Experiments (`features.claude_images`). When you paste or drop an image into Claude Code, it prints an `[Image #N]` placeholder. With this experiment on, those placeholders in your local Claude Code panes become links once Claude Code has saved the image: - **Hover** a placeholder to float a preview card of the image, captioned `Image #N`. - **Click** (or ⌘-click) to open the image in a Files tab. - **⇧-click** to reveal it in Finder. A placeholder for an image that was never submitted stays plain text. If the file is gone or can't be decoded, the card says *Image not available*. While the experiment is off, the placeholders are plain text and Flow reads no extra transcripts. ### Image viewer Clicking a loaded image on a pull request review tab, including a rendered Mermaid diagram, opens it enlarged in its own window: at full size, or scaled down to fit 90% of the display. Opening another image replaces the one shown. **Open in browser** appears when the image has a web URL. `Esc` or `⌘W` closes the viewer. ## Settings | Setting | Type | Default | Effect | |---|---|---|---| | `files.compact_folders` | boolean | `true` | Merges single-child folder chains in the explorer (the Compact folders toggle) | | `features.claude_images` | boolean | `false` | Claude image previews (Settings › Experiments) | | `links.open_in` | `browser` or `app` | `browser` | Where web links open, including code search from the picker (needs `features.web_tabs` for `app`) | The keyboard actions above are rebindable in Settings › Keyboard. See [Keyboard shortcuts](https://flow.worldbreakstudios.com/docs/getting-started/keyboard-shortcuts.md). ## From the command line `flow-cli` can drive the focused session's Files tab (see [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md)): ```sh # Open a file (relative to the tab's folder) at line 120, kept rather than as the preview tile flow-cli files-open src/main.rs --line 120 --keep # Find in the active file flow-cli files-find --query "TODO" --mode text --case on flow-cli files-find --close ``` `files-open` needs the session's focused pane to be a Files tab, and both commands take `--group NAME` to pick the session. `flow-cli state` reports each Files tab's caret, selection, find widget and diff. ## Limits - The Files tab is read-only. To edit, use **Open** (`⌘O`) to hand the file to your editor. - Previews stop at 2 MB and 20,000 lines. Lines longer than 4,000 characters are cut. - Tabs on a paired device have no git status, change markers, notes, code navigation or Markdown preview. - Grep needs ripgrep, or `git grep` in a git checkout. Without either, Grep says ripgrep is not installed. - Pins and recents exist only inside a git repository. --- # Link router URL: https://flow.worldbreakstudios.com/docs/features/link-router Make Flow your default browser and route every web link by rules to a Flow tab, a PR review session, another browser or app, or a chooser. The link router sends each web link to the right place. Set Flow as your Mac's default browser, and every http(s) link you click in Slack, Mail or any other app is checked against your rules, top to bottom. The first rule that matches decides where it opens: a Flow web tab, a PR review session, another browser or app, a custom target (Claude, ChatGPT, Obsidian…), or a menu that lets you pick. Links you open inside Flow can go through the same rules. > **Note:** The link router is an experiment (ALPHA). Turn it on in Settings › Experiments (`features.link_router`). While the experiment is off: - Settings has no Link router section, and its settings don't show up in search. - A link sent to Flow opens as a web tab, as before. With web tabs off and a fallback browser set (`link_router.fallback`), it opens in that browser. With web tabs off and no fallback, Flow shows an error toast. - Links inside Flow open the way `links.open_in` says (see [Links you open inside Flow](#links-you-open-inside-flow)). Your rules file and the `link_router.*` settings are kept either way. ## Make Flow the default browser 1. Turn on the experiment in Settings › Experiments. 2. Open Settings › Link router. The **Default browser** row shows which app opens links now. 3. Click **Make Flow the default browser**. macOS asks you to confirm. 4. If you had no fallback browser set, the browser you replaced becomes the fallback, so links no rule takes still open there. Only the installed `Flow.app` can be the default browser. A development build run from a terminal has no bundle id, so the button is disabled. Try your rules with `flow-cli route-url` instead (see [Test a link](#test-a-link)). ## Rules You edit rules in Settings › Link router › Rules. They live in `~/.flow/link_router.json`, one file for the whole Mac. Rules run top to bottom, and the first **enabled** rule whose pattern and source apps both match wins. Use ↑ and ↓ to reorder a rule, ✕ to delete it, its switch to turn it off, and **Add rule** to add one. Each rule has: - **Name**: a label for you. - **Pattern**: which URLs it matches (see [Pattern syntax](#pattern-syntax)). - **From apps**: bundle ids of the apps the link may come from, comma-separated (`com.tinyspeck.slackmacgap, com.apple.mail`). Leave it empty for any app. `flow` means links you open inside Flow. - **Destination**: where a matching link opens. | Destination | Opens the link | Skipped (next rule tried) when | | --- | --- | --- | | Flow tab | In a Flow web tab | Web tabs are off | | PR review session | As a PR review session in Flow | The link isn't a GitHub pull request, or it's the pull request the surface you clicked already shows | | An installed browser or app | In that app. Settings lists the apps that open https links; in the file, any bundle id | The rule names no app | | Target: NAME | At the URL a [target](#targets) builds | The target is missing, or its extract pattern doesn't match | | Fallback browser | In the fallback browser | Never | | Ask (the chooser) | Shows the [chooser](#the-chooser) | Never | Until the file exists, Flow starts with one rule, *GitHub pull requests* (`github.com/*/*/pull/*` → PR review session), and three targets. ### Pattern syntax A pattern is a glob over `host[:port]/path[?query]`, without the scheme, or a regular expression between slashes. | Pattern | Matches | | --- | --- | | `github.com/*/*/pull/*` | Host and path; `*` is any run of characters | | `zoom.us` | A pattern with no `/` or `?` matches the host, with any path | | `*.zoom.us` | Any subdomain, and `zoom.us` itself | | `www.figma.com` | A leading `www.` is ignored on both sides, so this is `figma.com` | | `localhost:3000` | A port, when the pattern names one | | `example.com?tab=*` | A `?` right after the host: any path with that query | | `/^https://docs\.rs\//` | `/…/` is a regular expression on the full URL | - The host part of a glob is matched against the URL's host alone, so a `*` there never reaches into the path. A port counts only when the pattern names one. - Hosts compare case-insensitively; paths and queries compare exactly. - A glob never sees the fragment (`#…`). A `/regex/` runs on the whole URL, fragment included. - A regular expression that doesn't compile never matches, and Settings shows why under the rule. An empty pattern matches nothing. ### When nothing matches The link opens in the **fallback browser** (`link_router.fallback`). If that is empty, or names Flow itself, Flow uses Safari. Flow never hands a link back to itself through macOS: a rule or target that names Flow's own app opens a Flow tab instead. ## Targets A target turns the link into another URL and opens it. Edit them in Settings › Link router › Targets: a name, a URL template, **Open with**, and an optional **Extract** pattern. The template takes these placeholders: | Placeholder | Value for `https://www.example.com:8080/a/b?x=1` | | --- | --- | | `{url}` | The link as is | | `{url_encoded}` | The link percent-encoded for a query (`https%3A%2F%2F…`); only `A–Z a–z 0–9 - _ . ~` are kept | | `{host}` | `www.example.com` (lowercase, no port) | | `{path}` | `/a/b` (no query) | | `{query}` | `x=1` (no `?`) | An unknown placeholder is left as typed. The result must be a URL (`scheme:…`). If it isn't, the link opens in the fallback browser, and the Test trace says why. **Open with** picks the app for the result. *By link* opens an http(s) result in the fallback browser and any other scheme (`obsidian://…`) with that scheme's app. Or pick an installed app. The seeded targets are: | Target | Template | | --- | --- | | Claude | `https://claude.ai/new?q={url_encoded}` | | ChatGPT | `https://chatgpt.com/?q={url_encoded}` | | Obsidian | `obsidian://new?content={url_encoded}` | ### Extract parts of a link A target's **Extract** field (`extract` in the file) takes a regular expression that runs on the full link. Write it plain, without the `/…/` a rule's pattern uses. Its capture groups become placeholders, so the target can build a new link out of pieces of the old one. To open GitHub pull requests in Graphite: | Field | Value | | --- | --- | | Extract | `github\.com/([^/]+)/([^/]+)/pull/(\d+)` | | Template | `https://app.graphite.dev/github/pr/{1}/{2}/{3}` | `{1}`, `{2}`… are the numbered groups (`{0}` never fills, and a group that took no part is empty). Named groups read better: | Field | Value | | --- | --- | | Extract | `github\.com/(?[^/]+)/(?[^/]+)/pull/(?\d+)` | | Template | `https://app.graphite.dev/github/pr/{owner}/{repo}/{n}` | Either way, `https://github.com/acme/app/pull/12/files` opens `https://app.graphite.dev/github/pr/acme/app/12`. Point a rule at the target (pattern `github.com/*/*/pull/*`, destination *Target: Graphite*), or pick it from the chooser. - A group's text goes in exactly as it appears in the link. It isn't percent-encoded. - A group wins over a built-in placeholder of the same name, so a group called `host` replaces `{host}` in that target. - A target with an extract pattern applies only to links the pattern matches. A rule pointing at it falls through to the next rule for other links, and the chooser lists the target only for links it matches. - An extract pattern that doesn't compile never matches, and Settings shows why under the target. [Go links](https://flow.worldbreakstudios.com/docs/features/golinks.md) use the same extract syntax. ## The chooser Hold the **ask modifier** while you click a link, and Flow shows a menu instead of following the rules. The modifier is `link_router.ask_modifier`: ⌥ Option by default, or Control, fn or None. A rule whose destination is *Ask* shows the same menu. - **A link from another app:** Flow reads the modifier the moment the link arrives and opens the menu at the pointer. - **A terminal link in Flow:** hold the ask modifier as you ⌘-click it (`⌥⌘`-click by default). The menu opens at the click. The chooser lists, in its default order: Flow tab (with web tabs on), PR review session (for a pull request link), each installed browser (the fallback first), each target that fits the link, and **Copy link** last. Esc or a click away opens nothing. Two installed apps with the same name are told apart by their bundle id, for example *ChatGPT Atlas (com.openai.atlas)*. For a link from another app: picking a Flow tab or PR review session brings Flow's main window forward, and Esc or Copy link hands focus back to the app you clicked in. ### Customize the chooser menu Settings › Link router › Menu sets what the chooser lists, and in what order. - **The general menu** is the one every link shows unless a rule has its own. Pick *General menu* in *Menu for*, move entries with ↑ ↓, and turn *Show* off for the ones you don't want. Your first move pins the current order; an entry that appears later (a new browser or target) goes at the end. An app you uninstall drops out. - **A rule's own menu:** pick the rule in *Menu for* and turn on *Own menu for this rule*. It starts as a copy of the general menu, then keeps its own order and hidden entries. Each link uses the menu of the first enabled rule that matches it and has its own menu, whatever that rule's destination. If none does, it uses the general menu. - **Hide everywhere** hides an entry in every menu until you bring it back from *Hidden everywhere*. - **Reset order** puts the selected menu back to the default order with nothing hidden. Entries hidden everywhere stay hidden. A given link shows only the entries that fit it: the PR review session only on pull request links, a target only when its template (and extract pattern, if any) fits. *Copy link* is always there, even when you hide everything else. ## Links you open inside Flow `links.open_in` decides where Flow opens a web link you click inside Flow: `browser` (the default: your browser) or `app` (a Flow web tab). Holding ⇧ flips it for one click: | Where | Opens the other way | | --- | --- | | A terminal link | `⇧⌘`-click | | A link on the PR review page or in Notes | ⇧-click | | A go link in the command palette | ⇧↩ | Set it in Settings › General › Tabs › **Open links in** (Browser or Flow tab). The row is there only while the Web tabs experiment is on; with web tabs off, every link opens in the browser and ⇧ flips nothing. See [Web tabs](https://flow.worldbreakstudios.com/docs/workspace/webview-tabs.md). With the link router on, the browser side of that choice goes through your rules, with the source app `flow`. So you can name `flow` in a rule's *From apps* to treat Flow's own links differently, for example to send Flow's GitHub links to Chrome but Slack's to a PR review session. `links.open_in = app` and ⇧ still open a Flow tab directly. ## Ask the decisions model With the Decisions experiment on and a decisions model set up in Settings › Decisions, **Ask the decisions model** (`link_router.model_fallback`) lets that model pick where an unmatched link goes. It is offered the destinations your enabled rules and targets name, plus the fallback. It must answer within 3 seconds with at least 50% confidence; otherwise the link opens in the fallback browser. > **Warning:** The link's URL, and the bundle id of the app it came from, go to the decisions model you configured. That is a hosted vendor if that is what you set up. Flow never fetches the page. ## Test a link Settings › Link router › Test: type a URL, and optionally the bundle id of the app it comes from. You see the rule that takes it, where it opens, a step-by-step trace, and the menu the chooser would show for it, along with which menu decided it (*General menu* or *Rule: …*). The trace names hosts, rules, targets and apps, never a query string. From a terminal: ```sh # Report the route without opening anything flow-cli read link-route https://github.com/acme/app/pull/12 --from com.tinyspeck.slackmacgap # Route the link exactly as an incoming one flow-cli route-url https://zoom.us/j/123 --from com.tinyspeck.slackmacgap # As if the ask modifier were held: shows the chooser flow-cli route-url https://example.com --ask ``` `read link-route` replies with JSON: `rule`, `rule_name`, `action`, `url`, `trace`, `would_ask_model`, `enabled`, `fallback`, and `menu` (`{"scope": "general" | "rule:ID", "items": [{"key", "label"}]}`). See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md). ## The rules file `~/.flow/link_router.json` holds `rules` and `targets` in order, plus the chooser's `menu` and `hidden` entries once you customize them. A destination is an object with a `kind`: `flow_tab`, `pr_session`, `app` (with `bundle_id`), `target` (with `id`), `fallback` or `ask`. ```json { "rules": [ { "id": "github-prs", "name": "GitHub pull requests", "enabled": true, "pattern": "github.com/*/*/pull/*", "from_apps": [], "destination": { "kind": "pr_session" } }, { "id": "docs-in-chrome", "name": "Docs from Flow in Chrome", "enabled": true, "pattern": "docs.rs", "from_apps": ["flow"], "destination": { "kind": "app", "bundle_id": "com.google.Chrome" } } ], "targets": [ { "id": "claude", "name": "Claude", "template": "https://claude.ai/new?q={url_encoded}" } ] } ``` - A target may also have `extract` (a regular expression) and `app` (a bundle id to open the result with). - Menu entry keys are `flow_tab`, `pr_session`, `app:BUNDLE_ID` and `target:ID`. `menu` is `{"order": [...], "hidden": [...]}`; a rule can have its own `menu`. - Flow reads the file once, when it starts, and saves your Settings edits to it. Quit Flow before you edit the file by hand. - A file that doesn't parse shows as an error in Settings, and Flow treats it as empty. The next save first keeps a copy as `link_router.json.bad`. - An empty or repeated rule or target id is replaced with a fresh one. ## Settings | Key | Type | Default | Effect | | --- | --- | --- | --- | | `features.link_router` | bool | `false` | Turns the link router on | | `link_router.fallback` | string (bundle id) | empty (Safari) | The browser for links no rule takes. Empty, or Flow itself, means Safari | | `link_router.ask_modifier` | `option`, `control`, `fn` or `none` | `option` | The key you hold while clicking a link to get the chooser | | `link_router.model_fallback` | bool | `false` | Ask the decisions model when no rule matches (needs the Decisions experiment) | | `links.open_in` | `browser` or `app` | `browser` | Where links you open inside Flow go; ⇧ flips it (needs web tabs) | All of them are app-wide, the same in every checkout. See [Settings](https://flow.worldbreakstudios.com/docs/configuration/settings.md) and [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md). ## Limits - Routing reads the URL only. Flow never fetches a page to decide where it goes, because fetching can use up one-time sign-in links, password resets, email confirmations and unsubscribe links. - Only the installed `Flow.app` can be your default browser. - Without a license, while the paywall is up, every link opens in the fallback browser: no rules, no chooser. - If an app or browser fails to open a link, Flow shows a toast and opens the link in the fallback browser (Safari, if the fallback itself failed). A link is never silently dropped. --- # Go links URL: https://flow.worldbreakstudios.com/docs/features/golinks Short go/ names in the command palette that open web pages, files, folders and apps, with arguments, extract patterns and fallbacks. Go links are your own catalog of short names for places you open often. Type `go/pr/241` in the command palette and Flow opens `https://github.com/acme/app/pull/241`. A go link can point at a web page, a local file or folder, or a macOS app, take arguments, and pull pieces out of a pasted URL. The catalog is one JSON file you can edit, import and export. Go links are separate from the [link router](https://flow.worldbreakstudios.com/docs/features/link-router.md), which decides where web links open. They share two things: the same extract-pattern syntax, and a go link's web page opens the way Flow opens any web link (`links.open_in`, and the link router when it's on). ## Open a go link 1. Open the [command palette](https://flow.worldbreakstudios.com/docs/getting-started/command-palette.md) (`⇧⌘P`). 2. Type `go/` followed by the name, for example `go/docs`. Typing `go` and pressing ⇥ does the same, and so does the palette's **Go links** row or the **Go links** action. 3. If the link takes arguments, type them after a slash: `go/pr/241`. 4. Press ↩ to open it, or ⇧↩ (also ⌘↩) for the alternate way (see [Destinations](#destinations)). You can also type a go link's name straight into the palette's search. Matching links show under **Go links**, and a link named exactly what you typed is the top hit. On a link that needs arguments, ↩, ⇥ or `/` drills into go links with its name filled in, ready for the argument. Names match loosely. A name within a few typos of what you typed is listed under **Close matches**, closest first, and highlighted, so `go/note/241` with a link named `notes` highlights `go/notes` and ↩ opens it with `241`. An empty query lists the whole catalog, most visited first. ## Create a go link 1. In go links, type a name that doesn't exist yet and pick **Create go/NAME**, or press ⌘N. The **Create go link** action opens the same form. 2. Fill in the form: - **Short link**: lowercase letters, digits and dashes, starting with a letter or digit (spaces you type become dashes). - **Destination**: a URL, a path or an app, optionally with placeholders. - **Extract** (optional): a regular expression that pulls arguments out of what you type (see [Extract patterns](#extract-patterns)). - **Encoding**: how arguments are encoded into a URL (shown only for destinations that encode). - **Description** (optional). - **Try it**: type sample arguments and see what the link resolves to. 3. Press ↩ to save. Errors show under their field after you try to save: "Lowercase letters, numbers and dashes only", "go/NAME already exists", or "Use a URL (https://…), a path (/… or ~/…), or an app (app:Name)". To change a link, highlight it and press ⌘E. To delete it, press ⌃X. ## Destinations Flow reads the kind of destination from its text: | Kind | Destination | ↩ | ⇧↩ | | --- | --- | --- | --- | | Web | `http://…` or `https://…`, no spaces | Where `links.open_in` says (your browser by default) | The other one (a Flow web tab, or the browser) | | File or folder | An absolute path (`/…`), `~` or `~/…`, or a `file://` URL | A Files tab in the current session | Its default app | | App | `app:Name` (for example `app:Slack`), or a path ending in `.app` | Launches the app | Launches the app | - With web tabs off, a web link always opens in your browser. See [Web tabs](https://flow.worldbreakstudios.com/docs/workspace/webview-tabs.md). - A file or folder link opens with its default app when there is no session to hold a Files tab. - If a file, folder or `.app` path doesn't exist, the palette stays open and says so in its footer. - Each open counts as a visit, which ranks the link higher. ## Arguments A destination is a template. Its placeholders take the arguments you type after the name, split on `/`: | Placeholder | Value | | --- | --- | | `{1}`, `{2}`… | The first, second… argument (empty when missing; `{0}` never fills) | | `{*}` | Every argument, joined by `/` | So with destination `https://github.com/{1}/{2}/issues`, `go/gh/acme/app` opens `https://github.com/acme/app/issues`. A link with placeholders refuses to open until you type an argument. For a URL, the link's **Encoding** decides how arguments are encoded. Paths and app names take arguments as typed. | Encoding | What it does | | --- | --- | | Default | Percent-encodes spaces, control characters and non-ASCII; keeps every ASCII symbol (`/ ? # & = %`) | | Path | Encodes each path segment strictly (keeps only `A-Z a-z 0-9 - . _ ~`) and keeps every `/` | | Query | Encodes the whole value strictly, `/` included (`%2F`); a space is `%20` | | Form | Like Query, but a space is `+` | | Raw | Encodes nothing | ## Extract patterns A link with an **Extract** pattern takes the text after `go/NAME/` whole, as typed (not split on `/`), runs the regular expression on it, and fills the destination from its capture groups instead of typed arguments: - `{1}`, `{2}`… are the numbered groups, and `{*}` is all of them joined by `/`. - `{name}` is a named group, written `(?…)` or `(?P…)`. Without an extract pattern, `{name}` is plain text. - Captured text is encoded by the link's encoding, like typed arguments. For example, a link `pr` with: | Field | Value | | --- | --- | | Extract | `github\.com/(?[^/]+/[^/]+)/pull/(?\d+)` | | Destination | `https://app.graphite.dev/github/pr/{repo}/{n}` | opens `go/pr/https://github.com/acme/widgets/pull/241` as `https://app.graphite.dev/github/pr/acme/widgets/241`. With nothing typed, or text the pattern doesn't match, ↩ is refused and the footer says why. The link router's targets use the same syntax; see [Extract parts of a link](https://flow.worldbreakstudios.com/docs/features/link-router.md#extract-parts-of-a-link). ## Fallback links A fallback catches names that aren't in your catalog. Highlight a link with a placeholder or an extract pattern, press ⌘K, and pick **Use as fallback** (**Stop using as fallback** undoes it). When the name you type matches no link, each fallback is listed as `go/FALLBACK/QUERY` and opens with your **whole** query as its arguments. So a fallback `l` with destination `http://go/link/{*}` opens `go/testtjnsd/foo` as `http://go/link/testtjnsd/foo`. A fallback with an extract pattern runs it on the whole query and is offered only while it matches. ## Search with go links When you type in the command palette, its **Search** rows offer your web search engine and then the web go links that take exactly one argument, most visited first, with your whole query as the argument. A link with an extract pattern is offered only while the pattern matches what you typed. ## Keys in go links | Key | Does | | --- | --- | | ↩ | Open the highlighted link (or create one on the Create row) | | ⇧↩ or ⌘↩ | Open it the alternate way | | ⇥ | Drill into the highlighted link, ready for an argument | | ⌘C | Copy the short link (`go/NAME/…`) | | ⇧⌘C | Copy the resolved URL or path | | ⌘E | Edit the link | | ⌘N | New go link | | ⌃X | Delete the link | | ⌘K | Actions: everything above, plus Import catalog…, Export catalog…, Use as fallback | | ⎋ | Clear the query, then go back a level | The **Go links** (`keyboard.go_links`) and **Create go link** (`keyboard.new_go_link`) actions are unbound by default. Bind them in Settings › Keyboard; see [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md). ## The catalog file The catalog is `~/.flow/golinks.json`, one file for your whole Mac. It's a JSON array of links: ```json [ { "name": "pr", "url": "https://github.com/acme/app/pull/{1}", "desc": "A pull request by number", "visits": 0, "created": "2026-11-23" }, { "name": "l", "url": "http://go/link/{*}", "desc": "Catch-all for unknown names", "visits": 3, "created": "2026-11-20", "fallback": true, "encoding": "path" } ] ``` - `url` holds the destination of any kind. `fallback`, `encoding` (`default`, `path`, `query`, `form` or `raw`) and `extract` are written only when set. - Flow reads the file each time you open go links, so a hand edit shows up the next time. - A file that isn't valid JSON reads as an empty catalog, and an entry with a bad name, a repeated name or a destination of no kind is skipped. Before Flow saves over such a file, it copies it to `golinks.json.bak`, so nothing you wrote is lost. - **Export catalog…** (⌘K) writes `~/Downloads/golinks.json` in this format. - **Import catalog…** (⌘K) merges a file into your catalog: a JSON array like the one above, a JSON object of `{"name": "url"}` pairs, or CSV rows of `name,url[,description]`. Existing names are updated, and the footer says how many links were added and updated. ## Limits - The form never checks that a file, folder or app exists. Opening a link checks a path; an `app:Name` link is handed to macOS as is. - A fallback needs a placeholder or an extract pattern, so the query has somewhere to go. --- # Notes URL: https://flow.worldbreakstudios.com/docs/features/notes A Markdown notebook for each session, kept in your repo under .flow/notes, with pages, notes on code and PR diffs, task lists and diagrams. The Notes tab is a notebook for one session: a folder of Markdown pages that lives in your repository, next to the code it's about. Write free text and task lists, pin notes to lines, files and folders of the repo or to a pull request's diff, and draw Mermaid diagrams. The pages are plain `.md` files, so you can @mention one in a [Claude Code](https://flow.worldbreakstudios.com/docs/cli/claude-code.md) session and the agent reads it, or have the agent write pages for you. ## Open the Notes tab Any of these shows the session's Notes tab, opening it in the focused pane if it isn't open yet: - The **Notes** tile on the New tab page (`⌘T`, when New tab opens the launcher, the default), subtitled "Session scratchpad". In the launcher it's `⌘5` (`⌘4` while web tabs are off). - Right-click the **+** at the end of the tab strip and pick **Notes**. - The **Notes** action in the command palette (`⇧⌘P`). It's unbound by default; bind `keyboard.new_notes_tab` in Settings › Keyboard. - `flow-cli new-notes-tab` (see [From the command line](#from-the-command-line)). Each session has one notebook and one Notes tab. If the tab is already open, Flow switches to it. A Notes tab stays with its session: you can't drag it into another one. ## Where notes live A notebook is the folder `.flow/notes/SLUG/` at the top of the session's repository: - The repo top is the git work-tree top of the session's directory. A linked worktree has its own notebooks, separate from the main checkout's. Outside a git repository, the folder sits in the session's directory itself. - `SLUG` comes from the session's name the first time you open Notes, made unique among the open sessions in that repo (`-2`, `-3`…). Two sessions in one repo never share a notebook. Renaming the session keeps its notebook. - When Flow creates a notebook, it adds `/.flow/notes/` to the repository's `.git/info/exclude`, so the pages stay untracked and ignored in every worktree. - A new notebook starts with one empty page, `notes.md`. The pages are the visible `*.md` files directly in that folder. Subfolders and other files aren't pages; the hidden `.outputs/` folder holds [notebook](https://flow.worldbreakstudios.com/docs/features/notebooks.md) outputs. ## Pages The bar along the top lists the notebook's pages. - Click a page to show it. - **+** adds a page named `untitled-1.md`, `untitled-2.md`… and shows it. - Right-click a page and pick **Rename…**. Type a name (Flow adds `.md` if you leave it off) and press ↩, or ⎋ to cancel. Flow refuses a name another file in the folder already has, ignoring case, and never overwrites anything. - **Copy folder path**, at the right of the bar, copies the notebook folder's path. The header under the bar shows the page's path, a **Preview | Markdown** toggle, and **Copy path**. Copy path copies the page's path relative to the repo, such as `.flow/notes/my-session/notes.md` (with `../` steps when the session's directory is below the repo top), ready to @mention in an agent session. Flow has no Delete for pages, and closing the tab never deletes a file. To remove a page, delete its file; it drops out of the bar on the next refresh. ## Preview and Markdown **Preview** shows the page rendered: - Headings, paragraphs, bulleted, numbered and task lists, quotes and GitHub alerts, tables, links, bold, italic and inline code. - Fenced code, syntax-highlighted when the fence names a language. - Mermaid diagrams (`mermaid` fences), rendered on your Mac. Nothing is sent anywhere. Click a diagram to enlarge it; **Show source** / **Hide source** toggles its code. - Task boxes you can click: a click checks or unchecks the box and saves the page at once. - Issue and pull request references (`#123`, `owner/repo#123`, or a bare GitHub issue or PR URL) become chips with their state and title, and hovering shows a card. A bare `#123` refers to the repo's GitHub `origin`. - `@path`, `@path:12` or `@path:12-20` naming a file or folder in the repo becomes a chip. Clicking it opens the file in a Files tab at that line, or reveals the folder. - Each block has a ✕ that removes it from the page. You can drag to select text in Preview and copy it with `⌘C`. Links open in your browser, or as `links.open_in` says; ⇧-click opens them the other way (see [Link router](https://flow.worldbreakstudios.com/docs/features/link-router.md#links-you-open-inside-flow)). **Markdown** mode shows the page's raw text in an editor: - Flow saves 700 ms after you stop typing. The header shows **Saving…**, **Saved** or **Not saved**. `⌘↩` saves now. - Tab inserts two spaces. ⎋ leaves the editor. ## Notes on code and pull requests Besides free text, a page can hold notes attached to something: | Note | Add it from | Shows in Preview as | | --- | --- | --- | | Line note | A Files tab: drag down the note column (the **+** beside a line) or the line numbers. Or click **Add note** in a diff peek. | A card with the file name and range, the lines with one line of context, and **Open ↗** | | File or folder note | A Files tab's explorer: right-click a row, then **Add note to file…** or **Add note to folder…** | A card with the path, its line or file count, and **Open ↗** or **Reveal ↗** | | PR diff note | A pull request review tab: a diff row's menu, **Add note on line…** or **Add note on hunk** | A card with `owner/repo#N`, the file and range, the diff lines, and **Open ↗** back to the review tab | The composer lets you pick the target page (**→ page ▾**, by default the page your Notes tab shows) and @mention files as you type. **Add note** (`⌘↩`) appends the note to that page. PR diff notes are personal: Flow keeps them in your notebook and never posts them to GitHub. Files tabs show notes inline under the lines they're about, with **Open in Notes ↗**. See [Files](https://flow.worldbreakstudios.com/docs/features/files.md) and [Pull requests](https://flow.worldbreakstudios.com/docs/features/pull-requests.md). - **Lines move, notes follow.** When the code a line note points at moves, the note follows it to the closest place those exact lines appear. - **Nothing is dropped.** If a note's file or folder is gone, its card says "missing" and the note is kept as it was. ## The page format A page is plain Markdown, and an attached note is an HTML comment marker followed by the note's text. A line note also carries a copy of its lines in a fence, which Flow refreshes on every save. The copy is there for anyone reading the file, an agent say; the marker decides what the note points at. ````markdown A paragraph of free text. - [ ] A task ```rust fn main() { // lines 10 to 16 of src/main.rs } ``` Why this loop retries. A note on a folder (a trailing slash), or on a file without a range. ```diff +let retries = 3; ``` A PR diff note: R is the new side of the diff, L the old. ```` - Blocks are separated by a blank line. A note's text runs to the next blank line or marker. - Paths are relative to the repo top, with `%`, `#` and spaces percent-encoded (`docs/My%20Notes.md`). - `-L16` appears only for a range longer than one line. A tag such as ` · modified hunk` after the range is optional. ## Edits from outside Flow Flow lists the notebook folder and re-reads changed pages about every 2 seconds, so pages an agent or another editor writes show up on their own. No edit is ever silently lost: - Checking a task, removing a block or adding a note re-reads the file first and applies the change to what it holds now. - If you were editing in Markdown mode and the file changed behind you, Flow saves your version beside it as `NAME-conflict-1.md` (then `-2`…) and reloads the page. The footer says so. - A save that fails stays pending, shows **Not saved**, and is retried every 2 seconds. Pending edits are written before you switch page or mode, close the tab, or quit Flow. ## Notes on another Mac In a mirror group, a session that runs on another Mac paired through [Puddles](https://flow.worldbreakstudios.com/docs/features/puddle.md), the Notes tile is "Session scratchpad on DEVICE" and opens the notebook that session keeps on its own Mac. You edit it here; Flow syncs it when the tab opens, about a second after each save, every 10 seconds while it's open, and once more as it closes. - A page changed on both Macs keeps both: your edit is saved as `NAME-conflict-N.md`, and the footer names both pages. - A page is removed on the other Mac only when you rename it away here. - While the other Mac can't be reached, the tab stays open and its footer counts the changes kept here. They go out when it answers again. - Only top-level `*.md` pages sync: at most 500, each at most 2 MiB. - Copy path copies the path on the other Mac. Notes attached to code read "on DEVICE", and Open or Reveal says the file is on that Mac instead of opening anything. [Notebook](https://flow.worldbreakstudios.com/docs/features/notebooks.md) cells don't run. - The tile is disabled with "Update Flow on DEVICE to use its notes here" when that Mac runs an older Flow, or "This session has no notes folder on DEVICE". ## From the command line ```sh # Show the active session's Notes tab (or a named session's) flow-cli new-notes-tab flow-cli new-notes-tab --group work # Rename a page of that Notes tab (.md added when missing) flow-cli notes-rename-page notes.md design ideas # Check or uncheck task 0 of block 2 on the shown page (both count from 0) flow-cli notes-toggle-task 2 0 ``` `new-notes-tab` replies with the repo top (`root`), the notebook folder (`folder`), the shown `page` and the list of `pages`. An agent can write pages straight into that folder; the tab picks them up within a couple of seconds. See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md). ## Limits - Sessions on a remote host have no Notes ("Not for remote sessions"), and neither does a session without a directory of its own. PR diff notes are off in a remote group ("Notes are local only"). See [Remote hosts](https://flow.worldbreakstudios.com/docs/sync/remote-hosts.md). - Only the visible `*.md` files directly in the notebook folder are pages. - A page that isn't UTF-8 text shows "Could not read …" and is never written. - A Mermaid diagram's source can be at most 50 KB. --- # Notebooks URL: https://flow.worldbreakstudios.com/docs/features/notebooks Run Python, JavaScript and shell cells in a Notes page's Preview, with sliders and other inputs that re-run them, and inline tables and charts. Notebooks turn a page in the [Notes](https://flow.worldbreakstudios.com/docs/features/notes.md) tab into a live, Jupyter-style notebook that is still a plain Markdown file. In the page's **Preview**, a `python`, `js` or `sh` code fence becomes a cell you can run, with its output under it, and an `input` fence becomes sliders, fields, menus and switches that re-run the cells using them. Use it for calculators, quick data checks and charts that sit next to your code. > **Note:** Notebooks is an experiment (ALPHA). Turn it on in Settings › Experiments (`features.notebooks`). While the experiment is off, Preview shows every fence as plain code, no kernel starts (turning it off stops the running ones), the palette doesn't offer the notebook actions, and the `flow-cli` notebook commands refuse. Your pages and their saved outputs are kept. ## Run your first cell 1. Turn on **Notebooks** in Settings › Experiments. 2. Open the session's Notes tab and switch the page to **Markdown**. 3. Type a cell: ````markdown ```python sum(range(10)) ``` ```` 4. Switch to **Preview** and click **▶ Run** on the cell. The result, `45`, shows under it. Code runs only when you ask: **▶ Run** on a cell, **Run all**, changing an input, or `flow-cli`. Opening a page, switching to it, or Flow reloading it never runs anything. ## Cells A fenced block is a cell when its language word (any case) is one of these: | Fence | Runs in | | --- | --- | | `python`, `py`, `python3` | One persistent `python3` per Notes tab and page | | `js`, `javascript`, `node`, `mjs` | One persistent `node` per Notes tab and page | | `sh`, `shell`, `bash`, `zsh` | A fresh shell for each run (`shell` runs `sh`) | Every other fence (`rust`, `mermaid`…) renders as before. Cells are numbered in page order, counting from 0, including cells inside lists, quotes, alerts and `details` blocks. Input fences don't count. Each cell has a header: the language, `[n]` (the run's execution count; `[ ]` never run, `[*]` queued or running), the status (**Queued**, **Running… 1.2s**, or the last run's time), a **stale** tag when you edited the code since its outputs were made, and **▶ Run** or **■ Stop**. A page with cells or inputs gets a bar on top: **Run all · Restart · Clear outputs**. Kernels start on a cell's first run, in the notebook's repository top, with your shell's PATH, so a Homebrew `python3` or `node` is found. They stop when the tab closes, when you turn the experiment off, or when Flow quits. ### Python - Cells share one namespace, like Jupyter: define `x` in one cell and use it in the next. - The last expression of a cell is shown. Top-level `await` works. - `print` and `sys.stderr` stream as they are written. A traceback shows only your cell's frames. - If you use `matplotlib`, every figure open at the end of a run is shown as an image, then closed. Don't call `plt.show()`. - A pandas `DataFrame` you show or `display` is a table. ### JavaScript - Top-level `let`, `const`, `class` and `function` become globals, so later cells see them and a cell can run again. - The last expression is shown; a promise is awaited first. Top-level `await` works. - `require` resolves from the repository top, so its `node_modules` are available. Use `require`, not `import` statements. ### Shell A shell cell is one-shot: nothing carries over between runs. Its working directory is the repository top, and each input is an environment variable (`$n`). ### Stop, Restart and Clear outputs - **■ Stop** interrupts the running cell and drops the rest of that kernel's queue. Python raises `KeyboardInterrupt` and keeps its state; if it doesn't stop within 3 seconds, the kernel restarts. A JavaScript kernel is restarted, so its state is lost. A shell cell's whole process group is killed. - **Restart** stops the page's kernels. Outputs stay. - **Clear outputs** forgets every run of the page. Input values stay. ## Helpers Python and JavaScript cells both have three helpers: ```python display(obj, ...) # show each object (a string as itself) table(rows, columns=None) # a list of dicts or lists, or a DataFrame chart.line(x, y=None, title=None) # also chart.scatter and chart.area chart.bar(labels, values=None, title=None) ``` ```js display(...values) // show each value (a string as itself) table(rows, columns) // an array of objects or arrays chart.line(x, y, opts) // also chart.scatter, chart.area, chart.bar ``` `chart` draws a native chart in your theme's colors: - `y` is a list, or a dict (object) of named series: `{"a": [...], "b": [...]}`. - Leave out `x` for `0, 1, 2…`: `chart.line([3, 1, 4])`. - `x` is all numbers or all strings. A `None` or `null` value is a gap. - In JavaScript, pass the title as `chart.line(x, y, { title: '…' })`, or `chart.line(y, 'title')`. - A chart takes up to 12 series and 10,000 points in all. A bar chart shows its first 60 bars. A table shows its first 200 rows and says how many there are in all. Python's standard library is always there. Other packages (`numpy`, `pandas`, `matplotlib`, npm packages) work only if they're installed for the `python3` or `node` Flow finds. ## Inputs An `input` fence declares controls, one per line: ````markdown ```input slider n 1..100 step 1 = 20 # Points number rate 0..1 step 0.01 = 0.05 text title = "Hello" select color red|green|blue = red toggle log = false ``` ```` | Line | Control | Value and default | | --- | --- | --- | | `slider NAME MIN..MAX [step S] [= V]` | A slider | A number; default the minimum | | `number NAME [MIN..MAX] [step S] [= V]` | A number field | A number; default 0, clamped into the range | | `text NAME [= "quoted" or bare text]` | A text field | A string; default empty | | `select NAME a\|b\|c [= a]` | A menu | A string; default the first option | | `toggle NAME [= true\|false]` | A switch | A bool; default `false` | - A trailing `# Label` names the control; without one it shows its name. Blank lines and lines starting with `#` are skipped. - `step` and the range can come in either order. A slider's minimum must be below its maximum, and a default outside a slider's or number's range is an error. Without `step`, a slider moves by 1 when its ends and default are whole numbers at least 2 apart, else by a hundredth of its range. - A quoted `text` value takes JSON escapes. - A bad line shows its error in the card and never breaks the rest of the page. The fence holds only the **default**. Moving a slider never rewrites the page; the live value is saved beside it (see [Saved outputs](#saved-outputs)). The number and text fields take a value as soon as you type one they accept; a value out of range or not a number turns the field red and keeps your text. ↩ or ⎋ leaves the field. ### Input names A name is letters, digits and `_`, not starting with a digit. It can't be: - a keyword of Python or JavaScript (`class`, `in`, `let`, `new`…), - a helper (`display`, `table`, `chart`) or a name starting with `__`, - a name the kernels and shells need: `process`, `require`, `module`, `exports`, `global`, `globalThis`, `console`, `Buffer`, `JSON`, `Math`, `Object`, `Array`, `String`, `Number`, `Boolean`, `Symbol`, `Promise`, `Error`, `Date`, `Map`, `Set`, `crypto`, `navigator`, `performance`, `print`, `len`, `range`, `list`, `dict`, `str`, `int`, `float`, `input`, `open`, `max`, `min`, `sum`, `sorted`, `abs`, `round`, `zip`, `map`, `filter`, `any`, `all`, `set`, `tuple`, `bool`, `PATH`, `HOME`, `SHELL`, `PWD`, `IFS`, `USER`, `TMPDIR`, `LANG`. A name declared twice on a page is refused on its later line. ### How inputs re-run cells Each input is a variable in every cell: `n` in Python and JavaScript, `$n` in a shell cell (a toggle as `true` or `false`). A whole number arrives as an integer, so `range(n)` works with a whole-number slider. Changing an input re-runs, in page order, every cell that uses it, then every later cell of the same language that uses a name those cells define. Dragging a slider doesn't queue a run per step: a re-run still waiting is replaced by one with the newest values. If a kernel hasn't run yet, or was restarted, its earlier cells run first so the dependent cell finds what they define. Keep slow setup in its own cell that doesn't mention any input, so it doesn't re-run on every change. A kernel runs one cell at a time, so a slow cell holds up everything queued behind it. ## Example ````markdown ```input slider n 2..60 = 12 # Points toggle squared = false ``` ```python import math xs = list(range(n)) ys = [math.sin(x / 3) ** (2 if squared else 1) for x in xs] chart.line(xs, {"sin": ys}, title=f"{n} points") ``` ```` Drag the slider and the chart redraws. ## Saved outputs Outputs and input values are saved beside the page, in `.outputs/PAGE.json` in the notebook folder (`notes.md` → `.outputs/notes.md.json`). The file holds the live input values and each cell's last run: its outputs, execution count, time, and a hash of the code it ran. - Reopening the tab shows them again. A cell whose code changed since shows its old outputs with the **stale** tag. - Renaming the page moves its outputs file. - `.outputs/` is hidden: it is never listed as a page, and a notebook never writes the page file itself. - Each cell keeps at most 256 KB of text (an error is always kept), 16 images of up to 4 MB each, and 16 charts. Preview shows up to 300 lines of each output. > **Warning:** Outputs are saved in plain text. Don't print tokens, keys or environment variables in a cell. ## Palette and keyboard The command palette (`⇧⌘P`) lists **Run all cells**, **Restart kernel** and **Clear outputs**. They act on the shown page of the focused Notes tab, in Preview. They are unbound by default; bind them in Settings › Keyboard as `keyboard.run_all_cells`, `keyboard.restart_kernel` and `keyboard.clear_outputs` (see [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md)). ## From the command line These act on the shown page of the session's Notes tab (its focused one, else its first). Add `--group NAME` for another session. ```sh # Run cell 0 (cells count from 0, in page order) flow-cli notes-run-cell 0 # Set an input as its control would; dependent cells re-run flow-cli notes-set-input n 40 flow-cli notes-set-input title hello world # The page's cells, inputs and kernels as JSON flow-cli read notebook # The palette actions, on the focused Notes tab flow-cli action run_all_cells ``` `notes-set-input` reads the value as a JSON literal when it is one (`40`, `true`), else as text. `read notebook` returns each cell's ordinal, language, status (`idle`, `queued` or `running`), execution count, `stale`, `ok`, time and a summary of its outputs, plus the inputs with their current values, any bad input lines, the kernels and the outputs file. All of these refuse while the experiment is off or the session has no Notes tab. See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md). The Flow agent has a built-in `notebooks` skill that knows the helpers, the input syntax and this loop, so you can ask it to build an interactive page. See [Agent skills](https://flow.worldbreakstudios.com/docs/cli/agent-skills.md). ## Security and privacy Code runs as you, in your repository, with your environment and network access. A notebook is as trusted as any script you run in a terminal. Flow never logs a cell's code, its outputs or an input's value. ## Limits - Cells run only in Preview, and only in the Notes tab. Notes cards in a Files tab show fences as code. - Cells don't run on a page of a notebook that lives on another Mac (see [Notes](https://flow.worldbreakstudios.com/docs/features/notes.md#notes-on-another-mac)). - No package is guaranteed: cells use whatever `python3` and `node` your PATH finds, with the packages installed for them. --- # Pull requests URL: https://flow.worldbreakstudios.com/docs/features/pull-requests Track the PRs that need you on the Reviews and My PRs pages, open any PR from its session, and merge, ready or close it without leaving Flow. Flow keeps your pull requests next to the sessions that make them. Every session on a branch with a PR shows it in its header, one shortcut opens it as a review tab, and the merge, ready, draft, close and auto-merge changes run from the palette. Two queue pages, **Reviews** and **My PRs**, gather the PRs that want something from you across every repository, sorted into sections you define. This page covers the queue pages, the PR pill and the status changes. Reading a PR, commenting, reviewing, requesting reviewers and review sessions are on [PR review](https://flow.worldbreakstudios.com/docs/features/pr-review.md). To have an agent keep several sessions moving toward a mergeable draft PR, see the `babysit-prs` skill in [Agent skills](https://flow.worldbreakstudios.com/docs/cli/agent-skills.md). > **Note:** The Reviews and My PRs pages are an experiment (BETA). Turn them on in Settings › Experiments (`features.pull_requests`). While it is off, neither page appears anywhere (the Tools band, the palette's Go to rows) and the queue never fetches. The PR pill, PR review tabs, `⇧⌘G` / `⌥⌘R`, the palette's PR status changes and PR review sessions work with the experiment off. ## Before you start Flow reads and writes GitHub through the GitHub CLI. Install `gh` and sign in with `gh auth login`. - Reads go through the read CLI in `git.cli`, by default the bundled `ghx`, a caching client that shows cached data at once and refreshes it in the background. Plain `gh` works too. See [ghx and gitx](https://flow.worldbreakstudios.com/docs/cli/ghx-and-gitx.md). - Writes (merges, comments, reviews) go through `ghx` while it is the read CLI, which hands them to `gh`; with any other read CLI they run `gh` itself. - A review tab reads PRs on github.com or on one GitHub Enterprise Cloud tenant (`NAME.ghe.com`). The Reviews and My PRs funnels search github.com only. ## The PR pill A session whose branch has a pull request shows a **PR pill** at the right of its primary pane's header: the state glyph in the PR colours, `#` and the number, a dim state word (Draft, Open, Merged or Closed) and the checks as passed over total (`✓ 3/4`). Click the pill to open the pull request: - With `git.open_pr_in_review` on (the default), it opens as a PR review tab in that session. A review tab already open on that PR is focused instead of opening a second one. - With it off, or for a PR on a host the review tab can't read, it opens in your browser. A narrow header drops the PR pill before the branch pill. The pill shows on the Sessions page; a collapsed primary pane has no header. ## Open a pull request | Action | Default | What it does | |---|---|---| | Open pull request | `⇧⌘G` | Opens the session's PR by the PR pill's rule: a review tab while `git.open_pr_in_review` is on, else the browser. | | Review pull request | `⌥⌘R` | Always opens the session's PR as a review tab. | | Open PR as session… | unbound | Opens any PR as its own review session. See [PR review sessions](https://flow.worldbreakstudios.com/docs/features/pr-review.md#pr-review-sessions). | On the Sessions page these act on the active session; on the Dashboard, on the focused card. When Flow has no PR cached for the branch yet (one opened since the last poll), `⇧⌘G` and `⌥⌘R` ask GitHub first and open it when the answer lands. A review tab opened this way is pinned to the front of its pane's tabs, so `⌘W` keeps it until you unpin it. Turn `git.pin_pr_review_tab` off to open it as an ordinary tab. ## Change a pull request's status These actions change the session's pull request through `gh`. On the Sessions page they act on the active session, on the Dashboard on the focused card. Each is in the command palette (`⇧⌘P`) and can be bound in Settings › Keyboard. | Action | Default | Runs | When it applies | |---|---|---|---| | Merge pull request | `⇧⌘M` | `gh pr merge N --squash` (the `git.merge_method` strategy) | Open, not a draft, mergeable, no check failing or pending, not blocked or behind its base | | Mark PR ready for review | unbound | `gh pr ready N` | An open draft | | Convert PR to draft | unbound | `gh pr ready N --undo` | An open PR that is not a draft | | Close pull request | unbound | `gh pr close N` | Any open PR | | Enable auto-merge | unbound | `gh pr merge N --auto --squash` | An open PR that can't merge yet and isn't a draft | | Disable auto-merge | unbound | `gh pr merge N --disable-auto` | While auto-merge is on | | Change PR status… | unbound | Opens a picker of the changes above | Any open PR | - The palette is context-aware: opened beside a session, it lists only the changes that apply to that session's PR, and **Change PR status…** shows the rest dimmed. - A change that doesn't apply is refused with a toast that says why, for example "Cannot merge pull request: a draft cannot be merged". - Only one change runs per session at a time. A toast shows the progress ("Merging #12…") and the outcome. - A merged or closed PR offers no changes; there is no reopen. - A merge never deletes the branch. The same changes are in the status selector of a Dashboard card's PR label (see [Dashboard](https://flow.worldbreakstudios.com/docs/workspace/dashboard.md)) and of a review tab's state chip (see [PR review](https://flow.worldbreakstudios.com/docs/features/pr-review.md#identity-row-and-toolbar)). ### Merge method `git.merge_method` picks the strategy for Merge and Enable auto-merge: `squash` (the default), `merge` or `rebase`. Any other value counts as `squash`. A repository usually allows one strategy, so a team can set it for its repository and your own override still wins. Set it per repository in Settings › Repos; see [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md). ## The Reviews and My PRs pages - **Reviews** lists the pull requests other people want from you: review requests, re-requests and unreplied @mentions. - **My PRs** lists the pull requests that are yours: authored by you, assigned to you, or carrying your commits. Open them from their rows in the sidebar's Tools band, from the palette's **Go to Reviews** and **Go to My PRs** (both unbound), or from a terminal: ```sh flow-cli page pr_reviews flow-cli page my_prs ``` Each page has the queue on the left and, on the right, a preview of the selected PR (or the Customize panel). Drag the preview's left edge to resize it (300 to 900 px, one width for both pages); double-click the edge to reset it to 360 px. ### How a PR gets on a page 1. **Funnel.** Each page has a list of GitHub search queries. Their results together are the *watch set*. Everything after this step runs locally. 2. **Mine fingerprint.** A set of clauses, each toggleable, that decide which PRs are yours. My PRs shows what its funnel found plus every watched PR that matches the fingerprint. Reviews never shows a PR that matches it. 3. **Admit** (Reviews only). Of what the Reviews funnel found, only PRs that pass this query are shown. By default that is `review:requested OR mention:unreplied`: a review requested from you or one of your teams, or an @mention you haven't answered. An empty Admit admits nothing. 4. **Sections.** A sieve: in order, each section takes the PRs its query matches that no earlier section took. Whatever is left falls to **Everything else**, which is always last in the sieve. Within a section, pinned PRs come first in pin order, then the rest by the page's sort: newest activity first by default. ### Refreshing The queue fetches at launch, every 5 minutes while a page is shown, every 15 minutes while you are elsewhere and the page is in the Tools band (for its badge), and when you enter a page whose last fetch is over a minute old. It also refetches when `ghx` reports a change and a moment after you edit a funnel. The title bar's refresh button reads fresh from GitHub. The last result is saved, so both pages show their PRs at launch before the first fetch. A fetch error shows as a quiet line in the title bar; only the refresh button raises a toast. ### Rows Each row shows the PR's state colour, up to three labels, `repo #N`, the author, a reason line, your local tags and pin, the size as `+A −D`, a checks dot and the age. A PR you haven't seen since its last update carries an unread dot where the page shows dots. Leaving a PR selected in the preview for a second marks it seen. The **reason line** says why the PR is there, first match wins: ignored, snoozed, woke up, @mentioned and unreplied, or draft. Then on My PRs: changes requested, approved, "Yours via" the fingerprint clause that matched (when someone else authored it), or waiting on review. On Reviews: re-requested (with the number of commits since your review), you approved, requested you (turning warmer once the request is over 48 hours old), via a team, or involved. ### Badge and unread dots Each section has a bell. A belled section counts toward the page's badge in the sidebar; on Reviews it also shows unread dots. The badge counts the PRs in belled sections. My PRs shows no unread dots by default. A muted section is shown dimmed. ### The preview The preview of the selected PR shows, top to bottom: - an amber **Needs your reply** callout for an unreplied @mention, with Reply, Resolve and Open thread buttons that open the PR's review session; - an excerpt of the description; - the Files, Diff and Threads counts, the checks and the reviewers; - the **Local** box: Pin, Snooze, your tags and an "Until query…" field (see below); - the main button: **Start review** on Reviews, **Open PR session** on My PRs, or **Resume review** when a review session on the PR is already open. It opens the PR as a review session; see [PR review sessions](https://flow.worldbreakstudios.com/docs/features/pr-review.md#pr-review-sessions). ### Default sections | Reviews section | Query | Bell | |---|---|---| | Pinned | `local:pinned` | on | | Needs response | `mention:unreplied` | on | | This sprint | `tag:this-sprint` | on | | Re-requested | `review:re-requested` | on | | Asked me directly | `review:requested-me -review:approved-by-me` | on | | Quick team reviews | `review:team size:<300` | on | | Dependency bumps | `author:bot OR label:dependencies` | off | | Everything else | (whatever is left) | off | | Waiting on CI | `checks:pending OR checks:fail` | off | | Drafts | `is:draft` | off | | Snoozed | `local:snoozed` | off | | Ignored | `local:ignored` | off | | My PRs section | Query | Bell | |---|---|---| | Pinned | `local:pinned` | on | | Needs response | `mention:unreplied` | on | | Changes requested | `review:changes-requested` | on | | Failing checks | `checks:fail` | on | | Agent PRs to vet | `author:bot` | on | | Ready to merge | `review:approved checks:pass` | off | | Everything else | (whatever is left) | off | | Drafts | `is:draft` | off | | Snoozed | `local:snoozed` | off | | Ignored | `local:ignored` | off | Both tables are in display order. The sieve order differs: Pinned, Ignored and Snoozed catch first, so a pinned, ignored or snoozed PR lands in that section whatever else it matches. The default funnels are `is:pr is:open involves:@me` and `is:pr is:open review-requested:@me` for Reviews, and `is:pr is:open author:@me` and `is:pr is:open assignee:@me` for My PRs. The default fingerprint is `author:@me`, `assignee:@me`, `commit-email:@me` and `co-author:@me`, all on, plus a `head:` branch-prefix clause that starts off. ## Pin, snooze, ignore and tag These annotations live only in Flow and are never sent to GitHub. They are kept in `~/.flow/pr_local.json` and apply on both pages. Right-click a row for Pin and Snooze, or use the preview's Local box. - **Pin** (`P`) puts the PR at the top of its section, in pin order, and into the Pinned section. Pinning clears a snooze. - **Snooze for a while**: 1 hour, tomorrow at 9:00, or Monday at 9:00, in your local time. Snoozing unpins. - **Snooze until…** something happens: new commits (`commits:new`), checks pass (`checks:pass`), re-requested (`review:re-requested`) or @mentioned (`mention:unreplied`). For anything else, type a query in the Local box's "Until query…" field and press `↩`; the PR wakes while that query matches. - **Forever · ignore** (`E`) moves the PR to Ignored until you stop ignoring it (`E` again, or **Stop ignoring** in the menu). - A woken PR returns to its normal section with a "Woke up" reason and matches `local:woke`. The snooze stays until you clear it with **Wake now**. - **Tags** are free words, trimmed and lower-cased. Filter on them with `tag:NAME`, as the default "This sprint" section does with `tag:this-sprint`. ## Keyboard With no field focused on a queue page: | Key | Action | |---|---| | `↑` / `↓` or `J` / `K` | Move the selection | | `↩` | Start or resume the selected PR's review session | | `P` | Pin or unpin | | `E` | Ignore, or stop ignoring | | `⌘C` | Copy the PR's link | | `/` | Focus the search box | | `Esc` | Close Customize, else clear the search | In the search box ("Filter by title, repo, author"), `↑` / `↓` still move the selection and `Esc` clears the search, then leaves the box. Other `⌘` chords keep their usual meaning. ## Customize a page Click **Customize** in a page's toolbar to replace the preview with the editor. Edits save as you type. **Reset to defaults** restores the page's built-in configuration. - **Funnel · GitHub search**: one GitHub search query per row, `+ Add query` to add one. The queue refetches once you stop typing. Past 100 watched PRs the page suggests narrowing the funnel. - **Mine fingerprint** (on My PRs): the clauses that make a PR yours; each has an on/off check, and `+ Add clause` adds one. Each clause shows how many open PRs it matches. Reviews uses the same fingerprint to leave your own PRs out. - **Admit** (on Reviews): the query a funnel PR must pass. - **Sections**: the **Sieve** tab (what catches) orders the sections for catching, with Catch earlier / Catch later, delete and `+ Add section`. The **Display** tab (what shows first) orders them on the page with Show higher / Show lower. A new section is named "New section", has an empty query (which matches nothing) and starts belled. Click a section's bell to count it toward the badge or not, and its dim toggle to show it dimmed. Each page's configuration is a JSON value in your settings: `pr.reviews` and `pr.mine`. Besides what Customize edits, it holds `sort` (`updated`, the default: newest activity first; `created`: newest opened first; `size`: smallest first; `age`: oldest opened first) and `dots` (whether the page shows unread dots). ## Query language Fingerprint clauses, the Admit query, section queries and "Until" snoozes share one local query language. (Funnels are GitHub search strings and use GitHub's syntax.) - Terms separated by spaces must all match. - A standalone `OR` (upper case) separates alternatives; any alternative may match. - A leading `-` negates a term. - There are no parentheses and no quoting, so a label with a space can't be named. - An empty query matches nothing. - A term Flow doesn't know (a bare word, an unknown key or value, a malformed comparison) is flagged as `Unknown term: …` and fails its whole alternative, so a typo never widens a query. | Term | Values | Matches | |---|---|---| | `review:` | `requested` | A live review request from you or one of your teams | | | `requested-me` | A request from you directly | | | `team` | A request via a team only | | | `re-requested` | A live direct request after you submitted a review | | | `approved`, `changes-requested`, `none` | GitHub's review decision | | | `approved-by-me` | Your latest review approves | | `checks:` | `pass`, `fail`, `pending`, `none` | The head commit's checks rollup | | `author:` | `@me`, `bot`, a login | Who opened the PR | | `assignee:` | `@me`, a login | Who it is assigned to | | `commit-email:` | `@me`, an address | The commits' author emails | | `co-author:` | `@me`, an address | The commits' `Co-authored-by:` trailers | | `head:` | a branch, or a prefix ending in `*` | The head branch (case-sensitive) | | `label:` | a label name | A label on the PR | | `repo:` | `owner/name` or `name` | The repository | | `tag:` | a local tag | Your Flow tags | | `is:` | `draft`, `unread` | A draft; changed since you last saw it | | `commits:` | `new` | New commits since you last saw it (or since your review) | | `mention:` | `unreplied`, `unresolved`, `any` | Someone else @mentioned you | | `local:` | `pinned`, `snoozed`, `ignored`, `woke`, `any` | Your annotations | | `age:` | `>2d`, `<=12h`, `>1w` | Hours since opened (units `h`, `d`, `w`; `h` by default) | | `size:` | `<300` | Additions plus deletions | | `threads:` | `>0` | Unresolved review threads | Keys are case-insensitive. Logins, labels, repositories and emails compare ignoring case; the values of the fixed keys are exact lower-case words. A comparison is an optional `>`, `>=`, `<` or `<=` (none means equal) and digits. `mention:unreplied` means an unresolved review thread holds someone else's comment mentioning you with no comment of yours after it, or a top-level comment mentioning you that you haven't answered with a later top-level comment. `unresolved` adds mentions in unresolved threads you did answer; `any` is a mention anywhere, the description included. `@me` in `commit-email:` and `co-author:` means any of your emails: `git config --global user.email` plus the addresses in the `pr.me.emails` setting (a JSON array of strings). Some examples: ```text review:requested -review:approved-by-me checks:fail OR checks:pending author:bot label:dependencies size:<300 age:<2d ``` ## Settings | Key | Type | Default | Effect | |---|---|---|---| | `features.pull_requests` | boolean | `false` | Shows the Reviews and My PRs pages (Settings › Experiments) | | `git.open_pr_in_review` | boolean | `true` | `⇧⌘G`, the PR pill and a Dashboard card's PR label open a review tab; off, the browser | | `git.pin_pr_review_tab` | boolean | `true` | A review tab opened by `⇧⌘G`, the PR pill or `⌥⌘R` is pinned to the front of its pane | | `git.merge_method` | `squash`, `merge` or `rebase` | `squash` | Strategy for Merge and Enable auto-merge | | `git.cli` | text | `ghx` | The program that reads PR data; empty means `ghx` | | `git.async` | boolean | `true` | Serve cached data at once and refresh in the background; not available with plain `gh` | | `pr.reviews` | JSON object | built-in | The Reviews page's funnel, Admit, sections, sort and dots | | `pr.mine` | JSON object | built-in | The My PRs page's funnel, fingerprint, sections, sort and dots | | `pr.me.emails` | array of strings | none | Extra addresses `@me` matches in `commit-email:` and `co-author:` | The `git.*` toggles are under Settings › General › Pull requests. `git.open_pr_in_review` and `git.pin_pr_review_tab` can differ per repository but are never set by a team file. ## Limits - The funnels search github.com only; GitHub Enterprise funnels aren't supported. - Team review requests need your teams. If Flow can't read them (for example a token without `read:org`), every team request counts as yours. - Mention detection reads each PR's newest 20 review threads and the newest 10 comments in each, so a mention only in an older thread doesn't count as unreplied. - Flow doesn't create pull requests; open them with `gh pr create` or your agent. --- # PR review URL: https://flow.worldbreakstudios.com/docs/features/pr-review Review a pull request in a Flow tab, with its summary, grouped diff, comments, pending reviews, reviewer requests, quick links and review sessions. A **PR review tab** shows a pull request inside Flow: its description and conversation on a Summary view, its diff on a Changes view, and the tools to comment, review, request reviewers and change its status. A **PR review session** is a whole session built around one PR, with the PR as its primary tab and a checkout of its branch. Review tabs work without any experiment. How to reach a PR from a session, the Reviews and My PRs queue pages and the merge / ready / draft / close changes are on [Pull requests](https://flow.worldbreakstudios.com/docs/features/pull-requests.md). ## Open a review tab - Press `⌥⌘R` (Review pull request) in a session whose branch has a PR. - Press `⇧⌘G` (Open pull request) or click the PR pill in the session's header while `git.open_pr_in_review` is on (the default). - On the Dashboard, click a card's PR label (the same rule as `⇧⌘G`). - Open any PR as a review session (below). A review tab on a PR that is already open in the group is focused instead of opening twice. Several tabs on one PR share one fetch. ## Identity row and toolbar The top row shows the PR's title and `repo #N`. At its right: - **Refresh**, **Copy link** and **Open on GitHub** buttons. Refresh reads the PR again; its icon spins until something changes, fails, or 3 seconds pass. - The **state chip** (Open, Draft, Merged or Closed in the PR colours). On an open PR, click it for the status selector: a `#N State · …` header with what stands between the PR and a merge, then Merge pull request, Enable or Disable auto-merge, Convert to draft or Mark ready for review, Close pull request (each enabled only when it applies) and Open in GitHub. A draft's selector adds **Mark ready for review (…)** rows that mark it ready and request reviewers in one go (see [Request reviewers](#request-reviewers)). A merged or closed PR's chip opens it in the browser. The toolbar under it: - **Summary** and **Changes**, followed by the PR's `+A −D`. - The viewed progress, a bar and `x / y viewed`. - On Changes: the **Groups** pill (the [Diff groups panel](#diff-groups)), Unified / Split, Wrap, File tree, and fold all / unfold all. - On Summary: a button that shows or hides the details column. - **Finish review**, with the count of pending comments (see [Comment and review](#comment-and-review)). While a PR is loading the page reads "Loading pull request…". A failed first load shows the error over a Retry button. A failed refresh keeps the page and shows "Refresh failed: …" under the title. ## Summary view The main column shows the title, the author, the age and `head → base`, then the description, rendered as GitHub-flavored Markdown: headings, lists and task lists, code, tables, quotes, GitHub alerts (Note, Tip, Important, Warning, Caution), collapsible `
`, footnotes and images. A `mermaid` code block is drawn as a diagram on your Mac; click it to enlarge it, or use "Show source". Click an image to enlarge it in the image viewer. ### Activity Under the description, **Activity** is the PR's conversation: the opening, comments, reviews and inline review threads. It reads newest first by default; the "Newest first" / "Oldest first" toggle at the right of the heading (or the **Toggle PR activity order** action) flips it for every review tab. - Comments, reviews with a body and review threads are cards, with a copy-link button and a ↗ to open the comment on GitHub. The PR author's comments carry an "Author" pill. - A thread card shows its file and line, a three-line slice of the diff and the comments. A resolved thread starts folded to its header; click any thread's header to fold or unfold it. - A comment GitHub hid shows as one dim line naming the reason, with a Show / Hide link. - On a page longer than the pane, a rail of ticks down the left gutter marks the description and every entry. Hover a tick for a card about the entry; click to scroll there. ### Details column The right-hand column lists, top to bottom: **Quick links** (when configured, see [Quick links](#quick-links)), **Merge status**, **Comments**, **Reviews**, **Checks** and **Commits**. Click a caption to fold its section; Commits starts folded. The column is shared by every review tab: - Drag the handle on its left edge to resize it (220 to 480 px, 300 by default); dragging it nearly shut hides it. Double-click the handle to reset it. - Hide or show it with the toolbar's panel button or **Toggle PR details panel**. Reviews shows the review decision, each reviewer's standing review and each pending request ("awaiting"), with a **Request** pill and a ↻ re-request button (see [Request reviewers](#request-reviewers)). Click a check with a web page to open it, or a commit to open it on GitHub. ### Issue and PR references `#123`, `owner/repo#123` and bare PR or issue URLs in the title, the description and comments turn into chips with the state glyph and colour: open green, merged purple, closed red, a draft or an issue closed as not planned grey. A bare `#123` means the PR's own repository. Hover a chip for a card with the title, state, author and an excerpt; click it to open it. `pr.ref_chips` sets the look: | Value | Look | |---|---| | `github` (default) | A reference alone in its paragraph shows its title; one inside a sentence stays compact | | `titled` | Always show titles | | `compact` | Numbers only | The same chips show in a Notes preview. A reference Flow can't resolve stays the text or link it was. ### Selecting text Drag over the page's text to select it and press `⌘C` to copy, as in a text view. A selection across a split diff copies the left and right cells one under the other. ## Changes view The diff, one card per file, with the file tree at the right. - A file card's header shows a language dot, the path (`old → new` for a rename) and `+A −D`. Click it to fold the card. The header of the card you are reading stays pinned at the top while you scroll. - **Unified** shows one column; **Split** shows the old and new sides side by side. - **Wrap** (`pr.diff_wrap`, on by default) wraps long lines inside their cells; off, each cell scrolls sideways while the line numbers stay put. The setting applies to every review tab. - Code is syntax-highlighted in your terminal palette's colours. - Gaps between hunks read "N unmodified lines". A binary file reads "Binary file". - Inline review threads show under the line they are on, in both modes. ### File tree The tree lists the changed files by group, with a filter field at the top (`↩` or `Esc` hands the keyboard back). Click a row to scroll to its file, unfolding it and its group. Drag the tree's left edge to resize it (200 to 560 px, 280 by default); double-click to reset. ### Viewed files Each tree row has a viewed checkbox and each file card a **Mark viewed** / **✓ Viewed** pill. `V` toggles the current file: the selected file, else the file whose header is pinned at the top. A viewed file's name reads dim. If a file's diff changes after you mark it, it reads un-viewed again. Viewed marks are kept on your Mac per PR and are never sent to GitHub. ### Markdown preview A Markdown file (`.md`, `.markdown`, `.mdx`) has a **Preview** pill in its card header. On, the card shows the rendered document instead of the diff: in Split the old and new versions side by side, in Unified one column, with removed blocks on red and added blocks on green. **Toggle Markdown preview** does the same for the selected file. A previewed card takes no inline comments or notes. ### Open in Files Right-click a diff line or a file header and pick **Open in Files**, or press `⌥⌘O` over a line, to open the file in a Files tab on the PR branch's local checkout, at that line. Without a line under the pointer, `⌥⌘O` opens the file at the top of the column. It needs the head branch checked out on your Mac (a PR review session's checkout counts); otherwise it reads "Not checked out locally", and a file the PR deletes reads "Deleted in this PR". ### Personal notes on lines The same right-click menu offers **Add note on line** and **Add note on hunk**. A note is saved to the session's notebook, never posted to GitHub; it hangs under its line as a "Note" card with **Open in Notes**, marked Moved or Outdated when the diff changed. Notes aren't available in a remote session. See [Notes](https://flow.worldbreakstudios.com/docs/features/notes.md). ### Large diffs GitHub won't serve a diff over 300 changed files or 20,000 changed lines. For such a PR the Summary works, and Changes is refused with a dialog offering **Open on GitHub**. ## Diff groups The Changes view sorts files into named, foldable groups. By default: | Group | Holds | Folded | |---|---|---| | Code | Everything no other group takes | no | | Boilerplate | Nothing by pattern; only a decisions model fills it | no | | Tests | Test files by path (test directories, `*_test.go`, `*.spec.ts`, `conftest.py`, snapshots and so on) | yes | A group's header shows its file count, its share of the changed lines and `+A −D`; click it to fold the group. An empty group is hidden, and with only one non-empty group there are no headers at all. A group holding an open comment or a pending draft never starts folded, so unsent work stays visible. ### The Diff groups panel Click the toolbar's **Groups** pill (or run **Toggle PR diff groups panel**) to edit the groups. The panel takes the file tree's place. 1. Under **APPLIES TO**, pick the repository's name (your own override for this repository) or **All repos** (your setting everywhere). 2. Each group is a numbered card in sieve order: the first group whose pattern matches takes the file. Use ↑ ↓ to reorder and × to delete. Each card has a name, a path pattern (with `/i` for case-insensitive), a **Hunks** pattern and a **Description**, and previews what it catches right now. The Code card is always last in the sieve. 3. `+ Add group` adds an empty group; the presets add Docs, Lockfiles, Generated, CI or Boilerplate with ready-made patterns. 4. **Page order** sets the order the groups show on the page, separate from the sieve. Text commits on `↩` or when you leave the field; `Esc` restores it. With no field focused, `Esc` closes the panel. A pattern that doesn't compile is refused. **Reset to defaults** removes the setting at that scope. Saved changes re-sort every open review tab. ### The configuration The panel writes `pr.diff_groups`, a JSON object. Patterns are regular expressions matched against the file's new path only, never its content. For example, to add a Docs group and keep Tests: ```json { "groups": [ { "id": "tests", "collapsed": true }, { "id": "docs", "name": "Docs", "patterns": ["(^|/)docs?/", "\\.(md|mdx|rst)$"], "collapsed": false } ], "rest_name": "Code", "rest_collapsed": false, "display": ["rest", "docs", "tests"] } ``` - `groups` is the sieve, in order. A stored list replaces the built-in one: this example has no Boilerplate group. A group with a built-in id (`tests`, `boilerplate`) takes the built-in's values for any field it leaves out. - `rest` is the id of Code, the group of everything left; `rest_name` names it and `rest_collapsed` folds it. - `display` is the page order; ids it misses are added. - Each group may also carry `hunk_patterns` (by-hunk sorting, below) and `description` (what a decisions model reads). - A malformed group or a pattern that doesn't compile is dropped (it matches nothing) and noted under the cards. `pr.diff_groups` resolves by scope: your override for the repository, then the team's value in the repository's `.flowspace.json` (under its `settings` object), then your User setting. See [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md). ### Sort by hunk Turn on `pr.diff_by_hunk` (Settings › General › Pull requests › "Sort hunks, not whole files, into diff groups") to sort each hunk instead of each file. A group then takes a hunk when its path pattern matches the file, or when its `hunk_patterns` match every telling changed line (the line itself, or the scope it sits in, such as `mod tests {`). The built-in Tests group recognises Rust test modules, `#[test]`, Python `def test_` and `class Test…`, and `describe` / `it` / `test` blocks. A hunk mixing code and tests stays in Code. A file whose hunks land in several groups shows one card per group, each reading `k of n hunks`. ### Sort hunks with a decisions model With the Decisions experiment on, a model can sort every hunk into the groups, including Boilerplate, which no pattern fills. > **Note:** Decisions is an experiment (ALPHA). Turn it on in Settings › Experiments (`features.decisions`). While it is off, the "Sort hunks with the decisions model" row is hidden and nothing is sent anywhere. 1. Turn on Settings › Experiments › Decisions. 2. In Settings › Decisions, pick a provider (TypeSafe, OpenAI, Ollama, LM Studio or a custom URL), its model and key source, and press **Test connection**. 3. Turn on Settings › General › Pull requests › **Sort hunks with the decisions model** (`pr.diff_by_model`). It sorts by hunk whether or not `pr.diff_by_hunk` is on. 4. Optionally describe each group in the Diff groups panel's **Description** field; the model reads the names and descriptions. When a review tab shows a PR, one background job asks the model about every hunk it hasn't answered before. The patterns sort meanwhile, and keep any hunk the model answers with a probability under 0.5, refuses or fails on, and any past 300 calls for one PR. A dim line under the cards says how it stands, such as `Sorting 47 hunks with jev-latest…` or `Sorted by jev-1.14.0 · 47 hunks · 7 by patterns`. Answers are cached on your Mac, so an unchanged hunk is never asked twice. > **Warning:** With a hosted provider (TypeSafe, OpenAI, or a custom URL off your machine), each hunk's path, heading and text, up to 160 lines and about 8,000 characters, is sent to that provider. With Ollama or LM Studio it stays local. To tell Flow when a hunk is in the wrong group, right-click a line in it and open **Hunk group**: pick "✓ Code is right" (the group it is in) or "Should be:" another group. Each pick appends a sample to `~/.flow/hunk_samples/OWNER/REPO.jsonl`. This works with the model off too. ## Comment and review Nothing you write is posted until you press its button; a review's inline comments wait as drafts until you submit the review. ### The comment box Every composer has **Write** and **Preview** tabs and a Markdown toolbar. `⌘↩` runs its main button. A composer holding the keyboard keeps every key except unbound `⌘` chords; `⌘C` copies its own selection. ### Top-level comments The "Add a comment" box sits under the Activity heading (newest first) or at the end of the conversation (oldest first). Its **Comment** button posts a comment on the PR. To attach images, use the box's Image button (several files), drop files on it, or paste an image; pasted images are saved under `~/.flow/attachments/`. GitHub's CLI uploads them when you post: it needs `gh` 2.99 or newer and push access, and takes PNG, JPEG, GIF, WebP, SVG, MP4, MOV and WebM. Images can only go in top-level comments. ### Inline comments and pending reviews 1. On Changes, hover a diff line and click the **+** in its gutter. A comment box opens under the line. 2. To comment on a range, shift-click another line in the same hunk. 3. Choose **Add single comment** to post it now, or **Start a review** to keep it as a pending draft. Further drafts use **Add review comment**. 4. Pending drafts hang under their lines as "Pending" cards with Edit and Delete. They are kept per PR on your Mac, so they survive closing the tab or quitting Flow. 5. Click **Finish review** in the toolbar. In the popover, write an optional summary, choose **Comment**, **Approve** or **Request changes**, and press **Submit with N comments** (or **Submit review** with no drafts), or `⌘↩`. Approve and Request changes are disabled on your own PR. Request changes needs a summary; Comment needs one when no drafts are pending. A review can't be submitted while a pending draft has unsaved edits. ### Replies, resolving and edits - Every thread ends with a "Reply…" box and a **Resolve** / **Unresolve** button (also in the thread's header), shown when GitHub lets you. - Your own comments carry **Edit** and **Delete**. Delete asks first. After a successful write the PR is read again fresh. A failure keeps your text and shows GitHub's message. ## Request reviewers While a PR is open, the **Request** pill beside the Reviews caption (or **Request reviewers…**, unbound) opens the reviewer picker: - A search field, then **Groups** (your configured groups, each with its own Request button), **Starred**, **Top contributors** (the repository's 10 most frequent commit authors on the default branch over the last year, bots and the PR author left out) and, once you type, **Results** from GitHub (users, then teams). - Pick any number of people and teams. Each person shows where they stand on the PR (author, requested, approved, changes requested, commented). A team offers **Team** (request the team) or **Members** (request each member). - **Request N** sends the request. **Save as group…** saves your picks as a group in `~/.flow/flowspace.json`. - `Esc`, or a click elsewhere on the page, closes the picker. The ↻ button on a reviewer's row re-requests their review. On a draft, the state chip's **Mark ready for review (…)** rows offer up to five quick choices, the groups and people you request most in the repository first, and mark the PR ready before requesting them. ### Reviewer groups Define groups in the `reviewers` key of `.flowspace.json` (the repository's, a subdirectory's, your per-repository file or `~/.flow/flowspace.json`): ```json { "reviewers": { "groups": [ { "name": "be reviewers", "members": ["alice", "org/backend", "org/infra/*", "org/web/{random:2}", "org/sre/{robin:1}"], "auto_merge": true } ], "starred": ["alice"], "ignored": ["dependabot", "carol"] } } ``` | Member | Requests | |---|---| | `login` | That user | | `org/team` | The team itself | | `org/team/*` | Each member of the team | | `org/team/{random:N}` | N members at random | | `org/team/{robin:N}` | The N members requested least recently in this repository (never-requested first) | - The PR author, `ignored` logins and duplicates are skipped. A leading `@` is dropped. - `"auto_merge": true` on a group also enables auto-merge on the PR when you request that group; its quick row reads "(NAME · auto-merge)". - Groups from several files combine by name (case-insensitive), the nearest file winning; `starred` and `ignored` are unions. See [.flowspace.json](https://flow.worldbreakstudios.com/docs/configuration/flowspace.md). ## Quick links Quick links put your own links at the top of the details column: dashboards, deploys, tickets. Configure them in the `quick_links` key of `.flowspace.json`: ```json { "quick_links": { "links": [ { "label": "Grafana", "url": "https://grafana.example.com/d/x?var-repo={repo}&var-pr={number}" }, { "label": "Deploy", "url": "https://deploy.example.com/{owner}/{repo}/{branch}", "repos": ["myorg/*"] }, { "label": "Team channel", "url": "https://chat.example.com/channels/{codeowners}" } ], "patterns": [ { "label": "Rollout {1}", "match": "https://rollout\\.example\\.com/(\\w+)/\\S+", "in": ["body", "comments"] }, { "label": "Ticket {1}", "match": "\\b(ABC-\\d+)\\b", "url": "https://jira.example.com/browse/{1}" } ] } } ``` - `links` are fixed links. `patterns` find links in the PR's text: `match` is a regular expression run over the description (`"body"`, the default) and, with `"comments"`, the comments and reviews. Each match is a link, at most 20 per pattern; `url` defaults to the whole match. - `repos` (optional) limits a link or pattern to repositories matching `owner/name` globs, `*` matching anything. - Only `http://` and `https://` links show, and a link whose URL needs a value that is empty is dropped. Duplicates by URL are dropped. - Files combine: links from every file, then patterns. A config change applies on the next refresh. - Flow reads the repository's own files and its CODEOWNERS only when the session's directory is a checkout of the PR's repository; otherwise only `~/.flow/flowspace.json`. | Token | Value | |---|---| | `{host}` | The PR's host | | `{owner}`, `{repo}`, `{slug}` | The owner, the repository name, `owner/name` | | `{number}` | The PR number | | `{branch}`, `{base}` | The head and base branches | | `{author}` | The author's login | | `{sha}` | The head commit | | `{title}` | The PR title | | `{codeowners}` | The CODEOWNERS owners of the changed files, comma-separated | | `{0}`, `{1}`, … | A pattern's whole match and its capture groups | In a URL each value is percent-encoded, except `{slug}`'s slash and a capture that starts the URL. `{codeowners}` reads `.github/CODEOWNERS`, `CODEOWNERS` or `docs/CODEOWNERS`; for each changed file the last matching rule wins. ## PR review sessions A review session is a session group whose primary tab is the PR's review tab, named `#N` and the PR's title, working in a checkout of the PR's branch. Open one: - From the palette: **Open PR as session…** (unbound), then type or paste a PR URL, `owner/repo#N`, `host/owner/repo#N`, `#N` or `N`. A bare number means the current session's repository. - By pasting a PR URL straight into the palette: an "Open owner/repo#N as session" row comes first. - From the Reviews and My PRs pages: **Start review** / **Open PR session**, `↩`, or the @mention callout's buttons. If a session on that PR is already open, the row reads "Resume" and Flow switches to it. A new session opens on the Sessions page (on the Dashboard its card is focused). ### Where the checkout comes from On a background thread, Flow looks through the clones it knows (your open sessions' directories, the repository picker's pins and recents, and `~/src`) and each clone's worktrees, and uses the first that applies: 1. **An existing checkout** of the PR's head branch, yours. It is never removed. 2. **A read-only review worktree** at `CLONE/.worktrees/pr-N`, detached at the PR's head (fetched from `pull/N/head`). Closing the session removes it, unless another session works in it, you changed something in it, or it holds a notebook page; then it is kept and a toast says so. 3. **A new clone** under `pr.clone_dir` (default `~/src`), with the head branch checked out. The clone is yours to keep. A fork's branch gets a review worktree in the new clone instead. Set `pr.clone_dir` to an empty string to never clone; a session with no checkout then reads GitHub only. For example: ```sh flow-cli settings set pr.clone_dir "~/code" ``` Every read names the PR's repository, so a session whose directory is some other checkout still shows the right PR. ### What a review session remembers Viewed files, pending review drafts and the head commit you last saw are kept on your Mac per PR, shared by every review tab on it, and never sent to GitHub. A Dashboard card for the session shows the viewed progress and reads "New commits" once the PR's head moves past the one you saw. ## Settings | Key | Type | Default | Effect | |---|---|---|---| | `git.open_pr_in_review` | boolean | `true` | `⇧⌘G`, the PR pill and a Dashboard card's PR label open a review tab; off, the browser | | `git.pin_pr_review_tab` | boolean | `true` | Review tabs open pinned to the front of their pane | | `pr.diff_wrap` | boolean | `true` | Wrap long diff lines; off, cells scroll sideways | | `pr.ref_chips` | `github`, `titled` or `compact` | `github` | How `#123` references show | | `pr.diff_groups` | JSON object | Code, Boilerplate, Tests | The diff groups; scoped per repository | | `pr.diff_by_hunk` | boolean | `false` | Sort hunks, not whole files, into groups | | `pr.diff_by_model` | boolean | `false` | Sort hunks with the decisions model (shown only with `features.decisions` on) | | `pr.clone_dir` | text | `~/src` | Where a review session clones a repository it can't find; empty turns cloning off | | `features.decisions` | boolean | `false` | The Decisions experiment | The toggles are under Settings › General › Pull requests. Review-tab actions without a default chord (Toggle PR details panel, Toggle PR activity order, Toggle PR diff groups panel, Toggle Markdown preview, Request reviewers…, Open PR as session…) can be bound in Settings › Keyboard; see [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md). ## Limits - Review tabs read github.com and one GitHub Enterprise Cloud tenant (`NAME.ghe.com`); other hosts open in the browser. - Diffs over 300 files or 20,000 lines can't be shown (GitHub's own limit). - Images can only be attached to top-level comments, and need `gh` 2.99 or newer. - There is no whitespace toggle in the diff. - A remote session's PR is read and written from this Mac, with this Mac's GitHub credentials; personal line notes aren't available there. --- # Schedules URL: https://flow.worldbreakstudios.com/docs/features/schedules Run commands or reminders on a cron, decide what happens to runs missed while the Mac slept, read run logs, and keep schedules running while Flow is quit. The Schedules page runs a shell command (or files a reminder) on a cron schedule. A run can open in a new session so you can watch it, or run in the background with its output kept in a log. Each schedule decides what happens to runs that came due while the Mac was asleep or Flow was quit, and which runs wait for your approval first. Schedules can also keep firing while Flow is quit, through a small launchd agent. > **Note:** Schedules is an experiment (BETA). Turn it on in Settings › Experiments (`features.automations`). While it is off the page is hidden and nothing runs, in the app or through the launchd agent (which is uninstalled). Your schedule files, history and Inbox are kept. When you turn it back on, every schedule starts again from that moment, so nothing that came due while it was off fires. ## Open the page - Click **Schedules** in the sidebar's Tools band. Its badge counts the Inbox items waiting for you. - Run **Go to Schedules** from the command palette (`⇧⌘P`). It has no default shortcut; bind one in Settings › Keyboard as `keyboard.go_to_schedules`. - From a terminal: `flow-cli page schedules`. You can also open a part of the page directly: `schedules:inbox`, `schedules:new`, `schedules:ID` (one schedule's inspector), `schedules:log:ID` or `schedules:timeline:7d`. The page lists every schedule with its directory, cron, missed-run rule, next run and last run. You can sort by Name, Directory, Next run or Last run, group rows by directory, and filter by name, command, directory or goal. A row's hover buttons are **View latest log**, **Run now** (or **Stop run** while it runs) and **Pause** (or **Resume**). Click a row to open its inspector, where every field is edited in place and saved to the schedule's file at once. ## Create a schedule 1. Click **New** in the page header. A blank inspector opens. **Runs in** starts as the directory of the active session. 2. Type a **Schedule name**. 3. Under **Command**, type the command. It runs in your login shell with a real TTY, so interactive CLIs such as `claude` work. Leave it blank to make a reminder: each slot then lands in your Inbox instead of running. 4. Set **Runs in** to an absolute path or a `~` path. A value is saved only once it names a directory that exists; until then the hint under it turns orange and says why. **Choose…** opens a folder picker, and the chips offer `~`, `~/src`, `~/Desktop` and directories your other schedules and sessions use. 5. Pick **Output**: **New session** or **Background** (see [Output](#output-new-session-or-background)). 6. Under **Schedule**, click a preset chip or type a cron expression. The field shows it in words (for example "Weekdays at 09:00") and the line below lists the next three runs. 7. Under **If a run is missed**, pick a **Grace** period and a rule (see [Missed runs](#missed-runs)). 8. Under **Needs approval**, choose **Never**, **Recovery runs** or **Every run** (see [Approval and the Inbox](#approval-and-the-inbox)). 9. Leave **Notify me on failure** and **Skip if the previous run is still going** on, or turn them off. 10. Click **Create schedule**. An invalid cron is refused with "Fix the cron expression first". Otherwise a toast confirms it with the next run time. ### Output: new session or background | Output | File value | What a run does | |---|---|---| | New session | `session` | Opens a new session group in the sidebar and types the command into one of its panes, so you can watch it live. The pane's output is copied into the run's log. | | Background | `background` | Runs as a detached process with its own TTY. Its output goes only to the log. | While Output is **New session**, a **Session setup** card offers the same choices as the command palette's New session flow: - **Base** (only for a directory in a git repo): **New worktree** gives each run a fresh worktree under `your-repo/.worktrees`, so runs never collide. **Existing** reuses one of the repo's worktrees for every run. **Repo root** runs in the checkout itself, so uncommitted changes are shared with you. - **Branch** and **From** (New worktree): the branch name template, `sched/{slug}-{date}` by default, and the ref it forks from. A blank From means the repo's default base. - **Cleanup** (New worktree): **Keep**, **On merge** (the default) or **After 7d**. Flow removes a run's worktree only while it is clean, no session has it open and its schedule is not running. The branch is deleted only when it is merged. Deleting a schedule leaves its worktrees where they are. - **Layout**: **Default** (one pane) or a layout profile from the directory's `.flowspace.json`. With a profile of several panes, **Command in** picks the pane that runs the command. - **Label**: the group's name template, `{name} · {time}` by default, with a preview of the next run's name. - **Space**: the sidebar label the group is filed under, or **No label**. - **On start**: **Open quietly** (the default: the group opens in the background, marked unread) or **Bring to front**. Templates fill in `{name}` (the schedule's name), `{slug}` (its slug), `{date}` (the run's local `YYYY-MM-DD`) and `{time}` (for example `Tue 14:35`). ### What every run gets | Variable | Value | |---|---| | `FLOW_SCHEDULE_ID` | The schedule's id (its file name). | | `FLOW_SCHEDULE_NAME` | The schedule's name. | | `FLOW_SCHEDULED_FOR` | The slot this run is for, local `YYYY-MM-DDTHH:MM`. A catch-up or replay run gets the missed slot, not the current time. | | `FLOW_RUN_LOG` | The run's log file. | | `FLOW_SCHEDULE_CWD` | The directory the run starts in (also its working directory). | > **Tip:** Use `$FLOW_SCHEDULED_FOR` instead of `date` in commands that care about the day, so a replayed run does the right day's work. ## Cron syntax A schedule uses a standard five-field cron expression in the Mac's local time: ```text minute hour day-of-month month day-of-week ``` - Each field is a comma-separated list of `*`, `a`, `a-b`, `*/n`, `a/n` or `a-b/n`. - Months and weekdays also take three-letter names in any case (`jan`, `mon`). - Day-of-week runs 0 to 7, where both 0 and 7 are Sunday. - When day-of-month and day-of-week are both restricted (neither starts with `*`), a day matches if either one matches, as in Vixie cron. Otherwise both must match. - A step longer than its field selects only the start value. - On a daylight-saving change, a slot inside the skipped hour does not run, and a slot inside the repeated hour runs once. The editor's preset chips: | Chip | Expression | |---|---| | Every 15 min | `*/15 * * * *` | | Hourly | `0 * * * *` | | Daily | `0 9 * * *` | | Weekdays | `0 9 * * 1-5` | | Weekly | `0 9 * * 1` | A new schedule starts with `0 9 * * 1-5` (weekdays at 09:00). If an expression has no run in the next 40 days, the editor says so. A file with an invalid cron still loads, but the schedule never runs until you fix it. ## Missed runs While Flow is running, it checks your schedules continuously and runs each slot on time. If the checks stop for more than two and a half minutes (the Mac slept, or Flow was quit with no launchd agent), Flow treats the gap as an outage when it is back: 1. If every missed slot is within the schedule's **Grace** period, it runs once, late. 2. Otherwise the **If a run is missed** rule decides what happens to the slots beyond grace. Grace choices are None, 15m, 30m (the default), 1h, 2h and 4h. With None, anything missed goes straight to the rule. | Rule | File value | What happens | |---|---|---| | Skip | `skip` | Wait for the next scheduled run. A slot still within grace runs late. | | Run once | `once` (default) | One catch-up run, however many were missed. Best for idempotent jobs. | | Replay each | `replay` | Run the command once per missed slot, oldest first, each with its own `$FLOW_SCHEDULED_FOR`. **At most** caps it at the newest 5, 24 (the default) or All. | | Recovery command | `recover` | Run a different command with the outage's details, for example an agent that decides what to do. | | Ask me | `ask` | Hold it in your Inbox until you run or skip it. | A paused schedule's slots are never "missed": resuming starts it again from that moment. A schedule you have just created never inherits earlier slots. ### Recovery command With **Recovery command**, a wake after missed slots runs the recovery command instead of the normal one. The default is `claude -p "$FLOW_RECOVERY_BRIEF" --permission-mode plan`. Use **Goal** to describe what a good recovery looks like; it goes into the brief. | Variable | Value | |---|---| | `FLOW_RECOVERY_BRIEF` | A plain-language summary: what was missed and when, how long Flow was offline, the last success, the normal command and the goal. | | `FLOW_MISSED_COUNT` | Number of missed runs. | | `FLOW_MISSED_TIMES` | The missed slots, local ISO times, comma-separated. | | `FLOW_OFFLINE_SECONDS` | How long Flow was down. | | `FLOW_LAST_EXIT` | Exit status of the last real run (empty when there is none). | | `FLOW_GOAL` | The goal text. | | `FLOW_PLAN_FILE` | Write a short plan here. | | `FLOW_COMMAND_FILE` | Write the exact command to run here, or leave it empty to skip. | When the recovery command exits 0, Flow follows its answer. With approval set to **Recovery runs**, the plan and the proposed command wait in your Inbox as a recovery plan, and you can edit the command before approving. Otherwise a non-empty command file runs at once ("ran per recovery plan") and an empty one is recorded as "recovery agent chose to skip". A recovery agent should only write the two files, never do the work itself. ## Approval and the Inbox | Needs approval | File value | Behavior | |---|---|---| | Never | `never` (default) | Runs start on their own. Missed runs follow the rule above. | | Recovery runs | `recovery` | Normal runs start on their own. Catch-ups (Run once, Replay each) and a recovery agent's plan wait in the Inbox. | | Every run | `every` | Every slot lands in the Inbox first. A schedule with no command always works this way, as a reminder. | When anything can wait in the Inbox, **If unanswered by** sets when an item expires: **1 hour** or **4 hours** after it arrived, **End of day** (23:59) or **Next run** (the default; the next slot takes its place). Then **Skip** (the default) drops it, or **Run anyway** runs it if it has a command. Click **Inbox** in the page header to see the items. Each schedule has at most one item; newer slots merge into it. - **Waiting for you**: each card's main button is **Approve & run** (a recovery plan), **Run now** (missed runs, or a reminder with a command) or **Mark done** (a reminder without one). A card can also show **Agent log** or **Last run log**, **Skip** (**Skip today** for a reminder), **Snooze 1h** and **Edit rules** (opens the schedule's inspector). - **Snoozed**: items you snoozed, each with **Bring back**. - **Handled today**: what was resolved today. When an outage left missed runs, a banner above the list sums up what happened and links to the Inbox. ## Run history The inspector's **History** section lists the schedule's recent decisions. Click a run to open its log; click a held entry to open the Inbox. Each entry has a type: | Type | Meaning | |---|---| | `ok` | Ran on time (or by Run now) and exited 0. | | `fail` | Exited non-zero, or was lost. | | `late` | A missed slot within grace, run late. | | `caught` | A catch-up run (Run once). | | `replay` | A replay run (Replay each). | | `recovery` | A recovery command run. | | `approved` | An Inbox item you approved, or one run on expiry. | | `done` | A reminder you marked done. | | `held` | Waiting in the Inbox. | | `skipped` | Skipped by rule, by you, on expiry, or because the previous run was still going. | | `stopped` | You stopped it. | | `running` | Running now. | The **Timeline** under the list shows each schedule's runs from 12 hours ago to 24 hours ahead, with missed, held and recovery slots marked and sleep periods shaded. Click its expand button for a bigger view over 24h, 3 days or 7 days; there, click a run's tick to open its log. Flow keeps the newest 50 history entries and the newest 50 log files per schedule. A run that is still going is never pruned. ## Run logs Click **View latest log** on a row, a run in History, or a log button on an Inbox card. The log opens in a pane at the right of the page; drag the gap to resize it. Up to five logs open as tabs (a sixth closes the oldest), and **Close log pane** closes them all. The pane's header shows the run's status, name, start time and duration, and the `directory $ command` it ran. Its toolbar has: - **Search log**: a literal, case-insensitive search with a match count. **Only matches** hides the other lines. - The level control: **All**, **Errors**, **Warn**, **Info** and **Debug**, each with its line count. - **Wrap**: wrap long lines instead of scrolling sideways. - **Follow** (live runs only): stay at the bottom as output arrives. Scrolling up turns it off. - **Highlights**: opens the highlight rules editor. The number is how many rules are on. The footer shows the line, error and warning counts and the log file's path. A very large log opens at its last 8 MiB, and a line longer than 8 KB is cut with "… N more bytes". ### Log levels A line's level is the first of these words it contains, matched case-sensitively anywhere in the line: `ERROR`, then `WARN`, then `INFO`, then `DEBUG` or `TRACE` (both count as Debug). Lines without one show only under **All**. Flow writes its own lines into every log as `HH:MM:SS.mmm LEVEL message`: the reason for the run (wake, missed and policy lines), then `flow: run "NAME" · scheduled_for=…` and `DEBUG $ COMMAND`, and at the end `flow: exit STATUS · DURATION`, logged as ERROR when the status is non-zero. A replay adds `scheduler: replay i/n` lines. ### Highlight rules The rules editor lists the rules from top to bottom. Each has an on/off toggle, a colour swatch, a name, a regular expression (shown red while it is invalid), its hit count in this log, a scope and a delete button. **+ Add rule** appends a new one; **Reset** restores the built-in set. Rules match case-insensitively and run in order; an earlier rule wins where two overlap. | Scope | Effect | |---|---| | Match | Colours the matched text. | | Tint | Colours the matched text in bold, and the first matching Tint rule tints the line's background with a coloured left marker. | | Line | The first matching Line rule sets the colour of the whole line. | The built-in rules: | Rule | Pattern | Scope | On | |---|---|---|---| | Errors | `\b(ERROR\|FATAL\|PANIC)\b` | Tint | yes | | Warnings | `\bWARN(ING)?\b` | Tint | yes | | Info | `\bINFO\b` | Match | yes | | Debug | `\bDEBUG\b` | Line | yes | | Trace | `\bTRACE\b` | Line | yes | | Timestamps | `^\d{2}:\d{2}:\d{2}\.\d{3}` | Match | yes | | flow | `\b(scheduler\|flow):` | Match | yes | | Retries | `rate.?limit\w*\|retry\w*\|SIGTERM` | Match | yes | | PR refs | `#\d+` | Match | yes | | Quoted | `"[^"]*"` | Match | yes | | Durations | `\b\d+(\.\d+)?\s?(ms\|s\|m\|h)\b` | Match | no | The rules are shared by every run log and by the Shells tab's output, and are saved in the `schedules.highlight_rules` setting as a JSON array. Each rule looks like this (`scope` is `match`, `line` or `tint`; `color` is `#rrggbb`): ```json { "name": "Errors", "pattern": "\\b(ERROR|FATAL|PANIC)\\b", "color": "#ff6961", "scope": "tint", "enabled": true } ``` An empty array means no rules; a value that does not parse brings back the built-in set. ## Run schedules while Flow is quit While Flow is open, the app runs your schedules. To keep them firing while it is quit, Flow installs a launchd agent. The switch is in Settings › Advanced › Schedules, **Run schedules while flow is quit** (`schedules.launchd`, on by default). The agent is installed only when all of these are true: - Flow.app runs from `/Applications` or `~/Applications` (not from a build folder, a mounted volume or a translocated copy). - The setting is on and the Schedules experiment is on. - You have at least one schedule. The agent is `~/Library/LaunchAgents/com.worldbreakstudios.flow.scheduler.plist`. Every 60 seconds (and when it loads) it runs the `flow-scheduler` binary inside Flow.app, which takes one scheduler step and exits. While Flow is open the app holds the scheduler lock and the agent exits at once, so it is idle. Its own output goes to `.scheduler.log` in the schedules directory. The line under the switch shows the agent's state: | Status | Meaning | |---|---| | launchd agent installed | The agent is installed and loaded. | | Not installed — needs Flow.app in /Applications | Flow is not running from an Applications folder. | | Off | The setting is off. | | Blocked in System Settings → General → Login Items | macOS refused the agent. Switch Flow back on there. | | Unavailable — … | Something else failed; the reason follows. | The page's status bar says **Scheduler · launchd · runs while flow is quit** when the agent is installed, **Scheduler · in-app · catches up on wake** when it is not, and **Scheduler · another flow process holds the lock** when another copy of Flow is running your schedules. `flow-cli state` reports the agent as `scheduler.launchd`: `installed`, `not_installed`, `off`, `blocked` or `unavailable`. Runs made while Flow is quit are headless. A **New session** schedule runs in the background instead, with only its log and a "ran headless — flow was quit" note in its history. The exception is a schedule whose session setup makes a **New worktree** in a git repo: only the app can make worktrees, so it waits, and when Flow opens its missed slots go through grace and the missed-run rule like any outage. To check the scheduler from a terminal: ```sh /Applications/Flow.app/Contents/MacOS/flow-scheduler status --dir ~/.flow/schedules ``` It prints one JSON line with the last tick (unix seconds, or null), whether the lock is held, the schedule count and how many schedule files failed to parse. ## Pause, stop and delete - **Pause** a schedule with its row's Pause button, the **Enabled** switch in its inspector, or `flow-cli schedule-enable ID off`. A paused schedule never runs and shows "Paused — no upcoming runs". **Resume** starts it again from now; the slots it skipped while paused are not treated as missed. - **Run now** starts a run for the current minute. It is refused for a reminder ("Add a command first — this one is a reminder") and while the schedule is already running. - **Stop run** stops a running run, which is then recorded as `stopped`. - **Delete**, at the bottom of the inspector, asks "Delete “NAME”?" first. It stops a running run, then removes the schedule's file, its logs and its history. Worktrees its runs made stay. To pause every schedule at once, turn off the Schedules experiment. On this page, `Esc` closes the innermost open thing: the colour picker, the rules editor, the expanded timeline, the delete confirmation, then the inspector. `⌘` shortcuts keep their usual meaning. ## Where schedules live Schedules live in `~/.flow/schedules/`, beside Flow's settings file. `flow-cli read schedules` prints the directory as `dir`. | Path | What it is | |---|---| | `ID.json` | One file per schedule. The id is a slug of the name when it was created (`Customer DB backup` becomes `customer-db-backup`, with `-2`, `-3` when taken). Renaming a schedule never renames its file. | | `ID/YYYY-MM-DDTHHMM.log` | One log per run, named by its start minute. | | `.state.json` | The scheduler's own state: history, Inbox and outages. Don't edit it. | | `.engine.lock` | The scheduler lock. Only the process holding it runs schedules. | | `.scheduler.log` | The launchd agent's output. | You can write a schedule file by hand. Every field is optional and takes its default when left out, and unknown keys are ignored. A file that is not valid JSON, or has a wrong type or an unknown value, is skipped and listed under `errors` in `flow-cli read schedules`. Edits made on the page rewrite only the keys they change, so the rest of a hand-written file stays as you wrote it. ```json { "name": "Customer DB backup", "command": "pg_dump -Fd -j 4 \"$PROD_URL\" -f ~/backups/${FLOW_SCHEDULED_FOR%%T*}", "cwd": "~/src/ops", "cron": "0 3 * * *", "output": "background", "enabled": true, "grace_minutes": 30, "missed": "recover", "replay_max": 24, "recovery_command": "claude -p \"$FLOW_RECOVERY_BRIEF\" --permission-mode plan", "goal": "Keep a backup less than 24h old without loading prod during business hours.", "approval": "recovery", "expiry": "eod", "on_expiry": "skip", "notify_on_failure": true, "skip_if_running": true } ``` | Key | Type | Default | Effect | |---|---|---|---| | `name` | string | `Untitled schedule` when blank | Shown everywhere; becomes the id at creation. | | `command` | string | blank | The command to run. Blank makes a reminder. | | `cwd` | string | `~` | The directory a run starts in. A `~` path is kept and expanded at run time. A hand-written path is not checked; runs fail and say why if it is missing. | | `cron` | string | `0 9 * * 1-5` | When it runs. | | `output` | string | `session` | `session` or `background`. | | `enabled` | bool | `true` | `false` pauses it. | | `grace_minutes` | number | `30` | The grace period. | | `missed` | string | `once` | `skip`, `once`, `replay`, `recover` or `ask`. | | `replay_max` | number | `24` | The most slots a replay runs (the newest); `0` replays all. | | `recovery_command` | string | `claude -p "$FLOW_RECOVERY_BRIEF" --permission-mode plan` | What `recover` runs. | | `goal` | string | blank | What a good recovery looks like; for a reminder, its text. | | `approval` | string | `never` | `never`, `recovery` or `every`. | | `expiry` | string | `next` | `1h`, `4h`, `eod` or `next`. | | `on_expiry` | string | `skip` | `skip` or `run`. | | `notify_on_failure` | bool | `true` | Toast when a run exits non-zero or is lost. | | `skip_if_running` | bool | `true` | Skip a slot that comes while the previous run is still going. | | `session` | object | none | The session setup for `output: session`: `base` (`new`, `existing` or `root`), `branch`, `from`, `cleanup` (`keep`, `merged` or `7d`), `worktree`, `layout`, `pane`, `name`, `label` and `focus` (`quiet` or `front`). A file without it runs in its `cwd` in one pane, named after the schedule. | ## Manage schedules from the command line `flow-cli` covers what the page does, which makes schedules easy to set up from a coding agent: ```sh flow-cli schedule-add --name "Morning PR triage" --cwd '~/src/flow' --cron '30 8 * * 1-5' \ --command 'claude -p "Review the open PRs on this repo." --permission-mode plan' \ --output session --grace 2h --missed skip # prints the new id flow-cli schedule-update ID --cron '0 9 * * 1-5' # only the flags given change flow-cli schedule-enable ID off # pause; "on" resumes flow-cli schedule-run ID # run now flow-cli schedule-stop ID flow-cli schedule-remove ID flow-cli read schedules # every schedule, its next run and any file errors flow-cli read schedule-runs ID --limit 5 # history, newest first, with each run's log path flow-cli read schedule-inbox flow-cli schedule-approve ITEM # also schedule-skip ITEM, schedule-snooze ITEM --minutes 60 ``` `schedule-add` and `schedule-update` take a flag per field (`--command`, `--cwd`, `--cron`, `--output`, `--grace`, `--missed`, `--replay-max`, `--recovery-command`, `--goal`, `--approval`, `--expiry`, `--on-expiry`, `--notify-on-failure on|off`, `--skip-if-running on|off`, `--disabled`) and for the session setup (`--base`, `--branch`, `--from`, `--cleanup`, `--worktree`, `--layout`, `--pane`, `--session-name`, `--label`, `--focus`). Quote a `~` path in `--cwd` so the schedule keeps it short; `--cwd` must name an existing directory. See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md) for the rest of the CLI and [Agent skills](https://flow.worldbreakstudios.com/docs/cli/agent-skills.md) for the schedules skill an agent can follow. ## Settings | Key | Type | Default | Effect | |---|---|---|---| | `features.automations` | bool | `false` | Turns Schedules on (Settings › Experiments). | | `schedules.launchd` | bool | `true` | Install the launchd agent that runs schedules while Flow is quit (Settings › Advanced). | | `schedules.highlight_rules` | JSON array | the built-in rules | The run logs' highlight rules. | | `schedules.inspector_w` | number | `360` | The inspector's width, 300 to 900. Set it by dragging the inspector's left edge; double-click the edge to reset. | | `schedules.log_width` | number | `540` | The run-log pane's width, set by dragging. | | `schedules.devices` | string | `all` | With Puddles, which devices' schedules the list shows: `local`, `all` or a device id. | ## Other devices With [Puddles](https://flow.worldbreakstudios.com/docs/features/puddle.md) on and another device connected, the list also shows that device's schedules, each with its device badge (greyed "as of" while the device is offline). You can run, stop, pause and resume them, and approve, skip or snooze a waiting item; the action runs on that device. Creating, editing and deleting a schedule happen only on its own device, and its logs stay there. ## Limits - Times are the Mac's local time. - A New session run's log has only what the pane printed while Flow was open. If a persistent pane reattaches while the run is going, the replayed output appears in the log a second time. - Runs made while Flow is quit never open a session, and a New worktree session waits for the app. - The launchd agent is installed only for Flow.app in an Applications folder. --- # Trash URL: https://flow.worldbreakstudios.com/docs/features/trash Find the git worktrees that are safe to delete, see what each one would lose, and delete them in bulk with safety checks. The Trash page lists every git worktree that Flow's `drop` tool manages, judges how safe each one is to delete, and deletes the ones you pick. It is the in-app version of `drop -dc`, for anyone whose agents leave a trail of worktrees behind. It never deletes work you haven't seen: unsaved changes, unpushed commits and worktrees still in use are flagged and need a confirmation. ## Open the Trash - Press `⌃⌥⌘3`, or run **Go to Trash** from the command palette (`⇧⌘P`). Rebind it in Settings › Keyboard as `keyboard.go_to_trash`. - Click **Trash** in the sidebar's Tools band (its first row by default). After the first scan its badge shows how many worktrees there are. - From a terminal: `flow-cli page trash`. ## What it scans The Trash looks at the repos `drop` knows: the favorite and recent repos in drop's global config (`~/.config/drop/config.json`) and every git repo one level under its `reposDir` (`~/src` by default). In each repo it lists only the worktrees drop manages, the ones under the repo's `worktreeDir` (`.worktrees` by default, so `your-repo/.worktrees/...`). The repo's main checkout is never listed. See [drop](https://flow.worldbreakstudios.com/docs/cli/drop.md) for how these are configured. For each worktree it collects: - uncommitted files; - commits ahead of and behind the repo's base branch (its default remote branch, such as `origin/main`); - how many commits are on neither the base nor any remote-tracking branch; - the pull request for its branch, read through Flow's GitHub read CLI (`ghx` by default; see [ghx and gitx](https://flow.worldbreakstudios.com/docs/cli/ghx-and-gitx.md)); - its size on disk; - its last activity: the newest of its last commit and any uncommitted file's modification time; - Flow notes files under its `.flow/notes/` folder; - whether an open Flow session has its directory inside the worktree. A scan runs 30 seconds after launch (for the badge), when you open the page and the last scan is over a minute old, when you press `r` or the refresh button, every 10 minutes while the page is showing, and after every deletion. Sizes, pull requests and push state fill in after the rows appear. ## Verdicts Every worktree gets one verdict. The first rule that matches wins: | Order | Condition | Verdict | |---|---|---| | 1 | Open in a Flow session, or active within the in-use window (10 minutes by default) | In use | | 2 | Has uncommitted files | Loses work | | 3 | Has Flow notes files (they are git-ignored, so the worktree looks clean, but deleting it deletes them) | Loses work | | 4 | A merged pull request covers it: the PR's head is its current commit, or every commit is pushed | Safe | | 4 | A merged pull request that doesn't cover it, with commits beyond the base | Loses work | | 5 | No base branch to compare against | Loses work | | 6 | Nothing beyond the base, and git confirms it is merged into the base | Safe | | 6 | Nothing beyond the base, but git could not confirm it | Loses work | | 7 | Commits beyond the base, all of them on a remote | Pushed | | 8 | Anything else (commits that exist nowhere else) | Loses work | The list's sections use these titles: | Section | Meaning | |---|---| | Safe to delete | Clean, and merged or nothing beyond the base. | | Pushed | Clean; every commit is on the remote. | | Would lose work | Uncommitted changes, or commits nowhere else. | | In use | A Flow session is open in it, or it was touched within the in-use window. | Anything Flow cannot prove is never called safe: a push state or pull request still loading, a missing base branch and a failed comparison all count as Loses work. A pull request alone proves nothing; a merged one covers a worktree only while the worktree is still at the commit it merged. Verdicts are recomputed all the time, so a worktree moves out of In use by itself once it goes quiet. ## What the page shows - **The headline**: how much is safe to delete (for example "8.9 GB is safe to delete"), a line counting the worktrees that are safe, would lose work, or are in use, the key legend, and when the list was last updated. - **The toolbar**: four selection presets, the filter, **Group**, **Sort** and the refresh button. - **Sections**: each with its title, description, count, total size and a **Select all** / **Deselect** button. - **Rows**: a checkbox; the worktree's name over its repo, branch and `↓behind ↑ahead` counts; the verdict over its reason (for example "Merged in #333" or "3 uncommitted files"); the size over a bar; the age; and the pull request chip over its title. Click the chip to open the pull request. - **The inspector** for the focused row: the repo and the base it is compared with, the worktree's path, its verdict with an explanation, its facts (Branch, Commits, Changes, Notes when it has some, Disk, Last touched, Pull request), up to five of its uncommitted files and up to four of its commits beyond the base. Its buttons are **Open terminal** (a new session in the worktree), **Reveal in Finder**, select, and **Delete worktree**. - **The dock**, while anything is selected: "N selected", their total size, how many would lose work, the **Delete branches too** switch, **Clear** and **Delete N**. After a deletion it shows what was deleted. **Group** switches between sections by verdict and one section per repo. **Sort** switches between largest first and oldest activity first. The filter (**Filter worktrees**) matches the worktree's name, branch, repo, pull request title and `#number`. ## Delete worktrees 1. Select worktrees with their checkboxes, `space`, a section's **Select all**, or a preset. 2. Turn on **Delete branches too** in the dock if you also want each worktree's local branch deleted. It starts off every time Flow launches. 3. Press `⌫` or click **Delete N** in the dock. For a single worktree, you can use **Delete worktree** in the inspector instead. 4. If the selection needs a confirmation, a dialog opens. Otherwise the worktrees are deleted at once. The presets select from all worktrees, not only those the filter shows: | Preset | Selects | |---|---| | Safe | Every worktree whose verdict is Safe. | | Merged | Worktrees whose current commit is in a merged pull request, and not in use. | | Even with main | Clean worktrees with no commits beyond the base, and not in use (`m`). | | Stale > 5d | Clean worktrees untouched for more than 5 days, and not in use (`s`). | A worktree with Flow notes belongs to no preset. `a` selects every worktree the filter shows. ### The confirmation By default the dialog opens only when a selected worktree would lose work or is in use. Set **Confirm deletes** to **Always** to be asked every time. The dialog's title names what you are deleting ("Delete 6 worktrees?"), its text says how much it frees and whether anything is lost, it lists up to eight worktrees that hold work ("and N more" past that), and it says whether local branches go too. Its buttons: - **Cancel**. - **Delete the N safe**, when the selection mixes safe and risky worktrees. It deletes only the safe ones. - **Delete anyway** (one worktree), **Delete all N** (several with risk), or **Delete N** (no risk). `↩` runs the default button: the safe ones alone when that button is offered, otherwise everything. `Esc` cancels, and so do clicking back into the main window, leaving the page and the app locking. The dialog is frozen when it opens, so a click deletes exactly what it lists. If a rescan under it drops a listed worktree or changes its verdict, uncommitted state or commit, the dialog closes with "Worktrees changed — review and try again" and nothing is deleted. ## Safety checks - Just before deleting, Flow checks each worktree's commit and branch again. One that moved since the scan is refused with "Changed since the scan — refresh and try again". - Flow forces the removal only for a worktree that the scan showed with uncommitted files. If a worktree that looked clean has gained changes since, git refuses and the toast shows git's reason; the work stays. - Only local branches are ever deleted, and only when **Delete branches too** is on: never the base branch or the main checkout's branch. No remote is touched. - The groups' current directories are checked again when you ask to delete, so a session you just opened counts as In use. - One deletion runs at a time, and a rescan follows it. ## Keyboard These keys work while the page is showing and the filter is not focused: | Key | Action | |---|---| | `j` / `↓`, `k` / `↑` | Move the focus down or up. | | `space` | Select or deselect the focused worktree. | | `a` | Select every worktree the filter shows. | | `m` | Toggle the Even with main preset. | | `s` | Toggle the Stale preset. | | `r` | Rescan. | | `⌫` / `delete` | Delete the selection. | | `Esc` | Clear the selection. | | `/` | Focus the filter. | In the filter, `↑` and `↓` still move the focus, and `↩` or `Esc` hands the keyboard back. `⌘` shortcuts keep their usual meaning. ## Settings The first two are in Settings › Tools › Trash. | Key | Type | Default | Effect | |---|---|---|---| | `trash.confirm` | string | `risky` | **Confirm deletes**: `risky` asks only when work would be lost or a worktree is in use; `always` asks every time. | | `trash.live_minutes` | number | `10` | **In-use window**, 1 to 120 minutes: a worktree touched this recently counts as In use and is never offered as safe. | | `trash.group` | string | `verdict` | `verdict` or `repo`; written when you click **Group**. | | `trash.sort` | string | `largest` | `largest` or `oldest`; written when you click **Sort**. | | `trash.devices` | string | `all` | With Puddles, which devices' worktrees show: `local`, `all` or a device id. | ## From the command line `flow-cli` can read the last scan and delete worktrees without the dialog, which lets a coding agent clean up with you: ```sh flow-cli read trash # this Mac's worktrees from the last scan flow-cli read trash --all # plus every paired device's flow-cli trash-delete ID --head HEAD --branch BRANCH # repeat per worktree; add --dirty if it had changes ``` Each row of `read trash` has an `id`, `path`, `repo`, `branch`, `head`, `dirty_count`, `ahead`, `unpushed`, `pr`, `size_text`, `verdict` (`safe`, `pushed`, `loses_work` or `in_use`) and `reason`. Pass back what you read: a worktree that changed since is refused as a conflict. This route deletes only Safe or Pushed worktrees, always keeps branches, and is refused on a Mac whose **Confirm deletes** is **Always**. Anything that would lose work has to be deleted on the page. See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md) for the rest of the CLI. ## Other devices With [Puddles](https://flow.worldbreakstudios.com/docs/features/puddle.md) on, a chip row under the headline (**This Mac**, **All devices**, and one chip per connected device) adds other Macs' worktrees to the list, each with its device badge, greyed "as of" while that device is offline. You can delete another device's worktree only while that device is connected and only when it is Safe or Pushed; the deletion runs on that Mac. Its rows have no detail, **Open terminal** or Finder button. ## Limits - Only worktrees under a known repo's `worktreeDir` appear. Worktrees made elsewhere, and repos drop does not know, are not scanned. - Without pull request data (the GitHub read CLI failing for a repo), a worktree with commits beyond its base is at best Pushed, never Safe. - The Stale preset's threshold is fixed at 5 days. --- # Puddle URL: https://flow.worldbreakstudios.com/docs/features/puddle Pair your other devices with this Mac by QR code or link, choose what each may do, and open their sessions and files from here. Your **puddle** is this Mac plus the devices you have paired with it: your other Macs running Flow, and Flow on your iPhone. The Puddle page is where you pair a device (by QR code or link), decide what each paired device may do here, and see who is watching your sessions right now. Once devices are paired, their sessions show up in your sidebar and you can open them in local panes, browse their files, or mount a folder of theirs in Finder. > **Note:** Puddles is an experiment (BETA). Turn it on in Settings › Experiments (`features.remote`). While it is off, the Puddle page, its Tools row and its actions are hidden, nothing listens for other devices, and the `puddle.*` settings are left out of Settings. This page covers the Puddle page and what you do with paired devices in the app. For how devices connect, the `flow-remote` command line, what syncs and the security model, see [Sync and devices overview](https://flow.worldbreakstudios.com/docs/sync/overview.md), [Pair devices with flow-remote](https://flow.worldbreakstudios.com/docs/sync/flow-remote.md), [Security and trust](https://flow.worldbreakstudios.com/docs/sync/security.md) and [Flow for iPhone](https://flow.worldbreakstudios.com/docs/sync/mobile.md). ## Open the Puddle page 1. Open Settings (`⌘,`), go to **Experiments** and switch on **Puddles**. 2. Open the page in any of these ways: - press `⌃⌥⌘2` (**Go to Puddle**, rebindable as `keyboard.go_to_puddle`); - click **Puddle** in the sidebar's Tools band; - run **Invite a device to your puddle…** from the command palette (`⇧⌘P`; it has no default shortcut, bind one as `keyboard.puddle_invite`), which opens the page and starts an invite; - run `flow-cli page puddle`. While Puddles is on, Flow runs the Puddle service (the `flow-remote` daemon) in the background. It adopts a service that is already running, restarts it when you change the network or port, and stops it when you turn Puddles off, if Flow started it. The service keeps running after you quit Flow, so your other devices can still reach this Mac. ## What the page shows The page is one column of four cards: | Card | What it holds | |---|---| | **This device** | This Mac's device name and short id, a status pill, the **Network** select, **Copy address**, **Pane size**, and **Viewing now** (which paired device is watching which of your sessions). While the service is not running it shows **Start** | | **Invite a device** | **Show invite**: a QR code and a link for your other device, then the joining device's name, id and code with **Approve** and **Deny** | | **Join a puddle** | A field for the link or pairing token another device shows, and **Join** | | **Members** | One row per paired device: its name, short id, when it was last seen and when it was paired, **Remove**, its two permission switches and its spaces-bar chip | ## Pair a device Pairing connects two devices directly. You start an invite on one, join from the other, and approve once both screens show the same code. ### Invite from this Mac 1. On the Puddle page, under **Invite a device**, click **Show invite**. (The Puddle service must be running; if This device shows **Start**, click it first.) 2. Flow shows a QR code, the invite link with **Copy link**, and an **Expires in** countdown. An invite is good for one use and expires after 5 minutes; **Cancel** ends it early. 3. On the other device, scan the QR code or open the link (see the next section). 4. When that device connects, the card shows the name it gave, its id and a six-digit code. Check that your other device shows the **same code**, then click **Approve**. If the codes differ, click **Deny**. You have 60 seconds to answer; no answer is a refusal. > **Warning:** The name on the request is chosen by the joining device, so anyone can call themselves "My iPhone". The code is the only proof it is your device. Approve only when both screens show the same six digits. The link and its QR code are a secret for as long as the invite lasts. **Copy link** puts it on the clipboard marked as transient, so clipboard history never records it, and Flow takes it back off the clipboard when the invite ends if nothing else has been copied since. ### Join from the other device 1. On the device that is joining, open the Puddle page. 2. Under **Join a puddle**, paste the link or the bare pairing token (it starts with `fr1.`), then click **Join** or press `↩` in the field. 3. The card shows **Connecting…**, then a code. Check it against the code on the inviting device, where the person there approves. 4. When the pairing is approved the card says **Joined** with the other device's name. Opening a `flow://puddle/join` link on a Mac opens the Puddle page with the Join field **filled in**. Flow never joins on its own: you still click **Join**. If Puddles is off, Flow says so and asks you to turn it on and open the link again. ### Pairing is for people only Approve, Deny and Join run only from a click on the page or `↩` in its own field. None of them is a palette action or a `flow-cli` command, so no agent or script can pair this Mac. `flow-cli` also refuses to start an invite, because the QR code on screen is the secret; only you start one, from the palette or the page. ## Choose what each device may do Pairing alone lets a device **list** your terminal sessions and nothing more. Each **Members** row has two switches, both off for a new pairing: | Switch | Lets that device | Notes | |---|---|---| | **Can open my sessions** | Watch and type into any of your terminal sessions here | Full shell access. There is no watch-only mode: a device that can watch can type | | **Can create sessions** | Ask this Mac to start new sessions, in a folder it names or in a new worktree of a repo here | Needs **Persist sessions** (Settings › General) on this Mac | Only terminal tabs running as [persistent sessions](https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions.md) are shared; mirror groups, remote-host groups, web tabs and other tab kinds never are. Only a click on a switch changes it. Pairing the same device again keeps the switches as they were. Browsing your files, mounting your folders in Finder, and running palette actions or pull request operations from that device all need **both** switches on. **Viewing now** on the This device card lists who is watching which session. A new viewer also raises a `puddle.viewing` notification ("DEVICE is viewing GROUP · TAB"); see [Notifications](#notifications). ## Network and port The **Network** select on the This device card sets where the Puddle service listens (`puddle.bind`): | Choice | Value | Meaning | |---|---|---| | Automatic | `auto` | Your tailnet when Tailscale is up, otherwise this Mac only. The default | | Tailscale | `tailscale` | Your Tailscale network | | Local network | `lan` | Every network interface of this Mac | | Tailcat | `tailcat` | Across networks through tailcat relays, direct when it can. Never picked by Automatic | While the service can only be reached from this Mac, the card says so: start Tailscale, or pick Local network or Tailcat, before you invite another device. **Copy address** copies the address other devices dial; under Tailcat there is nothing to copy, because that address is a secret. Changing the network or the port restarts the service. ## Use a paired device's sessions Once a paired device has turned on **Can open my sessions** for this Mac, its sessions appear here as if they were local. ### Device spaces After your own label chips, the main window's spaces bar shows one chip per paired device ("All DEVICE", with a green dot while it is online and sharing) and one chip per label of that device that has a group on show ("LABEL · DEVICE"). Click a chip, or step to it with **Previous label** `⇧⌘←` and **Next label** `⇧⌘→`, and the sidebar (and the Dashboard) lists that device's sessions in its own order. While the device is offline, or has not shared its sessions with this Mac, the list says so in one muted line. A device chip's right-click menu offers **Hide**, **Change icon…**, **Open in New Window** (the device's sessions in a window of their own) and **Open Puddle page**. To bring a hidden chip back, use the device's **Members** row: **Show in spaces bar**, and **Show labels** for hidden label chips. ### Mirror groups Clicking one of the device's sessions opens a **mirror group** named "DEVICE · GROUP": one local pane per remote tab, each attached live to the session on the other device. You see and type into the same terminal the device shows. Closing a mirror pane only detaches from the session; it keeps running there. - A mirror group's header shows the device's branch, diff counts and folder. The pull request pill is read from GitHub by this Mac; until that read lands, the pill only displays what the device reported. - You can give a mirror group your own labels and add it to session groups, like any group. A mirror pane can also be dropped into a local group, but a local shell can never go into a mirror group. - A remote tab that a pane here already shows gets no second pane. If every tab of that group is already shown somewhere, the group showing them comes forward instead. - If the device drops off, a running pane reconnects by itself. Panes that cannot run (Puddles off, the device not answering yet, the device unpaired) show one line saying why, and start again in place when the cause clears, without creating a second session. - `⇧⌘T` reopens a closed mirror group. If the device closed the session meanwhile, the pane says so; where the device allows creating sessions, Flow starts a new one there in the same folder instead. **Shared pane size** sets how a session shown on two devices is sized: to the screen of the device you typed in last ("Device used last", the default), or to fit the smallest screen. It is set on the Mac that owns the session (**Pane size** on its This device card) and applies to sessions started after the change. ### Start a session on another device With **Can create sessions** granted on the other device: - The device space's **New session on DEVICE** row opens a new mirror group whose session runs there. - The new-tab button and splits inside a mirror group start new sessions in that remote group. - The New session picker (`⇧⌘N`) lists the other device's favorite and recent folders beside yours, and can create the session there, including on a new worktree branch made on that device. ## Close session everywhere Closing a mirror group normally closes it **here only**: the session keeps running on its device. To close it on the device too, the device must be live over sync (see [Sync and devices overview](https://flow.worldbreakstudios.com/docs/sync/overview.md)). | How | What happens | |---|---| | Close the group (`⇧⌘W`) with **Close on the other device too** set to **Ask each time** (default) | A confirm asks "Also close on DEVICE?" with **Close everywhere** and **Just here**, and "Don't ask again". `↩` is **Just here**; **Close everywhere** is a click only | | **Close on the other device too** set to **Always** or **Never** | Closing always closes on the device too, or never does | | Palette action **Close session everywhere** (unbound, `keyboard.close_group_everywhere`) | Skips the question: the close confirm closes the session on the device too | | `flow-cli group G close --everywhere` | Closes here and on the device at once, with no confirm | | Right-click an unopened row in a device space › **Close on DEVICE** | Closes that session on the device behind a confirm (a click only) | Closing everywhere closes the whole remote group when the mirror group shows all of its sessions; otherwise it closes only the sessions this mirror group shows, so tabs still in use there survive. If the device is not reachable, or sync is off on this Mac, the session closes here only and Flow tells you. ## Files on a paired device These need the other device to grant this Mac both **Can open my sessions** and **Can create sessions**. Every path is a path on that device; nothing is read from or written to this Mac's disk. ### The Files tab in a mirror group A mirror group's new-tab Launcher works on the device: **Files** opens a Files tab on the session's folder there, a typed path is looked up on the device, and **Run** lists the `run` entries of the `.flowspace.json` there. The Files tab lists and expands folders and previews text and images (files over 2 MiB are never downloaded), but has no git status, diff, revert, Markdown preview or go to definition. ### Finder mounts You can mount a folder of a paired device on this Mac and work on its files in Finder or any app, readable and writable as if local. Nothing needs installing: no FUSE, no kernel extension, no admin password. - In a mirror group, open the folder button's menu in the header and choose **Open in Finder**, or use **Open in Finder** on a row or file in that group's Files tab. - Or from a terminal: ```sh flow-cli puddle-mount DEVICE /absolute/path/on/device --open flow-cli read puddle-mounts flow-cli puddle-unmount DEVICE /absolute/path/on/device ``` `DEVICE` is a device id, name or id prefix. Mounts appear under `~/.flow/remote-mounts/`, one folder per device and then one per mounted folder, named after the folder so that is what Finder's title bar shows. A mount ends when you eject it in Finder or run `flow-cli puddle-unmount`, when you quit Flow or turn Puddles off, and when the device is unpaired or stops granting this Mac access. `puddle-unmount` never forces a volume that is in use: close the files, Finder windows and terminals open in it, then run it again. If the device stops answering, the mount stays and its files answer with an input/output error until the device is back. ## What paired devices can do on this Mac A device you have granted **both** switches (typically Flow on your iPhone) can also act on this Mac's sessions: - **Run palette actions** for a session, the same rows `⇧⌘P` would offer, except quitting Flow, the command palette itself, Go to Puddle and the invite, installing the command-line tools or the `gh` / `git` shell aliases, and installing an update or relaunching into one. - **Read and write a session's pull request**: view it, comment, reply to review threads, review and change its status, acting as this Mac's signed-in GitHub user. It refuses what the desktop would (for example approving your own pull request) and waits while you are writing to the same pull request here. Each action that ran posts a `puddle.remote_action` notice ("DEVICE ran TITLE"). Everything is refused while Flow is locked or Puddles is off. Separately, a device that syncs with this Mac can close, rename or pin your sessions; those run here without a dialog and are recorded the same way (see [How Flow syncs data](https://flow.worldbreakstudios.com/docs/sync/sink.md)). ## Notifications The Puddle adds these notification kinds; change how each is delivered in Settings › Notifications (`notifications.KIND`, one of `toast`, `system`, `silent` or `off`). | Kind | Default | When | |---|---|---| | `puddle.pairing` | toast | A device asks to join while the Puddle page is not open. The Tools row shows a badge meanwhile | | `puddle.viewing` | silent (history only) | A paired device starts watching one of your sessions. The same device and session within 10 minutes is not new | | `puddle.created` | toast | A paired device starts a session on this Mac | | `puddle.remote_action` | silent (history only) | A paired device closes, renames or pins one of your sessions, or runs an action | | `puddle.attention` | toast | An agent here needs you while you are working on another of your Macs | ```sh flow-cli settings set notifications.puddle.viewing toast ``` ## Remove a device On the device's **Members** row, click **Remove** and confirm. That device can no longer reach this Mac; pair again to bring it back. Removing is one-sided: the other device still lists this Mac until you remove it there too, but can do nothing with it. Its spaces-bar chips, device windows and Finder mounts go with it. ## Settings | Key | Type | Default | Effect | |---|---|---|---| | `features.remote` | bool | `false` | Turns Puddles on (Settings › Experiments › Puddles) | | `puddle.bind` | string | `auto` | Where the service listens: `auto`, `tailscale`, `lan` or `tailcat` (the page's Network select) | | `puddle.port` | number | `47633` | The TCP port the service listens on (1024 to 65535) | | `puddle.pane_size` | string | `latest` | Shared pane size: `latest` (device used last) or `smallest` (fit the smallest screen). Applies to sessions started after a change | | `puddle.sync` | bool | `true` | Sync sessions with your devices: other devices see your sessions live, and their closes, renames and pins apply here. Off, they see a listing refreshed every 15 seconds | | `puddle.close_remote` | string | `ask` | Close on the other device too: `ask`, `always` or `never` | Network, port, pane size and the spaces-bar chips have no row of their own in Settings: searching for them opens the Puddle page. Any key can also be set from a terminal, for example `flow-cli settings set puddle.bind lan`. ## Limits - **Open is full access.** A device with **Can open my sessions** can type into every shareable terminal session; there is no read-only grant. With both switches on it can also reach every file your user account can, and its file access is not logged. - **Pairs, not a mesh.** Each pairing is between two devices. Pairing A with B and B with C does not connect A and C. - **A service you started by hand keeps running.** Turning Puddles off stops only the service Flow started; one started from a terminal keeps serving until you stop it. - **Mirror groups are the device's.** A local shell can never join a mirror group, a mirror pane is never a local group's primary, and the Factory does not take mirror groups. - **Listings are capped** at 64 groups and 512 sessions per device; the rest are not shown. - **`flow-remote` is not on your `PATH`.** It ships inside Flow.app and Flow runs it for you; "Install command-line tools" does not link it. See [Pair devices with flow-remote](https://flow.worldbreakstudios.com/docs/sync/flow-remote.md). --- # Task Manager URL: https://flow.worldbreakstudios.com/docs/features/task-manager See what every Flow terminal is running and what it costs in CPU, memory, energy, disk and network, then jump to a pane or kill a process. The Task Manager is an Activity Monitor for your Flow terminals. It lists every terminal Flow holds, grouped by session, with the processes running in each and what they use. Use it to find the pane whose build is pinning a core, the agent that is eating memory, or a stuck process you want to kill. ## Open the Task Manager - Click **Task Manager** in the sidebar's Tools band. Its row shows small CPU and memory sparklines for the last minute, even while the page is closed. - Run **Go to Task Manager** from the command palette (`⇧⌘P`). It has no default shortcut; bind one in Settings › Keyboard as `keyboard.go_to_tasks`. - From a terminal: `flow-cli page tasks`. ## What it lists Every terminal Flow holds: - each tab of every session group in the sidebar; - the flyover's tabs, under **Flyover**; - the terminals of CLI tool pages that are still running their command, under **Tools**; - the Flow agent's terminal, under **Flow agent**. The list is a tree of three levels: - A **session row** per group: its sidebar title, the project and pane count, and the totals of its panes. Click it to open or close it. - A **pane row** per terminal: the foreground process's name (the shell itself when the pane is idle), the pane's size, its pid and its figures. A pane's figures add up everything its shell runs, not just the shell, so a pane running `cargo build` shows the build's CPU. If the pane has processes, a caret opens them. - A **process row** for each process in the pane: the shell first, then everything under it, each with its name, its command line and its own figures. Processes outside Flow's terminals do not appear. A figure that can't be read shows `-`. The figures refresh every 2 seconds. Collection keeps running in the background on every page, so the chart's history is already there when you open the Task Manager. ## Metrics and columns The header's segmented control picks a metric: **CPU**, **Memory**, **Energy**, **Disk** or **Network**. Each shows six columns: Name, PID, the metric's headline (with a bar, and the default sort) and three of its own. | Metric | Headline | Other columns | |---|---|---| | CPU | CPU (`%CPU` as `ps` reports it) | CPU time, Threads, Age | | Memory | Memory (physical footprint) | RSS, FDs, Scrollback | | Energy | Impact | Wakeups (per second), Avg impact, Age | | Disk | Disk I/O (read plus written per second) | Read, Written (per second), FDs | | Network | Network (received plus sent per second) | Received, Sent (per second), Sockets | - **Impact** is an estimate in the spirit of Activity Monitor, not a measurement: the CPU rate, plus wakeups per second divided by 10, plus disk and network bytes per second divided by 1 MiB. It shows `-` until there are two samples to compare. - **Avg impact** is the same score over the process's whole life, so it is available at once. - **Scrollback** is how much the pane's scrollback holds. **FDs** and **Sockets** count open file descriptors and sockets. - Network figures are sampled at most every 10 seconds, and only while the page is showing. A process that the sample doesn't cover shows `-`, and the Network chart has gaps for the time the page was closed. To work with the columns: - Click a column header to sort by it; click again to flip the order. Name and PID start ascending, figures start descending. - Drag the edge of a header cell to resize the column. - Right-click the header to show or hide columns. Name never hides. - On a narrow page columns hide in steps: the metric's last column first, then PID, then its other columns. Name and the headline always stay. ## Filter Click the **Filter panes** field and type. A session whose sidebar title or project matches shows whole. Otherwise a session shows only its matching panes, and a pane matches on its process name, the name of any process under it, or any of their pids. Matching is a case-insensitive substring. With no match the list says "No panes match …". `↩` or `Esc` leaves the field. ## Actions - **Select** a pane or process row by clicking it. - **Go to pane**: hover a pane or process row and click its Go to pane button, or double-click the row. Flow shows the terminal where it lives (its group and tab on the Sessions page, the flyover, a tool page or the Flow agent's window) and confirms with "Jumped to PROCESS in SESSION". - **Kill**: hover a row and click **Kill**. The row asks "Kill NAME (PID)?" with **Cancel** and **Kill**; only the Kill button kills. On a pane row it targets the pane's foreground process (the shell when the pane is idle); on a process row, that process. Flow sends `SIGTERM` and shows "Killed NAME (PID)" or the error. `Esc` or **Cancel** dismisses the question, and so do selecting another row, changing the metric or filter, or leaving the page. - **Live / Paused**: the header's Live toggle stops and restarts collection. Paused, the rows, the chart and the sidebar sparklines freeze. Flow always starts in Live. - **Expand / collapse all**: the header's chevron button closes every session and pane while any session is open, and opens every session when none is. ## The chart Under the table, a chart shows the current metric by session over the last one to five minutes (the window grows with the history Flow has collected). Pick **Lines** (one line per session) or **Stacked** (one bar per sample, sessions stacked bottom-up) with the control in its caption. Each session keeps the same colour in its row's dot, the chart and the legend. Click a legend chip to highlight its session (the other sessions fade) and click it again to show all sessions. Clicking a session in the plot highlights it too, and scrolls the list to its row. The footer totals every listed pane (panes, CPU, RSS, FDs and scrollback) and, at the right, Flow's own pid, CPU and memory. ## Settings | Key | Type | Default | Effect | |---|---|---|---| | `tasks.chart_view` | string | `lines` | `lines` or `stacked`. | | `tasks.hidden_columns` | JSON object | none hidden | Hidden columns per metric, for example `{"cpu": ["threads"]}`. | | `tasks.column_widths` | JSON object | the built-in widths | Column widths you dragged, by column name, for example `{"title": 260}`. | Flow writes these when you change the chart view, hide a column or resize one. The metric, sort, filter and Live state are not saved. ## From the command line ```sh flow-cli read tasks # every pane with its figures (add --json for the session tree) flow-cli tasks-focus memory # cpu, memory, energy, disk or network flow-cli tasks-chart-view stacked # lines or stacked flow-cli tasks-select KEY # highlight a session; keys are in read tasks --json under groups flow-cli tasks-kill PID # raises the same Kill question in the app; it does not kill by itself ``` See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md) for the rest of the CLI. ## Limits - Only Flow's own terminals and their processes are listed. - Kill sends `SIGTERM` only. A process that ignores it keeps running. - Energy figures are estimates. - Rates (Impact, wakeups, disk and network) need two samples, so they read `-` right after launch or after a pause. --- # Factory URL: https://flow.worldbreakstudios.com/docs/features/factory Put agent sessions through gated plans scored by proven checks, so only work that is ready for you asks for your attention. The Factory is a triage page for agent-driven work. You put a session on it, and its branch then moves through a **plan**: an ordered list of **gates**, each with weighted **checks** that the agent (or Flow itself, or you) must prove. Each session gets a **verification score** from 0 to 100, and the page only puts a session in front of you once its score crosses your line. Everything below the line keeps working on its own. > **Note:** The Factory is an experiment (ALPHA, it may be removed rather than shipped). Turn it on in Settings › Experiments (`features.factory`). While it is off, the page, its header chip and its actions are hidden, and agents can read the Factory but not change it. Your plans, records, templates and `factory.threshold` are kept, so turning it back on shows the Factory as you left it. ## Open the Factory - Press `⌘;` (**Toggle factory**) or click the factory chip in the sessions header, left of the Dashboard's grid chip. Both switch between the Factory and Sessions. The chip is lit while the page shows, and carries a blue dot while any session is worth your time. - Or run **Go to Factory** from the command palette (`⇧⌘P`), or `flow-cli page factory`. The page lists the sessions of the **selected label** that are on the Factory. It opens in the main window only. ## Add and remove sessions Nothing is on the Factory until you add it. 1. Focus the session you want to track. 2. Run **Add session to the Factory…** from the command palette. 3. Pick a template. Each row shows its name, a one-line summary and its gates ("Planning → Build → Peer review → Merge"). The session joins with that template's plan, at the Planning gate. An agent can add its own session from its terminal: ```sh flow-cli factory add --template bugfix ``` Without `--template`, `factory add` uses `feature`. To take a session off, run **Remove session from the Factory** or `flow-cli factory remove`. That drops its plan, reports and passes; the ledger keeps a line saying it was removed. The Factory tracks **work**, not windows: a work is a local checkout and its branch, so its record survives closing the group, a new window and a relaunch. A session on a detached HEAD, a group on a remote host, or a mirror group from a paired device cannot be added. ## Read the page At the top, a summary says how many sessions are worth your time and how many more are below the line. The toolbar has: - **By attention** / **By gate**: how the list is grouped. - A filter field that matches a session's title, repo, branch or gate. - **Line at T**: your threshold. Clicking it steps through 70, 80 and 90. - **Open next**: opens the next session worth your time. Grouped **by attention**, sessions fall into these groups: | Group | Who is in it | |---|---| | **Worth your time** | Above the line and waiting on you. Blocked sessions first, then the smallest diff | | **Planning** | At the Planning gate and below the line: pair with the agent on the plan | | **Not yet** | Below the line. The agent keeps going; these surface when the score crosses the line. Snoozed sessions always land here | | **Waiting on others** | Everything still missing is a reviewer's | | **Landed** | Merged, or past the last gate. Collapsed by default | Grouped **by gate**, the list has Planning first, then one group per gate name, then Landed. Each card shows the session's status ("Ready for your review", "Ready to send", "Ready to merge", "Decision ready", "Agent working", …), why it stands where it does ("4 of 6 proven. Still open: …"), and at most one button: | Button | When | What it does | |---|---|---| | **Approve plan** | The plan is ready, above the line | Records the Planning pass | | **Open plan** | At Planning, below the line | Opens the Gate tab on the plan | | **Review** | A `pass` gate, above the line | Opens the Gate tab so you can look before passing | | **Send to reviewers** | A `ready-pr` gate, above the line | Marks the pull request ready for review, then records the pass | | **Merge** | A `merge-pr` gate, above the line | Merges the pull request; the session lands once it has merged | | **Decide** | Blocked, above the line | Opens the Gate tab on the decision | ### Keys on the page | Key | Action | |---|---| | `↑` `↓` or `j` `k` | Move the selection | | `↩` | Open the selected session | | `Esc` | Clear the filter | While a session pane is open, the keyboard belongs to its terminal: `Esc`, `j`, `k` and `↩` go to the program running there. ## The session pane Clicking a card opens the session's real terminal beside a narrowed list, under a strip of its gates. You can type into it as on the Sessions page. Close it with its **−** button or `⌥⌘\` (**Close the Factory pane**). `⌘\` (or the header button) toggles the **secondary pane**, which has three tabs: - **Terminal**: the group's other panes, with their tabs. A group with no other panes has no Terminal tab. - **Gate**: what the score is made of. The decision card, the current gate's checklist (the decision packet first while blocked), the plan while at Planning, and the gates strip, which marks each gate "passed · by WHO", "now · SCORE" or "not reached". - **Ledger**: an append-only history of everything added, reported, passed and logged for this work, newest first, with filter chips (Everyone, You, Claude, Reviewers, Automatic) and a note field. Type a note and press `↩` to log it; `Esc` gives the keyboard back. `⌘\` is the Factory page's own chord: the **Toggle the Factory secondary pane** action has no default binding, and a binding of your own on `⌘\` wins over it. ## Plans and gates Every plan starts with **Planning**, a fixed gate you cannot edit. After it come the plan's own gates (up to 8). Each gate asks one question ("Ready for your review?") and has a **gate action** that decides how it is passed: | Action | Button | How it passes | |---|---|---| | `pass` | **Review**, then **Mark passed** | You record the pass (or an agent runs `flow-cli gate pass KEY`) | | `ready-pr` | **Send to reviewers** | Flow marks the pull request ready for review (skipped if it already is) and records the pass once that succeeds | | `merge-pr` | **Merge** | Never recorded by hand: the session lands when its pull request merges. At most one, and only as the last gate | A session sits at the first gate without a recorded pass. Gates advance only by an explicit pass of the **current** gate; a merged pull request lands the session whatever gate it was at. ### Planning At Planning you settle the rest of the plan with the agent. The Gate tab lists Planning's checklist, then the plan read-only (every later gate with its checks, weights, owners and how each is verified). The decision card has two buttons: - **Start planning** types this line into the session's terminal, without pressing Return, and gives the pane the keyboard: "Run flow-cli factory brief, then pair with me on this task's plan: the gates after Planning, each gate's checks and how they are verified, and how the score is weighted." - **Approve plan** records the Planning pass. `flow-cli factory brief` prints the planning protocol for the agent: the rules, the commands, the plan's JSON shape, the templates and this work's current plan. The agent changes the plan with `flow-cli factory plan set`; you don't edit it on the page. Planning's checklist: | Check | Owner | Weight | Proven when | |---|---|---|---| | Goal and why (`goal`) | you | 2 | You tick it once the goal and the reason are written down | | Gates chosen for this task (`plan-gates`) | auto | 2 | The plan has at least one gate | | Every check says how it is verified (`plan-verification`) | auto | 3 | Every gate has a check, and every check has a verify step or a source | | Score weights agreed (`plan-score`) | you | 2 | You tick it once each check's weight says what matters | | Open questions answered (`questions`) | auto | 1 | Nothing is pending in the session's panes | The plan can change only while the work is at Planning. To change it later, run `flow-cli factory replan`: that clears every pass and puts the work back at Planning, keeping its reports. ## Checks and the score Each check has a label, a weight from 1 to 5, an **owner** (`you`, `agent`, `auto` or `peer`), and a **verify** step saying how it is proven (a command to run or an instruction). The checklist marks each one: | Mark | State | |---|---| | ✓ | Proven: reported with evidence, ticked by you, or read by Flow | | ~ | Claimed: reported without evidence. Scores 0 | | … | Working | | – | Not started | | ✗ | Failed | | n/a | Does not apply (no CI on the pull request, no review required). Left out of the score | **Derived checks** name a **source**, and Flow answers them itself from the session's panes, git and pull request. Their owner is always `auto` and nobody reports them: | Source | Proven when | |---|---| | `questions`, `no-questions` | Nothing is pending in the session's panes | | `ci`, `ci-latest` | The pull request's checks passed | | `small` | The branch diff is under 400 lines (added plus removed) | | `approvals` | The pull request's review decision is approved | | `up-to-date` | The pull request is mergeable and not behind | Every other check is **reported**: by the agent with `flow-cli gate report`, or by you ticking a check you own on the Gate tab. An agent proves `agent` and `auto` checks; for a `you` or `peer` check it can only claim, and it can never change a check you confirmed. The **score** is the weighted share of the scored checks that are proven, from 0 to 100. A session is **above the line** when its score reaches `factory.threshold` (default 80), with one hard rule: at a `merge-pr` gate it is never above the line until every `auto` check is proven. ### Blocked sessions and decisions When the agent is stuck it records why with `flow-cli gate blocked "ONE LINE"`. While a session is blocked, a **decision packet** replaces the gate's checklist in the score: what is blocked, what was tried, options with trade-offs, a recommendation, and a repro you can run. The session reaches Worth your time once the packet's score crosses your line, and **Unblock** on the decision card (or `flow-cli gate unblocked`) puts it back on the gate's checks. A pane showing a question overlay is a decision the terminal already shows in full: the session counts as blocked with a complete packet, scores 100 and reads "Decision ready". ## Templates A plan starts from a template. Five ship with Flow: | Key | Name | Gates after Planning | |---|---|---| | `feature` | Feature PR | Build → Peer review (`ready-pr`) → Merge (`merge-pr`) | | `bugfix` | Bug fix | Reproduce → Fix → Merge (`merge-pr`) | | `research` | Research spike | Explore → Findings (no pull request) | | `docs` | Docs | Draft → Review | | `blank` | Blank | None: build the whole plan at Planning | Save a work's current plan as your own template, or remove one you saved: ```sh flow-cli factory template save "Spike PR" flow-cli factory template remove "Spike PR" flow-cli factory templates ``` Your templates live in `~/.flow/factory_templates.json` (global, shared by every repo) and appear after the stock ones in the template picker. The file is a JSON array; you can edit it by hand: ```json [ { "key": "spike-pr", "name": "Spike PR", "blurb": "Your saved template.", "gates": [ { "key": "build", "name": "Build", "question": "Ready for your review?", "action": "pass", "checks": [ { "slug": "unit-tests", "label": "Unit tests pass", "weight": 2, "owner": "auto", "verify": "cargo test; report the summary line" }, { "slug": "build-small", "label": "Small enough to review", "weight": 1, "owner": "auto", "verify": "", "source": "small" } ] } ] } ] ``` A template whose `key` is not kebab-case, repeats an earlier key, takes a stock template's key, or holds an invalid plan is skipped. A missing or unreadable file never breaks anything. ## Plan rules `flow-cli factory plan` prints a work's plan as JSON, and `flow-cli factory plan set FILE` (or `-` for stdin) replaces the gates after Planning. Every plan, from a template or `plan set`, must follow these rules: - 0 to 8 gates after Planning. A gate's `key` is kebab-case, unique, and not `planning` or `landed`; its `name` is not empty; `question` is optional; `action` is `pass` (the default), `ready-pr` or `merge-pr`. - At most one `merge-pr` gate, and only as the last gate. - Up to 12 checks per gate. A check's `slug` is kebab-case and unique across the plan, and is none of Planning's or the decision packet's: `goal`, `plan-gates`, `plan-verification`, `plan-score`, `questions`, `blocked-line`, `tried`, `options`, `recommendation`, `repro`. - `weight` is 1 to 5 (default 1). `owner` is `you`, `auto`, `agent` or `peer` (default `agent`). A check with a `source` must be owner `auto`. - Every check needs a `verify` step unless it has a `source` (Planning's "Every check says how it is verified" checks this). ## Settings | Key | Type | Default | Effect | |---|---|---|---| | `features.factory` | bool | `false` | Turns the Factory on (Settings › Experiments › Factory) | | `factory.threshold` | number | `80` | The score a session needs before the Factory puts it in front of you, 50 to 100 (Settings › Tools › Factory › Line threshold, in steps of 5; the page's **Line at T** chip cycles 70, 80, 90) | When **Send to reviewers** finishes marking a pull request ready, Flow raises a `pr.ops` notification (a toast by default; change it in Settings › Notifications). ## Factory actions Every action is in the command palette by its label and rebindable in Settings › Keyboard. | Action | Setting key | Default | |---|---|---| | Toggle factory | `keyboard.toggle_factory` | `⌘;` | | Go to Factory | `keyboard.go_to_factory` | unbound | | Add session to the Factory… | `keyboard.factory_add` | unbound | | Remove session from the Factory | `keyboard.factory_remove` | unbound | | Close the Factory pane | `keyboard.factory_close_pane` | `⌥⌘\` | | Toggle the Factory secondary pane | `keyboard.factory_toggle_secondary` | unbound (`⌘\` on the page) | ## For agents Run these in the work's checkout; add `--dir D` for another checkout or `--group G` to name a session. ```sh flow-cli factory add [--template KEY] # put this work on the Factory flow-cli factory brief # the planning protocol and this work's plan flow-cli factory plan # the plan as JSON flow-cli factory plan set plan.json # replace the gates after Planning (only at Planning) flow-cli factory replan # back to Planning, passes cleared flow-cli gate checks # every check: gate, slug, weight, owner, label, how verified flow-cli gate report unit-tests --evidence "cargo test: 214 passed" flow-cli gate report goal --claim --evidence "Ship the retry policy" flow-cli gate blocked "Need a decision on the API shape" flow-cli gate unblocked flow-cli gate pass planning # only the current gate; never a merge-pr gate flow-cli gate note "Rebased on main" flow-cli read factory # every session on the Factory, as the page sees it ``` `gate report` with `--evidence` proves a check; with no evidence, or with `--claim`, it only claims it (scoring 0); `--working` and `--failed` set those states. Every change from the command line is recorded in the ledger as Claude's. While the Factory page is open, `flow-cli factory-open G` opens a session's pane, as a click on its card does. ## Limits - The Factory is ALPHA: it may change a lot, or be removed. - Only local checkouts on a branch can be on it; remote-host groups, mirror groups from a paired device and detached HEADs cannot. - The page shows the selected label's sessions only, and only in the main window. - Plans are edited through `flow-cli factory plan set`, not on the page. --- # Flow agent URL: https://flow.worldbreakstudios.com/docs/features/flow-agent A coding agent in a floating window that drives your Flow workspace through flow-cli, with its own command, system prompt and editable skills. The Flow agent is a coding-agent CLI (Claude Code, `claude`, by default) running in a floating window of its own, set up to control the Flow window that started it. Ask it in plain language to open sessions, split panes, nudge the agents in your other panes, change settings or take a screenshot, and it does that through `flow-cli`. It is for anyone who would rather say what they want done to the workspace than click through it. > **Note:** The Flow agent is an experiment (BETA). Turn it on in Settings › Experiments (`features.flow`). While it is off, Toggle Flow agent does nothing, `flow-cli flow-send` is refused, and neither the agent window nor its pill is shown. ## Open and minimize the agent 1. Turn on the experiment in Settings › Experiments. 2. Press `⌃⌘J` (Toggle Flow agent in the command palette). The first press starts an agent if none is running. The chord is also registered system-wide while the experiment is on, so it works from any app. 3. Type your request into the agent's terminal. 4. Press `⌃⌘J` again to minimize the window to the pill. The agents keep running, and the focus goes back to the app you were in before. A click on the pill opens the window again. Rebind the chord in Settings › Keyboard as `keyboard.toggle_flow`. ## The agent window The window is a floating panel: it sits above the main window and its web tabs, and it stays up while another app is active and on every Space, full-screen ones included. - **Tab strip.** The title bar holds one tab per agent, each with the agent command's icon and a ×, then a "+" that starts another agent. - **Moving and sizing.** Drag the strip's empty area to move the window, double-click it to zoom, and drag the edges to resize. The green traffic light zooms. The red and the yellow lights both minimize to the pill; neither closes the agents. - **Position.** The window opens out of the pill's corner, and minimizing puts the pill back at that corner of wherever the window is now, so moving either one moves both. Only the window's size is remembered across launches (640 × 440 until you resize it). - **Selection.** Drag in the agent's text to select it; the wheel scrolls. ### Keys in the agent window | Key | What it does | |---|---| | `⌃⌘J`, `⌘M`, `⌘W`, `⇧⌘W` | Minimize to the pill; the agents keep running | | `⌘T` | Start another agent in a new tab | | `⇧⌘[` / `⇧⌘]` | Previous / next agent tab | | `⌘C` | Copy the text you selected | | `⌘V` | Paste the clipboard's text; with an image on the clipboard, send `⌃V` so the agent reads the image | | Any other ⌘ chord | Runs as it does anywhere in Flow (command palette, settings, quit) | | Every other key, Esc included | Goes to the active agent | ## The pill While the agent window is minimized, a small pill stands in for it, so the agent never disappears while the experiment is on. - It shows a card per running agent, the active one in front, each with the agent command's icon and any overlay its tab has (an amber `?` while Claude Code asks a question), then the word "Flow". With no agent running it shows one card. - The cards show whether or not tab icons are turned on: they are the pill's only mark. - Drag it anywhere. A click without moving opens the agent window. Showing, pressing or dragging the pill never brings Flow in front of the app you are in; only the click that opens the window does. - With nothing saved it sits at the bottom right of the main window's display. Its position is kept in `flow.pill` and pulled back onto a visible display when restored. ## Agent tabs and persistence Every agent tab runs the same command in the same directory, independently of the others. - The × on a tab ends that agent. `⌘W` only minimizes. When the last tab closes, the window minimizes to the pill and the next `⌃⌘J` starts a fresh agent. - With Persist sessions on (Settings › General › Sessions, `terminal.persist`, on by default), each agent runs in its own background session. Quitting Flow never ends an agent: at the next launch Flow reattaches every saved agent that is still alive, in its tab order, with the same tab active, and ends the rest. No launch command is typed a second time. - The Task Manager lists every agent under "Flow agent"; its Reveal selects that agent's tab and opens the window. ## Choose the agent command Two settings decide what each new agent runs and where. They are not rows in the Settings window; set them with `flow-cli settings set`: ```sh flow-cli settings set flow.agent_command 'claude --model opus' flow-cli settings set flow.agent_cwd '~/src' ``` - `flow.agent_command` is the line typed into each new agent's login shell. When its first word is `claude` (bare, or a path ending in `/claude`), Flow appends `--append-system-prompt-file` with the path of `~/.flow/flow-prompt.md`, keeping your own flags. Any other command (`codex`, `claude-dev`, `aider claude`) runs exactly as written and gets no Flow prompt, so it does not know about `flow-cli` unless you tell it. - `flow.agent_cwd` is the directory every agent starts in; a leading `~` is expanded. It is always the same directory, so `claude`'s `/resume` lists the same history every time. - Each new tab reads the settings when it starts; agents already running keep what they started with. An agent tab's icon, and the pill's card, are the configured command's tab icon. ## The system prompt Each time a fresh agent launches, Flow rewrites `~/.flow/flow-prompt.md` from three parts: a short preamble, the full `flow-cli` reference, and the index of your skills. Your edits to this file are overwritten; change the agent's behaviour with skills instead. The preamble tells the agent that it controls the Flow window that spawned it (`FLOW_SOCKET` in its environment points `flow-cli` at that window), to run `flow-cli state` before acting and to check `state` or a screenshot afterwards, to keep replies to a sentence or two followed by the actions it took, and to act and then report rather than ask for permission, unless a skill tells it to bring a question back to you. ## What the agent can do Through `flow-cli` the agent can do everything the command palette can, and read what you see: the window's groups, tiles and tabs as JSON, any pane's screen, settings, toasts and dialogs, and screenshots. The reference it is given asks it to work around you rather than over you: - **Address, don't focus.** It types into a pane by its session id (`send-text --session`) and reads one (`read pane`) without moving your focus, and focuses a pane only when you asked to see it. - **Open in the background.** New sessions and tabs it opens use `--background`, so what you are looking at does not change. - **Read before typing.** It checks that a pane's shell is idle before sending a command. - **Scratch work in the flyover.** For a shell of its own it opens a tab in the flyover, outside every session group. - **Destructive commands need your words.** Closing sessions, session groups, tabs or labels, `settings set`, and merging or closing pull requests happen only when you asked for exactly that. See [Flow CLI](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md) for the commands themselves. ## Skills A skill is a playbook for a larger job, in `~/.flow/skills/NAME/SKILL.md`: a frontmatter block with `name` and `description`, then Markdown instructions. ```markdown --- name: standup description: Summarize what each session did today. Use when the user asks for a standup. --- # standup 1. Run `flow-cli state` and list the groups. 2. ... ``` - The agent's prompt lists only each skill's name, description and path. When a request matches a description, the agent reads that SKILL.md in full first and follows it. An edit to a skill's instructions therefore applies on the agent's next turn; a new skill, or a changed name or description, reaches agents launched after it. - A skill whose frontmatter has no `name` is listed under its folder's name. - Flow seeds its built-in skills into the folder only where a skill's SKILL.md is missing, so your edits are never overwritten, and a built-in you delete comes back at the next seed. The `settings` skill also ships a `MANIFEST.md` that Flow owns and rewrites whenever it differs from the running version. - Settings › Advanced › Flow agent skills shows the folder (Open folder) and a row per skill with Open for its SKILL.md. The block shows whether or not the experiment is on. ### Built-in skills | Skill | What it is for | |---|---| | `babysit-prs` | Watch the sessions you name and keep each one's coding agent moving toward a mergeable draft PR: check in on a timer, nudge idle agents, bring questions that need you back to the Flow chat | | `notebooks` | Build interactive notebooks in Notes: runnable Python, JavaScript and shell cells, inputs that re-run them, charts and tables | | `schedules` | Set up and look after scheduled commands and reminders: the cron, missed runs, approvals, run logs and the Inbox | | `settings` | Read and change any Flow setting, shortcut, experiment, theme or per-repository override, and explain where a value comes from | | `snooze` | Snooze a session until something happens (a time, the agent's next message, a PR verdict, CI) and write the watch commands that wake it | | `sync` | Read and act on the state Flow syncs across your paired devices: which are live, their sessions and tabs, intents sent to another device | | `tools` | Build a Flow tool end to end: a small CLI or TUI under `~/.flow/tools/` whose data syncs across your devices | | `trash` | Clean up old git worktrees through the Trash page, deleting only the ones that are safe to delete | See [Agent skills](https://flow.worldbreakstudios.com/docs/cli/agent-skills.md) for how skills work for agents in your other panes, and [Custom tools](https://flow.worldbreakstudios.com/docs/cli/custom-tools.md) for the tools the `tools` skill builds. ## Send text to the agent from a shell `flow-cli flow-send` types a message and Enter into the **active** agent tab, opening the agent window first. Several words are joined with spaces; `-` reads the message from stdin. ```sh flow-cli flow-send open the logs for the api session git diff --stat | flow-cli flow-send - ``` With no agent running it starts one and passes the message as its first prompt. While the experiment is off the command fails with "Flow is disabled — enable it under Settings > Experiments". To check the agent from a script, `flow-cli state` has a `flow` block (`enabled`, `mode`: `pill`, `open` or `off`, the active agent's `session`, every tab's `sessions` and the `active` index), and `flow-cli screenshot --window flow` or `--window pill` captures either window. ## Settings and files | Key or file | Type | Default | Effect | |---|---|---|---| | `features.flow` | bool | `false` | Turns the Flow agent on (Settings › Experiments) | | `keyboard.toggle_flow` | chord | `⌃⌘J` | Opens or minimizes the agent window, in Flow and system-wide | | `flow.agent_command` | string | `claude` | The command each new agent runs | | `flow.agent_cwd` | string | `~` | The directory each new agent starts in | | `terminal.persist` | bool | `true` | Persist sessions: agents survive quitting Flow and are reattached at launch | | `flow.sessions`, `flow.active` | JSON array, integer | none | The saved agents in tab order and the active tab; written by Flow | | `flow.window` | object | 640 × 440 | The agent window's frame; only its size is read back. Written by Flow | | `flow.pill` | object | bottom right | The pill's position; written by Flow when a drag ends | | `~/.flow/flow-prompt.md` | file | generated | The system prompt a `claude` agent gets; rewritten at every fresh launch | | `~/.flow/skills/NAME/SKILL.md` | file | built-ins seeded | Your skills; edits are kept | ## Limits - Only a `claude` command gets the Flow system prompt automatically. - `flow-send` always goes to the active agent tab. - File paths in the agent window are not clickable links. - Only the window's size is remembered; its position follows the pill. --- # Agent panes URL: https://flow.worldbreakstudios.com/docs/features/agent-panes How Flow presents a session running Claude Code or another coding agent, with a centred column, a context card, a Details tab and a Shells tab. When a coding agent runs in a session's main pane, Flow treats that pane as an agent pane. It centres the agent's text in a readable column, and for Claude Code it adds a context card of the files the session used and made, a Details tab that lists all of them, and a Shells tab that records every shell command the agent runs, with its live output. This page is for anyone who runs Claude Code, Codex or another agent CLI inside Flow sessions. For setting up Claude Code itself, see [Claude Code](https://flow.worldbreakstudios.com/docs/cli/claude-code.md). ## Which panes are agent panes Every couple of seconds Flow looks at the program running in the foreground of each pane. A pane is an agent pane when that program is one of the **Agent programs** (Settings › General › Agents, `agents.programs`): by default `claude`, `codex`, `pi`, `gemini`, `opencode`, `aider`, `amp` and `cursor-agent`. Names are matched the way tab icons are, so an agent started through `env`, `npx` or `node` still counts. Type the list comma-separated; an empty field restores the default. - Only a session's main pane gets the agent column and the context card. - The context card, the Details tab and the Shells tab work with Claude Code only. Other agents get the column. ## The agent column With **Centre agent panes** on (`agents.column`, on by default), an agent running in a session's main pane has its text in a centred column at most **Agent column width** terminal columns wide (`agents.max_columns`, 120 by default, 60 to 300 in steps of 10). A change applies at once. - A click in the gutter beside the column focuses the pane, and the wheel there scrolls it. - A selection dragged into a gutter stops at the column's first or last character. - The column is not applied on the Dashboard, in the Factory (both size the main pane themselves), in pop-outs, or in a remote host's session. ## The context card While Claude Code runs in the main pane, a card floats at the pane's top right (in the gutter the column leaves, when there is room) with up to three sections, newest first: - **Sources**: images and files you attached (an image you pasted or dropped, a file you `@`-mentioned), and images and documents Claude read with its Read tool, such as a screenshot it took while checking its work. Reading code or plain text is not a source. - **Outputs**: files Claude wrote with its Write tool. - **Shells**: only while the pane has a running agent shell. Each running shell with its title and how long it has run, newest started first. Each row shows the kind's glyph (or a small thumbnail for an image), the file name, and the full path as a tooltip. Past six rows, or fewer in a short pane, a section ends in "+N more". Only files that still exist are listed: a file deleted since Claude used it leaves the card and shows under **Not found** in the Details tab, and comes back if the file is restored. ### Open what the card lists - **A file row** opens the file. One that a Files tab can preview (text, code, Markdown, JSON, images, PDFs, video, web pages) opens there, rooted at the session's checkout, else the file's nearest git repository, else its folder. Scripts open read-only and never run. Documents, media and archives on Flow's allowlist (Word, Excel, PowerPoint, Keynote, Pages, Numbers, audio, `zip` and others) open in their default app. Anything else, such as a folder, an app bundle, a package, a disk image or a binary, is only revealed in Finder. A file that has gone since the last look shows a toast instead. - **A Shells row** opens that run in the session's Shells tab; the Shells caption opens the tab itself. - **The ⤢ button** (Open details), a Sources or Outputs caption, a "+N more" row or the card's background opens the Details tab. > **Note:** The allowlist means one click on the card never runs or installs something an agent wrote. ### Minimize and expand the card The card's minimize button shrinks it to a chip in the pane's header; a click on the chip expands it again. The **Toggle context card** action (`keyboard.toggle_context_card`, unbound by default) does either. The choice is per session and resets when Flow restarts. In a pane too small for the card, the chip stands in for it, and expanding says in a toast that there is no room. Turn the card off altogether with **Context card** (Settings › General › Agents, `agents.context_card`, on by default). ### When the card shows The card shows for the active session's main pane on the Sessions page while all of these hold: `agents.context_card` is on, Claude Code is the pane's program, the session is not on a remote host and is not snoozed, the pane is not collapsed, and Flow has found Claude's transcript. It never shows on the Dashboard, in the Factory or in a pop-out. Flow reads Claude Code's own local files to fill it: the running session's file under `~/.claude/sessions/` and its transcript under `~/.claude/projects/` (or under `$CLAUDE_CONFIG_DIR` when that is set), every 2 seconds, reading only what was added. It follows the session through `/clear` and a resume, starts over after `/exit` and a new `claude`, and sees through wrappers such as `caffeinate -i claude` or `npx`. No path or transcript text is logged. ### Image previews > **Note:** Claude image previews are an experiment (BETA). Turn it on in Settings › Experiments (`features.claude_images`). With it on, the `[Image #N]` placeholders Claude Code prints become links once its transcript names their file: hover one for a floating preview, click it to open the image in a Files tab. Off, they are plain text. ## The Details tab The Details tab is the context card expanded into a page: every Source and Output of the session's main pane, with no "+N more" cap (up to 200 per section). - Images show as a grid of large thumbnails; other files as rows with the name, the parent folder and where it came from (attached, read or wrote). A click opens an item as the card does. - A **Shells** section follows the Outputs while a shell is running, with an **Open in Shells** link and a row per running shell. - A last **Not found** section lists files the session used that no longer exist on disk. Its rows open nothing. - With nothing found yet the page reads "No agent context yet". Open it from the card, or with **Open agent details** (`keyboard.open_agent_details`, unbound by default) from the command palette; on the Dashboard that acts on the focused card's session. Each session has at most one Details tab, and opening it again shows the one there. A new one goes to the session's side panes (the focused tile when it is not the main pane, else the first other tile, else a new tile split to the right), never into the main pane. The tab always shows its own session's main pane, so a Details tab moved to another session shows that session's. It works whether the card is on, minimized or has no room. ## The Shells tab The Shells tab records the shells Claude Code runs in a pane (its Bash tool calls), each as a run with its command, description, working directory, exit status and full output, and shows them live. ### How capture works Flow points Claude Code's `CLAUDE_CODE_SHELL_PREFIX` in its panes at a small shim, `~/.flow/flow-shell.sh`, and adds a `PreToolUse` hook for the Bash tool to `~/.claude/settings.json`, through which the command's description and whether it runs in the background arrive. The wrapper records the run, leaves a watcher behind that copies the output into Flow's shell store, and then hands over to the shell Claude would have used. It never sits in the command's output path and can never make a command fail. A `CLAUDE_CODE_SHELL_PREFIX` you had set yourself is kept and run in the chain. **Shell capture** (Settings › General › Agents, `shells.capture`) chooses what is recorded: | Value | Label | Records | |---|---|---| | `all` (default) | All shells | Every shell the agent runs | | `background` | Background only | Only commands the agent started in the background | | `off` | Off | Nothing | Turning capture on applies to panes opened afterwards. Turning it off, or switching between Background and All, applies from the next shell in the panes already open. The store lives in `~/.flow/shells/`, readable only by you, since commands and their output can hold secrets. A run's log stops at 16 MiB. At launch and every six hours, Flow deletes sessions idle for 14 days and ended runs older than that, then the oldest ended runs until the store is under 2 GiB. A running run is never touched. ### Open a Shells tab - **Automatically.** When a captured shell starts in a pane that has had no Shells tab since Flow started, a Shells tab opens in the background in that session, in a side tile and never in the main pane. If the session is just its main pane, a new tile is split off folded, so the main pane keeps its width. Close the tab and Flow does not offer one for that pane again until it restarts. - **By hand.** **New Shells tab** in the command palette (`keyboard.new_shells_tab`, unbound by default), the right-click menu of a tab strip's "+", or the New tab page's card. - **From the card.** A Shells row or caption on the context card, or **Open in Shells** in the Details tab. There is one Shells tab per agent pane. When the agent starts another session in the same pane (`/clear`, `--resume`, a new launch), the tab follows it. The session picker at the tab's top left pins the tab to an older session; **Latest session** unpins it. ### Read a run - **The rail** at the right lists the runs: a **Filter shells** field (matching a run's description or command), the segments **All**, **Running** and **Failed** with their counts, and the sections **Running** and **Ended**. Each row shows the state, the title (the description, else the command), the duration, the command's first line, and "background" or a failure's "exit N", "signal N" or "lost". A failure is a non-zero exit, a signal, or a run whose wrapper died. In a pane at least 600 px wide the rail docks beside the output; in a narrower one its toggle lays it over the output. Drag its left edge to resize it; double-click the edge for the default width. - **The viewer** shows the run's title, an exit chip, its times, who ran it ("Claude", "Claude · background", "Run by you" or "Rerun by you"), its directory and the command, with a copy button on hover. - **The output** is live plain text with line numbers, ending in a marker such as "exit 0 · 2s". The toolbar has a level filter (All, Errors, Warn, Info, Debug, each with a count), **Highlights** (the highlight rules editor, the same rules the Schedules log viewer uses), line wrap, and **Find** (`⌘F`: text with case, whole word and regex options, or fuzzy). The footer counts lines, errors and warnings. Select output or the command with the mouse and copy it with `⌘C`. - **Keys:** `↑` / `↓` select the previous or next run, Esc closes an overlaid rail, the rules editor or the selection. ### Act on a run | Button | Shows for | Does | |---|---|---| | Interrupt | A running run | Sends SIGINT to the run's process group | | Kill | A running run | Sends SIGTERM | | Force kill | A run still going 2 s after Kill | Sends SIGKILL, in Kill's place | | Rerun | Any run with a command | Runs the command again in the run's own recorded directory, and nowhere else | | Copy output | Any run with a log | Copies the run's log, cleaned of terminal escapes | Buttons that don't fit go into the "⋯" menu. A Rerun whose directory is gone is refused with a toast. ### Output levels The level filter classifies each line by the most severe match (case-sensitive): | Level | Lines that match | |---|---| | Errors | `ERROR`, `FATAL`, `PANIC` or `FAILED` as a whole word; `error:` or `error[E0308]:` at the start; a Rust `thread '…' panicked at` | | Warn | `WARN` or `WARNING` as a whole word; `warning:` at the start | | Info | `INFO` as a whole word; lines starting `Compiling`, `Finished` or `Running`; `test result:` | | Debug | `DEBUG` or `TRACE` as a whole word | ### Shells from the command line ```sh flow-cli read shells # every collection (one per agent session) flow-cli read shells --collection NAME # its runs, newest first flow-cli read shells --collection NAME --run RUN_ID # one run and a chunk of its log flow-cli shells run --description "Run the tests" -- cargo test flow-cli shells kill --collection NAME --run RUN_ID --signal INT flow-cli shells view --segment failed --level errors --wrap on flow-cli read agent-context # the focused session's card as JSON ``` `shells run` starts a run of yours in the named collection (`--collection`), else in the one a Shells tab of the session shows (`--group`, default the active session), else in that session's most recent. It runs in `--cwd`, else in the collection's own directory, and replies with the collection and run ids. `shells kill` takes `INT`, `TERM` (the default) or `KILL`. `shells view` sets the focused Shells tab's `--rail`, `--filter`, `--segment` (`all`, `running`, `failed`), `--wrap`, `--level` (`all`, `errors`, `warn`, `info`, `debug`) and `--highlights`, or another tab's with `--tab`; `--rail`, `--wrap` and `--highlights` take `on` or `off`. See [Flow CLI](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md). ## Settings | Key | Type | Default | Effect | |---|---|---|---| | `agents.column` | bool | `true` | Centre agent panes: the agent's text in a centred column | | `agents.max_columns` | number | `120` | Agent column width in terminal columns (60 to 300) | | `agents.programs` | list of names | `claude`, `codex`, `pi`, `gemini`, `opencode`, `aider`, `amp`, `cursor-agent` | Programs that count as coding agents | | `agents.context_card` | bool | `true` | The context card on a Claude Code main pane | | `shells.capture` | `all`, `background`, `off` | `all` | Which agent shells are recorded | | `features.claude_images` | bool | `false` | `[Image #N]` previews (experiment) | | `keyboard.toggle_context_card` | chord | unbound | Toggle context card | | `keyboard.open_agent_details` | chord | unbound | Open agent details | | `keyboard.new_shells_tab` | chord | unbound | New Shells tab | ## Limits - **Claude Code only.** The card, Details and Shells read Claude Code's files and hooks; other agents get only the column. Outputs list files Claude wrote with its Write tool, not files it edited in place. - **Remote hosts.** A session on a remote host gets no column and no card, and its shells are not captured. - **Paired Macs.** In a session mirrored from another of your Macs ([Sync overview](https://flow.worldbreakstudios.com/docs/sync/overview.md)), the card shows what that Mac reports, and the Shells tab reads the shells that Mac captured, read-only: no Interrupt, Kill, Rerun or Copy output, and the card lists no running shells. A run there that has not ended reads "Not ended" rather than "Running". - **Dashboard, Factory and pop-outs.** No card and no agent column there; a background Shells tab never opens in a pop-out. See [Dashboard](https://flow.worldbreakstudios.com/docs/workspace/dashboard.md) and [Pop-outs and window locks](https://flow.worldbreakstudios.com/docs/workspace/pop-outs-and-window-locks.md). - **Only new panes are recorded** after you turn capture on. --- # Snippets and clipboard URL: https://flow.worldbreakstudios.com/docs/features/snippets-and-clipboard Reusable snippets with placeholders and keyword expansion, searchable clipboard history, the clipboard cycle and Pick color. Flow keeps a library of text **snippets** you paste from the command palette or expand anywhere by typing a keyword, and a searchable **clipboard history** of what you copy. Both work system-wide: their hotkeys summon the palette over whichever app is in front, and ↩ pastes back into that app. Two smaller tools sit beside them: the **clipboard cycle**, which pastes history entries one after another without opening anything, and **Pick color**, which copies a color from anywhere on screen. ## At a glance These hotkeys work from any app, not only when Flow is in front: | Hotkey | What it does | Setting key | |---|---|---| | `⌥⌘V` | Open the palette at clipboard history | `keyboard.global_clipboard` | | `⇧⌘,` | Open the palette at snippet search | `keyboard.global_snippets` | | `⇧⌘1` | Paste the clipboard cycle's next entry | `keyboard.global_clipboard_cycle` | | `⇧⌘2` | Start the clipboard cycle over | `keyboard.global_clipboard_cycle_reset` | Rebind them in Settings › Keyboard, in the "Global hotkeys" rows. A stored value is a chord such as `ctrl+meta+Space` or `shift+meta+Comma`, and `none` turns a hotkey off. If macOS refuses a hotkey, or another app already owns it, Flow warns and Settings shows why. The in-app `⇧⌘P` palette keeps working either way. The matching palette actions are unbound inside Flow. Bind any of them in Settings › Keyboard (see [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md)): | Palette label | Setting key | |---|---| | Clipboard history | `keyboard.clipboard_history` | | Search snippets | `keyboard.search_snippets` | | Create snippet | `keyboard.create_snippet` | | Import snippets | `keyboard.import_snippets` | | Export snippets | `keyboard.export_snippets` | | Paste next from clipboard cycle | `keyboard.clipboard_cycle_next` | | Reset clipboard cycle | `keyboard.clipboard_cycle_reset` | | Pick color | `keyboard.pick_color` | ## Snippets ### The snippet library Your snippets live in one file, `~/.flow/snippets.json`, on this Mac only. Each snippet has: - **Name** (required). - **Keyword** (optional). Whitespace is stripped; by convention it starts with `;`, as in `;uuid`. - **Tag** (optional, one per snippet). The tag filter ignores case. - **Body**: the text, with any [placeholders](#placeholders). - Whether it is **pinned**, how many times it was used (pastes, copies and expansions) and when it was last used. The file is a pretty-printed JSON array you can edit by hand; Flow notices outside changes. Only `name` is required: ```json [ { "id": "6f1c2a8e-3b4d-4f0a-9c1e-2d7b8a9f0e11", "name": "New UUID", "keyword": ";uuid", "tag": "", "body": "{uuid}", "pinned": false, "used": 0, "last_used": null } ] ``` Flow also reads the array wrapped in an object (`{"snippets": [...]}`). When it reads the file, an entry that doesn't parse or has a blank name is skipped, a missing or repeated `id` is replaced, and a keyword that repeats an earlier snippet's is cleared so keywords stay unique. Flow writes each change on its own (a create, an edit, a pin, a use count) rather than rewriting the whole library, so the palette, a keyword expansion and a hand edit can't undo each other. A file that isn't a snippet list is never overwritten. If the file didn't read back whole, Flow first copies it to `snippets.json.bak`. ### Search and paste snippets Press `⇧⌘,` (or run **Search snippets** from the palette). The list shows **Pinned**, then **All snippets**. Type to search by name; a keyword that contains what you typed matches too. The detail pane shows the raw body, a **Pastes as** preview and the snippet's information. | Key | Action | |---|---| | `↑` `↓` (also `⌃P` `⌃N`, `⌃K` `⌃J`) | Move the highlight | | `↩` | Paste | | `⌘↩` | Copy to the clipboard | | `⌘K` | Actions | | `⌘E` | Edit | | `⌘N` | New snippet | | `⌃D` | Pin or unpin | | `⌃X` | Delete (`⌘Z` undoes while the toast shows) | | `⇥` / `⇧⇥` | Cycle the tag filter | A double click pastes too. When you summoned the palette over another app, ↩ pastes there with the caret placed at `{cursor}`. Over Flow, the snippet goes into the focused pane; with no pane, it is copied. The palette's top-level search also lists the three best-matching snippet names once you have typed two characters; ↩ there pastes as well. If a snippet has `{argument}` placeholders, ↩ first opens a step with one field per argument (defaults filled in) beside a live **Pastes as** preview. ⎋ goes back. ### Create and edit snippets Run **Create snippet**, or press `⌘N` in the list (`⌘E` edits the highlighted one). The form has: - **Name**: a blank name refuses the save. - **Snippet**: the body. Typing `{`, or the **{ } Placeholder** button, opens a picker of placeholders with live previews; its **Snippet…** row lists your snippets, to inline one. - **Keyword**: a keyword another snippet already has refuses the save. Two cases only warn: a keyword that sits inside another snippet's keyword (such as `;u` and `;uuid`), and a keyword with no symbol in it. - **Tag**: None, one of the tags in use, or a new one. A preview beside the form shows what the snippet pastes and which arguments it asks for. In clipboard history, `⌘S` on a text entry opens this form with that text as the body. ### Import and export - **Export snippets** writes your library to `~/Downloads/flow-snippets.json`, in the same format as `~/.flow/snippets.json`. - **Import snippets** opens a file picker. It reads Flow's own format or a Raycast snippet export (an array of objects with `name`, `text` and `keyword`): ```json [ { "name": "Email sign-off", "text": "Thanks,\n{cursor}", "keyword": ";thx" } ] ``` Imported snippets are added to the end of your library. One with the same name and body as a snippet you already have is skipped, and an imported keyword that another snippet already uses is dropped. The footer reports how many were added and skipped. ### Keyword expansion Typing a snippet's keyword in any app, Flow's own panes included, replaces it with the snippet. 1. Give a snippet a keyword, such as `;sig`. 2. Open Settings › Clipboard and, under **Snippets**, click **Grant Accessibility…**. Keyword expansion needs the macOS Accessibility permission to see what you type in other apps. 3. Type the keyword anywhere. It expands as soon as you type its last character; no space or other delimiter is needed. How matching works: - Flow watches only for keywords: it keeps the last few characters you typed (as many as your longest keyword) in memory, never on disk and never in a log. It only listens; it never blocks or changes a keystroke. - When several keywords match, the longest one that the typed text ends with wins. If one keyword sits inside another (`;u` and `;uuid`), the shorter one fires first and the longer one can't be typed. The form warns about this. - A click, an arrow or navigation key, Return, Tab, Escape, any `⌘` or `⌃` chord, or switching apps starts the typed text over. `⌫` removes the last character. - A snippet with `{argument}` placeholders opens the palette's argument step over the app you were typing in (the keyword is already erased), and pastes on ↩. - To insert the text, Flow briefly puts it on the clipboard, pastes it, and then restores what was there, unless you copied something new in the meantime. When the clipboard can't be borrowed safely (for example it holds a password manager's copy, or Flow isn't allowed to read it without asking), Flow leaves the clipboard alone and types the text instead. Expanded text never lands in clipboard history. Keywords don't expand: - in password fields (macOS keeps secure input from every app); - while Flow's palette is open, or while a Settings row is recording a shortcut; - while Flow is locked behind the paywall; - when an argument snippet's keyword is typed into a Flow field that isn't a terminal (the keyword is typed back so nothing is lost). Only one running copy of Flow expands keywords at a time. Settings › Clipboard › **Keyword expansion** shows the expander's state: | Status | Meaning | |---|---| | Running — listening for keywords in every app. | Working | | Idle — no snippet has a keyword yet. | Add a keyword to a snippet | | Waiting for Accessibility — grant it to expand keywords in every app. | Click **Grant Accessibility…** | | Another Flow is expanding snippets. | Another copy of Flow holds the expander; this one takes over when it quits | | Paused while flow is locked. | The paywall is up | | Off. | `snippets.expand` is off | | Couldn't start: … | macOS refused; Flow retries | ### Placeholders Placeholders are words in braces inside a snippet's body. Attribute values may be quoted or bare (`key=value` runs to the next space). | Placeholder | Pastes | |---|---| | `{cursor}` | Nothing; the caret ends up here | | `{clipboard}` | The clipboard's text now | | `{clipboard offset=N}` | The Nth earlier text in clipboard history (`offset=1` is the one before the latest) | | `{uuid}` | A new random UUID (v4, lowercase) | | `{date}` | Today's date, `MMM d, yyyy` by default | | `{time}` | The time, `h:mm a` by default | | `{datetime}` | `MMM d, yyyy 'at' h:mm a` by default | | `{day}` | The weekday name (`EEEE`) | | `{branch}` `{repo}` `{cwd}` `{pr}` | The focused session's branch, repository, directory (home shortened to `~`) and pull request number (no `#`) | | `{selection}` | The text selected in the app you summoned the palette over | | `{argument name="X" default="Y" options="a,b"}` | A value you're asked for before pasting | | `{snippet name="X"}` | Snippet X's body, inlined | Details: - **Dates and times** take `format="…"`, built from `yyyy yy MMMM MMM MM M dd d EEEE EEE HH H hh h mm m ss s a`, with literal text in single quotes. They also take `offset="+1d"`: signed counts of `m` (minutes), `h`, `d`, `w`, `M` (months) and `y`, several separated by spaces. Example: `{date format="yyyy-MM-dd" offset="+1w"}`. - **Arguments**: a missing name is called `argument`. With no `default`, the first of `options` is the default. Arguments of inlined snippets are asked for too, once each. - **Inlined snippets** are guarded against loops and nest at most 8 deep. An unknown name previews as `‹X›`. - **Modifiers**: any placeholder except `{cursor}` takes `| modifier` pipes, applied in order: `uppercase`, `lowercase`, `trim`, `percent-encode`, `json-stringify`, `raw`. Example: `{clipboard | trim | uppercase}`. - Anything else in braces, an unknown modifier included, stays as literal text. ## Clipboard history ### What gets recorded Recording is on by default (`clipboard.enabled`). Flow keeps: - plain text, up to 2 MB per copy; - images (PNG, and TIFF converted to PNG); - a copied file, as its path. Each entry is classified as **Text**, **Link** (a single `http`, `https`, `ftp`, `mailto` or `file` URL), **Code** (shell commands and code-shaped text), **Image** or **Color** (`#rgb`, `#rrggbb` and their alpha forms, `rgb()`, `rgba()`, `hsl()`, `hsla()`). Copying the same thing again moves it back to the top instead of adding a duplicate. Flow never records: - whatever was on the clipboard when it started, or anything copied while recording is off or Flow is locked; - copies an app marks as concealed, transient or auto-generated (password managers mark theirs this way). Flow checks the marks before reading any content; - copies from known password managers, including 1Password, Bitwarden, Dashlane, KeePassXC, KeeWeb, Keychain Access, Apple Passwords, LastPass, Enpass, Strongbox, MacPass, Proton Pass and NordPass; - copies from apps you list under **Ignored apps**; - text over 2 MB; - text Flow put on the clipboard itself while expanding a snippet. **Secrets are masked.** Text that looks like a secret (API tokens, private keys, credentials in a URL, JWTs, high-entropy strings that aren't paths or identifiers, a Puddle join link or pairing token) is kept, but its preview shows only a known token prefix and a row of dots until you choose **Reveal**. A masked entry is never used for search by meaning and can't be saved as a snippet. ### Permissions Settings › Clipboard › **Permissions** shows two macOS permissions: - **Paste access.** On macOS 15.4 and later, reading what other apps copy is gated by System Settings › Privacy & Security › Paste from Other Apps. The row reads **Allowed**, **Will ask on first copy** (Flow's first read raises the system prompt), **Asks each time flow reads a copy** or **Denied — flow can't read copies**. While it is set to ask or deny, Flow reads nothing. **Open System Settings** goes to the pane. - **Accessibility (paste into other apps).** Granted, ↩ in the palette pastes straight into the app you summoned it over. Not granted, ↩ copies and you paste with `⌘V` yourself. ### Browse and search history Press `⌥⌘V` from any app, or choose **Clipboard history** in the palette (it sits in the "Clipboard & links" group, beside go links). Entries are grouped under **Pinned**, **Today**, **Yesterday**, **This week**, **Last week**, **This month**, **Last month**, then month names and years. Results are always pinned first, then newest first. An entry matches your query when: - the query appears anywhere in its text (case-insensitive), or every word of the query does; - the query is a tight abbreviation of the start of its first line (`gst` finds `git status`); - its meaning is close to the query (see [Search by meaning](#search-by-meaning)). `⇥` / `⇧⇥`, or the filter pill, cycles the type filter: **All types**, **Text**, **Links**, **Code**, **Images**, **Colors**. | Key | Action | |---|---| | `↑` `↓` (also `⌃P` `⌃N`) | Move the highlight | | `↩` | Paste into the app or pane the palette was opened over (copy only when there is none) | | `⌥↩` | Paste as plain text (not for images) | | `⌘↩` | Copy to the clipboard and close | | `⌃D` | Pin or unpin | | `⌃X` | Delete the entry (asks first) | | `⌘O` | Open a link in a webview tab | | `⌘S` | Save a text entry as a snippet | | `⌘K` | Actions | | `⇥` / `⇧⇥` | Cycle the type filter | | `⎋` | Clear the query, then go back | The `⌘K` menu lists the actions that apply to the highlighted entry: **Paste**, **Paste as plain text**, **Copy to clipboard**, **Set clipboard head** (see [The clipboard cycle](#the-clipboard-cycle)), **Open in webview**, **Pin** / **Unpin**, **Reveal** / **Hide** for a masked entry, **Delete entry**, **Clear history…** and **Save as snippet**. **Open in webview** works only for links and only while [webview tabs](https://flow.worldbreakstudios.com/docs/workspace/webview-tabs.md) are on. **Save as snippet** works for text, code and links, never for images, colors or masked entries. **As a side column.** With the palette already open on another step, pressing the clipboard hotkey opens history as a column beside it instead of replacing the step. There, ↩ and ⌥↩ insert the entry's text into the palette's current field (on one line for a single-line field); images and masked entries can't be inserted. ⎋ clears the column's query, then closes the column. Pressing the hotkey again closes it too. ### Search by meaning Besides matching text, clipboard search can find entries by meaning, using Apple's built-in English sentence embeddings. It runs entirely on your Mac, with no model download. Only non-sensitive text is indexed (the first 2,000 characters of each entry), and search by meaning starts once at least 50 entries are indexed. If your Mac doesn't have the English sentence model, search stays text-only. ### Retention and clearing History has no size limit. **Keep history** (`clipboard.ttl_days`) removes unpinned entries whose last copy is older than the chosen age; Flow prunes at launch and hourly. Pinned entries never expire. | Keep history | Stored value | |---|---| | Forever (default) | `0` | | 1 day | `1` | | 7 days | `7` | | 30 days | `30` | | 90 days | `90` | | 1 year | `365` | **Clear history…**, in Settings › Clipboard › Storage or the `⌘K` menu, removes every unpinned entry after a confirmation. Pinned entries are kept. ### Read history from the command line `flow-cli read clipboard` lists entries, pinned first, then newest first (50 unless you pass `--limit`): ```sh flow-cli read clipboard --query "git status" --limit 5 ``` Each entry has `id`, `kind`, the preview text (masked when sensitive), `pinned`, `times_copied`, `last_copied` and `source`; the reply also has `more` and `total`. A query never matches a sensitive entry. The command is read-only. ## The clipboard cycle The clipboard cycle pastes history entries one after another from any app, without opening the palette. 1. Optionally open clipboard history and type a query or pick a type filter. The cycle walks the last query and filter you used there. 2. Press `⇧⌘1`. Flow pastes the newest matching entry, pinned entries first. 3. Press `⇧⌘1` again for the next older entry, and so on. After the last one, a toast says "End of clipboard cycle"; it doesn't wrap around. 4. Press `⇧⌘2` to start over from the top. The query and filter stay. Where each press pastes is decided at the press: the app in front, or the app the palette was summoned over if the palette is showing; with Flow in front, the focused pane; otherwise the entry is only copied. - In clipboard history, `⌘K` › **Set clipboard head** makes the next `⇧⌘1` start at that entry. While a cycle is active, the card marks the entry that pastes next. - The cycle walks a snapshot of up to 5,000 entries taken at the first press, so an entry moving to the top as it's pasted doesn't change the order. - Changing the query or filter in the card starts the cycle over from the top. After more than 5 minutes without a press, the next press forgets the query and filter as well. - A press while a paste is still in progress does nothing. ## Pick color **Pick color** (in the palette's "Clipboard & links" group) closes the palette and opens the system color sampler. Click anywhere on screen and Flow copies the color as uppercase hex, `#RRGGBB`. While history is recording, the copy lands there too, and the toast says so. On a macOS with no color sampler, Flow shows "This macOS has no color sampler". ## Settings Settings › Clipboard. These are app-wide settings; they can't be set per repository. | Key | Type | Default | Effect | |---|---|---|---| | `clipboard.enabled` | boolean | `true` | **Record clipboard history.** Off, nothing new is recorded | | `clipboard.ttl_days` | number (days) | `0` (forever) | **Keep history.** Unpinned entries older than this are removed. A hand-edited number not in the list is kept as stored | | `clipboard.ignore_apps` | array of bundle ids | none | **Ignored apps.** Copies from these apps are never recorded. The field takes comma-separated ids and saves on ↩ or when you leave it | | `snippets.expand` | boolean | `true` | **Expand snippet keywords.** Needs Accessibility | The page also has rows without a key: **Keyword expansion** (the expander's status and **Grant Accessibility…**), **Paste access** (**Open System Settings**), **Accessibility (paste into other apps)** (**Grant…**) and **Clear history…**. Example `~/.flow/settings.json` entries: ```json { "clipboard.ttl_days": 30, "clipboard.ignore_apps": ["com.example.app", "com.example.other"], "snippets.expand": true } ``` ## Limits - Snippets and clipboard history are stored only on this Mac. - Keyword expansion never works in password fields. - Pasted from the palette into a Flow pane, `{clipboard offset=N}` uses the current clipboard, not an earlier history entry. - Search by meaning is English only. --- # Tool pages URL: https://flow.worldbreakstudios.com/docs/features/tool-pages Register a command-line tool as its own full-page terminal in the sidebar's Tools band, and arrange the band in Settings › Tools. A tool page gives a command-line program you use all the time (`htop`, `lazygit`, a log viewer, a dev server) its own full-page terminal, one click away in the sidebar's **Tools** band. Tool pages sit outside your sessions and labels, so they stay put whichever session you're in. ## What a tool page is - Each registered tool has a **name**, a **command**, a **directory** and an optional **icon**. - Opening its page the first time starts your login shell in the tool's directory and types the command into it. Because the command runs inside a shell, the terminal stays open when the command finishes. - The tool keeps running while you're on other pages. Coming back shows it where you left it. - If the shell itself exits, its last screen stays readable. Press ↩, or open the page again, to relaunch the command. - A command whose first word is `drop` runs the copy of `drop` that ships with Flow, so it works without anything on your `PATH`. - Tool pages aren't restored after Flow relaunches; each one starts fresh on its first visit. On a tool page you type straight into its terminal. `⌘C` copies the selection and `⌘V` pastes; other `⌘` shortcuts keep their usual meaning. ## Add a tool 1. Open Settings (`⌘,`) › **Tools**. 2. Under **Add a tool**, fill in: - **Name**: the label in the sidebar. Left blank, the command is used. - **Command**: what to run (required), for example `htop` or `npm run dev`. - **Directory**: where it runs. `~` and `~/…` work; left blank, it is `~`. 3. Press ↩ in any of the fields, or click **Add tool** (the button needs a name as well as a command). The new tool joins the end of the Tools band. Names don't have to be unique in Settings, but the command line (below) addresses tools by name. ## The Tools band The Tools band sits at the top of the sidebar, under the header and above your sessions. It lists, in the order you set: - your tool pages; - the built-in pages: the [Trash](https://flow.worldbreakstudios.com/docs/features/trash.md) (with its worktree count), the [Task Manager](https://flow.worldbreakstudios.com/docs/features/task-manager.md) (with a live CPU and memory readout), [Schedules](https://flow.worldbreakstudios.com/docs/features/schedules.md), the two [pull request](https://flow.worldbreakstudios.com/docs/features/pull-requests.md) pages, Reviews and My PRs, and the [Puddle](https://flow.worldbreakstudios.com/docs/features/puddle.md); - after those, any flow tools you have installed (see [Custom tools](https://flow.worldbreakstudios.com/docs/cli/custom-tools.md)), in name order. Click a row to open its page. `⇧⌘↑` / `⇧⌘↓` (**Previous sidebar tab** / **Next sidebar tab**) walk the visible tool rows and your sessions. With every row switched off, the band disappears. Label windows have no Tools band. Some built-in rows depend on experiments: Schedules shows only while Schedules is on (`features.automations`), Reviews and My PRs only while Pull requests is on (`features.pull_requests`), and the Puddle only while Puddles is on (`features.remote`). Turn them on in Settings › Experiments. A row hidden this way keeps its place and its switch, so it comes back where it was. The default order, before you change it, is the Trash, your tool pages, the Task Manager, Schedules, Reviews, My PRs and the Puddle, all switched on. ## Arrange the band in Settings › Tools The **Sidebar** card in Settings › Tools has one row per entry of the band, in sidebar order. Each row shows the tool's icon, its name (built-ins carry a **Built-in** pill) and a description, or for your own tools the `command · directory` line. - **Reorder**: drag a row by its grip. An accent line shows where it will land. - **Show or hide**: the switch at the end of a row takes it out of the band and the `⇧⌘↑` / `⇧⌘↓` walk. The tool stays registered and keeps its place. - **Remove**: the trash icon on one of your own tools unregisters it. Built-ins can only be switched off. - **Icon**: while tab icons are on, your own tools get an icon picker. **Automatic** (the default) uses the icon of the program the command runs, else a generic command-line icon. See [Tab icons](https://flow.worldbreakstudios.com/docs/features/tab-icons.md). A switched-off row is dimmed in the card. Settings › Tools also holds settings for some built-in pages (such as the Trash's options) and, with Puddles on, the sync switch described below. ## Go to first tool page **Go to first tool page** (`keyboard.go_to_tool`, unbound by default) opens your first registered tool page. The palette lists it only while you have at least one tool page. Bind it in Settings › Keyboard (see [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md)). **Switch session…** in the palette also lists the tools in the band, so you can type a tool's name, or its command, to jump to it. ## Manage tools from the command line `flow-cli tool cli` adds, edits and removes tool pages by name, the same list as Settings › Tools: ```sh flow-cli tool cli add htop --command htop flow-cli tool cli add web --command "npm run dev" --cwd ~/src/app flow-cli tool cli edit web --enabled false # hide it from the band flow-cli tool cli edit web --icon "" # back to the Automatic icon flow-cli tool cli remove web flow-cli read tools # the registry as JSON ``` - `add` needs `--command` and refuses a name that's already registered (use `edit`). `--cwd` defaults to `~`. - `edit` changes only the flags you pass. - Fields with control or formatting characters are refused. - `--icon` takes a tab-icon id. The sidebar follows each change at once. For the rest of the CLI, see [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md). ## Where tools are stored Tool pages are stored in your settings under `tools.cli`, and the band's order and on/off switches for the built-ins under `tools.lineup`. Both are JSON arrays stored as **strings**, so prefer Settings › Tools or `flow-cli tool cli` over editing them by hand. One tool entry looks like this (`enabled` appears only when `false`, `icon` only when you picked one): ```json { "name": "web", "command": "npm run dev", "cwd": "~/src/app", "enabled": false, "icon": "node" } ``` With `tools.cli` unset you have no tool pages. A value that can't be read counts as no tools. ## Sync tools across your Macs With [Puddles](https://flow.worldbreakstudios.com/docs/features/puddle.md) on, Settings › Tools › **Puddle** has **Sync CLI tools with your devices** (`tools.sync`, boolean, default `true`). A tool added, changed or removed on one of your Macs is added, changed or removed on the others that sync theirs. What carries over is the name, command, on/off switch and icon, plus the directory when it is inside your home folder (it's rewritten for the other Mac's home). What doesn't is a directory outside your home (kept as is), the programs the command needs (install them on each Mac), the band's order, the built-ins' switches and running terminals. A device's space lists its tools, and **Add to this Mac** copies one here. See [Sync overview](https://flow.worldbreakstudios.com/docs/sync/overview.md). ## A flow tool's Data page Flow tools, the custom tools you build or install under `~/.flow/tools/` (see [Custom tools](https://flow.worldbreakstudios.com/docs/cli/custom-tools.md)), also appear in the Tools band. Hovering a flow tool's row shows a **Data** chip that opens its **Data** page; a tool that can't launch opens its Data page directly, which says what's wrong. The Data page is a read-only browser over the tool's stored data: - **Header**: the tool's title and name, its state, and **Open** for a ready tool. A banner lists any problems. - **Toolbar**: one segment per collection, one per device whose rows the collection holds (**All devices** first), and a text filter over every cell. - **Table**: columns for the device, the row id and each field, in name order. Click a header to sort by it (ascending, then descending; numbers sort as numbers). Rows not yet confirmed are in italics with a **pending** tag; archived rows are dimmed with an **archived** tag. The table shows at most the first 500 rows and says so. - **Detail**: select a row to see every field as JSON. The footer counts the rows. The page updates live as the data changes. Keys: `↑` / `↓` move the selection, `⎋` clears it, and `/` focuses the filter (↩ or `⎋` hand the keyboard back). `flow-cli tool data NAME` (or `flow-cli tool open NAME --data`) opens a flow tool's Data page from the command line. --- # Tab icons URL: https://flow.worldbreakstudios.com/docs/features/tab-icons What decides each tab's icon, how to add or build your own in Settings › Icons, and how overlays badge a tab when Claude Code needs you. Every tab in Flow wears a small card: the logo of the program running in a terminal, or the icon of the tab's kind. A session's row in the sidebar stacks one card per pane, so you can tell at a glance which session runs Claude Code, which runs Neovim and which is a plain shell. Programs can also raise an **overlay**, a badge on the card that says why a pane wants you, such as the amber `?` Claude Code raises while it asks you something. This page covers what picks an icon, how to change the catalog, and how overlays work. ## What decides a tab's icon ### Terminal tabs A terminal tab wears the icon of the program running in it, checked every couple of seconds from the pane's foreground processes. - **The outermost program wins.** Flow picks the outermost process that has an icon, so Claude Code running `cargo test` still wears Claude's icon. - **Runtimes come last.** An icon for a language runtime (Node.js, Python, Bun) counts only when nothing else in the chain has one: a Python script that starts Claude is Claude, and Python alone is Python. - **Shells fill in.** A pane with no match wears the shell's icon; an unknown process is ignored. - **Matching** compares the command's basename, case-insensitively, with a login shell's leading `-` stripped and a version suffix ignored (`python3.12` is `python`). It looks through launchers (`env`, `npx`, `bunx`, `bun x`, `pnpm dlx`, `npm exec`, `uvx`, `uv run` and similar) and interpreters (`node …/claude`, `python -m aider`) to the real program. Icons you added are matched before the built-ins. - **Remote panes** (a session on a remote host) wear the shell's icon: Flow cannot see the programs on the other machine. ### Other tab kinds Files, Notes, PR review, web, New tab and Shells tabs each wear their kind's icon whatever runs in them. These are catalog entries like a program's, so you can replace them. - **PR review tabs** show their pull request's status (the state chip's colour and glyph) once it has been fetched, as long as you have not replaced the built-in PR review icon. - **Web tabs** show the page's favicon once it has loaded, on a background picked from the favicon's own colours. With **Colour cards from favicons** off (`appearance.tab_icon_favicon_ground`), every favicon sits on white. - **Details tabs** always wear a plain glyph; there is no catalog entry for them. - **Tools** in the sidebar's Tools band have icons of their own too. A CLI tool page wears the icon you pick for it in Settings › Tools (or with `flow-cli tool cli edit NAME --icon ID`), else the icon of the program its command runs, else the generic CLI tool icon. The bundled `drop` command wears drop's icon in a pane too. ### Session stacks and tile tabs - In the sidebar, the horizontal tabs and the main pane's header, a session shows a **stack**: the front card is always the session's main pane (never simply the focused one), with up to three cards behind it for its other panes. The tooltip names the program and the pane count, for example `Claude Code · 3 panes`. - A tab in a tile's tab strip shows the single icon of its own pane. ## Turn tab icons on or off **Show tab icons** (Settings › Icons, `appearance.tab_icons`, on by default) draws the cards. Off, tabs go back to plain glyphs, but an overlay still shows as a badge on its own: it is a signal, not decoration. ## The icon catalog The catalog lives in `~/.flow/icons/` (Settings › Icons › Open folder): one image per icon and a manifest, `icons.json`. The folder is global, the same for every checkout and worktree. Flow notices an edit made directly in the folder within a couple of seconds and reloads it. ```json { "icons": [ {"id": "claude", "label": "Claude Code", "match": ["claude"], "tile": "#d97757", "file": "claude.svg"}, {"id": "aider", "label": "Aider", "match": ["aider"], "added": true, "built": {"ground": {"kind": "solid", "stops": ["#336699"]}, "glyph": "A", "font": null}} ], "overlays": [{"id": "question", "glyph": "?", "color": "#e3b341", "border": true, "label": "Question"}], "triggers": {"PermissionRequest": "question", "Stop": "clear"}, "seeded": ["claude", "question", "trigger:Stop"] } ``` | Field | Meaning | |---|---| | `id` | `[a-z0-9-]`, up to 32 characters | | `label` | The name shown in Settings and tooltips | | `match` | The command names that resolve to this icon | | `tile` | `#rrggbb`: the card's colour behind an image | | `file` | An image in the same folder: `.svg`, `.png`, `.jpg` or `.jpeg`, at most 2 MiB | | `built` | A built icon instead of an image: a background (`ground`), a `glyph` and a `font` (or `null`) | | `added` | `true` for an icon you added rather than a built-in | | `seeded` | Every built-in icon, overlay and trigger Flow has ever offered | Flow never overwrites your files. At each launch it adds only the built-ins whose id is not yet in `seeded`, so a built-in you delete stays deleted, while one that is new in a later release still arrives. A manifest that is missing or cannot be read falls back to the built-in icons (Settings › Icons says so), and an entry Flow cannot read is skipped without touching the rest. ### Built-in program icons | Icon | Matches | |---|---| | Claude Code | `claude`, `claude-code` | | Codex | `codex` | | Gemini | `gemini`, `gemini-cli` | | Cursor | `cursor`, `cursor-agent` | | pi | `pi` | | Bun | `bun`, `bunx` | | Node.js | `node`, `nodejs`, `npm`, `npx`, `pnpm`, `yarn` | | Python | `python`, `pip`, `uv` | | Rust | `cargo`, `rustc`, `rustup`, `rust-analyzer` | | Neovim | `nvim`, `neovim`, `vim`, `vi` | | Shell | `zsh`, `bash`, `fish`, `sh`, `dash`, `ksh` | The catalog also holds the tab kinds (Files tab, Notes tab, PR review tab, Web tab, New tab, Shells tab) and the tools (Task Manager, Schedules, Factory, Reviews, My PRs, Trash, Puddle, drop, CLI tool). Their match words are fixed. ## Manage icons in Settings › Icons Settings › Icons lists every icon: programs first, then tools, then tab kinds. Each row shows the real card, the label, its match words (or what the tool or tab kind is), and its status: **Default**, **Replaced** or **Added**. Changes land live on open tabs; a write that fails shows a toast. | Button | What it does | |---|---| | Add icon… | Asks for an image file, then a **Name**, the **Commands to match** and a **Tile colour** | | Create icon… | Opens the icon builder for a new icon | | Replace… | Swaps the icon's image for another file; a built-in becomes Replaced | | Build… / Edit… | Turns the icon into a built one, or edits a built one, in the builder | | Reset | Restores a replaced built-in | | Remove | Deletes an icon you added | | Open folder | Reveals `~/.flow/icons/` in Finder | ### Build an icon The icon builder makes an icon from a background and a glyph, with no image file: 1. Click **Create icon…**, or **Build…** on an existing row. 2. Enter a **Name** and the **Commands to match** (a tool's or tab kind's commands are fixed, so the field is not shown for those). 3. Pick the glyph: **Letters** (one or two letters or digits, in a font from the font picker) or **Emoji** (one emoji, from a searchable grid). With no glyph typed, the name's initials stand in. 4. Pick the background with the ground picker, the same one as in Settings › Sidebar and the label editor. 5. Press Enter or **Create icon** (**Save icon** when editing). Esc leaves a field, then closes the form. The builder shows a large preview and the real card at actual size on a row as you go. A new icon with no commands can still be picked for a tool in Settings › Tools. ## Icon overlays An overlay is a small badge a program raises on its pane's icon, with an optional ring around the card. It works like the unread dot, from inside the pane, but says *why* the pane wants you. `question`, an amber `?` with a ring, is the one built-in overlay. ### Define an overlay Overlays are data: add an entry to the `overlays` list in `~/.flow/icons/icons.json`. ```json { "id": "review", "glyph": "R", "color": "#58a6ff", "border": false, "label": "Review" } ``` | Field | Meaning | |---|---| | `id` | `[a-z0-9-]`, up to 32 characters; `clear` is reserved | | `glyph` | Up to 3 characters of text, or an image file in the same folder (`review.svg`, `.png`, `.jpg`) | | `color` | `#rrggbb`: the badge, and the ring if there is one | | `border` | `true` adds a ring around the card | | `label` | The name in Settings and tooltips, as in `Claude Code · 3 panes · review in pane 2` | The Overlays block in Settings › Icons is read-only: each overlay's preview, its triggers and the one-line command that raises it. ### Raise an overlay from a program Any program can raise an overlay on its own pane with an OSC 9 escape, from a script or over ssh: ```sh printf '\033]9;flow:overlay:review\007' # raise printf '\033]9;flow:overlay:clear\007' # clear ``` These never mark a tab unread, and an id Flow does not know is ignored. ### When an overlay clears A pane holds one overlay, and the last one set wins. It clears on `flow:overlay:clear`; when you press Enter, Esc, Ctrl-C or a digit in the pane (arrow keys do not, because they move through a question's choices); when the pane's program changes or exits; and when the session closes. Overlays are never saved across restarts. ### Where an overlay shows - **Session stacks** (sidebar rows, session tabs): an overlay in any pane of the session shows on the front card, and the tooltip names the pane. - **Tile strip tabs**: each tab shows its own pane's overlay. - **The Flow agent's pill** shows each agent tab's overlay on its card. - With **Show tab icons** off the badge still shows, alone, where the stack would be. ## Overlays from Claude Code ### Triggers The `triggers` map in `icons.json` turns Claude Code hook events into overlays. A key is `Event` or `Event:Tool`; a value is an overlay id or `clear`. These are the built-in triggers: ```json { "PreToolUse:AskUserQuestion": "question", "PermissionRequest": "question", "Elicitation": "question", "PostToolUse:AskUserQuestion": "clear", "UserPromptSubmit": "clear", "Stop": "clear" } ``` - `AskUserQuestion` is a tool, so it fires through `PreToolUse`. `Elicitation` is an MCP server asking for input. - `PreToolUse` and `PostToolUse` need a tool (`Event:Tool`). A bare one is skipped, because it would run on every tool call. - Event names are letters and digits; tool names may also use `_` and `-`. A value must be `clear` or a defined overlay. Anything else is skipped, because triggers are written into a shell script. - Trigger changes apply at the next launch. Removing a trigger takes it out of the script then; its hook entry stays in Claude's settings and does nothing. ### The hooks Flow installs At every launch Flow writes a hook script to `~/.flow/claude-hook.sh` and merges entries that run it into `~/.claude/settings.json`: - the attention events `Notification`, `Stop`, `PermissionRequest`, `Elicitation` and `StopFailure`, which mark the pane's tab unread; - `UserPromptSubmit` (a turn starts) and `PreCompact` (an automatic compaction, the hint that the context is nearly full), which mark nothing unread; - `PreToolUse` for the `AskUserQuestion` tool (a question) and the `Bash` tool (which feeds the Shells tab); - every event one of your triggers names, with a `matcher` for a tool-scoped key. Besides raising overlays, these tell Snooze when a turn starts or ends, when Claude asks a question or for permission, when a turn stops on an error, and when the context is nearly full. The merge is additive: your own hook entries are never removed or reordered, and a `settings.json` that does not parse is left untouched (no hooks are installed then). The script does nothing outside a Flow pane and always exits 0. For what the unread dot and Snooze do with these, see [Notifications and snooze](https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze.md); for Claude Code setup, see [Claude Code](https://flow.worldbreakstudios.com/docs/cli/claude-code.md); for the Shells tab, see [Agent panes](https://flow.worldbreakstudios.com/docs/features/agent-panes.md). ## Check from a shell ```sh flow-cli read icons ``` This prints the catalog as JSON: the icons (a built one's spec under `built`), the overlays, the triggers, whether tab icons are on, each pane's program and active overlay, and each session's stack. ## Settings and files | Key or file | Type | Default | Effect | |---|---|---|---| | `appearance.tab_icons` | bool | `true` | Show tab icons; off restores plain glyphs, overlays stay | | `appearance.tab_icon_favicon_ground` | bool | `true` | Colour a web tab's card from its favicon; off puts favicons on white | | `~/.flow/icons/icons.json` | file | seeded with the built-ins | Icons, overlays, triggers | | `~/.flow/claude-hook.sh` | file | written at launch | The Claude Code hook script; rewritten every launch | | `~/.claude/settings.json` | file | Claude Code's | Gains Flow's hook entries at launch | ## Limits - Programs on a remote host are not seen; those panes wear the shell icon. - Overlay definitions and triggers are edited in `icons.json` only; Settings › Icons shows them read-only. - Trigger changes need a relaunch; icon and overlay edits do not. --- # Flyover terminal URL: https://flow.worldbreakstudios.com/docs/features/flyover The Flyover is a terminal window of its own, outside every session, that you show, hide and minimize with one shortcut. The Flyover is Flow's "global terminal": a separate macOS window with its own strip of terminal tabs that belong to no session or label. Use it for the shell you want one keystroke away whatever you're working on: a quick `git` command, a log tail, a REPL. Its shells keep running while the window is hidden or minimized. ## Show and hide it Run **Toggle Flyover Terminal** from the palette, or press `` ⌘` `` (`keyboard.toggle_flyover`) in any Flow window. One shortcut does three things: - Flyover not open: opens it and gives it the keyboard. - Open but behind other windows, or minimized: brings it forward. - Open and in front: minimizes it to the Dock. `` ⌘` `` is a Flow shortcut, so it works while a Flow window is in front, not from other apps. Rebind it in Settings › Keyboard (see [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md)). The very first time, with no tabs yet, the toggle opens the palette's directory picker so you can choose where the first tab starts; the window opens with that tab. ## The window The Flyover is an ordinary macOS window, not a panel that floats on top. You can move it to another display, put other windows over it, resize it, and minimize or zoom it with its traffic lights. The tab strip fills the title bar: drag its empty part to move the window, and double-click it to zoom. - The red close button hides the window. The tabs and their shells keep running, and `` ⌘` `` shows them again. - Closing the last tab closes the window. - With nothing saved, the window opens at 900 × 440 points, centred at the bottom of the display the main window is on. Flow remembers where you move it and how big you make it. ## Tabs Every Flyover tab is a local terminal; the Flyover holds no webviews, files or other kinds of tab. - **+** in the strip opens a tab in the active session's directory (a remote session's directory isn't used, because Flyover tabs are local). - `⌘T` opens the palette's directory picker and starts a tab where you choose. For a git repository you then pick its main checkout or one of its existing worktrees. - Click a tab to switch to it, or click its **×** to close it. - Closing a tab ends its shell, and its persistent session if it has one. Flyover tabs are saved with your workspace. After Flow relaunches they come back, reattached to their shells where those survived (see [Persistent sessions](https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions.md)); the window stays closed until you toggle it. ## Keys While the Flyover window is in front: | Key | Action | |---|---| | `` ⌘` `` | Minimize the Flyover (it's in front) | | `⌘M` | Minimize | | `⌘T` | New tab, through the directory picker | | `⌘W` | Close the active tab | | `⇧⌘[` / `⇧⌘]` | Previous / next tab | | `⌘C` | Copy the terminal's selection | | `⌘V` | Paste into the terminal | Any other `⌘` shortcut does what it does in Flow's main window, and everything else you type goes to the active tab's shell. The tab keys follow your bindings for **New tab**, **Close tab**, **Previous tab**, **Next tab**, **Copy selection** and **Paste**. ## Mouse - Drag to select text. `⌘C` copies it. - `⌘`-click a link to open it: a URL opens where your link settings send it, a file path opens in the active session's Files tab. - Click an inline image to open it in Preview. - Programs that use the mouse (full-screen terminal apps that turn on mouse reporting) get your clicks; hold `⇧` to select text instead. - The scroll wheel scrolls back through the output, or goes to a program that takes it. ## Drive it from the command line `flow-cli flyover` controls the Flyover from a script or an agent: ```sh flow-cli flyover open # show the window (an error with no tabs) flow-cli flyover close # hide it; tabs keep running flow-cli flyover toggle # same as the keyboard toggle flow-cli flyover new-tab --cwd ~/src/app # new tab there, and show the window flow-cli flyover new-tab --background # new tab without showing or focusing the window flow-cli flyover focus 1 # make tab 1 active and show the window flow-cli flyover close-tab 0 # close tab 0 ``` - Tab numbers start at 0. - `new-tab` without `--cwd` starts in the active session's local directory. It never opens the directory picker. A `--cwd` that isn't a directory is refused. - `open` and `toggle` fail with "the flyover has no tabs" until a tab exists; create one with `new-tab`. - `flow-cli read panes` lists Flyover tabs with `flyover` in place of a session group. See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md) for the rest of the CLI. ## Settings | Key | Type | Default | Effect | |---|---|---|---| | `keyboard.toggle_flyover` | chord | `` ⌘` `` | Toggle Flyover Terminal | | `flyover.window` | object `{x, y, w, h}` | none | The window's last frame, in macOS screen coordinates. Flow writes it after you move or resize the window; on the next open the frame is pulled fully onto a display | You don't need to edit `flyover.window`. Without it, the Flyover opens at its default size and place. --- # Caffeinate URL: https://flow.worldbreakstudios.com/docs/features/caffeine Keep your Mac and its display awake indefinitely, for a while, or until a set time, from the palette, the menu-bar cup or flow-cli. Caffeinate keeps your Mac from going to sleep while it's idle: during a long build, an agent run, or a download. By default it keeps the display awake too. You can caffeinate indefinitely, for a duration, or until a time, from the command palette, the coffee cup in the menu bar, or `flow-cli`. ## Start and stop Open the palette (`⇧⌘P`) and type `caf`, `coffee`, `awake` or `no sleep` to list the Caffeine rows: | Row | What it does | |---|---| | **Caffeinate** | Stay awake indefinitely (listed while off) | | **Decaffeinate** | Let the Mac sleep again (listed while on) | | **Caffeinate for…** | Pick or type a duration | | **Caffeinate until…** | Pick or type a time | | **Caffeinate status** | Shows the menu-bar cup (if hidden) and opens its menu | | **Caffeine in menu bar** | Show or hide the coffee cup | | **Keep display awake** | Whether runs keep the display on too | Besides their labels, the rows come up when the first word you type (two characters or more) is the start of `caffeinate`, `caffeine`, `coffee`, `awake`, `keep awake`, `no sleep`, `amphetamine` or `insomnia`. `sleep` on its own doesn't count, so it still finds the system's Sleep action. Every row is also an action you can bind in Settings › Keyboard; none has a default chord: | Action | Setting key | |---|---| | Caffeinate | `keyboard.caffeinate` | | Decaffeinate | `keyboard.decaffeinate` | | Caffeinate for… | `keyboard.caffeinate_for` | | Caffeinate until… | `keyboard.caffeinate_until` | | Caffeinate status | `keyboard.caffeine_status` | | Caffeine in menu bar | `keyboard.toggle_caffeine_menu_bar` | | Keep display awake | `keyboard.toggle_caffeine_display` | When a run starts, a toast confirms it ("Caffeinated indefinitely", or "Caffeinated until 6:00 PM · 1h 30m"). Decaffeinate shows "Decaffeinated — your Mac can sleep". ## Type it inline Type the whole request in the palette and press ↩ on the card it shows. A query that starts with `caf` (or any word starting with it, like `caffeinate`), `awake`, `keep awake` or `coffee`, followed by a duration or an `until` time, makes a card: ```text caf 90m caffeinate 2h keep awake 1:30 awake until 6pm coffee till noon ``` The card shows when the run would end. In the palette a bare time needs `until`, `till` or `til` before it (`caf 6pm` makes no card). ## Durations and times **Caffeinate for…** takes a duration, and **Caffeinate until…** a time. Both drill-ins list presets under your query; `⇥`, or `→` with the caret at the end, opens them from the highlighted row. Durations: - `90m`, `2h`, `1h 30m`, `1.5h`, `45s`. Units are `h` / `hr` / `hrs` / `hour` / `hours`, `m` / `min` / `mins` / `minute` / `minutes` and `s` / `sec` / `secs` / `second` / `seconds`. - A bare number is minutes: `90`. - `1:30` (hours and minutes), `half hour`, `half an hour`, `an hour`. - At most 48 hours. - Presets: 15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, 8 hours, 12 hours. Times: - `6pm`, `6:30pm`, `6p`, `17:30`, `1730`, `930am`. A leading `until`, `till` or `til` is fine. - `eod` or `end of day` (6:00 PM), `noon`, `midnight` (12:00 AM tomorrow). - `tomorrow` (or `tmrw`) anywhere moves the time to tomorrow: `tomorrow 9am`. - A time that has already passed today means tomorrow. - Without am/pm or a leading zero, an hour under 12 that has already passed today means the afternoon: `6` at 2 PM is 6 PM. `09:00` and `0030` are read as 24-hour times. - Presets, in the order they fall: End of day, Midnight, Tomorrow morning (9 AM), Lunch (noon). ## The menu-bar cup While **Caffeine in menu bar** is on (the default), a coffee cup sits in the macOS menu bar: with steam while caffeinated, crossed out and dimmed while not. Beside it, a countdown shows the time left (`∞` for an indefinite run). Its tooltip is the current status, such as "Caffeinated (1h 29m left) · until 6:00 PM · display on". Click the cup for its menu: - **Decaffeinate** while on, or a dimmed "Not caffeinated". - **Caffeinate**: **Indefinitely**, **10 Minutes**, **30 Minutes**, **1 Hour**, **2 Hours**, **4 Hours**, **8 Hours**, **12 Hours**, and **Custom…**, which opens the palette with `caf ` typed so you can enter any duration or time. - While on, a checked line with the current run: "Until 6:00 PM — 1h 29m remain" or "Indefinitely — 5m 3s so far". - **Keep display on** (`⌥D` while the menu is open). - **Hide from menu bar**. Bring the cup back with the palette's **Caffeine in menu bar** or **Caffeinate status**. ## How a run behaves - Caffeinate holds a macOS power assertion against idle system sleep, plus one against display sleep while **Keep display awake** is on. Both are named "Flow Caffeinate", which is how they appear in `pmset -g assertions`. - Turning **Keep display awake** on or off during a run changes that run too, as well as later ones. - A timed run ends by itself. Flow then tells you "Caffeine wore off — your Mac can sleep". That message is the `caffeinate` notification kind (a toast by default); change how it's delivered in Settings › Notifications (see [Notifications and snooze](https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze.md)). - Quitting Flow releases the assertions, so your Mac can sleep again. A run that hasn't expired resumes when Flow next launches; one that expired in the meantime is cleared without a message. - While Flow is locked behind the paywall no run can start, the assertions are released and the cup is hidden. The run is kept and resumes once Flow is unlocked, unless it expired in between. ## From the command line `flow-cli caffeinate` takes the same durations and times: ```sh flow-cli caffeinate on # indefinitely flow-cli caffeinate 90m # for 90 minutes (also 1:30, 2h) flow-cli caffeinate until 6pm # until a time (also until eod, until tomorrow 9am) flow-cli caffeinate 6pm # a bare time that isn't a duration also works here flow-cli caffeinate off # let the Mac sleep ``` `indefinitely` and `indefinite` mean `on`; `stop` means `off`. The reply has the caffeine state and its status line. See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md). ## Settings Caffeinate's settings have no rows in the Settings window. Change them with the palette rows and the cup's menu, or with `flow-cli settings set`: | Key | Type | Default | Effect | |---|---|---|---| | `caffeine.display` | boolean | `true` | Runs keep the display awake too (**Keep display awake**, the menu's **Keep display on**) | | `caffeine.menu_bar` | boolean | `true` | Show the coffee cup in the menu bar (**Caffeine in menu bar**, **Hide from menu bar**) | | `caffeine.menu_bar_timer` | boolean | `true` | Show the countdown beside the cup | For example, to keep the cup but drop its countdown: ```sh flow-cli settings set caffeine.menu_bar_timer false ``` Flow also stores the current run under `caffeine.state` (absent while off); don't edit it by hand. Use the actions instead. --- # Settings URL: https://flow.worldbreakstudios.com/docs/configuration/settings Open and search the Settings window, change settings from the command palette or flow-cli, and find where settings.json lives. Flow keeps almost every preference in one place: the Settings window. Each row there is also reachable from the command palette and from `flow-cli`, and every value lands in one flat JSON file, `~/.flow/settings.json`. This page covers how to find and change a setting, where the file lives, and a reference of the setting groups. ## Open the Settings window - Press `⌘,` (the `open_settings` shortcut), or click the gear chip in the sidebar. - Settings opens in its own window with a section list on the left. The "‹ Workspace" link at the top of that list closes the window and brings the main window forward. `⌘W` closes it too. - Changes save the moment you make them. There is no Apply or Save button. The window follows the App chrome text size (`⌘=` / `⌘-` outside a terminal), so its list and controls grow with the rest of Flow. ## Search settings Type in the search field at the top of the section list. A row matches when every word you type appears somewhere in its label, its section, its block caption, its keywords, its option labels or its current value. Rows whose label starts with your text rank first, then rows whose label contains it, then everything else. ## Change settings from the command palette You don't have to open the Settings window to change a setting: 1. Press `⇧⌘P` and type part of a setting's name ("font size", "merge", "dark"). 2. Matching settings appear as rows with their real control: a switch, a segmented control, a stepper, a text field or a list. 3. Press `↩` to act on the selected row. A toggle flips, a segmented control moves to the next option, a stepper or text row starts an inline edit, and a list, terminal theme or font opens its options with a live preview. 4. Use `←` / `→` to step a value, and `⌘⌫` to reset a row to its default. The footer confirms each change ("Label → value") with an Undo link. Shortcut rows only appear when your query contains a word starting with "shortcut", "key", "hotkey" or "binding". To browse settings in the palette instead of searching from its root, run **Browse settings…** (the `browse_settings` action, unbound by default; bind it in [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md)). It shows every row under section chips: `⇥` / `⇧⇥` move between chips. ## Change settings from a shell `flow-cli` writes a Settings row exactly as clicking it does, with the same validation and side effects. Each row has a stable id, listed in the reference tables below. ```sh flow-cli read settings-catalog font size # matching rows: id, value, default, control flow-cli settings apply appearance.mode dark # write a row by id flow-cli settings reset appearance.mode # back to the row's default flow-cli reveal-setting appearance.mode # open the Settings window at that row flow-cli read settings terminal.font_size # one raw key from settings.json ``` Values for `settings apply`: `true` / `false` for a toggle, a number for a stepper (clamped to its range), the option value for a choice, the text for a text row, a family name (or `""` for the default) for a font, and a chord such as `cmd-shift-k` (or `none`) for a shortcut. The reply lists every settings key the write moved, before and after, so you can undo it. Buttons and editors (the license key, terminal colors, the tool lineup and similar) refuse `apply`: open them with `flow-cli reveal-setting` instead. `flow-cli settings set KEY VALUE` writes a raw key that no row writes (a label's terminal theme, a sidebar ground). Not every raw key applies live. See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md) for the full command reference. ## Where the settings file lives | File | What it holds | |---|---| | `~/.flow/settings.json` | Every Settings row's value as a flat JSON object (`"appearance.mode": "dark"`, `"keyboard.split_right": "cmd-d"`…), plus an optional `"!important"` list of keys (see [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md)). | | `~/.flow/repo_config/REPO/flowspace.json`, `…/drop.json` | Your per-repository overrides. See [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md). | | `.flowspace.json` in a checkout | Workspace profiles, run commands and other repository keys. See [.flowspace.json](https://flow.worldbreakstudios.com/docs/configuration/flowspace.md). | | `~/.flow/snippets.json`, `~/.flow/golinks.json`, `~/.flow/icons/`, `~/.flow/skills/` | Snippets, go links, tab icons and agent skills. These are edited on their own pages, not in Settings. | Settings › Advanced › Diagnostics has a **Reveal settings.json** button that shows the file in Finder. ## Edit settings.json by hand Flow reads `settings.json` once, at launch, and rewrites the whole file from memory every time a setting changes. An edit you make while Flow is running is therefore overwritten by the next change, and nothing applies it in the meantime. To edit the file by hand: 1. Quit Flow (`⌘Q`). 2. Edit `~/.flow/settings.json`. Keep it a single flat JSON object of key → value. 3. Launch Flow again. A missing or unreadable file never stops Flow from launching: it starts with every setting at its default. While Flow is running, use `flow-cli settings apply` or `flow-cli settings set` instead of a text editor. > **Tip:** Removing a key resets that setting to its built-in default. ## Experiments Settings › Experiments holds feature flags. Each is a `features.KEY` boolean, off by default. Beta features are on their way to shipping; Alpha features may still be removed. | Setting | Feature | Stage | What it turns on | |---|---|---|---| | `features.flow` | Flow agent | BETA | Bottom command bar that drives this workspace through an embedded agent. `⌃⌘J` toggles it. | | `features.web_tabs` | Web tabs | BETA | Browser tabs beside your terminals: the New tab page's Web card, New webview…, and opening links in a Flow tab | | `features.remote` | Puddles | BETA | Pair your other devices into a puddle by QR code or link (Tools › Puddle). | | `features.pull_requests` | Pull requests | BETA | The Reviews and My PRs pages in the Tools band: pull requests waiting on your review and your own open ones | | `features.automations` | Automations | BETA | The Schedules page: run commands on a cron. Off, no schedule runs — your schedules are kept for when you turn it back on | | `features.factory` | Factory | ALPHA | The Factory page, from the sidebar header's factory chip or ⌘;: sessions you add move through their own plan's gates, scored by proven checks. Off, your plans are kept | | `features.decisions` | Decisions | ALPHA | Bring your own decisions model — a hosted vendor like Jev or OpenAI, or a local one like Laya — for features that make typed decisions. Setup: Settings › Decisions | | `features.notebooks` | Notebooks | ALPHA | Run Python, JavaScript and shell fences in a Notes page's Preview, with inline outputs and charts, and sliders that re-run them live | | `features.link_router` | Link router | ALPHA | With Flow as your default browser, links open where your rules say: a Flow tab, a PR review session, another browser or app, or a chooser. Setup: Settings › Link router | | `features.claude_images` | Claude image previews | BETA | Hover an [Image #N] placeholder in a Claude Code session to preview the pasted image; click it to open it in a Files tab | Turning an experiment off keeps its data (schedules, plans, settings) for when you turn it back on. While Decisions or Link router is off, its Settings section is hidden. ## Reference of setting groups The sections of the Settings window, in order: | Section | What it covers | Details | |---|---|---| | About | Version, updates, license, open-source credits | [Activation](https://flow.worldbreakstudios.com/docs/licensing/activation.md) | | General | Login item, sessions, tabs, agents, panes, palette search, Dashboard, pull requests, webhooks | Below | | Notifications | How each kind of notification reaches you, and Do Not Disturb | Below | | Snooze | Snooze defaults, wake triggers, watches | [Notifications and snooze](https://flow.worldbreakstudios.com/docs/workspace/notifications-and-snooze.md) | | Code | External code search and standard-library sources | [Code navigation](https://flow.worldbreakstudios.com/docs/features/code-navigation.md) | | Clipboard | Clipboard history and snippet expansion | Below | | Appearance | Mode, accent, fonts, text sizes, terminal colors, sidebar background | [Appearance](https://flow.worldbreakstudios.com/docs/configuration/appearance.md) | | Icons | Tab icons | [Tab icons](https://flow.worldbreakstudios.com/docs/features/tab-icons.md) | | Tools | The sidebar's Tools band, the Factory, the Trash, the Puddle | Below | | Repos | Which value applies in each repository, and why | [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md) | | Keyboard | Every rebindable shortcut and the global hotkeys | [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md) | | Experiments | Feature flags | Above | | Decisions | The decisions model (only while `features.decisions` is on) | Below | | Link router | Link routing rules (only while `features.link_router` is on) | [Link router](https://flow.worldbreakstudios.com/docs/features/link-router.md) | | Advanced | Command-line tools, remote hosts, schedules while quit, agent skills, diagnostics | Below | In the tables, **Setting** is the row id that `flow-cli settings apply` takes; for most rows it is also the key written to `settings.json`. **Default** is the JSON value a fresh install uses. "Editor" rows open a larger editor in the Settings window, and "button" rows run an action. ### About | Setting | Label | Type | Default | What it does | |---|---|---|---|---| | `about.version` | About › Version | editor | — | The installed Flow version and what the updater last found. | | `updates.check_now` | About › Check for updates | button | — | The installed version and what the updater found: check, download and install, or relaunch. | | `license` | License › License key | editor | — | Your plan, and the key that unlocks Flow on this Mac. | | `updates.check` | Updates › Check for updates automatically | toggle | `true` | At launch and every six hours. Nothing is downloaded until you choose to install. | | `updates.auto` | Updates › Install updates automatically | toggle | `false` | Download and install a found update without asking. Flow relaunches only when you say so. | | `updates.channel` | Updates › Release channel | choice: `stable`, `dev`, `experimental` | `"stable"` | Stable gets finished releases; Dev also gets early builds published as prereleases; Experimental adds hourly AI-built releases. | | `about.credits` | Credits › Open source credits | editor | — | The open-source software Flow includes, each with its license and full notice. | ### General | Setting | Label | Type | Default | What it does | |---|---|---|---|---| | `login_item` | Startup › Open at login | toggle | `false` | Launch flow when you log in to your Mac. | | `session.primary_command` | Sessions › Primary command | text | `"claude"` | Runs in the primary pane when a group opens. | | `terminal.persist` | Sessions › Persist sessions | toggle | `true` | Shells keep running when flow quits and panes reattach to them on relaunch. Sessions, folders and layouts always persist. | | `tabs.new_tab` | Tabs › New tab | choice: `ask`, `terminal` | `"ask"` | What + and ⌘T open: Ask shows the New tab launcher (a command, URL, path or #PR, or a tab type); Terminal opens a terminal directly. | | `links.open_in` | Tabs › Open links in | choice: `browser`, `app` | `"browser"` | ⇧-click opens the other (⌘⇧-click on a terminal link, ⇧↩ on a go link). | | `shells.capture` | Agents › Shell capture | choice: `off`, `background`, `all` | `"all"` | Records the shells an agent (Claude Code) runs in a pane — every one, or only those it starts in the background — and shows them in a Shells tab. Turning it on applies to panes opened afterwards; turning it off, or switching between Background and All, applies from the next shell in the panes already open. | | `agents.column` | Agents › Centre agent panes | toggle | `true` | While a coding agent runs in a session's main pane, its text sits in a centred column of at most the width below. | | `agents.max_columns` | Agents › Agent column width | number 60–300 cols, step 10 | `120.0` | The centred column's width, in terminal columns. | | `agents.programs` | Agents › Agent programs | text | `"claude, codex, pi, gemini, opencode, aider, amp, cursor-agent"` | Programs that count as coding agents, comma-separated, matched like tab icons (through env, npx and node). Empty restores the default list. | | `agents.context_card` | Agents › Context card | toggle | `true` | At the top right of a Claude Code pane, a card lists the session's sources (images and files you attached, images and documents it read) and outputs (files it wrote). Its – button minimizes it to a chip in the pane's header. | | `panes.combine_pills` | Panes › Combine collapsed panes | choice: `2`, `3`, `4`, `never` | `"3"` | A collapsed pane becomes a pill on the seam it folded onto. Past this many pills (or when they would collide) they combine into one pill that opens a chooser. | | `palette.search_engine` | Command palette › Web search | choice: `google`, `duckduckgo`, `bing`, `kagi`, `custom` | `"google"` | The palette's Search row for what you type: ↩ opens it in your browser, ⌘↩ in a webview. | | `palette.search_engine.url` | Command palette › Search URL | text | `""` | An http(s) URL with {query} where the search goes. Enter saves; one without {query} searches Google. | | `dashboard.minimap` | Dashboard › Minimap | toggle | `true` | An overview of every card beside the dashboard's scrollbar, with the part in view marked. Click a card there to focus it. | | `git.cli` | Pull requests › Pull request CLI | text | `"ghx"` | Program that reads PR data: the bundled ghx cache, gh, or any client with the same commands. Enter saves; empty means ghx. | | `git.events` | Pull requests › Cache events command | text | `"ghx events"` | Long-running command whose cache-updated lines refresh PR data (async only). Defaults to the CLI's own ` events`, none with gh. Enter saves and restarts it; empty turns it off. | | `git.async` | Pull requests › Async streaming | toggle | `true` | Serve cached data instantly and refresh in the background (-A). Not available with gh. | | `git.gh_alias` | Pull requests › Route gh through ghx | button | — | Adds `alias gh=ghx` to ~/.zshrc, so gh run in your shells (and by agents that use them, like Claude Code) reads through the cache and busts it after writes, updating flow too. New shells only. | | `git.git_alias` | Pull requests › Route git through gitx | button | — | Adds `alias git=gitx` to ~/.zshrc, so pushes from your shells (and from agents that use them) update PRs at once — git runs unchanged. New shells only. | | `git.open_pr_in_review` | Pull requests › Open pull requests in a review tab | toggle | `true` | ⇧⌘G, the pane header's PR pill and a dashboard card's PR label open the pull request as a review tab in its session; off, they open it in the browser. | | `git.pin_pr_review_tab` | Pull requests › Pin pull request review tabs | toggle | `true` | A pull request opened as a review tab (⇧⌘G, the PR pill, ⌥⌘R) is pinned to the front of its pane's tabs, so ⌘W keeps it until you unpin it; off, it opens as an ordinary tab. | | `pr.diff_wrap` | Pull requests › Wrap long lines in diffs | toggle | `true` | A review tab's Changes view wraps a long line in its cell; off, each cell scrolls sideways. | | `pr.ref_chips` | Pull requests › Issue and PR references | choice: `github`, `titled`, `compact` | `"github"` | How #123 and pull request or issue links in PR pages and Notes show: GitHub style titles a reference on its own line and keeps one inside a sentence compact; or always show titles; or numbers only. Hover a reference for its card. | | `pr.diff_by_hunk` | Pull requests › Sort hunks, not whole files, into diff groups | toggle | `false` | A review tab's Changes view sorts each hunk into the diff groups, not the whole file: a file whose hunks land in different groups (code and its inline tests) shows one card per group. | | `pr.diff_by_model` | Pull requests › Sort hunks with the decisions model | toggle | `false` | A review tab's Changes view asks Settings › Decisions' model which diff group each hunk belongs to (Code, Tests, Boilerplate or your own), the patterns sorting meanwhile and wherever it isn't sure. Sorts by hunk whether or not the setting above is on. With a hosted provider the hunks' text is sent to it; answers are cached, so a reopen asks nothing. | | `webhooks.follow_url` | Webhooks › Follow a webhook receiver | text | `""` | The URL of a ghx webhook receiver (https://… or http://127.0.0.1:…): GitHub's events arrive from it and refresh cached PR data at once. Enter saves; empty stops following. Not used while this Mac runs the receiver. | | `webhooks.serve` | Webhooks › Run the receiver on this Mac | toggle | `false` | Runs `ghx webhooks serve` while Flow is open: GitHub posts events to it, and this Mac (and any device following it) refreshes cached PR data at once. | | `webhooks.funnel` | Webhooks › Tailscale Funnel | toggle | `false` | Has the receiver bring a Tailscale Funnel up, so GitHub can reach it from the internet, and take it down when it stops. Applies while the receiver runs on this Mac. | ### Notifications Every notification kind except "Answers to your actions" takes one of `toast` (an in-app toast), `system` (Notification Center), `silent` (history only) or `off`. | Setting | Label | Type | Default | What it does | |---|---|---|---|---| | `notifications.dnd` | Do Not Disturb › Do Not Disturb | toggle | `false` | Hold notifications in the history instead of showing them. Answers to what you just did still show. | | `notifications.feedback` | General › Answers to your actions | choice: `toast`, `system` | `"toast"` | What you just did, done or refused: a link copied, a failed save. Do Not Disturb never holds these. | | `notifications.agent.message` | General › Agent messages | choice: `toast`, `system`, `silent`, `off` | `"toast"` | Posted by an agent or a script with flow-cli notify. | | `notifications.links` | General › Link routing | choice: `toast`, `system`, `silent`, `off` | `"toast"` | A link from another app that could not open where it was routed, and where it went instead. | | `notifications.pr.ops` | Sessions › Background pull request operations | choice: `toast`, `system`, `silent`, `off` | `"toast"` | A pull request operation the Factory started on its own finishing, or failing. | | `notifications.snooze.wake` | Sessions › Snoozed session woke | choice: `toast`, `system`, `silent`, `off` | `"system"` | A snoozed session waking up, while Snooze's Notify is on. History only or Off also mutes its sound. | | `notifications.caffeinate` | Sessions › Caffeinate wore off | choice: `toast`, `system`, `silent`, `off` | `"toast"` | Caffeinate ending on its own. | | `notifications.schedules.runs` | Schedules › Scheduled runs | choice: `toast`, `system`, `silent`, `off` | `"toast"` | A scheduled run starting. | | `notifications.schedules.inbox` | Schedules › Schedules Inbox | choice: `toast`, `system`, `silent`, `off` | `"toast"` | A run leaving something in the Inbox for you. | | `notifications.schedules.failed` | Schedules › Schedule failures | choice: `toast`, `system`, `silent`, `off` | `"toast"` | A run failing or not starting, a worktree left behind, schedules unable to run while Flow is quit. | | `notifications.puddle.pairing` | Puddles › Join requests | choice: `toast`, `system`, `silent`, `off` | `"toast"` | A device asking to join your puddle while the Puddle page is not open. | | `notifications.puddle.viewing` | Puddles › Someone is viewing a session | choice: `toast`, `system`, `silent`, `off` | `"silent"` | A paired device starting to view one of this device's sessions. | | `notifications.puddle.created` | Puddles › Sessions started from another device | choice: `toast`, `system`, `silent`, `off` | `"toast"` | A paired device starting a session on this Mac. | | `notifications.puddle.remote_action` | Puddles › Sessions changed from another device | choice: `toast`, `system`, `silent`, `off` | `"silent"` | A paired device closing, renaming or pinning one of this Mac's sessions or tabs. | | `notifications.puddle.attention` | Puddles › An agent needs you on another Mac | choice: `toast`, `system`, `silent`, `off` | `"toast"` | An agent finishing or asking for you in a session on one of your Macs while you are using another: told once, on the Mac you used last. | | `notifications.updates` | App › Updates | choice: `toast`, `system`, `silent`, `off` | `"toast"` | A new version found by the periodic check, or the automatic install's outcome. | | `notifications.license` | App › License | choice: `toast`, `system`, `silent`, `off` | `"toast"` | Your license changing on its own: a refresh dropping it, a deactivation the server missed. | | `notifications.system` | App › Flow services | choice: `toast`, `system`, `silent`, `off` | `"toast"` | Flow's own machinery: the command bus going down, or coming back. | ### Clipboard | Setting | Label | Type | Default | What it does | |---|---|---|---|---| | `clipboard.enabled` | Clipboard history › Record clipboard history | toggle | `true` | Keep what you copy so ⌥⌘V (or the palette's Clipboard history) can paste it again. | | `clipboard.ttl_days` | Clipboard history › Keep history | choice: `0`, `1`, `7`, `30`, `90`, `365` | `"0"` | Unpinned items older than this are removed. Pinned items stay. | | `clipboard.ignore_apps` | Clipboard history › Ignored apps | text | `""` | Bundle ids whose copies are never recorded, comma-separated. Saved on Enter or when you leave the field. | | `snippets.expand` | Snippets › Expand snippet keywords | toggle | `true` | Typing a snippet's keyword anywhere replaces it with the snippet. Needs Accessibility. | | `snippets.accessibility` | Snippets › Keyword expansion | button | — | Whether the expander is running; Grant Accessibility lets it expand keywords in every app. | | `clipboard.paste_access` | Permissions › Paste access | button | — | Whether flow may read what other apps copy; Open System Settings changes it. | | `clipboard.accessibility` | Permissions › Accessibility (paste into other apps) | button | — | Granted, ↩ pastes straight into the app you summoned the palette over; else it copies. | | `clipboard.clear` | Storage › Clear history… | button | — | Removes every unpinned item. Pinned items are kept. | ### Tools The `tools.sidebar.*` rows switch built-in pages in or out of the sidebar's Tools band; a CLI tool's row is `tools.sidebar.cli.SLUG`. See [Custom tools](https://flow.worldbreakstudios.com/docs/cli/custom-tools.md) for CLI tools. | Setting | Label | Type | Default | What it does | |---|---|---|---|---| | `tools.sidebar.trash` | Sidebar › Trash | toggle | `true` | Old worktrees, judged safe or not, deleted in a click | | `tools.sidebar.tasks` | Sidebar › Task Manager | toggle | `true` | Live CPU and memory for every pane’s processes | | `tools.sidebar.schedules` | Sidebar › Schedules | toggle | `true` | Commands and agents that run on a timer | | `tools.sidebar.pr_reviews` | Sidebar › Reviews | toggle | `true` | Pull requests waiting on your review, sorted into sections | | `tools.sidebar.my_prs` | Sidebar › My PRs | toggle | `true` | Your open pull requests and what each one needs | | `tools.order` | Sidebar › Reorder tools | editor | — | Drag a tool's grip to move it in the sidebar; a CLI tool's trash removes it. | | `tools.add` | Add a tool › Add a tool | editor | — | Register a CLI tool: its name, command and directory; it gets its own page. | | `factory.threshold` | Factory › Line threshold | number 50–100, step 5 | `80.0` | The verification score a session needs before the Factory puts it in front of you. | | `trash.confirm` | Trash › Confirm deletes | choice: `risky`, `always` | `"risky"` | When the Trash asks before deleting worktrees: only when uncommitted or unpushed work would be lost, or every time. | | `trash.live_minutes` | Trash › In-use window | number 1–120 min, step 1 | `10.0` | A worktree touched this recently counts as in use, and the Trash never offers it as safe. | | `puddle.bind` | Puddle › Puddle network | choice: `auto`, `tailscale`, `lan`, `tailcat` | `"auto"` | Where the Puddle service listens: Automatic is Tailscale when it is up, else this Mac only; Tailcat reaches across networks through relays. | | `puddle.port` | Puddle › Puddle port | number 1024–65535, step 1 | `47633.0` | The TCP port the Puddle service listens on. | | `puddle.spaces_bar` | Puddle › Paired devices in the spaces bar | link | — | Show or hide each paired device's chips in the spaces bar, and pick its icon, on the Puddle page. | | `puddle.pane_size` | Puddle › Shared pane size | choice: `latest`, `smallest` | `"latest"` | How a terminal shown on another device too is sized: to the screen of the device you typed in last, or to fit the smallest of them. Applies to sessions started after a change. | | `puddle.sync` | Puddle › Sync sessions with your devices | toggle | `true` | Other devices see this Mac's sessions, icons and unread state live, and closes, renames and pins made there apply here. Off, they see a listing refreshed every 15 seconds. | | `puddle.close_remote` | Puddle › Close on the other device too | choice: `ask`, `always`, `never` | `"ask"` | Closing a session you opened from another device also closes it there. | | `tools.sync` | Puddle › Sync CLI tools with your devices | toggle | `true` | A tool added, changed or removed on one of your Macs is added, changed or removed on the others that sync theirs. A device's space lists its tools; Add to this Mac copies one here. | | `trash.devices` | Trash › Show from | choice: `local`, `all` | `"all"` | Whose worktrees the page lists: this Mac's, or every Puddle device's joined (a device's own chip on the page shows just that one). | | `schedules.devices` | Schedules › Show from | choice: `local`, `all` | `"all"` | Whose schedules the page lists: this Mac's, or every Puddle device's joined (a device's own chip on the page shows just that one). | | `page.schedules` | Schedules | link | — | Commands and agents that run on a timer, on their own page. | ### Decisions Shown only while the Decisions experiment (`features.decisions`) is on. The API key itself is never stored in `settings.json`: it comes from the Keychain, an environment variable or a command. | Setting | Label | Type | Default | What it does | |---|---|---|---|---| | `decisions.provider` | Provider › Provider | choice: `typesafe`, `openai`, `ollama`, `lmstudio`, `custom` | `"typesafe"` | Who answers: a hosted vendor (TypeSafe's Jev, OpenAI) or a server you run (Ollama, LM Studio, any URL). A new provider starts at its own base URL, model and key source. | | `decisions.base_url` | Provider › Base URL | text | `""` | Where requests go (http or https; a trailing /v1 is fine). Empty is the provider's default. Enter saves. | | `decisions.model` | Provider › Model | text | `""` | The model that answers. Empty is the provider's default (jev-latest, gpt-6-luna, laya). Enter saves. | | `decisions.dialect` | Provider › Dialect | choice: `systemone`, `openai` | `"systemone"` | Custom only: the API the server speaks — System One (/v1/systemone) or OpenAI Decisions (/v1/decisions). | | `decisions.key_source` | API key › Key source | choice: `none`, `keychain`, `env`, `command` | `"keychain"` | Where the API key comes from: none, the macOS Keychain, an environment variable, or a command that prints a token. Read only when a request needs it. | | `decisions.key_env` | API key › Environment variable | text | `""` | The variable's name, never its value: read from Flow's environment, else your login shell's. Empty is the provider's (TYPESAFE_API_KEY, OPENAI_API_KEY). | | `decisions.key_command` | API key › Key command | text | `""` | Run through your login shell when a request needs a key: its first line of output is the key, kept in memory for ten minutes. | | `decisions.test` | Connection › Test connection | button | — | Ask the model one small yes / no question: the model that answered and the latency, or why it failed. | ### Advanced | Setting | Label | Type | Default | What it does | |---|---|---|---|---| | `cli.install` | Command-line tools › flow-cli, drop and ghx | button | — | Links flow-cli, drop, ghx, gitx and sink into /usr/local/bin so your shells can run them. | | `remote.ssh` | Remote hosts › ssh program | text | `"ssh"` | Every remote pane and lookup runs this (remote.ssh). Enter saves. | | `remote_hosts` | Remote hosts › Remote hosts | editor | — | Each known host's persistence and profile: default directory, remote shell, extra ssh args. | | `schedules.launchd` | Schedules › Run schedules while flow is quit | toggle | `true` | A launchd agent runs due schedules every minute while the app is closed. | | `flow_skills` | Flow agent skills › Flow agent skills | editor | — | The agent's playbooks: the skills folder and each SKILL.md. | | `debug.overlay` | Diagnostics › Show frame stats | toggle | `false` | Overlay render timing in the corner of each terminal. | | `diagnostics` | Diagnostics › Diagnostics | editor | — | The settings file, chrome, scale, surface and cell size, and the workspace's counts. | | `settings_file.reveal` | Diagnostics › Reveal settings.json | button | — | Show the settings file in Finder. | ## Limits - Edits to `settings.json` while Flow runs are lost (see above). - An experiment's rows are missing from search, the palette and `flow-cli read settings-catalog` while that experiment is off. - Only the keys listed in [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md) can vary per repository. Every other setting has one value for the whole app. --- # Settings scopes URL: https://flow.worldbreakstudios.com/docs/configuration/settings-scopes How Flow picks a setting's value per repository, from a subdirectory, your own per-repo file, the team's checked-in file and your global settings. Most settings have one value for the whole app. A few mean something different per repository: the team may want a say, you may want your own value, or both. Settings scopes are how Flow decides which value wins in a given directory. Overrides are sparse: no file is created until you set a value, and a repository with no overrides behaves exactly like your global settings. ## The scopes From highest to lowest, by default: | Scope | Where | Who owns it | |---|---|---| | Directory | `SUBDIR/.flowspace.json` (a real subdirectory of a checkout) | the team, or you, for one part of a repository | | User repo | `~/.flow/repo_config/REPO/flowspace.json` and `…/drop.json` | you, for one repository, in every worktree | | Repo | `.flowspace.json` and `.drop.json` at the checkout top | the team, checked in | | User | `~/.flow/flowspace.json`, `~/.flow/settings.json`, `~/.config/drop/config.json` | you, everywhere | | Built-in default | Flow itself | Flow | The top of a checkout, whether the primary checkout or a linked worktree, always counts as **Repo**, never Directory: that file is the team's, and it must not beat your own per-repo file. Each setting honours only some of these scopes, listed in its **Order** below. A scope missing from a setting's order is ignored for that setting. For example, a team file can never choose your `session.primary_command`, and no `snooze.*` setting reads the team's file. ## Which files Flow reads For a session in a directory, Flow reads these files in order: 1. `DIR/.flowspace.json`, when the session is in a subdirectory of its checkout (or outside any repository) 2. `~/.flow/repo_config/REPO/flowspace.json` 3. `WORKTREE_TOP/.flowspace.json` 4. `PRIMARY_CHECKOUT/.flowspace.json`, when that is a different directory 5. `~/.flow/flowspace.json` Outside a git repository, only the directory's file and the user file are read. A session on a remote host reads only your User value and `~/.flow/flowspace.json`: its paths never reach your local disk. ## Your per-repository files `~/.flow/repo_config/REPO/` is keyed by the folder name of the repository's **primary** checkout, so every worktree of a repository shares it. Two different checkouts with the same folder name share one config; Settings › Repos says so when it happens. For a bare repository, `REPO` is the bare directory's name without `.git`. The directory holds two files, named after their checked-in counterparts so you can move one across: - `flowspace.json` has the same shape as `.flowspace.json`, plus an optional top-level `settings` object for setting values. - `drop.json` has the same shape as `.drop.json`. ```json { "run": [{ "label": "Dev", "command": "make dev", "cwd": "web" }], "settings": { "session.primary_command": "zellij", "git.merge_method": "rebase" } } ``` A relative `cwd` in this file is relative to the worktree top, as if the file were checked in there. A checked-in `.flowspace.json` may carry a `settings` object too; a key whose order has no Repo scope is ignored there. A corrupt file is skipped and never stops a launch or a `drop` command (a corrupt checked-in `.drop.json` is still an error for `drop`). Flow refuses to write over a corrupt file. When an override is removed and its file is left empty, Flow deletes the file and its directory. ## Merge and single settings Each scoped setting is one of two kinds: - **Merge**: every scope contributes entries and they combine. Your run commands sit beside the team's; when two files use the same label (or name), the nearest file wins. - **Single**: one scope wins, the highest one in the setting's order that holds a usable value. A value of the wrong shape counts as unset, whichever scope holds it. `git.merge_method` and `tabs.new_tab` only take their listed choices, so a typo in a team file falls through to the next valid value instead of winning. ## The scoped settings Every setting that can vary per repository. **Order** lists the scopes it honours, highest first. Every other setting is app-wide. | Setting | Label | Kind | Home | Value | Order | |---|---|---|---|---|---| | `profiles` | Workspace profiles | merge | flowspace (top-level key) | array | Directory › User repo › Repo › User | | `run` | Run commands | merge | flowspace (top-level key) | array | Directory › User repo › Repo › User | | `docs` | Web docs | merge | flowspace (top-level key) | array | Directory › User repo › Repo › User | | `run_providers` | Run providers | merge | flowspace (top-level key) | array | Directory › User repo › Repo › User | | `reviewers` | Reviewers | merge | flowspace (top-level key) | object | Directory › User repo › Repo › User | | `quick_links` | Quick links | merge | flowspace (top-level key) | object | Directory › User repo › Repo › User | | `code_search` | External code search | merge | flowspace (top-level key) | object | Directory › User repo › Repo › User | | `worktreeDir` | Worktree directory | single | drop config | string | User repo › Repo › User | | `branchPrefix` | Branch prefix | single | drop config | string | User repo › Repo › User | | `isolationBase` | Fork base | single | drop config | string | User repo › Repo › User | | `session.primary_command` | Primary command | single | settings (`settings` object; User: settings.json) | string | User repo › User | | `git.merge_method` | Merge method | single | settings (`settings` object; User: settings.json) | `squash` / `merge` / `rebase` | User repo › Repo › User | | `git.open_pr_in_review` | Open pull requests in a review tab | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `git.pin_pr_review_tab` | Pin pull request review tabs | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `pr.diff_groups` | Diff groups | single | settings (`settings` object; User: settings.json) | object | User repo › Repo › User | | `tabs.new_tab` | New tab type | single | settings (`settings` object; User: settings.json) | `ask` / `terminal` | User repo › User | | `snooze.default` | Snooze default | single | settings (`settings` object; User: settings.json) | `ask` / `30m` / `unread` / `pr` / `ci` | User repo › User | | `snooze.durations` | Snooze quick durations | single | settings (`settings` object; User: settings.json) | array | User repo › User | | `snooze.favs` | Snooze favorites | single | settings (`settings` object; User: settings.json) | array | User repo › User | | `snooze.recents_n` | Snooze recent conditions | single | settings (`settings` object; User: settings.json) | `0` / `3` / `5` | User repo › User | | `snooze.trig.unread` | Snooze until next message | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.unread_min` | Snooze ignores turns shorter than | single | settings (`settings` object; User: settings.json) | `off` / `30s` / `2m` / `5m` | User repo › User | | `snooze.trig.pr` | Snooze until PR approved | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.pr_changes` | Snooze wakes on changes requested | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.trig.ci` | Snooze until CI finishes | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ci_mode` | Snooze wakes when checks | single | settings (`settings` object; User: settings.json) | `pass` / `any` | User repo › User | | `snooze.ask_wake` | Ask what wakes a snooze early | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.question` | Wake early on a question | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.perm` | Wake early on a permission prompt | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.error` | Wake early on an error | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.context` | Wake early when context is nearly full | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.comment` | Wake early on a PR comment | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.approved` | Wake early when the PR is approved | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.changes` | Wake early when changes are requested | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.reviewed` | Wake early on a comment-only review | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.mention` | Wake early on a PR mention | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.closed` | Wake early when the PR merges or closes | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.ci_fail` | Wake early when a CI check fails | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.ci_done` | Wake early when CI finishes | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.ov.watches` | Wake early on named watches | single | settings (`settings` object; User: settings.json) | array | User repo › User | | `snooze.ignore_authors` | Snooze ignored people and bots | single | settings (`settings` object; User: settings.json) | array | User repo › User | | `snooze.ignore_checks` | Snooze ignored checks | single | settings (`settings` object; User: settings.json) | array | User repo › User | | `snooze.check_picks` | Snooze chosen checks | single | settings (`settings` object; User: settings.json) | object | User repo › User | | `snooze.wake.top` | Move a woken session to the top | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.wake.unread` | Mark a woken session unread | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.wake.notify` | Notify when a session wakes | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.wake.sound` | Play a sound when a session wakes | single | settings (`settings` object; User: settings.json) | bool | User repo › User | | `snooze.watches` | Snooze watches | merge | settings (`settings` object; User: settings.json) | array | User repo › User | **Home** means: a top-level key of a flowspace file (**flowspace**); a top-level key of a drop config file (**drop config**); or the settings store for User and a flowspace file's `settings` object above it (**settings**). `code_search` also keeps part of its User value in Settings › Code (`code_search.engine`, `code_search.sourcegraph_url`, `code_search.url`, `code_search.by_lang.LANG`, `code_search.docs.LANG`). That part sits right after `~/.flow/flowspace.json`. ## Mark a value important Any of these files may carry a top-level `"!important"` list of keys: ```json { "!important": ["worktreeDir", "run"], "worktreeDir": ".wt" } ``` - An important value beats every value that isn't, whatever the order. - Among several important values, the setting's own order decides. - A mark in a scope the setting does not honour is ignored, so a team file can't force `session.primary_command`. - Spell the key exactly as it appears in the file. A mark on a key with no value in that file does nothing. - For a Merge setting, the marked file moves to the front for that key only, so it wins duplicate entries; the other files still contribute. At the User scope the list is an `"!important"` key in `~/.flow/settings.json`, `~/.flow/flowspace.json` or `~/.config/drop/config.json`, depending on the setting's home. ## See and edit scopes in Settings › Repos Settings › Repos lists the repositories under your source folder (drop's `reposDir`), those of your open sessions, and any directory already under `~/.flow/repo_config/`, one row per primary checkout. A config whose checkout is gone stays listed as "no checkout found". Remote hosts are not listed. A repository's page shows every scoped setting with the value in force and a chip for where it comes from (Default, User, Repo, User repo): 1. Click **Override** to open an editor seeded with the value in force. A text field saves on Enter or when you leave it. 2. Expand a row to see each scope in order, with its file, value and state (Applied, Overridden, Not honoured, Unset). 3. Use the `!important` toggle on the User line (it appears once the User scope has a value). The Repo line, the team's file, is read-only. 4. Click **Reset** to remove the override and its mark. List settings are read-only on this page: it shows their merged items with their sources, and **Edit in flowspace.json** opens the file for editing, creating it if needed. It is the only action on the page that creates a file. Rows in Settings › General that have a scope rule, and Code's search engine row, carry a small "Per repo" chip that opens this page. ## Scopes from a shell ```sh flow-cli read config-trace --key git.merge_method # how a key resolves in the current directory flow-cli read config-trace --dir ~/src/app # every scoped key, for another directory flow-cli read repos # the repositories Settings › Repos lists flow-cli settings repo-set git.merge_method rebase # your User repo value, for the focused session's repo flow-cli settings repo-set worktreeDir .wt --repo app --important flow-cli settings repo-unset git.merge_method --dir ~/src/app ``` `repo-set` and `repo-unset` write `~/.flow/repo_config/REPO/` for the repository you name with `--repo` (its key) or `--dir`, else the focused local session's. They refuse a key that has no scope rule, a key whose order has no User repo scope, a value of the wrong shape, and a corrupt file. A list or object value replaces your whole User repo value, so read the trace first and write the full new value. The reply is the key's trace: the winner, its value, the reason and every layer. ## Limits - Only the settings in the table above vary per repository. - Two checkouts with the same folder name share one `repo_config` directory. - Sessions on remote hosts read only your User values. - Changing a team's `.flowspace.json` or `.drop.json` is a change to their repository: commit it like any other file. --- # .flowspace.json URL: https://flow.worldbreakstudios.com/docs/configuration/flowspace Every key a .flowspace.json file supports (workspace profiles, run commands, docs, providers, reviewers, quick links, code search, settings) with examples. A `.flowspace.json` file describes how Flow works in a repository: saved layouts for new sessions, commands and docs for the New tab launcher, reviewers and quick links for pull requests, external code search, and per-repository setting values. Every key is optional. Check the file into a repository to share it with your team, or keep your own copy outside the repository. ## Where the file can live Flow reads every flowspace file that applies to a session's directory, in this order: | Order | File | Scope | |---|---|---| | 1 | `DIR/.flowspace.json`, when the session is in a subdirectory of its checkout | Directory | | 2 | `~/.flow/repo_config/REPO/flowspace.json` (your own file for this repository, shared by its worktrees) | User repo | | 3 | `WORKTREE_TOP/.flowspace.json` | Repo | | 4 | `PRIMARY_CHECKOUT/.flowspace.json`, when it differs from the worktree top | Repo | | 5 | `~/.flow/flowspace.json` (your global file) | User | List keys merge across the files: entries add up and, when two files use the same name or label, the earlier file in this order wins. A file that lists a key in its top-level `"!important"` array moves to the front for that key. See [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md) for the full rules. A missing or corrupt file, or a malformed entry, is skipped; it never stops Flow. Flow still reads a `.pwrspace.json` (the file's old name) when no `.flowspace.json` sits beside it, but always writes the new name. ## Keys at a glance | Key | Type | Used by | |---|---|---| | `profiles` | array of profiles | the New session flow's Layout step; Save as workspace | | `run` | array of `{label, command, cwd?, detail?}` | the New tab launcher's Run column | | `docs` | array of `{label, url}` | the New tab launcher's Web column | | `run_providers` | array of `{name, command}` | more Run entries, printed by a command | | `reviewers` | object `{groups, starred, ignored}` | a PR review tab's reviewer picker | | `quick_links` | object `{links, patterns}` | a PR review tab's Quick links | | `code_search` | object `{url, by_lang, docs}` | go to definition when nothing is found on disk | | `settings` | object of setting key → value | per-repository setting values | | `!important` | array of key names | raises this file's value for those keys | Any other top-level key is kept as it is when Flow saves a profile into the file. ## A complete example ```json { "profiles": [ { "name": "dev", "description": "Agent on the left, server and tests on the right", "layout": { "split": "row", "ratio": 0.6, "a": { "tabs": [{ "command": "claude" }] }, "b": { "split": "column", "ratio": 0.5, "a": { "tabs": [{ "command": "npm run dev" }] }, "b": { "tabs": [{}, { "command": "npm test -- --watch" }], "active": 1 } } } } ], "run": [ { "label": "Dev server", "command": "npm run dev", "cwd": "web", "detail": "port 3000" }, { "label": "Tests", "command": "cargo test" } ], "docs": [{ "label": "API docs", "url": "https://docs.example.com" }], "run_providers": [{ "name": "just", "command": "~/bin/just-flow" }], "reviewers": { "groups": [{ "name": "backend", "members": ["alice", "org/backend/{robin:1}"], "auto_merge": true }], "starred": ["alice"], "ignored": ["dependabot"] }, "quick_links": { "links": [{ "label": "Deploy", "url": "https://deploy.example.com/{owner}/{repo}/{branch}" }], "patterns": [{ "label": "Ticket {1}", "match": "\\b(ABC-\\d+)\\b", "url": "https://jira.example.com/browse/{1}" }] }, "code_search": { "url": "https://sourcegraph.example.com/search?q={symbol}", "by_lang": { "java": "https://opengrok.example.com/source/search?defs={symbol}" } }, "settings": { "git.merge_method": "squash" }, "!important": ["run"] } ``` ## profiles A profile is a saved group layout: a split tree of tiles, each tile's tabs, and what each tab runs. Profiles are offered when you start a new session (the New session flow's Layout step, `⇧⌘N`), and `flow-cli new-session DIR --layout NAME` opens one by name. | Field | Type | Meaning | |---|---|---| | `name` | string, required | The profile's name. Saving a profile with an existing name replaces it. When two files define the same name, the earlier file wins. | | `description` | string | Shown in the picker. | | `layout` | node, required | The root of the layout tree. | A **node** is either a split or a leaf: | Node | Fields | |---|---| | Split | `split`: `"row"` (children side by side, `a` on the left) or `"column"` (stacked, `a` on top); `ratio`: the share of space given to `a`, 0.0–1.0; `a` and `b`: child nodes | | Leaf | `tabs`: an array of tabs; `active`: the index of the active tab (default 0) | A **tab** is an object: | Field | Meaning | |---|---| | (none) | `{}` is a plain terminal running your shell. | | `command` | A command to run in the terminal tab. | | `kind` | `"terminal"` (the default) or `"webview"`. | | `url` | The page a webview tab loads. | | `url_command` | A shell command run at launch in the session's directory; the first non-empty line it prints becomes the webview's URL. `url` is the fallback, and the page shown while the command runs. | Webview tabs need the Web tabs experiment (`features.web_tabs`). While it is off, a profile's webview tabs are skipped; a webview tab with neither a usable `url` nor a `url_command` opens as a terminal. To save the current session's layout, run **Save as workspace** (`⇧⌘S`): give the profile a name and an optional description, then pick which flowspace file to save it to. ## run, docs and run_providers These three keys fill the New tab launcher, which opens on a tile strip's "+" or `⌘T` while Settings › General › Tabs › New tab is **Ask**. | Key | Entry fields | Meaning | |---|---|---| | `run` | `label`, `command`, optional `cwd`, optional `detail` | A command that opens in a new terminal tab titled by its label. A relative `cwd` is relative to the directory of the file that names it (for your `repo_config` file: the worktree top); a leading `~/` is your home directory; absent means the session's directory. `detail` is shown instead of the command. | | `docs` | `label`, `url` | A page in the launcher's Web column. The Web column only appears while the Web tabs experiment is on. | | `run_providers` | `name`, `command` | A command that prints more Run entries as JSON each time the launcher opens. | `⌥1`–`⌥9` launch the first nine visible Run rows. Run providers have their own contract: see [Run providers](https://flow.worldbreakstudios.com/docs/configuration/run-providers.md). ## reviewers Reviewer groups and preferences for the PR review tab's Request picker. | Field | Type | Meaning | |---|---|---| | `groups` | array of `{name, members, auto_merge?}` | Named reviewer groups. `"auto_merge": true` also enables auto-merge on the PR when you request that group. | | `starred` | array of logins | Shown in their own section of the picker. | | `ignored` | array of logins or teams | Never suggested or requested. | A member is one of: | Member | Means | |---|---| | `login` | that user (a leading `@` is dropped) | | `org/team` | the team itself | | `org/team/*` | each member of the team | | `org/team/{random:N}` | N members, picked at random | | `org/team/{robin:N}` | the N members requested least recently in this repository | Groups from several files merge by name (compared case-insensitively), the earliest file winning; `starred` and `ignored` are the union of every file. The picker's **Save as group…** writes a group into a flowspace file. ## quick_links Links shown in a PR review tab's meta column. | Field | Entry fields | |---|---| | `links` | `label`, `url`, optional `repos` | | `patterns` | `label`, `match` (a regular expression), optional `url` (default `{0}`), optional `in` (`["body"]` by default; add `"comments"` for comments and reviews), optional `repos` | A pattern turns every match in the PR's text into a link (at most a fixed number per pattern). `repos` limits an entry to repositories matching `owner/name` globs (`*` matches any run of characters). Tokens you can use in a label or URL: | Token | Value | |---|---| | `{host}`, `{owner}`, `{repo}`, `{slug}` | the PR's host, owner, repository name and `owner/name` | | `{number}`, `{branch}`, `{base}`, `{author}`, `{sha}`, `{title}` | the PR's number, head branch, base branch, author login, head commit and title | | `{codeowners}` | the owners of the changed files, from `.github/CODEOWNERS`, `CODEOWNERS` or `docs/CODEOWNERS` | | `{0}`, `{1}`, … | a pattern's whole match and its capture groups | In a URL each token is percent-encoded. A link whose URL uses a token that resolves to nothing, or that is not `http://` or `https://`, is dropped. Links from every file are concatenated, then deduplicated by URL. ## code_search Where go to definition and find references search when a symbol is not found on disk. | Field | Type | Meaning | |---|---|---| | `url` | string | A search URL template for every language without its own. | | `by_lang` | object | Per-language search templates. Keys: `rust`, `python`, `java`, `jsts`, `shell`, `c`, `cpp`. | | `docs` | object | Per-language docs templates, same keys, with `{symbol}` and `{version}`. | Templates take `{symbol}`, `{text}`, `{lang}`, `{module}`, `{package}`, `{path}`, `{repo}` and `{query}`. The earliest file wins `url` and each per-language key; Settings › Code fills in what the files leave out. See [Code navigation](https://flow.worldbreakstudios.com/docs/features/code-navigation.md) for what each placeholder holds. ## settings A `settings` object holds setting values for this repository, using the same keys as `~/.flow/settings.json`. Only keys with a scope rule are read, and each only in the scopes its rule honours: - In a checked-in `.flowspace.json` (Repo scope), Flow reads `git.merge_method` (`squash`, `merge` or `rebase`) and `pr.diff_groups` (the PR review tab's diff groups). Every other key there is ignored, so a team file can't pick your agent or run commands in your sessions. - In your own `~/.flow/repo_config/REPO/flowspace.json` (User repo scope), every key in the [scoped settings table](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md#the-scoped-settings) is read, including `session.primary_command`, `tabs.new_tab` and the `snooze.*` keys. ## !important `"!important": ["run", "worktreeDir"]` lifts this file's value for the listed keys above every non-important value, whatever the order. A mark in a scope the key does not honour is ignored. See [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md#mark-a-value-important). ## Limits - Sessions on remote hosts read only `~/.flow/flowspace.json` and run no providers. - A session on a paired device lists only the `run` entries of that device's checkout (at most 64), plus your own `~/.flow/flowspace.json`; it never reads that device's `docs` or `run_providers`. - Flow re-reads the files when it needs them (opening a launcher, fetching a PR), so an edit applies the next time, without a restart. --- # Run providers URL: https://flow.worldbreakstudios.com/docs/configuration/run-providers Add entries to the New tab launcher's Run column with a command that prints JSON, and learn the environment, output format, timeouts and failures. The New tab launcher lists commands you can start in one keystroke. Static entries come from the `run` key of your [.flowspace.json](https://flow.worldbreakstudios.com/docs/configuration/flowspace.md) files. A **run provider** adds entries dynamically: a command you register that prints JSON, run each time the launcher opens. Use one to offer every `just` recipe, `mise` task or `package.json` script without listing them by hand. ## Where run entries appear The launcher opens on a tile strip's "+" or `⌘T` while Settings › General › Tabs › New tab (`tabs.new_tab`) is **Ask**, the default. Under its tab-type tiles it shows: - **Run**: commands that open in a new terminal tab, titled by their label. `⌥1`–`⌥9` launch the first nine visible rows. The static `run` entries come first, then each provider's rows. The column's caption names the file or provider each row came from. - **Web**: `docs` pages, then pages you visited recently (this repository's first). This column needs the Web tabs experiment (`features.web_tabs`). Type in the launcher's field to filter rows by label, command or URL. `↑` / `↓` select a row and `↩` launches it. ## Register a provider Add a `run_providers` entry to any flowspace file: a checked-in `.flowspace.json`, your `~/.flow/repo_config/REPO/flowspace.json`, or `~/.flow/flowspace.json` for every repository. ```json { "run_providers": [{ "name": "just", "command": "~/bin/just-flow" }] } ``` | Field | Meaning | |---|---| | `name` | Shown in the Run column's caption and in error rows. When two files register the same name (compared without surrounding spaces), the earlier file wins. | | `command` | A shell command line. | Providers from several files run side by side; see [Settings scopes](https://flow.worldbreakstudios.com/docs/configuration/settings-scopes.md) for the file order. ## When providers run Flow runs every provider each time a launcher opens, and again when its session's directory changes while it shows. Each run: - happens in the background, so the launcher never waits on it; - is `$SHELL -lc COMMAND`, with the session's directory as the working directory; - gets its own process group, killed after **5 seconds**. Once the shell exits, anything still running in that group is killed too: don't leave work in the background. Whatever reached stdout by then is the output. Results are cached per directory. Sessions on remote hosts never run providers. ## Environment A provider gets your usual environment plus: | Variable | Value | |---|---| | `FLOW_RUN_CONTRACT` | `1`, this contract's version | | `FLOW_CWD` | the session's directory | | `FLOW_REPO_ROOT` | the git work-tree top of that directory, when there is one | | `FLOW_BRANCH` | the current branch, when known | | `FLOW_PR` | the branch's pull request number, when known | | `FLOW_SESSION` | the session's title | | `FLOW_HOST` | the ssh destination of a remote session (never set in practice, since remote sessions run no providers) | ## Output format Print **one JSON object** on stdout, at most **1 MiB**: ```json { "version": 1, "run": [ { "label": "Build", "command": "just build", "detail": "release" } ], "docs": [ { "label": "Runbook", "url": "https://wiki.example.com/runbook" } ] } ``` - `version` is required and must be `1`. - `run` and `docs` are optional and take the same entry shapes as the flowspace keys: `{label, command, cwd?, detail?}` and `{label, url}`. - A relative `cwd` is relative to the session's directory; a leading `~/` is your home directory. - Unknown keys are ignored, and a malformed entry is skipped. - stderr is ignored unless the provider fails. ## Example provider A provider that offers every `just` recipe in the session's directory: ```sh #!/bin/sh # ~/bin/just-flow: list just recipes for the Flow launcher. [ "$FLOW_RUN_CONTRACT" = 1 ] || exit 2 cd "$FLOW_CWD" || exit 1 command -v just >/dev/null || { echo '{"version":1}'; exit 0; } just --summary 2>/dev/null | tr ' ' '\n' | awk ' BEGIN { printf "{\"version\":1,\"run\":[" } NF { printf "%s{\"label\":\"%s\",\"command\":\"just %s\"}", sep, $0, $0; sep = "," } END { print "]}" }' ``` Make it executable (`chmod +x ~/bin/just-flow`), register it as shown above, then press `⌘T` in a repository with a `justfile`. ## Failures A provider that fails shows as **one dim row** in the Run column, reading `NAME: REASON`. That row can't be selected or launched, and the other providers and static entries are unaffected. | Failure | Reason shown | |---|---| | The shell could not be started | `could not start: …` | | It ran past 5 seconds (it is killed) | `timed out after 5s` | | A non-zero exit | `exit status N`, plus its first stderr line | | Nothing on stdout | `printed nothing` | | More than 1 MiB on stdout | `output over 1 MiB` | | Not JSON, or not an object | `bad JSON` / `not a JSON object` | | `version` missing or not 1 | `missing version` / `unsupported version N` | ## Limits - Remote sessions run no providers and read only `~/.flow/flowspace.json`; their run entries run in the session's own terminal on the host. - A session on a paired device lists only the static `run` entries of that device's checkout, never its providers. - `docs` entries, from a file or a provider, only show while the Web tabs experiment is on. --- # Keybindings URL: https://flow.worldbreakstudios.com/docs/configuration/keybindings Rebind any Flow shortcut with keyboard.ACTION settings, the chord syntax, conflicts, global hotkeys, and the full action list with default chords. Every `⌘` shortcut in Flow is a named action with a setting, `keyboard.ACTION`, that holds its chord. You can rebind any of them, unbind them, or give a chord to an action that has none by default. A separate set of global hotkeys works while Flow is in the background. ## Rebind a shortcut in Settings 1. Open Settings (`⌘,`) and choose **Keyboard**. Shortcuts are grouped into Layout, Tabs & sessions, Focus, Editing and App. 2. Click a shortcut. The row starts recording. 3. Press the new chord. It must include `⌘`: bare `⌃` and `⌥` chords belong to the programs running in your terminals. 4. To cancel, press `Esc`. To unbind the action, press `⌫` (or Delete) with no modifier. **Restore defaults** on the Keyboard page puts every shortcut back to its default chord. You can also search for a shortcut from the command palette: type a query with a word starting with "shortcut", "key", "hotkey" or "binding" (for example "split shortcut") and the shortcut rows appear with their recorders. ## Rebind from settings.json or flow-cli The setting key is `keyboard.` plus the action's name from the tables below. Its value is a chord string: ```sh flow-cli settings apply keyboard.split_right cmd-shift-k # rebind flow-cli settings apply keyboard.new_files_tab cmd-alt-e # bind an unbound action flow-cli settings apply keyboard.toggle_snooze none # unbind flow-cli settings reset keyboard.split_right # back to the default chord ``` In `~/.flow/settings.json` (edit it only while Flow is quit; see [Settings](https://flow.worldbreakstudios.com/docs/configuration/settings.md#edit-settingsjson-by-hand)): ```json { "keyboard.split_right": "cmd-shift-k", "keyboard.toggle_snooze": "none" } ``` ## Chord syntax A chord is a list of tokens joined by `-`: | Token | Means | |---|---| | `cmd` | ⌘. Optional: every app shortcut includes ⌘ whether you write it or not. | | `shift` | ⇧ | | `alt` or `opt` | ⌥ | | `ctrl` | ⌃ | | anything else | the key; the last one wins | Keys are written in lowercase: letters (`k`), digits (`1`), punctuation (`,` `=` `[` `]` `;` `\` and the backtick), `minus` for the `-` key (a bare `-` is the separator), and `left`, `right`, `up`, `down` for the arrows. Shifted punctuation folds to its base key, so `{` is `[`, `}` is `]`, `+` is `=` and `_` is `minus`. `none` means unbound. | You want | Write | |---|---| | `⌘K` | `cmd-k` | | `⇧⌘K` | `cmd-shift-k` | | `⌃⌥⌘1` | `cmd-ctrl-alt-1` | | `⌘-` | `cmd-minus` | | `⇧⌘←` | `cmd-shift-left` | | no shortcut | `none` | ## Conflicts Two actions can hold the same chord. When you press it, only the first of them in the action list below runs; the other never fires. - **Settings › Keyboard** lets you record a chord that another action already holds, keeps both, and marks the conflict so you can fix it. - **The command palette and `flow-cli settings apply`** take the chord away from the action holding it, which becomes unbound (`none`). The reply names the action that lost it, so you can rebind it. The default chords never conflict with each other. Some share a key but apply in different places: for example `⌘F` is Find in page in a webview tab, and `⌘B` is Go to definition in a Files tab. ## Horizontal tabs mirror the arrow steps With horizontal tabs on (`appearance.horizontal_tabs`), sessions run left to right along the top strip and labels top to bottom in its dropdown, so the four `⇧⌘` arrow steps trade arrows: | Action | Sidebar layout | Horizontal tabs | |---|---|---| | Previous / next session (`prev_sidebar_tab`, `next_sidebar_tab`) | `⇧⌘↑` / `⇧⌘↓` | `⇧⌘←` / `⇧⌘→` | | Previous / next label (`prev_page`, `next_page`) | `⇧⌘←` / `⇧⌘→` | `⇧⌘↑` / `⇧⌘↓` | A chord you store for these four is the sidebar layout's; Flow mirrors it the same way when horizontal tabs are on. ## Global hotkeys These work system-wide, even while another app is in front. They use a different chord syntax: modifiers `shift`, `alt`, `ctrl` and `meta` (⌘) joined to a key by `+`, with the key spelled the way macOS key codes are named and case-sensitive: `KeyP`, `Digit1`, `Comma`, `Space`, `ArrowUp`. | Hotkey | Setting key | Default | Default chord | |---|---|---|---| | Command palette (anywhere) | `keyboard.global_palette` | `alt+meta+KeyP` | `⌥⌘P` | | Clipboard history (anywhere) | `keyboard.global_clipboard` | `alt+meta+KeyV` | `⌥⌘V` | | Search snippets (anywhere) | `keyboard.global_snippets` | `shift+meta+Comma` | `⇧⌘,` | | Paste next from clipboard cycle (anywhere) | `keyboard.global_clipboard_cycle` | `shift+meta+Digit1` | `⇧⌘1` | | Reset clipboard cycle (anywhere) | `keyboard.global_clipboard_cycle_reset` | `shift+meta+Digit2` | `⇧⌘2` | Set one to `none` (or an empty value) to turn it off. Record them in Settings › Keyboard › Global hotkeys; while a row records, every global hotkey is paused so the chord reaches the window. Changes apply at once, with no restart. While the Flow agent experiment is on, its toggle (`keyboard.toggle_flow`, `⌃⌘J`) is registered system-wide too. If macOS or another app already owns a chord, registration fails and Settings shows why. The in-app `⇧⌘P` palette shortcut keeps working either way. ## Fixed shortcuts A few keys are not actions and can't be rebound: | Keys | Where | Does | |---|---|---| | `⌘1`–`⌘9` | Sessions page, Dashboard | Switch to the Nth session (on the Dashboard, focus the Nth card) | | `⌃1`–`⌃9`, `⌃Tab` / `⌃⇧Tab` | a session in a session group | Jump to the group's Nth member, or the next / previous one | | `⌘1`–`⌘7` | New tab launcher | Pick a tab type (`⌘1`–`⌘6` while web tabs are off) | | `⌥1`–`⌥9` | New tab launcher | Launch the Nth Run row | ## Run an action without a shortcut Every action in the tables below also appears in the command palette (`⇧⌘P`) by its label, and runs from a shell by its name: ```sh flow-cli action split_right flow-cli action toggle_dashboard ``` ## Action reference Every rebindable action in Settings › Keyboard order (the order that decides conflicts). **Notes** marks actions that only apply in one place, and actions that only appear while an experiment is on (Settings › Experiments). ### Layout | Action | Setting key | Default | Notes | |---|---|---|---| | Split side-by-side | `keyboard.split_right` | `⌘D` | | | Split stacked | `keyboard.split_down` | `⇧⌘D` | | | Toggle context card | `keyboard.toggle_context_card` | unbound | | | Collapse/expand pane | `keyboard.toggle_collapse` | `⌥⌘M` | | | Focus mode: collapse other panes / zoom the dashboard card | `keyboard.toggle_focus_others` | `⌥⌘F` | | | Focus terminals | `keyboard.toggle_sidebar` | `⌘S` | | | Toggle tabs mode | `keyboard.toggle_horizontal_tabs` | unbound | | | Toggle dashboard | `keyboard.toggle_dashboard` | `⌘G` | | | Toggle dashboard side panel | `keyboard.toggle_dashboard_side` | `⌥⌘S` | Dashboard only | | Cycle dashboard PR filter | `keyboard.dashboard_pr_filter` | `⌥⌘G` | Dashboard only | | Focus dashboard side panel | `keyboard.dashboard_focus_side` | `⌘→` | Dashboard only | | Focus dashboard card | `keyboard.dashboard_focus_card` | `⌘←` | Dashboard only | | Toggle PR details panel | `keyboard.toggle_pr_meta` | unbound | | | Toggle PR activity order | `keyboard.toggle_pr_activity_order` | unbound | | | Toggle PR diff groups panel | `keyboard.toggle_pr_groups` | unbound | PR review tab | | Toggle Markdown preview | `keyboard.toggle_markdown_preview` | unbound | Files tab or PR review tab | | Request reviewers… | `keyboard.request_reviewers` | unbound | PR review tab | | Toggle file explorer | `keyboard.toggle_files_explorer` | `⇧⌘E` | focused Files tab | | Filter files | `keyboard.filter_files` | `⌥⌘E` | focused Files tab | | Toggle factory | `keyboard.toggle_factory` | `⌘;` | Factory experiment | | Close the Factory pane | `keyboard.factory_close_pane` | `⌥⌘\\` | Factory experiment; Factory page only | | Toggle the Factory secondary pane | `keyboard.factory_toggle_secondary` | unbound | Factory experiment; ⌘\ on the Factory page | ### Tabs and sessions | Action | Setting key | Default | Notes | |---|---|---|---| | New tab | `keyboard.new_tab` | `⌘T` | | | New terminal | `keyboard.new_terminal` | unbound | | | New webview… | `keyboard.new_webview` | `⌥⌘B` | Web tabs experiment | | Review pull request | `keyboard.review_pull_request` | `⌥⌘R` | | | Browse files | `keyboard.new_files_tab` | unbound | | | Change directory… | `keyboard.change_directory` | unbound | | | Notes | `keyboard.new_notes_tab` | unbound | | | New Shells tab | `keyboard.new_shells_tab` | unbound | | | New remote session… | `keyboard.new_remote_session` | unbound | | | Open PR as session… | `keyboard.open_pr_session` | unbound | | | Reopen closed session | `keyboard.reopen_closed_session` | `⇧⌘T` | | | Snooze / wake group | `keyboard.toggle_snooze` | `⇧⌘Z` | | | Babysit/stop babysitting group | `keyboard.toggle_babysit` | unbound | | | Mark group unread | `keyboard.mark_unread` | unbound | | | Open agent details | `keyboard.open_agent_details` | unbound | | | New session group | `keyboard.new_session_group` | unbound | | | New session in group… | `keyboard.new_session_in_group` | unbound | | | Rename session group… | `keyboard.rename_session_group` | unbound | | | Remove from session group | `keyboard.remove_from_session_group` | unbound | | | Ungroup sessions | `keyboard.ungroup_sessions` | unbound | | | Close session group | `keyboard.close_session_group` | unbound | | | Next session in group | `keyboard.next_group_member` | unbound | | | Previous session in group | `keyboard.prev_group_member` | unbound | | | Expand/collapse session group | `keyboard.toggle_session_group_fold` | unbound | | | Add to session group… | `keyboard.add_to_session_group` | unbound | | | Find in page… | `keyboard.find_in_page` | `⌘F` | focused webview tab | | Focus address bar | `keyboard.focus_address` | `⌘L` | focused webview tab | | Open in default browser | `keyboard.open_in_browser` | `⇧⌘O` | focused webview tab | | Copy link | `keyboard.copy_link` | `⇧⌘C` | focused webview tab | | Print… | `keyboard.print_page` | `⌃⌘P` | focused webview tab | | Developer tools | `keyboard.developer_tools` | `⌥⌘I` | focused webview tab | | Site information | `keyboard.site_info` | `⌃⌘I` | focused webview tab | | Previous tab | `keyboard.prev_tab` | `⇧⌘[` | | | Next tab | `keyboard.next_tab` | `⇧⌘]` | | | Open file in editor | `keyboard.open_in_editor` | `⌘O` | focused Files tab | | Open in Files | `keyboard.open_in_files` | `⌥⌘O` | PR review tab | | Go to definition | `keyboard.go_to_definition` | `⌘B` | focused Files tab | | Find references | `keyboard.find_references` | `⇧⌘B` | focused Files tab | | Switch session… | `keyboard.switch_session` | unbound | | | New label | `keyboard.new_section` | `⌃⌥⌘N` | | | Add session to the Factory… | `keyboard.factory_add` | unbound | Factory experiment | | Remove session from the Factory | `keyboard.factory_remove` | unbound | Factory experiment | | Lock Window to Session… | `keyboard.lock_window` | unbound | | | Locked Windows… | `keyboard.locked_windows` | unbound | | | Pop out tab | `keyboard.pop_out_tab` | unbound | | | Return pop-out to session | `keyboard.return_pop_out` | unbound | | | Pin pop-out on top | `keyboard.toggle_pop_out_pin` | unbound | | | Cycle pop-out mode | `keyboard.cycle_pop_out_mode` | unbound | | | Focus pop-out's session | `keyboard.focus_pop_out_session` | unbound | | ### Focus | Action | Setting key | Default | Notes | |---|---|---|---| | Focus previous tile | `keyboard.prev_tile` | `⌘[` | | | Focus next tile | `keyboard.next_tile` | `⌘]` | | | Focus pane left | `keyboard.focus_left` | `⇧⌘H` | | | Focus pane down | `keyboard.focus_down` | `⇧⌘J` | | | Focus pane up | `keyboard.focus_up` | `⇧⌘K` | | | Focus pane right | `keyboard.focus_right` | `⇧⌘L` | | | Previous sidebar tab | `keyboard.prev_sidebar_tab` | `⇧⌘↑` | ⇧⌘← with horizontal tabs | | Next sidebar tab | `keyboard.next_sidebar_tab` | `⇧⌘↓` | ⇧⌘→ with horizontal tabs | ### Editing | Action | Setting key | Default | Notes | |---|---|---|---| | Copy selection | `keyboard.copy` | `⌘C` | | | Paste | `keyboard.paste` | `⌘V` | | ### App | Action | Setting key | Default | Notes | |---|---|---|---| | New webview from command… | `keyboard.new_webview_from_command` | `⌥⇧⌘B` | Web tabs experiment | | New session… | `keyboard.new_group` | `⇧⌘N` | | | Go links | `keyboard.go_links` | unbound | | | Create go link | `keyboard.new_go_link` | unbound | | | Clipboard history | `keyboard.clipboard_history` | unbound | | | Search snippets | `keyboard.search_snippets` | unbound | | | Create snippet | `keyboard.create_snippet` | unbound | | | Import snippets | `keyboard.import_snippets` | unbound | | | Export snippets | `keyboard.export_snippets` | unbound | | | Paste next from clipboard cycle | `keyboard.clipboard_cycle_next` | unbound | | | Reset clipboard cycle | `keyboard.clipboard_cycle_reset` | unbound | | | Pick color | `keyboard.pick_color` | unbound | | | Close tab | `keyboard.close_tab` | `⌘W` | | | Close group | `keyboard.close_group` | `⇧⌘W` | | | Close session everywhere | `keyboard.close_group_everywhere` | unbound | Puddles experiment | | Pin/unpin group | `keyboard.toggle_pin` | unbound | | | Pin / unpin tab | `keyboard.toggle_pin_tab` | `⌥⌘P` | | | Show / hide title bar | `keyboard.toggle_title_bar` | `⌥⌘T` | | | Quit | `keyboard.quit` | `⌘Q` | | | Previous label | `keyboard.prev_page` | `⇧⌘←` | ⇧⌘↑ with horizontal tabs | | Next label | `keyboard.next_page` | `⇧⌘→` | ⇧⌘↓ with horizontal tabs | | Open settings | `keyboard.open_settings` | `⌘,` | | | Browse settings… | `keyboard.browse_settings` | unbound | | | Command palette | `keyboard.command_palette` | `⇧⌘P` | | | Find file | `keyboard.find_file` | `⌘P` | | | Search in files | `keyboard.search_in_files` | `⇧⌘F` | | | Show changes | `keyboard.show_changes` | unbound | | | Toggle Flyover Terminal | `keyboard.toggle_flyover` | `` ⌘` `` | | | Save as workspace | `keyboard.save_workspace` | `⇧⌘S` | | | Open pull request | `keyboard.open_pr_in_github` | `⇧⌘G` | | | Merge pull request | `keyboard.merge_pr` | `⇧⌘M` | | | Mark PR ready for review | `keyboard.mark_pr_ready` | unbound | | | Convert PR to draft | `keyboard.convert_pr_to_draft` | unbound | | | Close pull request | `keyboard.close_pr` | unbound | | | Enable auto-merge | `keyboard.enable_auto_merge` | unbound | | | Disable auto-merge | `keyboard.disable_auto_merge` | unbound | | | Change PR status… | `keyboard.pr_status` | unbound | | | Toggle Flow agent | `keyboard.toggle_flow` | `⌃⌘J` | Flow agent experiment; system-wide while it is on | | Increase font size | `keyboard.increase_font_size` | `⌘=` | terminal size in a terminal, chrome size elsewhere | | Decrease font size | `keyboard.decrease_font_size` | `⌘-` | terminal size in a terminal, chrome size elsewhere | | Screenshot to clipboard | `keyboard.screenshot_to_clipboard` | `⌃⌥⌘C` | | | Screenshot to file | `keyboard.screenshot_to_file` | `⌃⌥⌘S` | | | Go to Sessions | `keyboard.go_to_sessions` | `⌃⌥⌘1` | | | Go to first tool page | `keyboard.go_to_tool` | unbound | | | Go to Task Manager | `keyboard.go_to_tasks` | unbound | | | Go to Schedules | `keyboard.go_to_schedules` | unbound | Automations experiment | | Go to Reviews | `keyboard.go_to_pr_reviews` | unbound | Pull requests experiment | | Go to My PRs | `keyboard.go_to_my_prs` | unbound | Pull requests experiment | | Go to Factory | `keyboard.go_to_factory` | unbound | Factory experiment | | Go to Trash | `keyboard.go_to_trash` | `⌃⌥⌘3` | | | Go to Puddle | `keyboard.go_to_puddle` | `⌃⌥⌘2` | Puddles experiment | | Invite a device to your puddle… | `keyboard.puddle_invite` | unbound | Puddles experiment | | Install command-line tools… | `keyboard.install_cli` | unbound | | | Route gh through ghx (~/.zshrc)… | `keyboard.toggle_gh_alias` | unbound | | | Route git through gitx (~/.zshrc)… | `keyboard.toggle_git_alias` | unbound | | | Check for updates… | `keyboard.check_for_updates` | unbound | | | Download and install update… | `keyboard.install_update` | unbound | | | Relaunch to update | `keyboard.relaunch_for_update` | unbound | | | Notification history | `keyboard.show_notifications` | `⌥⌘N` | | | Clear notifications | `keyboard.clear_notifications` | unbound | | | Toggle Do Not Disturb | `keyboard.toggle_do_not_disturb` | unbound | | | Open label in new window | `keyboard.open_label_window` | unbound | | | Caffeinate | `keyboard.caffeinate` | unbound | | | Decaffeinate | `keyboard.decaffeinate` | unbound | | | Caffeinate for… | `keyboard.caffeinate_for` | unbound | | | Caffeinate until… | `keyboard.caffeinate_until` | unbound | | | Caffeinate status | `keyboard.caffeine_status` | unbound | | | Caffeine in menu bar | `keyboard.toggle_caffeine_menu_bar` | unbound | | | Keep display awake | `keyboard.toggle_caffeine_display` | unbound | | | Test decisions model connection | `keyboard.test_decisions_model` | unbound | Decisions experiment | | Run all cells | `keyboard.run_all_cells` | unbound | Notebooks experiment | | Restart kernel | `keyboard.restart_kernel` | unbound | Notebooks experiment | | Clear outputs | `keyboard.clear_outputs` | unbound | Notebooks experiment | | Evaluate hunk classifier | `keyboard.eval_hunk_classifier` | unbound | Decisions experiment | ## Limits - Every app shortcut needs ⌘. Chords without it are left to the terminal. - A conflicting chord only runs the first action in the list above. - An action whose experiment is off is hidden from Settings, the palette and search, and does nothing. --- # Appearance URL: https://flow.worldbreakstudios.com/docs/configuration/appearance Light and dark mode, accent color, terminal themes and colors, fonts, text sizes per display, the sidebar background, and reduce motion. Settings › Appearance controls how Flow looks: light or dark, the accent color, the terminal palette, fonts and text sizes, the sidebar's background and how much Flow animates. Every change applies live, without a restart. A sidebar label can also carry its own terminal theme and sidebar background. ## Light and dark mode `appearance.mode` picks the appearance: `system` (the default) follows macOS, `dark` and `light` keep Flow in one appearance. Terminal themes and sidebar backgrounds are chosen separately for each appearance, and the one for the current appearance applies. Programs in your terminals can follow the switch too. A program that turns on color-scheme notifications (DEC private mode 2031, `CSI ? 2031 h`) is told whenever Flow's scheme flips between dark and light, and `CSI ? 996 n` asks for the current scheme. Editors and tools that support this protocol can then swap their own themes. ## Accent color `accent` is the chrome's highlight color. `system` follows the macOS accent color; `blue`, `purple`, `pink`, `red`, `orange`, `yellow`, `green` and `graphite` override it. Flow derives all its chrome colors from the accent, so there are no separate chrome themes. The terminal's selection color is the accent too, unless a terminal theme sets its own. ## Terminal themes Pick a palette per appearance under Settings › Appearance › Terminal colors: | Setting | Choices | Default | |---|---|---| | `terminal.dark` | `default`, `solarized-dark`, `dracula`, `gruvbox-dark`, `nord`, `one-dark`, `tokyo-night`, `catppuccin-mocha`, `github-dark`, `github-dark-hc`, or a custom theme | `"default"` | | `terminal.light` | `default`, `solarized-light`, `gruvbox-light`, `one-light`, `github-light`, `github-light-hc`, or a custom theme | `"default"` | `default` is the adaptive palette: the standard ANSI colors on Flow's own terminal background. A preset sets the 16 ANSI colors plus foreground and background; the extended 256-color range stays standard. > **Note:** Picking a theme clears the colors you edited for that appearance. ### Edit terminal colors The **Terminal colors** editor lists every color with a swatch and a hex field, a Reset, and **Save as theme**: 1. Open Settings › Appearance and scroll to Terminal colors. 2. Click a swatch or type a `#rrggbb` value. The change shows in every pane at once. 3. Click **Save as theme** to keep the palette as a custom theme. It then appears in the theme list for that appearance. Edited colors are stored as overrides: `terminal.dark.overrides` and `terminal.light.overrides` hold only the colors that differ from the theme, as `{"KEY": "#rrggbb"}`. Saved custom themes are stored in `terminal.custom`. The color keys are: | Key | Color | |---|---| | `bg`, `fg` | background and foreground | | `cursor` | the cursor (defaults to the foreground) | | `sel` | the selection (defaults to the accent) | | `ansi0`–`ansi15` | the 16 ANSI colors | Flow reads these values leniently: a malformed entry, unknown key or bad hex value is skipped, never an error. ### A theme per label A sidebar label can have its own terminal theme for each appearance. Open the label editor and choose its **Theme** tab (`⌘2` in the editor): the theme you pick shows window-wide while that label is selected in the spaces bar. It is stored as `terminal.label.LABEL_ID.dark` / `.light`, takes the same values as `terminal.dark` / `terminal.light`, and never uses your color overrides. "All sessions" and labels without their own theme use the base theme. See [Labels and spaces](https://flow.worldbreakstudios.com/docs/workspace/labels-and-spaces.md). ## Fonts | Setting | Label | Default | Applies to | |---|---|---|---| | `appearance.ui_font` | App chrome font | `""` (each surface keeps its own face) | sidebar, tabs, palette and Dashboard | | `appearance.mono_font` | Terminal font | `""` (Flow's default) | the terminal grid and code | The pickers list the font families installed on your Mac, filtered as you type; the Terminal font picker offers monospaced families. Set a font back to `""` for the default: ```sh flow-cli settings apply appearance.mono_font "JetBrains Mono" flow-cli settings apply appearance.mono_font "" ``` A font change re-measures the terminal grid, as a size change does. ## Text size | Setting | Label | Range | Default | |---|---|---|---| | `terminal.font_size` | Text size › Terminal | 8–40 px | `15` | | `appearance.font_size` | Text size › App chrome | 8–40 px | `15` | | `appearance.match_text_across_displays` | Match text size across displays | on / off | `true` | `⌘=` and `⌘-` change the terminal size while a terminal is focused, and the App chrome size elsewhere. The App chrome size scales all of Flow's chrome, including the Settings window's list and controls. With **Match text size across displays** on, Flow scales text by each display's pixel density so it looks the same physical size on a laptop panel, a 1080p monitor and a 4K monitor. The size you set (or zoom to) is exact on the display you set it on, and the others scale from it. A display that reports no usable density (a projector, a TV, a virtual display) shows the plain size. ## Sidebar background The sidebar background is the ground painted under the window and the sidebar column. Set it per appearance in Settings › Appearance › Sidebar: - the built-in default, - a solid color, - or a gradient of 2 or 3 colors at an angle, each with an optional grain. Flow derives the sidebar's text and highlight colors from the background so they stay legible. It is stored as one JSON object per appearance: | Key | Holds | |---|---| | `appearance.sidebar_background.dark` / `.light` | the base background | | `appearance.sidebar_background.label.LABEL_ID.dark` / `.light` | a label's own background (set in the label editor's Theme tab) | ```json { "kind": "gradient", "stops": ["#1e3a5f", "#3b1e5f"], "angle": 180, "noise": 0.2 } ``` | Field | Meaning | |---|---| | `kind` | `"solid"` (uses the first stop only) or `"gradient"` (2 or 3 stops; more keep the first 3) | | `stops` | hex colors (`#rrggbb` or `#rgb`) | | `angle` | degrees, as in CSS: 0 runs bottom to top, 90 left to right, 180 top to bottom | | `noise` | grain intensity, 0 (none) to 1 | A label without its own background uses the base one for that appearance. An absent or invalid value means the built-in default. To set one from a shell, write the whole object: `flow-cli settings set appearance.sidebar_background.dark '{"kind":"solid","stops":["#202830"]}'`. ## Reduce motion `appearance.reduce_motion`: `system` (the default) follows the macOS Reduce Motion accessibility setting; `on` and `off` override it. With it on, Flow replaces movement with instant changes: folds, scroll glides, the Dashboard's marching-ants outline and close animations snap into place. Color flashes and fades stay, since they show you where something changed. ## All Appearance settings | Setting | Label | Type | Default | What it does | |---|---|---|---|---| | `appearance.mode` | Theme › Mode | choice: `system`, `dark`, `light` | `"system"` | System follows macOS; Dark and Light keep flow in one appearance. | | `accent` | Theme › Accent | choice: `system`, `blue`, `purple`, `pink`, `red`, `orange`, `yellow`, `green`, `graphite` | `"system"` | The chrome's highlight color. System follows macOS. | | `appearance.horizontal_tabs` | Layout › Horizontal tabs | toggle | `false` | Show sessions as tabs across the top of the window instead of in the sidebar. | | `appearance.reduce_motion` | Motion › Reduce motion | choice: `system`, `on`, `off` | `"system"` | System follows macOS's Reduce Motion accessibility setting. On replaces movement with instant changes. | | `sidebar_background` | Sidebar › Sidebar background | editor | — | The sidebar's ground per appearance: the default, a solid colour or a gradient, with grain. | | `terminal.font_size` | Text size › Terminal | number 8–40 px, step 1 | `15.0` | Font size of the terminal grid. ⌘= / ⌘− while a terminal is focused. | | `appearance.font_size` | Text size › App chrome | number 8–40 px, step 1 | `15.0` | Tabs, sidebar and other UI. ⌘= / ⌘− elsewhere. | | `appearance.match_text_across_displays` | Text size › Match text size across displays | toggle | `true` | Scale text by each display's pixel density so it looks the same size on every monitor. | | `appearance.ui_font` | Text size › App chrome font | font family | `""` | Sidebar, tabs, palette and dashboard. Unset, each keeps its own face. | | `appearance.mono_font` | Text size › Terminal font | font family | `""` | The terminal grid and code. | | `dashboard.card_w` | Dashboard › Card width | number 240–1200 px, step 20 | `560.0` | Column pitch the grid aims for, px at the default text size. Smaller fits more sessions. | | `dashboard.card_h` | Dashboard › Card height | number 170–990 px, step 20 | `430.0` | Row pitch the grid aims for, px at the default text size. Smaller fits more sessions. | | `terminal.dark` | Terminal colors › Dark theme | choice: `default`, `solarized-dark`, `dracula`, `gruvbox-dark`, `nord`, `one-dark`, `tokyo-night`, `catppuccin-mocha`, `github-dark`, `github-dark-hc` | `"default"` | The terminal palette in dark appearance. Picking one clears that palette's edited colors. | | `terminal.light` | Terminal colors › Light theme | choice: `default`, `solarized-light`, `gruvbox-light`, `one-light`, `github-light`, `github-light-hc` | `"default"` | The terminal palette in light appearance. Picking one clears that palette's edited colors. | | `terminal_colors` | Terminal colors › Terminal colors | editor | — | Every terminal color, editable: swatches, hex values, Reset and Save as theme. | Tab icons have their own section: see [Tab icons](https://flow.worldbreakstudios.com/docs/features/tab-icons.md). ## Limits - There are no chrome color themes beyond the accent. - A label's terminal theme ignores your color overrides. - Terminal presets only change the 16 ANSI colors and the foreground and background. --- # flow-cli URL: https://flow.worldbreakstudios.com/docs/cli/flow-cli Drive a running Flow app from a shell or an agent with flow-cli, with every subcommand, its flags and examples. `flow-cli` talks to a running Flow app over its command bus, a local socket. Anything the command palette can do, `flow-cli` can do: open sessions and tabs, type into panes, read what a pane shows, change settings, take screenshots. It is how scripts and coding agents drive Flow. ## Install flow-cli Flow ships `flow-cli` inside the app. To put it on your `PATH`: 1. Open Settings › Advanced › Command-line tools and click the **flow-cli, drop and ghx** button, or run **Install command-line tools…** from the command palette (`⇧⌘P`). 2. Flow links `flow-cli`, `drop`, `ghx`, `gitx` and `sink` into `/usr/local/bin`, asking for your administrator password once if it has to. Each link points into the installed app, so the tools update with Flow. Flow never replaces a file at that path that isn't its own: it skips it and says so. Set `FLOW_CLI_INSTALL_DIR` to install into another directory. When you run Flow from its app bundle (not straight from the disk image), it offers the install once. ## Quick start ```sh flow-cli ping # is the app answering? flow-cli --help # every command flow-cli new-session ~/src/app --layout dev # a new session with a saved profile flow-cli read panes # every pane: session id, session, title, process flow-cli send-text --session 42 --enter "npm test" flow-cli read pane 42 --lines 200 # what that pane shows, with scrollback flow-cli action toggle_dashboard # any action, by name flow-cli screenshot ~/Desktop/flow.png ``` ## Which app it talks to `flow-cli` picks the socket in this order: 1. `--socket PATH`, when given. 2. `$FLOW_SOCKET`. Flow sets it in every pane it starts, so `flow-cli` run inside a Flow terminal always talks to that app. 3. `~/.flow/bus.sock`. 4. Otherwise the most recently modified `~/.flow/worktrees/*/bus.sock`. With several Flow windows open, a command acts on the workspace window you brought forward last. ## Options, output and exit codes | Option | Meaning | |---|---| | `--socket PATH` | Talk to this socket. | | `--timeout SECS` | How long to wait for a reply. Default 10 seconds (longer for a few commands: 20 for `record stop`, 90 for `new-session --device` and `puddle-mount`, 60 for `puddle-unmount`). | | `-h`, `--help` | Print every command. `flow-cli read` alone lists the read commands. | | `--` | Ends the flags: every word after it belongs to the command, even one that looks like a flag. | Replies print as pretty JSON, except where plain text reads better: `read pane` prints the pane's lines, `read panes` and `read tasks` print one row per line, `screenshot` prints the file's path, and `schedule-add` prints the new id. Add `--json` to `read`, `state`, `commands`, `ping`, `sync`, `shells`, `factory`, `record` and `schedule-add` for raw JSON instead. | Exit code | Meaning | |---|---| | 0 | Done. | | 1 | The app refused the command; the message is on stderr after `error:`. | | 2 | No app answered on the socket. | | 64 | The command line was wrong; the usage follows on stderr. | Commands that name a session take its name (`--group NAME`, or a `GROUP` argument). Commands that name a pane take its session id, which `read panes` and `state` list. Read commands never change focus, the page or a pane's scroll position, so an agent can call them freely. > **Note:** While Flow shows its license screen, the bus answers read commands only. ## Basics | Command | What it does | |---|---| | `ping` | Check that the app answers. | | `state` | Print the app state as JSON: windows, groups, tabs, pages and more. | | `commands` | List every bus command. | | `action ` | Run a named action, the same as its shortcut or palette row (for example `split_right`). Names are listed in [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md#action-reference). | | `raw ''` | Send one raw JSON command line to the bus. | ## Sessions and tabs | Command | What it does | |---|---| | `new-session [--base ] [--layout ] [--background] [--host ] [--device [--label L]]` | Open a new session in a directory. `--base` forks from a ref, `--layout` applies a workspace profile, `--background` leaves the active session and page alone. `--host` (or a `dest:path` / `ssh://dest/path` directory) opens it on an ssh host; `--device` creates it on a paired device. | | `new-tab [--group ] [--tile ] [--background]` | Open a terminal tab in a tile (default: the active session's focused tile). `--background` changes no focus, page or active tab. | | `new-files-tab [--group ]` | Open a Files tab browsing the session's directory. | | `new-notes-tab [--group ]` | Show the session's Notes tab, opening one if none is open. | | `new-shells-tab [--group ] [--collection ] [--background]` | Show a Shells tab: the shells an agent session ran. | | `new-webview [--group ]` | Open a web tab (needs the Web tabs experiment). | | `new-webview-command [--group ]` | Open a web tab whose URL is the first line a shell command prints (needs the Web tabs experiment). | | `change-directory [--group ]` | Move a local session's working directory, like the pane header's folder button. New panes start there; the primary pane changes directory only at a bare prompt. | | `focus [--stay]` | Focus a session by name. `--stay` keeps the page (on the Dashboard it focuses that card). | | `focus-tile ` | Focus a tile by id, switching to its session and the Sessions page. | | `focus-tab ` | Focus the tab holding a pane (by session id) and switch to it. | | `close-tab ` | Close the tab holding a pane, as `⌘W` on it would. A pinned tab refuses. | | `close-group [--yes] [--everywhere]` | Open the close confirm for a session, or close it at once with `--yes`. `--everywhere` also closes a mirrored session on its device. | | `group pin\|unpin\|snooze\|unsnooze\|mark-unread\|mark-read` | Set a session's flags, as its sidebar row menu does. Also `mark-unread`, `mark-read`, `babysit`, `unbabysit`, `close [--everywhere]`. | | `group label\|unlabel