コンテンツにスキップ

設定 paneflow.json スキーマリファレンス

paneflow.json はユーザー単位の JSON ファイルです。すべてのキーは省略可能で、{} も有効な設定です。挙動のソースは Rust の config loader と runtime resolver です。公開 JSON Schema は、エディタの validation と autocomplete 用に公開キーを反映します。

このページは Paneflow の現在の開発ラインを説明します。未リリース と記されたキーはまだ v0.20.0 に含まれておらず、次のリリースで提供されます。

未知の top-level key は runtime では無視されますが、エディタでは schema によって検出されます。有効な保存は config watcher によって reload されます。 Hot reload 中に JSON が壊れている場合やファイルが削除された場合、defaults を配信せず直前の有効な config を維持します。起動時にファイルが無効な場合は defaults に戻り、warning をログします。1 MiB を超えるファイルは無効として扱われます。

File locations

PlatformPath
Linux と macOS~/.paneflow/paneflow.json
Windows%USERPROFILE%\.paneflow\paneflow.json

PANEFLOW_HOME はディレクトリ全体(設定、セッション、worktree、キャッシュ、補助バイナリ)を移動します。絶対パスである必要があり、相対パスの値は無視されます。 Paneflow がデフォルトの ~/.paneflow を使っている間は、~/.paneflow に paneflow.json がなければ、起動のたびに以前の場所(~/.config/paneflow、 ~/Library/Application Support/paneflow、%APPDATA%\paneflow)から paneflow.json を session.json、window-state.json、telemetry_id とともにコピーします。古いファイルは元の場所に残ります。別の場所に設定した PANEFLOW_HOME では、このコピーは行われません。

デフォルト以外の home は独立した instance として動作し、独自の session host、worker、IPC endpoint(paneflow-ipc-<fingerprint>.sock。スクリプトリファレンスを参照)を持つため、ある home の CLI が届くのはその home のペインだけです。

初回起動時にファイルが存在しない場合、Paneflow はすべてのデフォルト値で起動します。カスタマイズを始めるには、上記のパスにファイルを作成してください。

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

