Configure paneflow.json Schema Reference
paneflow.json is a per-user JSON file. All keys are optional, and
{} is a valid config. The Rust config loader and runtime resolvers are
the source of behavior; the published JSON Schema
mirrors the public keys for editor validation and autocomplete.
This page describes the current development line of Paneflow. Keys marked Unreleased are not in v0.20.0 yet and ship with the next release.
Unknown top-level keys are ignored by the runtime but flagged by the schema in editors. A valid save is reloaded by the config watcher. During hot reload, invalid JSON, or a deleted file, keeps the previous valid config instead of broadcasting defaults. Startup reads an invalid file as defaults and logs a warning. A file larger than 1 MiB counts as invalid.
File locations
| Platform | Path |
|---|---|
| Linux and macOS | ~/.paneflow/paneflow.json |
| Windows | %USERPROFILE%\.paneflow\paneflow.json |
PANEFLOW_HOME moves the whole directory (config, session, worktrees, cache,
helper binaries). It must be an absolute path; a relative value is ignored.
While Paneflow uses the default ~/.paneflow, each launch copies
paneflow.json from the previous locations (~/.config/paneflow,
~/Library/Application Support/paneflow, %APPDATA%\paneflow) when
~/.paneflow has none, along with session.json, window-state.json, and
telemetry_id. The old files stay where they were. A PANEFLOW_HOME set
elsewhere skips this copy.
A home other than the default runs as its own instance, with its own
session host, worker, and IPC endpoint (paneflow-ipc-<fingerprint>.sock;
see the scripting reference), so the CLI of
one home reaches only that home's panes.
If the file does not exist on first launch, Paneflow boots with all defaults. Create the file at the path above to start customizing.
Editor schema
Add this at the top of the file for autocomplete in VS Code, Zed, JetBrains IDEs, Helix, and other JSON Schema-aware editors:
{
"$schema": "https://github.com/arthjean/paneflow/raw/main/schemas/paneflow.schema.json",
"$schemaVersion": "1.0.0"
}Top-level keys
| Key | Type | Default | Applied | Notes |
|---|---|---|---|---|
$schema | string | none | Editor only | Points editors to the published schema. Ignored by Paneflow. |
$schemaVersion | string | none | Startup/reload | Omitting it is fine. A version other than 1.0.0, or a value that is not a string, logs a warning and the file still loads. |
default_shell | string/null | Platform shell fallback | New terminal | A leading ~/ expands to the home directory. A bare name is looked up on PATH, then in /opt/homebrew/bin, /usr/local/bin, /usr/bin, and /bin; on Windows, bash resolves to Git Bash. A configured shell that cannot be found falls back to the platform chain and the terminal says which shell started instead. Unix chain: $SHELL -> /bin/sh. Windows chain: pwsh.exe -> powershell.exe -> %ComSpec% -> %SystemRoot%\System32\cmd.exe -> cmd.exe. |
theme | string/null | Paneflow Dark | Hot reload | The theme Paneflow applies: the light or dark variant of one preset, Paneflow, Vercel, Claude, Cursor, or Tailwind, for example Vercel Light. Lookup ignores case. The legacy names One Dark, Vercel, Claude, and Cursor resolve to Paneflow Dark, Vercel Dark, Claude Dark, and Cursor Dark. An unknown name falls back to Paneflow Dark with a warning in the log. |
theme_mode | string/null | derived from theme | Hot reload | light, dark, or system. Editing theme_mode by hand does not change the theme: theme alone sets it. Settings > Appearance and the command palette write both keys, picking the matching variant of the current preset. system follows the OS appearance and rewrites theme whenever it changes. When the key is missing or invalid, the mode follows theme: a Light theme reads as light, any other as dark. |
font_family | string/null | bundled JetBrainsMono Nerd Font | Hot reload cache | Accepts .PaneflowMono, JetBrainsMono NF, JetBrainsMono NFM, .PaneflowSans, the embedded families (JetBrainsMono Nerd Font, JetBrainsMono Nerd Font Mono, Geist Mono, Lilex, Geist, IBM Plex Mono, IBM Plex Sans), or an installed family. On macOS, a name that is not an installed monospace family falls back to the default; other platforms pass any name to the font system. |
font_fallbacks | string array/null | GPUI fallback stack | Hot reload cache | Ordered extra fallback families for glyphs missing from font_family. Empty entries are dropped, and an empty list behaves like null. |
font_size | number/null | 13.0 | Hot reload cache | Points, valid range 8.0 to 32.0; invalid values fall back to 13.0. |
font_weight | string/null | normal | Hot reload cache | One of thin, extra_light, light, semi_light, normal, medium, semi_bold, bold, extra_bold, black, extra_black. Case, hyphens, and spaces are tolerated (semibold, Extra-Light). extra_black renders like black. An invalid value falls back to normal with a warning. |
line_height | number/null | 1.0 | Hot reload cache | Multiplier of the font's own line height (ascent, descent, and line gap), valid range 0.8 to 2.5. The cell is rounded to whole device pixels. |
cell_width | number/null | 1.0 | Hot reload cache | Multiplier of the font's advance, valid range 0.8 to 2.0. The cell is rounded to whole device pixels. |
unfocused_pane_opacity | number/null | 1.0 | Hot reload | Opacity of panes that do not hold focus, when a workspace has more than one pane. Range 0.15 to 1.0; a value outside it is clamped, and 1.0 disables the dim. |
reduce_motion | boolean/null | false | Hot reload | Minimizes non-essential interface motion: hover transitions settle instantly and decorative animations render a static frame. Trackpad scrolling in a terminal moves by whole lines instead of following the gesture by the pixel. Toggled from Settings > Appearance or the command palette. |
comfortable_density | boolean/null | true | Hot reload | Separates the panes of a workspace into rounded cards with a gutter between them. false joins them edge to edge with a 1 px divider that keeps a 7 px grab area, and rounds only the outer corners of the grid and of the diff dock. Applies to the Rounded interface style only. Toggled from Settings > Appearance or the command palette. |
interface_style | string/null | classic | Hot reload | Layout and shape language of the interface. classic lays the window out edge to edge, with the tabs of the top panes and of the dock in the title bar, and draws circular corners on a tight 6, 8, 12, and 14 px scale. rounded floats the panes as cards under a full-width title bar and draws continuous corners with generous radii, and circular corners on menus, select popups, and settings cards. The former value paneflow still selects rounded. Set from Settings > Appearance > Interface style or the command palette. |
workspace_icon | string/null | default | Hot reload | Glyph in front of each workspace row of the sidebar, closed while the workspace is folded and open while its tabs show. default is Paneflow's outlined folder. standard draws a disclosure chevron, right when folded and down when open, in place of a folder. metal is a filled glass folder, windows a yellow gradient folder, windows95 the 16-color pixel folder, and pixel an outlined pixel folder. The two pixel styles are sharpest at a display scale of 100 % or 200 %. Set from Settings > Appearance > Workspace icon or the command palette. |
app_icon | string/null | glass | Hot reload on Windows and macOS; new windows on Linux X11 | Icon of the running app. glass is the installed violet glass icon; black and white draw the mark in horizontal bars on a black or a white tile; black-solid and white-solid draw its panes as solid shapes. Sixteen illustrated icons show the same mark in another material: aubergine, paper, midnight-matte, polar, melon, honeydew, berry, rainbow, solarwave, neon, phosphor, holo, amethyst, blueprint, chip, nostalgia. Windows shows it in Alt+Tab at once and points the shortcuts of your profile that open this Paneflow at it, the pinned taskbar one and the Start menu entry included, so the taskbar button follows at the next sign-in; macOS shows it in the Dock while Paneflow runs, and X11 as the window icon. On Linux, a release build also points your user copy of Paneflow's desktop entry at the chosen icon, so launchers show it on Wayland too, where the window icon itself is ignored. Set from Settings > Appearance > App icon. See App icon. |
sidebar_show | object/null | status, shimmer, agents, usage, agent_logo, agent_workspace, and agent_shimmer on, others off | Hot reload | What the sidebar rows show beyond their name: branch adds a checkout's git branch, diffstat adds its insertion and deletion counts, pr turns the branch icon into a pull-request glyph colored by the request's state when one exists, indent_guide draws a hairline under a workspace's folder icon down its tab rows. A checkout is shown once: the workspace row carries the branch and the counts of the workspace's own checkout, and a tab row carries them only when the tab is bound to a worktree of its own; grouped by status, every tab row carries its checkout's; pr needs the gh CLI and answers for GitHub remotes only. agents shows the Agents section at the bottom of the sidebar, the active space's agent sessions with the most urgent first. usage shows the plan-limits capsule, which usage.plan_limits: false also hides. status shows agent status on workspace and tab rows: the Need you, Error, and Done badges, the working matrix, the title shimmer, and the status tooltip; false leaves the status to the Agents section, and a tab's pull request takes the freed place. agent_logo and agent_workspace choose what each Agents row shows: the agent's logo and the workspace name after the title; a row always shows its status. shimmer and agent_shimmer animate the title of a working agent, on tab rows and on Agents rows respectively: the title turns gray and a bright band sweeps across it; false keeps the title still in its usual color. agent_all_spaces (off by default) lists every space's agents in the Agents section instead of the active space's alone, the active space's first in each status group, each row from another space naming it after its workspace. agent_logo, agent_workspace, agent_shimmer, and agent_all_spaces are toggled from the Customize agent rows button at the right of the Agents header, the others from the rail's Customize sidebar menu, which hides the agents and indent_guide toggles while rows are grouped by status. A sub-key that is not a boolean takes its own default, and a sidebar_show that is not an object takes every default. |
sidebar_group_by | string/null | folder | Hot reload | How the Workspaces sidebar groups its rows. folder lists each workspace as a folder row with its tabs under it. status lists the tabs of every workspace of the active space under status headings, in the order Need you, Error, Done, Working, Idle, each tab naming its workspace after its title; a tab takes the status of its most urgent agent, and Idle when it runs none. Grouping by status hides the Agents section, which would repeat the list, and adds a New tab button to the sidebar header that asks which workspace the tab opens in. Set from Customize sidebar > Group by or the command palette. |
worktrees | object/null | see below | Hot reload | Where Paneflow keeps the git worktrees it creates for branches and how it cleans them up: dir, auto_remove, keep_limit, for_new_branches. Settings > Worktrees edits the same keys. |
window_decorations | string/null | client | Startup, and new detached pane windows | client draws Paneflow chrome; server delegates to the OS compositor. Any other value means client. The main window reads it at launch; a pane window you detach later reads the current value. |
background_style | string/null | "themed" | Hot reload | Unreleased. Look of the window background. "themed" paints the app in solid theme colors. "blended" asks the system to blur what lies behind the window and paints one theme veil over it. When the key is absent, Paneflow resolves it from the legacy keys below, so a config saved by an older release keeps its look; an unknown value resolves to "themed". Set from Settings > Appearance > Background style or the command palette, which also removes the legacy keys. |
window_backdrop | string/null | auto | Startup | Deprecated after v0.20.0, replaced by background_style. auto, mica, blurred, acrylic, transparent, opaque, or off. On Windows, blurred and acrylic set in the config resolve to auto; only PANEFLOW_WINDOW_BACKDROP applies blur there. While background_style is absent, opaque or off (and transparent on macOS) resolves the style to Themed. On Linux, the blur follows the Blended background style. Settings and the command palette remove it when they save background_style. On Windows only, PANEFLOW_WINDOW_BACKDROP overrides it for one launch; macOS and Linux ignore that variable. |
windows_terminal_material | boolean/null | false | Window/terminal render | Deprecated after v0.20.0, replaced by background_style. Read only while background_style is absent: true on either Windows key resolves the style to Blended on Windows. Settings and the command palette remove it when they save background_style. Ignored on other platforms. |
windows_chrome_material | boolean/null | false | Window/chrome render | Deprecated after v0.20.0, replaced by background_style. Read only while background_style is absent: true on either Windows key resolves the style to Blended on Windows. Settings and the command palette remove it when they save background_style. Ignored on other platforms. |
windows_material_veil | boolean/null | false | Window/chrome render | Deprecated after v0.20.0, replaced by background_style, and no longer read. Settings and the command palette remove it when they save background_style. |
macos_chrome_material | boolean/null | false | Window/chrome render | Deprecated after v0.20.0, replaced by background_style. Read only while background_style is absent: true resolves the style to Blended on macOS. Settings and the command palette remove it when they save background_style. Ignored on other platforms. |
linux_terminal_material | boolean/null | false | Window/terminal render | Deprecated after v0.20.0, replaced by background_style. Read only while background_style is absent: true on either Linux key resolves the style to Blended on Linux. Settings and the command palette remove it when they save background_style. Ignored on other platforms. |
linux_chrome_material | boolean/null | false | Window/chrome render | Deprecated after v0.20.0, replaced by background_style. Read only while background_style is absent: true on either Linux key resolves the style to Blended on Linux. Settings and the command palette remove it when they save background_style. Ignored on other platforms. |
option_as_meta | boolean/null | true on Linux and Windows, false on macOS | Hot reload | Sends Alt/Option as ESC-prefix Meta. On macOS, true makes Option plus a letter send Meta instead of composing a character; keep false when Option should type Unicode characters. A config reload applies it to open terminals. |
shell_integration | boolean/null | true | New terminal | Enables Paneflow shell snippets for OSC 7 CWD and OSC 133 command marks. |
editor | object/null | defaults below | Hot reload | How the code editor and the dock's file viewers show a file: minimap, scrollbar, word_wrap, markdown_rendered, csv_table, and semantic_tokens (Unreleased). See editor. |
language_servers | object | rust-analyzer and zls built in | Next file opened | Unreleased. Language servers for semantic highlighting, by server id. See language_servers. |
automation | object/null | all off | Hot reload | Background work run after an agent turn: tab_auto_naming summarizes the session's recent exchange into a 2-5 word tab name through a CLI that can summarize: the session's own agent when it is one of claude -p, codex exec, opencode run, or pi --print, otherwise the first of them installed. Claude Code runs with --model haiku (or ANTHROPIC_SMALL_FAST_MODEL), and Claude Code, Codex, and Pi run with their tools disabled; OpenCode runs with --pure. Only tabs that hold a single surface are named. A session is tried at most once per three minutes, counted from the last attempt, and only when the conversation grew; one summary runs at a time, with a 60-second limit. A name you typed is never replaced; "Reset name" reopens the tab to it. |
submit_paste_delay_ms | integer/null | 70 | IPC send | Floor delay between bracketed paste and Enter for paneflow send --submit. Range 10 to 5000; a value outside it is clamped with a warning. The session host reads it once when it starts, so a change reaches hosted sessions after the host restarts. |
external_editor | string/null | auto | Next open action | Editor that opens file links, including terminal file links: auto, system, zed, cursor, webstorm, code, or visual_studio. auto uses $VISUAL, then $EDITOR, skipping terminal editors such as vim, nvim, hx, emacs, or nano, then the first of code, cursor, zed, subl, code-insiders, and webstorm found on PATH, and last the OS opener. system always uses the OS opener. visual_studio runs devenv. A named editor that is not on PATH or fails to start falls back to auto, and so does the former value windsurf. |
shortcuts | object | {} | Hot reload | Maps keystrokes to action names. See shortcuts and actions. |
terminal | object/null | defaults below | Mixed | Namespaced terminal renderer and PTY settings. |
commands | array | [] | Settings/Run | Shell commands for the command palette and workspace templates for Settings > Workspaces. See commands. |
agent_profiles | array | [] | Hot reload | Custom launcher entries that run a built-in agent with extra environment variables and arguments, for example a second Claude Code account through CLAUDE_CONFIG_DIR. Settings > Agents edits the same list: New preset in an agent's settings adds an entry, and Add account writes the one that names an account's folder. |
spaces | array | [] | Hot reload | Named groups of workspaces, at most 9. The sidebar lists only the active space's workspaces. See spaces. |
claude_code_bypass_permissions | boolean/null | false | Next Claude launch | Adds --permission-mode bypassPermissions to the Claude Code launcher. High-risk opt-in. |
ipc | object/null | both gates closed | Next request after save | Unreleased. IPC write gates for processes running in a pane: scripting and orchestration. See ipc. |
ai_unrestricted | boolean/null | false | Per IPC call | Opens both IPC gates, ipc.scripting and ipc.orchestration, for callers in panes and outside Paneflow, so trusted conductors can submit to peer panes. It cannot reopen them for a pane while the ipc section is malformed, and a caller Paneflow cannot identify stays refused. See ipc. |
ai_injection_fence | boolean/null | true | Per read call | Wraps surface.read and surface.search output in an untrusted-output fence by default. A fenced parameter on the call overrides it. |
on_quit | ask, keep, stop, null | ask | At quit | What quitting does while hosted sessions run: ask opens the quit dialog, keep leaves every session running, stop stops them all and shuts the host down. With no live session the app exits and shuts the idle host down. A restart to install an update with live sessions asks even under keep; only stop skips the dialog. The dialog's remember option writes this key. An invalid value means ask. |
agent_prompts | native, paneflow, null | native | At the next agent question | Unreleased. Where a coding agent's own questions and permission requests are answered: native leaves them in the agent's terminal, paneflow shows Claude Code's questions and the permission requests of Claude Code and Codex as a Paneflow prompt, with a way back to the terminal. Codex questions are never intercepted. |
agent_panel | object/null | defaults below | Agents UI | Agents-view notification preferences. |
agents | object/null | defaults below | Restore and next launch | Agent conversation restore, CLI update methods, default accounts, Claude Code session-id preassignment, and per-agent grants and sandbox. See agents. |
usage | object/null | defaults below | Next integration refresh | Subscription usage: whether Paneflow relays Claude Code plan limits. |
telemetry | object/null | { "enabled": null } | Hot reload | Desktop telemetry consent. Setting PANEFLOW_NO_TELEMETRY, DO_NOT_TRACK, or NO_TELEMETRY to any value, even 0, turns telemetry off whatever this key says. |
Agent launcher buttons
Each button key is boolean/null. null, omission, or a value that is not a
boolean auto-detects the CLI binary. false hides the button. true forces it
visible on the platforms the agent supports.
On Windows, the pane palette, the New pane menu, and the welcome screen offer
only the agents marked Windows below, and hide agent_profiles entries based
on the others.
| Key | Agent | Platforms |
|---|---|---|
claude_code_button_visible | Claude Code | Linux, macOS, Windows |
codex_button_visible | Codex | Linux, macOS, Windows |
opencode_button_visible | OpenCode | Linux, macOS |
pi_button_visible | Pi | Linux, macOS |
hermes_agent_button_visible | Hermes Agent | Linux, macOS |
grok_button_visible | Grok | Linux, macOS |
amp_button_visible | Amp | Linux, macOS, Windows |
gemini_button_visible | Gemini | Linux, macOS, Windows |
copilot_button_visible | Copilot | Linux, macOS, Windows |
factory_button_visible | Factory | Linux, macOS |
openclaw_button_visible | Openclaw | Linux, macOS |
muse_button_visible | Muse Code | Linux, macOS |
fx_button_visible | fx | Linux, macOS |
terminal
| Key | Type | Default | Applied | Notes |
|---|---|---|---|---|
terminal.ligatures | boolean/null | true | Hot reload cache | Enables programming ligatures when the active font supports them. |
terminal.integrated_glyphs | boolean/null | true | Hot reload | Draws built-in block glyphs as filled quads. |
terminal.color_emoji | boolean/null | true | Hot reload | Uses the platform color-emoji path. |
terminal.cursor_color | string/null | theme cursor | Hot reload/new terminal | #RRGGBB, RRGGBB, #RGB, or RGB. |
terminal.scrollbar | boolean/null | true | New terminal view | Overlay scrollbar shown while scrolling or hovering the right edge of a pane. |
terminal.scrollback_lines | integer/null | 10000 | New terminal | Range 100 to 100000; a value outside it is clamped with a warning. Agent terminals cap at 10000 and cached terminals at 1000. |
terminal.cursor_shape | string/null | block | New terminal view | vintage, block, beam, underline, double_underline, or hollow. The aliases filled_box, bar, underscore, double_underscore, and empty_box are accepted too. An unknown value means block, with a warning. |
terminal.osc52_clipboard | string/null | copy | New terminal view | Available since v0.17.5. copy lets the focused terminal write the system clipboard through OSC 52; off refuses all OSC 52 writes; an unknown value means copy. OSC 52 clipboard reads are always denied. Existing terminal views keep their policy until recreated. |
terminal.open_links_in | string/null | dock | Immediate | Available since v0.20.0. Where a clicked code path such as src/main.rs:12 opens: dock opens the file in the Files dock at that line, external_editor opens it in the external editor. Holding Shift while clicking picks the other one. Markdown paths keep opening in a pane. An unknown value means dock. |
terminal.xt_checksum_report | boolean/null | false | New session | Available since v0.17.7. Answers DECRQCRA checksum requests (CSI Pi ; Pg ; Pt ; Pl ; Pb ; Pr * y), which conformance suites such as vttest and esctest rely on. Off by default because a running program can checksum the screen one cell at a time and so read back everything on it, including output from other programs. While it is off, XTCHECKSUM (CSI Ps # y) is ignored as well. The session host reads it each time it starts a session. |
terminal.xt_checksum_extension | integer/null | 0 | New session | Available since v0.17.7. How the DECRQCRA checksum is calculated, with the bits of XTCHECKSUM and xterm's checksumExtension: 1 keeps the result positive, 2 leaves out cell video attributes, 4 counts blanks, 8 counts cells never written to as spaces, 16 uses full codepoints instead of DEC 8-bit values. 0 is the calculation of a real DEC terminal. Range 0 to 31. A value outside it, such as 32, -1, 1.5, or "4", drops only this key: it falls back to 0 with a warning that names the key and the range, and the rest of the file still applies, at startup and on reload. A full reset (ESC c) returns to this value. |
terminal.cursor_blink | string/null | terminal_controlled | New terminal view | on, off, or terminal_controlled. An unknown value means terminal_controlled, with a warning. |
terminal.env | object/null | none | New terminal | Environment variables injected into every new terminal. Per-surface env wins. Values are passed through verbatim: no ~ and no $NAME expansion, unlike agent_profiles.*.env. Keys Paneflow sets for every terminal (TERM, COLORTERM, TERM_PROGRAM, TERM_PROGRAM_VERSION, SHLVL, ZDOTDIR, PANEFLOW_ORIG_ZDOTDIR, PANEFLOW_WORKSPACE_ID, PANEFLOW_SURFACE_ID, PANEFLOW_SOCKET_PATH, PANEFLOW_BIN_DIR) are ignored and logged once, as are invalid names and keys that change how programs load or run agents (LD_*, DYLD_*, agent session markers, Paneflow's resume tokens). On Windows, names are upper-cased. LANG defaults to en_US.UTF-8 only when LANG, LC_ALL, and LC_CTYPE are all unset. |
terminal.scroll_multiplier | number/null | 1.0 | New terminal view | Range 0.1 to 10.0. Ignored in mouse-reporting and alternate-screen scroll paths. |
terminal.minimum_contrast | number/null | Auto (60) | Hot reload | Minimum APCA lightness contrast (Lc) enforced between text and its cell background, on the colors a program chose (truecolor and palette indices 16 to 255). The theme's sixteen ANSI colors, foreground, and background are never corrected. Unset means Auto, which is 60 on every theme; 0 turns the correction off; a negative or non-numeric value means Auto. Range 0 to 90; a higher value counts as 90. |
terminal.program_resume | object/null | mode: ask, no trusted program | Next restore | Unreleased. What Paneflow does with the program that was running in a terminal when its hosted session did not survive, for example after a reboot. mode is ask (offer to start it again, except trusted programs, which restart at once), auto (restart every program), or off (offer nothing). trusted_programs lists bare program names, such as htop, compared with the first word of the recorded command; a name with a path separator, an empty name, ., .., or a drive prefix such as C: is ignored with a warning, and duplicates are dropped. An invalid mode means ask, and a block that is not an object means ask with no trusted program. A program still starting when the session ended is only offered. An agent CLI restarts through its own resume command; with agents.restore_conversations: false it is only offered. |
editor
| Key | Type | Default | Applied | Notes |
|---|---|---|---|---|
editor.minimap | boolean/null | false | Hot reload | Draws a minimap of the file along the editor's right edge. Toggled from the editor's controls menu; the choice applies to every open file. |
editor.scrollbar | boolean/null | true | Hot reload | Draws the editor's vertical scrollbar. Toggled from the editor's controls menu; the choice applies to every open file. |
editor.word_wrap | boolean/null | false | Next file open | Wraps long lines at the editor's width when a file opens, at the last space that fits. Word Wrap, at the top of the editor's controls menu, changes it for one tab only. Up, Down, Page Up, and Page Down move by visual row. |
editor.markdown_rendered | boolean/null | false | Next file open | Shows Markdown files of up to 10 MiB rendered in the dock rather than as source. Show rendered markdown and Show markdown source in the file header switch the current tab and save the choice for files opened next; other open tabs keep their view. A file opened at a requested line always shows its source, and a larger file shows a "File too large to render" notice. |
editor.csv_table | boolean/null | true | Next file open | Shows .csv and .tsv files of up to 10 MiB as a read-only table in the dock rather than as source. Show source and Show table in the file header switch the current tab and save the choice for files opened next; other open tabs keep their view. false opens them as editable text. |
editor.semantic_tokens | boolean/null | false | Hot reload | Unreleased. Colors code with the semantic tokens of a language server from language_servers, over the syntax colors. Toggled from Settings > Editor > Semantic highlighting. |
agent_panel
| Key | Type | Default | Notes |
|---|---|---|---|
agent_panel.notify_when_agent_waiting | string/null | Never | PrimaryScreen or Never. AllScreens is accepted and behaves like PrimaryScreen; any other value means Never, with a warning. Also governs desktop notifications that terminal programs send with OSC 9 or OSC 777. |
agents
Any key of agents other than the four settings below names an agent
profile: an agent_profiles name, an agent tag such as claude_code, the
agent's command such as claude, or its runtime slug such as claude-code,
compared without case. It holds that agent's grants, sandbox, and
sandbox_unix_scope.
| Key | Type | Default | Notes |
|---|---|---|---|
agents.restore_conversations | boolean/null | true | When a pane's hosted session did not survive, for instance after a reboot, Paneflow opens a shell in the recorded folder and types the runtime's resume command for the conversation last started in that pane. Set to false to only reopen the shell. |
agents.update_methods | object | {} | How Settings › Agents updates each agent's CLI, keyed by runtime slug such as claude-code or codex. auto (or no entry) uses the tool that installed it; self runs the agent's own updater; npm, bun, pnpm and yarn install its npm package globally with that tool; script reruns its official installer, through PowerShell on Windows and curl elsewhere. Choosing a tool other than the one that installed the CLI installs a second copy, and the copy first on PATH is the one that runs. |
agents.default_accounts | object | {} | Unreleased. The account every new pane starts on, keyed by runtime slug (claude-code, codex or grok): a config directory, absolute or starting with ~, passed to the pane as CLAUDE_CONFIG_DIR, CODEX_HOME or GROK_HOME. A space that sets its own directory wins, and open panes keep their account. An agent left out uses its own default directory. The workspaces of Default, the implicit space, get these directories too. |
agents.claude_preassign_session_id | boolean/null | false | The Claude Code shim adds --session-id <uuid> to a fresh interactive claude launch, so Paneflow knows the conversation before any hook arrives. Read by panes started after the change. |
agents.<profile>.grants | array | none | Unreleased. Standing grants for the panes that run this agent, each {"rights": [...], "scope": ...} with rights among write, spawn, and layout, and scope workspace (default) or instance. An invalid entry drops every grant of that profile, with a warning. See How does an agent get a grant? |
agents.<profile>.sandbox | string | none | Unreleased. "paneflow" runs the agent's panes in Paneflow's sandbox, on Linux only. On another platform, or with any other value, the profile does not start and Paneflow says why. See How do I sandbox an agent's pane? |
agents.<profile>.sandbox_unix_scope | boolean | false | Unreleased. Also confines pathname Unix sockets in the sandbox, when the kernel's Landlock supports it. A value that is not a boolean keeps the profile from starting. |
usage
| Key | Type | Default | Notes |
|---|---|---|---|
usage.plan_limits | boolean/null | true | Paneflow installs its status line relay, paneflow-ai-hook StatusLine, in each Claude Code config directory whose settings.json has no statusLine, so the plan limits Claude Code hands its status line reach Paneflow. A status line of your own is never changed. false removes the relay at the next integration refresh. No credential is read. |
usage.sidebar_agents | array/null | null | The agents whose plan limits the sidebar capsule and its bubble show, by runtime slug: claude-code, codex. null shows every agent, and an empty list hides the capsule. Settings › Usage always lists every account. Set from Settings › Usage › Sidebar. |
worktrees
Paneflow creates a git worktree when you open a branch from the "New pane"
palette, a tab's context menu, or paneflow up. Nothing is written inside the
checkout: the ownership marker lives in the worktree's own git dir
(.git/worktrees/<name>/ in the main repository), so git status stays
clean and the marker disappears with the worktree. Settings > Worktrees edits
the same keys and lists the worktrees Paneflow manages.
Leaving the branch name empty in the palette creates a detached checkout at
the chosen base, named <base>-<sha7>; "Create branch here…" in the tab's
context menu turns it into a branch later, keeping any uncommitted changes.
A .worktreeinclude file at the repository root lists the files and
directories to copy into every new worktree, typically git-ignored ones, one
path per line relative to the root, # for comments, trailing / optional
for directories. Absolute paths and paths with .. are skipped. Without the
file, Paneflow copies the top-level .env* files and AGENTS.override.md
when they exist; with it, only what it lists. A file that already exists in
the worktree is never overwritten.
Before a managed worktree is removed, automatically or by hand, its
uncommitted changes are saved as a snapshot commit under
refs/paneflow/snapshots/ in the main repository: tracked edits, new files,
and the branch it was on. Settings > Worktrees lists the snapshots; Restore
recreates the worktree with those changes uncommitted on the same branch,
Delete drops the ref. A clean worktree leaves no snapshot.
| Key | Type | Default | Notes |
|---|---|---|---|
worktrees.dir | string/null | ~/.paneflow/worktrees | Root directory for managed worktrees. Each repository gets a subdirectory named <repo>-<hash>, each branch a directory under it. The default is ~/.paneflow/worktrees on every platform (%USERPROFILE%\.paneflow\worktrees on Windows). ~ expands to the home directory; a path that is still relative after that is ignored and the default applies. Worktrees created under an earlier root, including the old <repo>.worktrees/ sibling, keep working where they are. |
worktrees.auto_remove | boolean/null | true | Remove a managed worktree when its workspace closes, and trim the oldest managed worktrees past keep_limit. Uncommitted changes are saved as a snapshot first, and the branch is never deleted. false keeps every worktree until you remove it from Settings > Worktrees or the tab menu. |
worktrees.keep_limit | integer/null | 15 | Number of managed worktrees to keep before the oldest ones are removed, while auto_remove is on. A worktree that an open tab or a live session uses is never trimmed. 0 to 200; a higher value counts as 200. |
worktrees.for_new_branches | boolean/null | true | Default state of the Worktree toggle in the New branch form. true creates a worktree for the branch; false switches the workspace checkout to it instead, and the pane opens at the repository root. The toggle rewrites this key, and the switch is refused while an agent is working in that checkout. |
{
"worktrees": {
"dir": "~/worktrees",
"auto_remove": true,
"keep_limit": 15
}
}ipc
Unreleased. ipc holds the two write gates that a process running in a
pane needs before it can type into another pane or launch something. Each
gate applies to the next request after you save the file. Unknown keys are
ignored. A malformed section, one that is not an object or holds a value
that is not true or false, is logged with its key and closes both gates
for every pane, even with ai_unrestricted. The window and the background
process always pass the gates; a caller Paneflow cannot identify never
does. A process outside Paneflow passes when ai_unrestricted is on or the
gate is open. See
How do I write safely? for
grants, which open a gate for one pane.
The environment variables PANEFLOW_IPC_SCRIPTING=1 and
PANEFLOW_IPC_ORCHESTRATION=1, set on Paneflow's process, still open the
matching gate for processes outside Paneflow, and for panes only while
paneflow.json has no ipc section. A pane that relies on them gets a
one-time deprecation notice: they stop working for panes in the next
release.
| Key | Type | Default | Notes |
|---|---|---|---|
ipc.scripting | boolean/null | false | Opens text and keystroke writes: surface.send_text, surface.send_keystroke, and session.input. Implies ipc.orchestration. |
ipc.orchestration | boolean/null | false | Lets a request launch a command, a prompt, or string environment variables, or apply a layout whose surfaces carry a session or a scrollback, and lets --scope all reach every workspace. |
language_servers
Unreleased. With editor.semantic_tokens on, opening a file in the Files dock starts the
language server that handles its extension, one process per server and Files
dock root, shared by every open file of that root and stopped when the last of
them closes. A file outside the Files dock root gets no server. Two servers are
built in: rust-analyzer for .rs files and zls for .zig and .zon files.
Extensions match without case. When several enabled servers handle one
extension, the built-in one wins, then the first id in alphabetical order.
A language server can run the project it opens, for example its build scripts
and procedural macros. The first time a server would start for a root, the
editor asks with a banner naming both, and starts the server only on
Start. The answer is kept in ~/.paneflow/language-server-trust.json
(%USERPROFILE%\.paneflow\language-server-trust.json on Windows), never in
the repository; Not now asks again after Paneflow restarts. Forget
language server permissions in Settings > Editor empties the file.
Paneflow never downloads a server. A command that is a bare name is searched
in the absolute directories of PATH (a relative or empty entry is skipped),
an absolute path is used as written, and a relative path is rejected. A server
that cannot be found does not start; the next file opened starts it once it is
installed in a directory of Paneflow's PATH, and a directory added to PATH
later needs a Paneflow restart. A server that exits or breaks the protocol is
restarted once; a second failure leaves it stopped until the last file it
serves closes or you click Restart in the editor's banner.
| Key | Type | Default | Notes |
|---|---|---|---|
language_servers.<id>.command | string | built-in value | Program to run: a bare name found on PATH or an absolute path. Required for an id that is not built in. |
language_servers.<id>.args | string array | [] | Arguments passed to the program. |
language_servers.<id>.extensions | string array | built-in value | File extensions, without the dot, whose files the server handles. Required for an id that is not built in. |
language_servers.<id>.language_id | string | built-in value | The LSP languageId sent when a document opens. Required for an id that is not built in. |
language_servers.<id>.enabled | boolean | true | false keeps the server from starting. |
language_servers.<id>.initialization_options | any | none | Sent as initializationOptions in the server's initialize request. |
language_servers.<id>.settings | any | none | Returned to the server's workspace/configuration requests: an item naming a section that is a key of this object gets that key's value, any other item the whole object. |
An entry with a built-in id replaces only the fields it sets. Any other id adds
a server. gopls, for example, sends semantic tokens only when its
semanticTokens setting is on:
{
"editor": { "semantic_tokens": true },
"language_servers": {
"rust-analyzer": { "command": "/opt/rust-analyzer/bin/rust-analyzer" },
"gopls": {
"command": "gopls",
"extensions": ["go"],
"language_id": "go",
"settings": { "semanticTokens": true }
}
}
}A malformed entry, an unknown field included, is skipped with a log line and
the other entries still load. A language_servers value that is not an object
is ignored with a warning.
agent_profiles
agent_profiles is a list. Each entry adds a launcher item that runs one of
the built-in agents with extra environment variables and arguments. Profiles
show up in the pane palette next to the built-in agents, and keep the base agent's status tracking, hooks, and sessions.
Settings > Agents edits the same list: New preset in an agent's settings adds an entry, and Add account writes the one that names an account's folder.
| Key | Type | Default | Notes |
|---|---|---|---|
agent_profiles.*.name | string | required | Label shown in the launcher. |
agent_profiles.*.agent | string | required | Tag of the base agent: claude_code, codex, opencode, pi, hermes, grok, amp, gemini, copilot, factory, openclaw, muse, or fx. |
agent_profiles.*.env | object | {} | Environment variables set on the agent process. A value that is ~ or starts with ~/ (~\ on Windows) expands to the home directory, and $NAME, ${NAME} or %NAME% anywhere in a value takes that variable from Paneflow's own environment. A $ or % that names nothing stays literal; a name the environment does not define is refused by the Settings editor and, in a hand-written config, leaves the whole value untouched with a warning in the log. |
agent_profiles.*.args | string array | [] | Extra arguments appended after the base agent's own flags. Each token must be a plain word: letters, digits, -, _, ., =. |
An entry with an unknown agent tag, a blank name, an env key that is not a
variable name, or an unsafe token is skipped with a warning; the other profiles
still load.
{
"agent_profiles": [
{
"name": "Claude perso",
"agent": "claude_code",
"env": { "CLAUDE_CONFIG_DIR": "~/.claude-perso" },
"args": ["--model", "opus"]
}
]
}spaces
spaces is a list of named groups of workspaces, like spaces in Arc. Each
workspace belongs to one space, and the sidebar and Cmd/Ctrl+1 to
Cmd/Ctrl+9 only cover the workspaces of the active space. A workspace with
no space belongs to the implicit space named Default. With no spaces
entry, nothing changes. Which space holds each workspace, and which space is
active, are kept in session.json, not here.
| Key | Type | Default | Notes |
|---|---|---|---|
spaces.*.id | string | required | Lowercase hyphenated UUID that session.json uses to refer to the space. Keep it when you rename the space. |
spaces.*.name | string | required | Name shown for the space, 1 to 32 characters after trimming, unique ignoring case. Default is reserved. |
spaces.*.color | string | none | red, green, yellow, blue, magenta, or cyan: the gradient family drawn in the space's circle when it has no image, the same in every theme. Any other value leaves the space without a color. |
spaces.*.avatar | string | none | File name of the space's image in avatars/ under the Paneflow home, a 96 pixel square PNG written by Settings > Spaces. The image replaces the color's gradient in the sidebar and in Settings. A value that does not match ^[A-Za-z0-9][A-Za-z0-9.-]{0,91}\.png$ is ignored with a warning in the log. |
spaces.*.env | object | {} | Variables set on every terminal of the space's workspaces opened after the change. Precedence, lowest first: terminal.env, the agents.default_accounts directories, spaces.*.env, agent_profiles.*.env, the surface's env. ~/ expands to the home directory and $NAME to Paneflow's environment. |
An entry with a missing or malformed id, an id already used, an empty,
duplicate, reserved, or too long name, or any entry after the ninth valid one,
is skipped with a warning in the log; the other spaces still load. A spaces
value that is not an array loads as an empty list. When an edit removes a
space while Paneflow runs, its workspaces move to Default, which becomes the
active space if the removed one was.
A key in env that is not a variable name, starts with PANEFLOW_, is one
Paneflow sets for every terminal (TERM, COLORTERM, TERM_PROGRAM,
TERM_PROGRAM_VERSION, SHLVL, ZDOTDIR), or changes how programs load or
run agents (LD_*, DYLD_*, inherited agent session markers such as
CLAUDECODE, Paneflow's resume tokens) is ignored with a warning in the log,
as is a non-string value.
CLAUDE_CONFIG_DIR, CODEX_HOME, and GH_CONFIG_DIR must be absolute after
expansion, or they are ignored the same way; Paneflow creates a missing one,
mode 0700 on Linux and macOS, before a terminal of the space starts. A
$NAME that names a variable Paneflow's environment does not set leaves the
value unexpanded, with a warning in the log. On Windows, terminals and
subprocesses receive the names upper-cased; paneflow.json keeps the case you
typed.
Paneflow's own subprocesses for a workspace of the space (the pull request
badge's gh, git, cloning while the space is active, and the claude -p or
codex exec that names tabs) receive only these variables of the space:
GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_NAME,
GIT_COMMITTER_EMAIL, GIT_CONFIG_GLOBAL, GIT_SSH_COMMAND,
SSH_AUTH_SOCK, GH_CONFIG_DIR, GH_TOKEN, GITHUB_TOKEN,
CLAUDE_CONFIG_DIR, CODEX_HOME, ANTHROPIC_API_KEY, and
OPENAI_API_KEY. Git picks the space of the workspace whose folder, repository
or worktree most closely contains the directory it runs in. The tab-naming
Codex process keeps its own short list of variables. A workspace of Default
runs these processes with Paneflow's environment, plus the
agents.default_accounts directories.
gh gives GH_TOKEN and GITHUB_TOKEN precedence over the accounts stored
in GH_CONFIG_DIR, and Claude Code gives ANTHROPIC_API_KEY,
ANTHROPIC_AUTH_TOKEN, and CLAUDE_CODE_OAUTH_TOKEN precedence over the
login stored in CLAUDE_CONFIG_DIR, so a space that relies on a config
directory should redefine any of these that Paneflow's environment exports.
A git push over HTTPS follows GH_CONFIG_DIR only when git's credential
helper is gh auth git-credential; over SSH, set GIT_SSH_COMMAND instead.
Values are stored in plain text: prefer a config directory over a token.
{
"spaces": [
{
"id": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"name": "Work",
"env": {
"CLAUDE_CONFIG_DIR": "~/.claude-work",
"CODEX_HOME": "~/.codex-work",
"GH_CONFIG_DIR": "~/.config/gh-work",
"GIT_AUTHOR_EMAIL": "me@work.example",
"GIT_COMMITTER_EMAIL": "me@work.example"
}
}
]
}{
"spaces": [
{ "id": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f", "name": "Work", "color": "blue" },
{ "id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d", "name": "Personal" }
]
}commands
commands entries back both shell commands, listed in the command palette,
and the workspace templates of Settings > Workspaces. A command entry must have
name; workspace and command are mutually exclusive. An entry that breaks
these rules, or has an empty command, is skipped with a warning; the rest of
the file still loads.
| Key | Type | Default | Notes |
|---|---|---|---|
commands[].name | string | required | Display name. Must not be blank. |
commands[].description | string/null | none | Human-readable description. |
commands[].keywords | string array | [] | Fuzzy-search keywords. |
commands[].workspace | object/null | none | Workspace template. |
commands[].command | string/null | none | Shell command string. |
Workspace template keys:
| Key | Type | Default | Notes |
|---|---|---|---|
commands[].workspace.name | string/null | command name | Workspace display name. |
commands[].workspace.cwd | string | required | Project directory the workspace opens in. ~ expands to the home directory. A template without it does not run ("project path is required"). |
commands[].workspace.layout_preset | string/null | even_h | How the template's panes are arranged: even_h, even_v, main_vertical, or tiled. Any other value means even_h. |
commands[].workspace.color | string/null | none | Stored with the template; the current app does not use it. |
commands[].workspace.layout | object/null | none | The template's panes, as a layout tree. Running the template reads its surfaces in order and opens one pane per surface, arranged by layout_preset: the tree's splits, directions, and ratios are not used. A template with no surface does not run. Settings > Workspaces rewrites the tree from the preset. |
Layout keys. The same tree describes the layout Paneflow saves in
session.json, where splits and ratios do apply. Nothing in it is rejected:
values out of shape are corrected.
| Key | Type | Notes |
|---|---|---|
commands[].workspace.layout.type | string | pane or split. |
commands[].workspace.layout.surfaces | array | Surfaces of a pane node, at most 64. A pane with none gets one terminal. Only the first surface with focus: true keeps it. |
commands[].workspace.layout.direction | string | horizontal or vertical for a split. Any other value means horizontal. |
commands[].workspace.layout.ratio | number/null | Legacy binary split ratio, clamped to 0.1 to 0.9. Ignored when ratios exists or the split has more than two children. |
commands[].workspace.layout.ratios | number array/null | Per-child ratios for N-ary layouts. Each ratio is at least 0.01 and the list is scaled to sum to 1.0; a list whose length does not match the children gives equal parts. |
commands[].workspace.layout.children | array | Child nodes of a split, at most 32. A split with one child is replaced by that child, and one with none is removed. A tree holds at most 32 panes. |
Surface keys inside a pane. A template reads name, custom_name, cwd,
command, agent, prompt, env, and focus; the other keys are written by
Paneflow when it saves a session.
| Key | Type | Default | Notes |
|---|---|---|---|
commands[].workspace.layout.surfaces[].surface_type | string/null | terminal | terminal or markdown. A saved markdown surface reopens the file at path, and is dropped without one. Templates always open a terminal. |
commands[].workspace.layout.surfaces[].name | string/null | derived | Surface tab name. A template uses it before custom_name. |
commands[].workspace.layout.surfaces[].custom_name | string/null | none | User-assigned name that survives restart. |
commands[].workspace.layout.surfaces[].command | string/null | shell | Command to run when the surface is created. Cannot be combined with agent in a template ("pane N has both agent and command"). |
commands[].workspace.layout.surfaces[].prompt | string/null | none | Prompt to prefill after launching an agent command. |
commands[].workspace.layout.surfaces[].cwd | string/null | workspace cwd | Per-surface working directory. Relative paths resolve against workspace cwd. |
commands[].workspace.layout.surfaces[].path | string/null | none | File opened by a markdown surface. Ignored by terminal surfaces. |
commands[].workspace.layout.surfaces[].env | object/null | none | Extra environment variables. Wins over terminal.env on collision. |
commands[].workspace.layout.surfaces[].focus | boolean/null | false | Gives this surface initial focus. |
commands[].workspace.layout.surfaces[].scrollback | string/null | none | Saved plain-text scrollback restored with the surface. |
commands[].workspace.layout.surfaces[].agent | string/null | none | Agent tag, such as claude_code. A template launches that agent, which must be enabled in Settings > Agents. In a saved session, the agent CLI last detected in the surface. |
commands[].workspace.layout.surfaces[].font_size | number/null | global font_size | Per-surface font-size override, clamped to 8.0 to 32.0. |
commands[].workspace.layout.surfaces[].session | string/null | none | UUID of the persistent host session the terminal reattaches to on restore. Written by Paneflow. |
commands[].workspace.layout.surfaces[].agent_session | object/null | none | Agent conversation last started in the surface: runtime (catalog id), id (provider session id; empty means the latest conversation), and cwd. Paneflow reopens it when the host session did not survive. Written by Paneflow. |
telemetry
| Key | Type | Default | Notes |
|---|---|---|---|
telemetry.enabled | boolean/null | null | null means unanswered, true means opted in, false means opted out. |
Complete example
{
"$schema": "https://github.com/arthjean/paneflow/raw/main/schemas/paneflow.schema.json",
"$schemaVersion": "1.0.0",
"theme": "Paneflow Dark",
"font_family": "JetBrainsMono Nerd Font",
"font_size": 13,
"line_height": 1.0,
"cell_width": 1.0,
"terminal": {
"ligatures": true,
"scrollback_lines": 10000,
"cursor_shape": "block"
},
"agent_panel": {
"notify_when_agent_waiting": "PrimaryScreen"
},
"commands": [
{
"name": "API + Claude",
"description": "Open the API project with Claude and tests",
"workspace": {
"name": "API",
"cwd": "~/projects/api",
"layout_preset": "even_h",
"layout": {
"type": "pane",
"surfaces": [
{
"name": "Claude",
"agent": "claude_code",
"prompt": "Review the API changes"
},
{
"name": "Tests",
"command": "cargo test"
}
]
}
}
}
]
}