KeyTypeDefaultAppliedNotes
$schemastringnoneEditor onlyPoints editors to the published schema. Ignored by Paneflow.
$schemaVersionstringnoneStartup/reloadOmitting 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_shellstring/nullPlatform shell fallbackNew terminalA 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.
themestring/nullPaneflow DarkHot reloadThe 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_modestring/nullderived from themeHot reloadlight, 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_familystring/nullbundled JetBrainsMono Nerd FontHot reload cacheAccepts .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_fallbacksstring array/nullGPUI fallback stackHot reload cacheOrdered extra fallback families for glyphs missing from font_family. Empty entries are dropped, and an empty list behaves like null.
font_sizenumber/null13.0Hot reload cachePoints, valid range 8.0 to 32.0; invalid values fall back to 13.0.
font_weightstring/nullnormalHot reload cacheOne 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_heightnumber/null1.0Hot reload cacheMultiplier 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_widthnumber/null1.0Hot reload cacheMultiplier of the font's advance, valid range 0.8 to 2.0. The cell is rounded to whole device pixels.
unfocused_pane_opacitynumber/null1.0Hot reloadOpacity 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_motionboolean/nullfalseHot reloadMinimizes 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_densityboolean/nulltrueホットリロードワークスペースのペインを、間に余白のある角丸のカードに分けます。false にするとペイン同士を隙間なく並べ、7 px のつかみ領域を持つ 1 px の区切り線で区切り、角丸はグリッドと差分ドックの外側の角だけになります。Rounded インターフェーススタイルでのみ有効です。Settings > Appearance またはコマンドパレットで切り替えます。
interface_stylestring/nullclassicホットリロードインターフェースのレイアウトと形の表現。classic はウィンドウを端から端まで使い、上部ペインとドックのタブをタイトルバーに置き、6、8、12、14 px の小さな段階で円形の角を描きます。rounded はペインを全幅のタイトルバーの下に浮かぶカードとして配置し、大きな半径の連続曲線の角を描き、メニュー、セレクトのポップアップ、設定カードには円形の角を描きます。以前の値 paneflow は引き続き rounded を選びます。Settings > Appearance > Interface style またはコマンドパレットで設定します。
workspace_iconstring/nulldefaultホットリロードサイドバーの各ワークスペース行の前に表示するグリフ。ワークスペースを折りたたんでいる間は閉じた形、タブが表示されている間は開いた形になります。default は Paneflow の輪郭線のフォルダー。standard はフォルダーの代わりに開閉用のシェブロンを描き、折りたたみ時は右向き、展開時は下向きです。metal は塗りつぶしたガラスのフォルダー、windows は黄色のグラデーションのフォルダー、windows95 は 16 色のピクセルフォルダー、pixel は輪郭線のピクセルフォルダーです。2 つのピクセルスタイルは表示倍率 100 % または 200 % で最も鮮明です。Settings > Appearance > Workspace icon またはコマンドパレットで設定します。
app_iconstring/nullglassWindows と macOS ではホットリロード、Linux X11 では新しいウィンドウ実行中のアプリのアイコン。glass はインストール時の紫のガラスアイコン、black と white は黒または白のタイルにマークを横縞で描き、black-solid と white-solid はペインを塗りつぶした形で描きます。16 種類のイラストアイコンは同じマークを別の素材で表します: aubergine、paper、midnight-matte、polar、melon、honeydew、berry、rainbow、solarwave、neon、phosphor、holo、amethyst、blueprint、chip、nostalgia。Windows では Alt+Tab にすぐ反映され、この Paneflow を開くプロファイル内のショートカット(タスクバーにピン留めしたものとスタート メニューの項目を含む)がこのアイコンを指すようになるため、タスクバーのボタンは次回のサインイン時に変わります。macOS では Paneflow の実行中に Dock に表示され、X11 ではウィンドウアイコンになります。Linux では、リリースビルドがユーザー用にコピーされた Paneflow のデスクトップエントリも選んだアイコンに向けるので、ウィンドウアイコン自体が無視される Wayland でもランチャーにそのアイコンが表示されます。Settings > Appearance > App icon で設定します。アプリアイコンを参照してください。
sidebar_showobject/nullstatus、shimmer、agents、usage、agent_logo、agent_workspace、agent_shimmer がオン、ほかはオフホットリロードサイドバーの行に名前以外に表示するもの。branch はチェックアウトの git ブランチを、diffstat はその追加行数と削除行数を加え、pr はプルリクエストがあればブランチアイコンをその状態の色のプルリクエストグリフに変え、indent_guide はワークスペースのフォルダーアイコンの下からタブ行に沿って細い線を描きます。チェックアウトは一度だけ表示されます。ワークスペース行にはワークスペース自身のチェックアウトのブランチと件数が表示され、タブ行には、そのタブが専用の worktree に結び付いている場合にだけ表示されます。ステータス別にグループ化すると、すべてのタブ行にそのチェックアウトの情報が表示されます。pr には gh CLI が必要で、GitHub のリモートにだけ対応します。agents はサイドバー下部に Agents セクションを表示し、アクティブなスペースのエージェントセッションを緊急度の高い順に並べます。usage はプラン上限のカプセルを表示します。このカプセルは usage.plan_limits: false でも非表示になります。status はワークスペース行とタブ行にエージェントのステータスを表示します: Need you、Error、Done のバッジ、作業中のマトリックス、タイトルのシマー、ステータスのツールチップです。false にするとステータスは Agents セクションに任され、空いた場所にタブのプルリクエストが表示されます。agent_logo と agent_workspace は Agents の各行に表示するもの、つまりエージェントのロゴとタイトルの後のワークスペース名を選びます。行には常にステータスが表示されます。shimmer と agent_shimmer は、それぞれタブ行と Agents 行で作業中のエージェントのタイトルをアニメーションさせます。タイトルはグレーになり、明るい帯がその上を流れます。false にするとタイトルは通常の色のまま静止します。agent_all_spaces(デフォルトはオフ)は、アクティブなスペースだけでなくすべてのスペースのエージェントを Agents セクションに表示します。各ステータスグループではアクティブなスペースのものが先に並び、ほかのスペースの行はワークスペース名の後にスペース名を表示します。agent_logo、agent_workspace、agent_shimmer、agent_all_spaces は Agents 見出しの右にある Customize agent rows ボタンで、それ以外はレールの Customize sidebar メニューで切り替えます。このメニューは、行をステータス別にグループ化している間は agents と indent_guide の切り替えを隠します。真偽値でないサブキーはそれぞれのデフォルトを取り、オブジェクトでない sidebar_show はすべてのデフォルトを取ります。
sidebar_group_bystring/nullfolderホットリロードWorkspaces サイドバーの行のまとめ方。folder は各ワークスペースをフォルダー行として表示し、その下にタブを並べます。status はアクティブなスペースのすべてのワークスペースのタブを、Need you、Error、Done、Working、Idle の順のステータス見出しの下に並べ、各タブはタイトルの後にワークスペース名を表示します。タブは最も緊急度の高いエージェントのステータスを取り、エージェントを実行していなければ Idle になります。ステータス別にグループ化すると、同じ一覧を繰り返さないよう Agents セクションが非表示になり、サイドバーのヘッダーに New tab ボタンが追加されます。このボタンはタブを開くワークスペースを尋ねます。Customize sidebar > Group by またはコマンドパレットで設定します。
worktreesobject/null後述ホットリロードPaneflow がブランチ用に作る git worktree の保存先と後始末: dir、auto_remove、keep_limit、for_new_branches。Settings > Worktrees でも同じキーを編集できます。
window_decorationsstring/nullclientStartup, and new detached pane windowsclient 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_stylestring/null"themed"ホットリロード未リリース。 ウィンドウ背景の見た目。"themed" はアプリをテーマの単色で塗ります。"blended" はウィンドウの背後にあるものをぼかすようシステムに要求し、その上にテーマのベールを 1 枚描きます。キーがない場合、Paneflow は下記の旧キーから値を決めるので、古いリリースで保存した config も見た目を保ちます。未知の値は "themed" として扱われます。Settings > Appearance > Background style またはコマンドパレットで設定でき、そのとき旧キーも削除されます。
window_backdropstring/nullauto起動時v0.20.0 より後で非推奨となり、background_style に置き換えられました。auto、mica、blurred、acrylic、transparent、opaque、off のいずれか。Windows では、config で設定した blurred と acrylic は auto として扱われ、ぼかしを適用できるのは PANEFLOW_WINDOW_BACKDROP だけです。background_style がない間は、opaque または off(macOS では transparent も)でスタイルが Themed になります。Linux では、ぼかしは Blended の背景スタイルに従います。Settings とコマンドパレットは background_style を保存するときにこのキーを削除します。PANEFLOW_WINDOW_BACKDROP が 1 回の起動に限って上書きするのは Windows だけで、macOS と Linux はこの変数を無視します。
windows_terminal_materialboolean/nullfalseウィンドウ/ターミナルの描画v0.20.0 より後で非推奨となり、background_style に置き換えられました。background_style がない間だけ読まれます。Windows のどちらかのキーが true なら、Windows でスタイルが Blended になります。Settings とコマンドパレットは background_style を保存するときにこのキーを削除します。ほかのプラットフォームでは無視されます。
windows_chrome_materialboolean/nullfalseウィンドウ/クロームの描画v0.20.0 より後で非推奨となり、background_style に置き換えられました。background_style がない間だけ読まれます。Windows のどちらかのキーが true なら、Windows でスタイルが Blended になります。Settings とコマンドパレットは background_style を保存するときにこのキーを削除します。ほかのプラットフォームでは無視されます。
windows_material_veilboolean/nullfalseウィンドウ/クロームの描画v0.20.0 より後で非推奨となり、background_style に置き換えられ、もう読まれません。Settings とコマンドパレットは background_style を保存するときにこのキーを削除します。
macos_chrome_materialboolean/nullfalseウィンドウ/クロームの描画v0.20.0 より後で非推奨となり、background_style に置き換えられました。background_style がない間だけ読まれます。true なら macOS でスタイルが Blended になります。Settings とコマンドパレットは background_style を保存するときにこのキーを削除します。ほかのプラットフォームでは無視されます。
linux_terminal_materialboolean/nullfalseウィンドウ/ターミナルの描画v0.20.0 より後で非推奨となり、background_style に置き換えられました。background_style がない間だけ読まれます。Linux のどちらかのキーが true なら、Linux でスタイルが Blended になります。Settings とコマンドパレットは background_style を保存するときにこのキーを削除します。ほかのプラットフォームでは無視されます。
linux_chrome_materialboolean/nullfalseウィンドウ/クロームの描画v0.20.0 より後で非推奨となり、background_style に置き換えられました。background_style がない間だけ読まれます。Linux のどちらかのキーが true なら、Linux でスタイルが Blended になります。Settings とコマンドパレットは background_style を保存するときにこのキーを削除します。ほかのプラットフォームでは無視されます。
option_as_metaboolean/nulltrue on Linux and Windows, false on macOSHot reloadSends 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_integrationboolean/nulltrueNew terminalEnables Paneflow shell snippets for OSC 7 CWD and OSC 133 command marks.
editorobject/null後述のデフォルトホットリロードコードエディタとドックのファイルビューアーでのファイルの表示方法: minimap、scrollbar、word_wrap、markdown_rendered、csv_table、semantic_tokens(未リリース)。editor を参照してください。
language_serversobjectrust-analyzer と zls を組み込み次にファイルを開いたとき未リリース。 セマンティックハイライト用の language server。server id ごとに設定します。language_servers を参照してください。
automationobject/nullすべてオフホットリロードエージェントのターン後に走るバックグラウンド処理: tab_auto_naming はセッションの直近のやり取りを、要約できる CLI で 2 から 5 語のタブ名に要約します。セッション自身のエージェントが claude -p、codex exec、opencode run、pi --print のいずれかならそれを使い、そうでなければこのうち最初にインストールされているものを使います。Claude Code は --model haiku(または ANTHROPIC_SMALL_FAST_MODEL)で実行され、Claude Code、Codex、Pi はツールなしで実行されます。OpenCode は --pure で実行されます。名前が付くのはサーフェスを 1 つだけ持つタブです。各セッションの試行は最後の試行から数えて三分に一度まで、会話が増えたときのみです。要約は一度に 1 つだけ実行され、制限時間は 60 秒です。入力した名前が置き換えられることはなく、"Reset name" でその名前にタブを戻します。
submit_paste_delay_msinteger/null70IPC sendFloor 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_editorstring/nullauto次に開く操作ターミナルのファイルリンクを含め、ファイルリンクを開くエディタ: auto、system、zed、cursor、webstorm、code、visual_studio。auto は $VISUAL、次に $EDITOR を使い(vim、nvim、hx、emacs、nano などのターミナルエディタは飛ばします)、次に PATH 上で最初に見つかった code、cursor、zed、subl、code-insiders、webstorm、最後に OS の既定のアプリを使います。system は常に OS の既定のアプリで開きます。visual_studio は devenv を実行します。PATH にない、または起動に失敗した名前付きのエディタは auto に戻り、以前の値 windsurf も同様です。
shortcutsobject{}Hot reloadMaps keystrokes to action names. See shortcuts and actions.
terminalobject/nulldefaults belowMixedNamespaced terminal renderer and PTY settings.
commandsarray[]Settings/RunShell commands for the command palette and workspace templates for Settings > Workspaces. See commands.
agent_profilesarray[]ホットリロード組み込みエージェントを追加の環境変数と引数つきで起動するカスタム launcher エントリ。例えば CLAUDE_CONFIG_DIR による 2 つ目の Claude Code アカウント。Settings > Agents でも同じリストを編集できます。エージェントの設定の New preset がエントリを追加し、Add account はアカウントのフォルダーを指すエントリを書き込みます。
spacesarray[]ホットリロードワークスペースの名前付きグループ。最大 9 個。サイドバーにはアクティブなスペースのワークスペースだけが表示されます。spaces を参照してください。
claude_code_bypass_permissionsboolean/nullfalseNext Claude launchAdds --permission-mode bypassPermissions to the Claude Code launcher. High-risk opt-in.
ipcobject/null両方の gate が閉じている保存後の次のリクエスト未リリース。 pane で動くプロセス向けの IPC 書き込み gate: scripting と orchestration。ipc を参照してください。
ai_unrestrictedboolean/nullfalseIPC 呼び出しごと両方の IPC gate(ipc.scripting と ipc.orchestration)を pane 内と Paneflow 外の呼び出し元に開くので、信頼された conductor が peer pane に submit できます。ipc セクションが不正な間は pane に対して開き直すことはできず、Paneflow が識別できない呼び出し元は拒否されたままです。ipc を参照してください。
ai_injection_fenceboolean/nulltruePer read callWraps surface.read and surface.search output in an untrusted-output fence by default. A fenced parameter on the call overrides it.
on_quitask, keep, stop, nullaskAt quitWhat 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_promptsnative, paneflow, nullnativeエージェントの次の質問時未リリース。 コーディングエージェント自身の質問と権限リクエストにどこで答えるか。native はエージェントのターミナルに残します。paneflow は Claude Code の質問と、Claude Code と Codex の権限リクエストを Paneflow のプロンプトとして表示し、ターミナルに戻る手段も残します。Codex の質問は横取りされません。
agent_panelobject/nulldefaults belowAgents UIAgents-view notification preferences.
agentsobject/nulldefaults belowRestore and next launchAgent conversation restore, CLI update methods, default accounts, Claude Code session-id preassignment, and per-agent grants and sandbox. See agents.
usageobject/nulldefaults belowNext integration refreshSubscription usage: whether Paneflow relays Claude Code plan limits.
telemetryobject/null{ "enabled": null }Hot reloadDesktop 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.

KeyAgentPlatforms
claude_code_button_visibleClaude CodeLinux, macOS, Windows
codex_button_visibleCodexLinux, macOS, Windows
opencode_button_visibleOpenCodeLinux, macOS
pi_button_visiblePiLinux, macOS
hermes_agent_button_visibleHermes AgentLinux, macOS
grok_button_visibleGrokLinux, macOS
amp_button_visibleAmpLinux, macOS, Windows
gemini_button_visibleGeminiLinux, macOS, Windows
copilot_button_visibleCopilotLinux, macOS, Windows
factory_button_visibleFactoryLinux, macOS
openclaw_button_visibleOpenclawLinux, macOS
muse_button_visibleMuse CodeLinux, macOS
fx_button_visiblefxLinux, macOS

terminal

KeyTypeDefaultAppliedNotes
terminal.ligaturesboolean/nulltrueHot reload cacheEnables programming ligatures when the active font supports them.
terminal.integrated_glyphsboolean/nulltrueHot reloadDraws built-in block glyphs as filled quads.
terminal.color_emojiboolean/nulltrueHot reloadUses the platform color-emoji path.
terminal.cursor_colorstring/nulltheme cursorHot reload/new terminal#RRGGBB, RRGGBB, #RGB, or RGB.
terminal.scrollbarboolean/nulltrueNew terminal viewOverlay scrollbar shown while scrolling or hovering the right edge of a pane.
terminal.scrollback_linesinteger/null10000New terminalRange 100 to 100000; a value outside it is clamped with a warning. Agent terminals cap at 10000 and cached terminals at 1000.
terminal.cursor_shapestring/nullblockNew terminal viewvintage, 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_clipboardstring/nullcopyターミナルビューの作成時v0.17.5 以降で利用できます。 copy はフォーカス中のターミナルから OSC 52 経由でシステムクリップボードに書き込むことを許可し、off はすべての OSC 52 書き込みを拒否します。未知の値は copy として扱われます。OSC 52 によるクリップボードの読み取りは常に拒否されます。既存のターミナルビューでは、再作成するまで設定が変わりません。
terminal.open_links_instring/nulldock即時v0.20.0 以降で利用できます。 src/main.rs:12 のようなクリックしたコードパスを開く場所。dock はファイルを Files ドックのその行で開き、external_editor は外部エディタで開きます。Shift を押しながらクリックすると、もう一方で開きます。Markdown のパスは引き続きペインで開きます。未知の値は dock として扱われます。
terminal.xt_checksum_reportboolean/nullfalseセッションの開始時v0.17.7 以降で利用できます。 DECRQCRA のチェックサム要求 (CSI Pi ; Pg ; Pt ; Pl ; Pb ; Pr * y) に応答します。vttest や esctest などの適合性テストはこの応答を必要とします。実行中のプログラムが画面のチェックサムを 1 セルずつ計算し、ほかのプログラムの出力も含めて画面の内容をすべて読み取れてしまうため、既定では無効です。無効の間は XTCHECKSUM (CSI Ps # y) も無視されます。セッションホストはセッションを開始するたびにこの値を読み込みます。
terminal.xt_checksum_extensioninteger/null0セッションの開始時v0.17.7 以降で利用できます。 DECRQCRA チェックサムの計算方法です。XTCHECKSUM と xterm の checksumExtension のビットを使います。1 は結果を正の値に保ち、2 はセルの表示属性を除外し、4 は空白を数え、8 は一度も書き込まれていないセルを空白として数え、16 は DEC の 8 ビット値の代わりに完全なコードポイントを使います。0 は実際の DEC 端末と同じ計算です。範囲は 0 から 31 です。32、-1、1.5、"4" のような範囲外の値はこのキーだけを無効にし、キー名と範囲を示す警告を出して 0 に戻ります。起動時も再読み込み時も、ファイルのほかの設定はそのまま適用されます。フルリセット (ESC c) を行うとこの値に戻ります。
terminal.cursor_blinkstring/nullterminal_controlledNew terminal viewon, off, or terminal_controlled. An unknown value means terminal_controlled, with a warning.
terminal.envobject/nullnoneNew terminalEnvironment 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_multipliernumber/null1.0New terminal viewRange 0.1 to 10.0. Ignored in mouse-reporting and alternate-screen scroll paths.
terminal.minimum_contrastnumber/nullAuto (60)Hot reloadMinimum 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_resumeobject/nullmode: ask、信頼済みプログラムなし次の復元時未リリース。 ターミナルのホストされたセッションが残らなかったとき(例えば再起動の後)に、そのターミナルで実行中だったプログラムを Paneflow がどう扱うか。mode は ask(もう一度起動することを提案します。ただし信頼済みプログラムはすぐに再起動します)、auto(すべてのプログラムを再起動します)、off(何も提案しません)のいずれかです。trusted_programs は htop のような素のプログラム名を列挙し、記録されたコマンドの最初の語と比較します。パス区切り文字を含む名前、空の名前、.、..、C: のようなドライブ接頭辞は警告つきで無視され、重複は除かれます。不正な mode は ask として扱われ、オブジェクトでないブロックは信頼済みプログラムなしの ask として扱われます。セッション終了時にまだ起動中だったプログラムは提案されるだけです。エージェントの CLI は自身の resume コマンドで再起動し、agents.restore_conversations: false の場合は提案されるだけです。

editor

KeyTypeDefaultAppliedNotes
editor.minimapboolean/nullfalseホットリロードエディタの右端にファイルのミニマップを描きます。エディタのコントロールメニューから切り替え、選択はすべての開いているファイルに適用されます。
editor.scrollbarboolean/nulltrueホットリロードエディタの縦スクロールバーを描きます。エディタのコントロールメニューから切り替え、選択はすべての開いているファイルに適用されます。
editor.word_wrapboolean/nullfalse次にファイルを開いたときファイルを開いたときに、長い行を収まる最後の空白でエディタの幅に折り返します。エディタのコントロールメニューの先頭にある Word Wrap は、そのタブだけの設定を変えます。Up、Down、Page Up、Page Down は表示上の行単位で移動します。
editor.markdown_renderedboolean/nullfalse次にファイルを開いたとき10 MiB までの Markdown ファイルを、ドックでソースではなくレンダリングして表示します。ファイルヘッダーの Show rendered markdown と Show markdown source は現在のタブを切り替え、その選択を次に開くファイルのために保存します。ほかの開いているタブは表示を保ちます。行を指定して開いたファイルは常にソースで表示され、それより大きいファイルには "File too large to render" という通知が表示されます。
editor.csv_tableboolean/nulltrue次にファイルを開いたとき10 MiB までの .csv と .tsv ファイルを、ドックでソースではなく読み取り専用の表として表示します。ファイルヘッダーの Show source と Show table は現在のタブを切り替え、その選択を次に開くファイルのために保存します。ほかの開いているタブは表示を保ちます。false にすると編集可能なテキストとして開きます。
editor.semantic_tokensboolean/nullfalseホットリロード未リリース。 language_servers の language server が返すセマンティックトークンで、構文の色の上からコードを色分けします。Settings > Editor > Semantic highlighting で切り替えます。

agent_panel

KeyTypeDefaultNotes
agent_panel.notify_when_agent_waitingstring/nullNeverPrimaryScreen 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

agents のキーのうち、下の 4 つの設定以外のものはエージェントプロファイルを指します。 agent_profiles の名前、claude_code のようなエージェントタグ、claude のようなエージェントのコマンド、claude-code のような runtime slug のいずれかで、大文字と小文字を区別せずに比較されます。その値はそのエージェントの grants、sandbox、 sandbox_unix_scope を持ちます。

KeyTypeDefaultNotes
agents.restore_conversationsboolean/nulltrueWhen 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_methodsobject{}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_accountsobject{}未リリース。 新しい pane が開始するアカウント。runtime slug(claude-code、codex、grok)をキーにします。値は絶対パスまたは ~ で始まる config ディレクトリで、pane に CLAUDE_CONFIG_DIR、CODEX_HOME、GROK_HOME として渡されます。独自のディレクトリを設定するスペースが優先され、開いている pane はそのアカウントを保ちます。指定のないエージェントは自身のデフォルトディレクトリを使います。暗黙のスペースである Default のワークスペースにも、これらのディレクトリが渡されます。
agents.claude_preassign_session_idboolean/nullfalseThe 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>.grantsarrayなし未リリース。 このエージェントを実行する pane への常設の grant。各要素は {"rights": [...], "scope": ...} で、rights は write、spawn、layout から選び、scope は workspace(デフォルト)または instance です。不正なエントリがあると、そのプロファイルのすべての grant が警告つきで破棄されます。agent はどうやって grant を得ますか?を参照してください。
agents.<profile>.sandboxstringなし未リリース。 "paneflow" はこのエージェントの pane を Paneflow のサンドボックスで実行します(Linux のみ)。ほかのプラットフォームや、ほかの値では、プロファイルは起動せず、Paneflow がその理由を表示します。agent の pane を sandbox 化するには?を参照してください。
agents.<profile>.sandbox_unix_scopebooleanfalse未リリース。 カーネルの Landlock が対応している場合、サンドボックス内のパス名 Unix ソケットも制限します。真偽値でない値はプロファイルの起動を妨げます。

usage

KeyTypeDefaultNotes
usage.plan_limitsboolean/nulltruePaneflow 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_agentsarray/nullnullThe 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 は「New pane」パレット、タブのコンテキストメニュー、paneflow up からブランチを開くと git worktree を作ります。チェックアウトの中には何も書きません。所有マーカーは worktree 自身の git dir(メインリポジトリの .git/worktrees/<name>/)にあり、 git status はきれいなままで、マーカーは worktree と一緒に消えます。 Settings > Worktrees で同じキーを編集でき、Paneflow が管理する worktree を一覧できます。

パレットでブランチ名を空のままにすると、選んだベースで detached なチェックアウトが <base>-<sha7> という名前で作られます。タブのコンテキストメニューの「Create branch here…」で後からブランチにでき、未コミットの変更は保持されます。

リポジトリのルートに置いた .worktreeinclude は、新しい worktree にコピーするファイルやディレクトリ(通常は git-ignored なもの)を 1 行 1 パス(ルートからの相対パス)で列挙します。# はコメント、ディレクトリの末尾 / は省略可能です。絶対パスと .. を含むパスは飛ばされます。ファイルがない場合、Paneflow は最上位の .env* と AGENTS.override.md(存在すれば)をコピーし、ファイルがある場合は列挙されたものだけをコピーします。worktree に既にあるファイルは上書きしません。

管理対象 worktree を削除する前に、自動でも手動でも、Paneflow は未コミットの変更をメインリポジトリの refs/paneflow/snapshots/ 配下にスナップショットコミットとして保存します。追跡ファイルの編集、新規ファイル、当時のブランチが対象です。Settings > Worktrees にスナップショットが並び、Restore は同じブランチ上にその変更を未コミットのまま worktree を作り直し、Delete は ref を捨てます。きれいな worktree はスナップショットを残しません。

キー型デフォルト補足
worktrees.dirstring/null~/.paneflow/worktrees管理対象 worktree のルートディレクトリ。リポジトリごとに <repo>-<hash> のサブディレクトリ、その下にブランチごとのディレクトリができます。デフォルトはすべてのプラットフォームで ~/.paneflow/worktrees(Windows では %USERPROFILE%\.paneflow\worktrees)。~ はホームディレクトリに展開され、展開後も相対のままのパスは無視されてデフォルトが使われます。以前のルート(旧来の隣接 <repo>.worktrees/ を含む)に作られた worktree はそのまま動き続けます。
worktrees.auto_removeboolean/nulltrueworkspace を閉じたときに管理対象 worktree を削除し、keep_limit を超えた古いものから整理します。未コミットの変更は先にスナップショットとして保存され、ブランチは削除しません。false なら Settings > Worktrees やタブのメニューから削除するまで残します。
worktrees.keep_limitinteger/null15auto_remove がオンの間に保持する管理対象 worktree の数。これを超えると古いものから削除されます。開いているタブやライブセッションが使っている worktree は整理されません。0 から 200 で、それより大きい値は 200 として扱われます。
worktrees.for_new_branchesboolean/nulltrueNew branch フォームの Worktree トグルの初期状態。true はブランチ用の worktree を作り、false は代わりに workspace のチェックアウトをそのブランチに切り替え、pane はリポジトリのルートで開きます。トグルはこのキーを書き換え、そのチェックアウトでエージェントが作業中の間は切り替えを拒否します。
{
  "worktrees": {
    "dir": "~/worktrees",
    "auto_remove": true,
    "keep_limit": 15
  }
}

ipc

未リリース。 ipc には、pane で動くプロセスが別の pane に入力したり何かを起動したりする前に必要な 2 つの書き込み gate があります。各 gate は、ファイルを保存した後の次のリクエストから適用されます。未知のキーは無視されます。オブジェクトでない、または true でも false でもない値を含む不正なセクションは、そのキーとともにログに記録され、ai_unrestricted があってもすべての pane に対して両方の gate を閉じます。ウィンドウとバックグラウンドプロセスは常に gate を通過し、 Paneflow が識別できない呼び出し元は決して通過しません。Paneflow 外のプロセスは、 ai_unrestricted がオンか gate が開いていれば通過します。1 つの pane に gate を開く grant については安全に書き込むには?を参照してください。

Paneflow のプロセスに設定した環境変数 PANEFLOW_IPC_SCRIPTING=1 と PANEFLOW_IPC_ORCHESTRATION=1 は、Paneflow 外のプロセスに対しては引き続き対応する gate を開き、pane に対しては paneflow.json に ipc セクションがない間だけ開きます。これらに頼る pane には一度だけ非推奨の通知が表示されます。次のリリースで pane に対しては機能しなくなります。

キー型デフォルト補足
ipc.scriptingboolean/nullfalsetext と keystroke の書き込みを開きます: surface.send_text、surface.send_keystroke、session.input。ipc.orchestration を含みます。
ipc.orchestrationboolean/nullfalseリクエストが command、prompt、文字列の環境変数を起動したり、session または scrollback を持つ surface を含む layout を適用したりできるようにし、--scope all がすべての workspace に届くようにします。

language_servers

未リリース。 editor.semantic_tokens がオンのとき、Files ドックでファイルを開くと、その拡張子を扱う language server が起動します。プロセスは server と Files ドックのルートごとに 1 つで、そのルートの開いているすべてのファイルで共有され、最後のファイルを閉じると停止します。Files ドックのルート外にあるファイルには server がつきません。組み込みの server は 2 つです。.rs ファイル用の rust-analyzer と、.zig と .zon ファイル用の zls です。拡張子は大文字と小文字を区別せずに照合されます。有効な server が複数同じ拡張子を扱う場合は、組み込みの server が優先され、次に id のアルファベット順で最初のものが優先されます。

language server は、開いたプロジェクトのコード、例えばビルドスクリプトや手続きマクロを実行することがあります。あるルートで server が初めて起動しようとすると、エディタは両方の名前を示すバナーで確認し、Start を選んだときだけ server を起動します。回答は ~/.paneflow/language-server-trust.json(Windows では %USERPROFILE%\.paneflow\language-server-trust.json)に保存され、リポジトリには保存されません。Not now を選ぶと、Paneflow の再起動後にもう一度確認します。Settings > Editor の Forget language server permissions はこのファイルを空にします。

Paneflow が server をダウンロードすることはありません。名前だけの command は PATH の絶対ディレクトリから探され(相対または空のエントリは飛ばします)、絶対パスはそのまま使われ、相対パスは拒否されます。見つからない server は起動しません。Paneflow の PATH にあるディレクトリにインストールすると、次に開くファイルで起動し、後から PATH に追加したディレクトリには Paneflow の再起動が必要です。終了したりプロトコルを破ったりした server は 1 回だけ再起動され、2 回目の失敗では、それが扱う最後のファイルを閉じるか、エディタのバナーで Restart をクリックするまで停止したままになります。

キー型デフォルト補足
language_servers.<id>.commandstring組み込みの値実行するプログラム。PATH 上で見つかる名前、または絶対パス。組み込みでない id では必須です。
language_servers.<id>.argsstring array[]プログラムに渡す引数。
language_servers.<id>.extensionsstring array組み込みの値server が扱うファイルの拡張子(ドットなし)。組み込みでない id では必須です。
language_servers.<id>.language_idstring組み込みの値ドキュメントを開くときに送る LSP の languageId。組み込みでない id では必須です。
language_servers.<id>.enabledbooleantruefalse にすると server を起動しません。
language_servers.<id>.initialization_optionsanyなしserver の initialize リクエストで initializationOptions として送られます。
language_servers.<id>.settingsanyなしserver の workspace/configuration リクエストへの応答として返されます。このオブジェクトのキーであるセクションを指定した項目にはそのキーの値が、それ以外の項目にはオブジェクト全体が返されます。

組み込みの id を持つエントリは、設定したフィールドだけを置き換えます。それ以外の id は server を追加します。例えば gopls は、semanticTokens 設定がオンのときだけセマンティックトークンを送ります。

{
  "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 }
    }
  }
}

未知のフィールドを含む不正なエントリは、ログに 1 行記録されて飛ばされ、ほかのエントリは引き続き読み込まれます。オブジェクトでない language_servers の値は警告つきで無視されます。

agent_profiles

agent_profiles はリストです。各エントリは、組み込みエージェントのいずれかを追加の環境変数と引数つきで起動する launcher 項目を追加します。プロファイルは pane パレットに組み込みエージェントと並んで表示され、ベースのエージェントのステータス追跡、hooks、セッションをそのまま使います。 Settings > Agents でも同じリストを編集できます。エージェントの設定の New preset がエントリを追加し、Add account はアカウントのフォルダーを指すエントリを書き込みます。

キー型デフォルト補足
agent_profiles.*.namestring必須launcher に表示されるラベル。
agent_profiles.*.agentstring必須ベースエージェントのタグ: claude_code、codex、opencode、pi、hermes、grok、amp、gemini、copilot、factory、openclaw、muse、fx。
agent_profiles.*.envobject{}エージェントのプロセスに設定する環境変数。~ そのもの、または ~/(Windows では ~\)で始まる値はホームディレクトリに展開され、値の任意の位置にある $NAME、${NAME}、%NAME% は Paneflow 自身の環境からその変数を取り込みます。何も指さない $ や % はそのまま残ります。環境で定義されていない名前は Settings のエディターでは拒否され、手書きの設定では値全体がそのまま残り、ログに警告が出ます。
agent_profiles.*.argsstring array[]ベースエージェント自身のフラグの後に付け足す引数。各トークンは英数字、-、_、.、= だけの単語である必要があります。

未知のエージェントタグ、空の名前、変数名として有効でない env キー、安全でないトークンを含むエントリは警告つきでスキップされ、他のプロファイルは読み込まれます。

{
  "agent_profiles": [
    {
      "name": "Claude perso",
      "agent": "claude_code",
      "env": { "CLAUDE_CONFIG_DIR": "~/.claude-perso" },
      "args": ["--model", "opus"]
    }
  ]
}

spaces

spaces はワークスペースの名前付きグループのリストで、Arc のスペースに似ています。各ワークスペースは 1 つのスペースに属し、サイドバーと Cmd/Ctrl+1 から Cmd/Ctrl+9 は、アクティブなスペースのワークスペースだけを対象にします。スペースに属さないワークスペースは、Default という名前の暗黙のスペースに属します。 spaces エントリがなければ、何も変わりません。各ワークスペースがどのスペースに属するか、どのスペースがアクティブかは、ここではなく session.json に保存されます。

キー型デフォルト補足
spaces.*.idstring必須session.json がスペースを参照するのに使う、小文字でハイフン区切りの UUID。スペースの名前を変えても維持してください。
spaces.*.namestring必須スペースの表示名。前後の空白を除いて 1 から 32 文字で、大文字と小文字の違いを無視して一意である必要があります。Default は予約済みです。
spaces.*.colorstringなしred、green、yellow、blue、magenta、cyan のいずれか。画像がないときにスペースの円に描くグラデーションの系統で、どのテーマでも同じです。それ以外の値ではスペースは色なしになります。
spaces.*.avatarstringなしPaneflow ホームの avatars/ にあるスペースの画像のファイル名。Settings > Spaces が書き込む 96 ピクセル四方の PNG です。画像は、サイドバーと Settings で色のグラデーションの代わりに表示されます。^[A-Za-z0-9][A-Za-z0-9.-]{0,91}\.png$ に一致しない値は無視され、ログに警告が出ます。
spaces.*.envobject{}そのスペースのワークスペースで、変更後に開くすべてのターミナルに設定される変数。優先順位は低い順に terminal.env、agents.default_accounts のディレクトリ、spaces.*.env、agent_profiles.*.env、サーフェスの env。~/ はホームディレクトリに、$NAME は Paneflow の環境の値に展開されます。

id がないか不正な形式のエントリ、すでに使われている id を持つエントリ、名前が空、重複、予約済み、長すぎるエントリ、有効な 9 個目より後のエントリは、ログに警告を出してスキップされ、他のスペースは読み込まれます。配列でない spaces の値は空のリストとして読み込まれます。 Paneflow の実行中に編集でスペースを削除すると、そのワークスペースは Default に移り、削除したスペースがアクティブだった場合は Default がアクティブになります。

env のキーのうち、変数名として有効でないもの、PANEFLOW_ で始まるもの、Paneflow がすべてのターミナルに設定するもの(TERM、COLORTERM、TERM_PROGRAM、TERM_PROGRAM_VERSION、SHLVL、ZDOTDIR)、プログラムの読み込み方やエージェントの実行方法を変えるもの(LD_*、DYLD_*、CLAUDECODE のような継承されたエージェントのセッションマーカー、Paneflow の再開トークン)は、文字列でない値と同じく、ログに警告を出して無視されます。 CLAUDE_CONFIG_DIR、CODEX_HOME、GH_CONFIG_DIR は展開後に絶対パスでなければならず、そうでなければ同じように無視されます。存在しないディレクトリは、そのスペースのターミナルが起動する前に Paneflow が作成します(Linux と macOS ではモード 0700)。 Paneflow の環境で設定されていない変数を指す $NAME は、展開されずにそのまま残り、ログに警告が出ます。 Windows では、ターミナルとサブプロセスには名前が大文字に変換されて渡されます。paneflow.json には入力したとおりの大文字と小文字で保存されます。

スペースのワークスペースのために Paneflow 自身が実行するサブプロセス(プルリクエストバッジの gh、git、スペースがアクティブな間のクローン、タブに名前を付ける claude -p または codex exec)は、スペースの変数のうち次のものだけを受け取ります。 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、OPENAI_API_KEY。 git は、実行するディレクトリを最も近くで含むフォルダ、リポジトリ、worktree を持つワークスペースのスペースを使います。タブに名前を付ける Codex プロセスは、独自の短い変数リストを保持します。 Default のワークスペースでは、これらのプロセスは Paneflow の環境に agents.default_accounts のディレクトリを加えて実行されます。

gh は GH_TOKEN と GITHUB_TOKEN を GH_CONFIG_DIR に保存されたアカウントより優先し、Claude Code は ANTHROPIC_API_KEY、ANTHROPIC_AUTH_TOKEN、CLAUDE_CODE_OAUTH_TOKEN を CLAUDE_CONFIG_DIR に保存されたログインより優先します。そのため、設定ディレクトリに頼るスペースでは、Paneflow の環境が export しているこれらの変数を再定義してください。 HTTPS での git push が GH_CONFIG_DIR に従うのは、git の credential helper が gh auth git-credential の場合だけです。SSH では代わりに GIT_SSH_COMMAND を設定します。値は平文で保存されます。トークンより設定ディレクトリを使ってください。

{
  "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.

KeyTypeDefaultNotes
commands[].namestringrequiredDisplay name. Must not be blank.
commands[].descriptionstring/nullnoneHuman-readable description.
commands[].keywordsstring array[]Fuzzy-search keywords.
commands[].workspaceobject/nullnoneWorkspace template.
commands[].commandstring/nullnoneShell command string.

Workspace template keys:

KeyTypeDefaultNotes
commands[].workspace.namestring/nullcommand nameWorkspace display name.
commands[].workspace.cwdstringrequiredProject directory the workspace opens in. ~ expands to the home directory. A template without it does not run ("project path is required").
commands[].workspace.layout_presetstring/nulleven_hHow the template's panes are arranged: even_h, even_v, main_vertical, or tiled. Any other value means even_h.
commands[].workspace.colorstring/nullnoneStored with the template; the current app does not use it.
commands[].workspace.layoutobject/nullnoneThe 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.

KeyTypeNotes
commands[].workspace.layout.typestringpane or split.
commands[].workspace.layout.surfacesarraySurfaces 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.directionstringhorizontal or vertical for a split. Any other value means horizontal.
commands[].workspace.layout.rationumber/nullLegacy 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.ratiosnumber array/nullPer-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.childrenarrayChild 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.

KeyTypeDefaultNotes
commands[].workspace.layout.surfaces[].surface_typestring/nullterminalterminal 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[].namestring/nullderivedSurface tab name. A template uses it before custom_name.
commands[].workspace.layout.surfaces[].custom_namestring/nullnoneUser-assigned name that survives restart.
commands[].workspace.layout.surfaces[].commandstring/nullshellCommand 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[].promptstring/nullnonePrompt to prefill after launching an agent command.
commands[].workspace.layout.surfaces[].cwdstring/nullworkspace cwdPer-surface working directory. Relative paths resolve against workspace cwd.
commands[].workspace.layout.surfaces[].pathstring/nullnoneFile opened by a markdown surface. Ignored by terminal surfaces.
commands[].workspace.layout.surfaces[].envobject/nullnoneExtra environment variables. Wins over terminal.env on collision.
commands[].workspace.layout.surfaces[].focusboolean/nullfalseGives this surface initial focus.
commands[].workspace.layout.surfaces[].scrollbackstring/nullnoneSaved plain-text scrollback restored with the surface.
commands[].workspace.layout.surfaces[].agentstring/nullnoneAgent 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_sizenumber/nullglobal font_sizePer-surface font-size override, clamped to 8.0 to 32.0.
commands[].workspace.layout.surfaces[].sessionstring/nullnoneUUID of the persistent host session the terminal reattaches to on restore. Written by Paneflow.
commands[].workspace.layout.surfaces[].agent_sessionobject/nullnoneAgent 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

KeyTypeDefaultNotes
telemetry.enabledboolean/nullnullnull 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"
          }
        ]
      }
    }
  }
]
}