runpane 2.4.218 → 2.4.220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,29 +99,238 @@ exports.RUNPANE_CONTRACT = {
99
99
  "codex",
100
100
  "claude",
101
101
  "cursor",
102
- "opencode"
102
+ "opencode",
103
+ "pi"
103
104
  ]
104
105
  },
105
- "agentTemplates": {
106
- "codex": {
107
- "title": "Codex",
108
- "command": "codex --yolo",
109
- "description": "Open a Codex terminal tab and allow the initial input to drive the agent."
110
- },
111
- "claude": {
112
- "title": "Claude Code",
113
- "command": "claude --dangerously-skip-permissions",
114
- "description": "Open a Claude Code terminal tab and allow the initial input to drive the agent."
115
- },
116
- "cursor": {
117
- "title": "Cursor",
118
- "command": "cursor-agent --force --trust",
119
- "description": "Open a Cursor Agent terminal tab and allow the initial input to drive the agent."
120
- },
121
- "opencode": {
122
- "title": "OpenCode",
123
- "command": "opencode --auto",
124
- "description": "Open an OpenCode terminal tab and allow the initial input to drive the agent."
106
+ "agents": {
107
+ "default": "claude",
108
+ "registryUrl": "https://cdn.agentclientprotocol.com/registry/v1/latest/registry.json",
109
+ "entries": {
110
+ "claude": {
111
+ "title": "Claude Code",
112
+ "label": "Claude",
113
+ "icon": "claude",
114
+ "description": "Open a Claude Code terminal tab and allow the initial input to drive the agent.",
115
+ "executables": [
116
+ "claude"
117
+ ],
118
+ "terminal": {
119
+ "args": [],
120
+ "fullAccessArgs": [
121
+ "--dangerously-skip-permissions"
122
+ ],
123
+ "hotkey": "mod+alt+3",
124
+ "promptArgument": true,
125
+ "configDir": ".claude",
126
+ "reportsConversation": true
127
+ },
128
+ "install": {
129
+ "url": "https://code.claude.com/docs/en/setup",
130
+ "command": "npm install -g @anthropic-ai/claude-code@latest"
131
+ },
132
+ "signIn": [
133
+ "auth",
134
+ "login"
135
+ ],
136
+ "onboarding": true,
137
+ "onboardingPanelId": "__pane_chat_terminal__",
138
+ "chat": {
139
+ "adapter": {
140
+ "package": "@agentclientprotocol/claude-agent-acp",
141
+ "executableEnv": "CLAUDE_CODE_EXECUTABLE",
142
+ "npmShimScript": "@anthropic-ai/claude-code/cli.js",
143
+ "sessionFolderSettingsMeta": "claudeCode"
144
+ },
145
+ "minimumVersion": "2.1.316",
146
+ "apiKeyEnv": [
147
+ "ANTHROPIC_API_KEY"
148
+ ],
149
+ "fullAccess": {
150
+ "mode": "bypassPermissions"
151
+ },
152
+ "legacyClients": true,
153
+ "riskyModes": [
154
+ "bypassPermissions",
155
+ "dontAsk"
156
+ ],
157
+ "terminalConversationsLoad": true,
158
+ "registryIds": [
159
+ "claude-acp"
160
+ ]
161
+ }
162
+ },
163
+ "codex": {
164
+ "title": "Codex",
165
+ "label": "Codex",
166
+ "icon": "codex",
167
+ "description": "Open a Codex terminal tab and allow the initial input to drive the agent.",
168
+ "executables": [
169
+ "codex"
170
+ ],
171
+ "terminal": {
172
+ "args": [],
173
+ "fullAccessArgs": [
174
+ "--yolo"
175
+ ],
176
+ "hotkey": "mod+alt+4",
177
+ "promptArgument": true,
178
+ "configDir": ".codex"
179
+ },
180
+ "install": {
181
+ "url": "https://developers.openai.com/codex/cli",
182
+ "command": "npm install -g @openai/codex@latest"
183
+ },
184
+ "signIn": [
185
+ "login"
186
+ ],
187
+ "onboarding": true,
188
+ "chat": {
189
+ "adapter": {
190
+ "package": "@agentclientprotocol/codex-acp",
191
+ "executableEnv": "CODEX_PATH"
192
+ },
193
+ "minimumVersion": "0.165.0",
194
+ "apiKeyEnv": [
195
+ "OPENAI_API_KEY",
196
+ "CODEX_API_KEY"
197
+ ],
198
+ "fullAccess": {
199
+ "mode": "agent-full-access"
200
+ },
201
+ "legacyClients": true,
202
+ "riskyModes": [
203
+ "agent-full-access"
204
+ ],
205
+ "terminalConversationsLoad": true,
206
+ "registryIds": [
207
+ "codex-acp"
208
+ ]
209
+ }
210
+ },
211
+ "cursor": {
212
+ "title": "Cursor",
213
+ "label": "Cursor",
214
+ "icon": "cursor",
215
+ "description": "Open a Cursor Agent terminal tab and allow the initial input to drive the agent.",
216
+ "executables": [
217
+ "cursor-agent"
218
+ ],
219
+ "terminal": {
220
+ "args": [
221
+ "--trust"
222
+ ],
223
+ "fullAccessArgs": [
224
+ "--force"
225
+ ],
226
+ "hotkey": "mod+alt+5",
227
+ "promptArgument": true,
228
+ "configDir": ".cursor",
229
+ "platforms": [
230
+ "darwin",
231
+ "linux",
232
+ "wsl"
233
+ ]
234
+ },
235
+ "install": {
236
+ "url": "https://cursor.com/docs/cli/installation",
237
+ "command": "curl https://cursor.com/install -fsS | bash"
238
+ },
239
+ "signIn": [
240
+ "login"
241
+ ],
242
+ "onboarding": true,
243
+ "chat": {
244
+ "args": [
245
+ "acp"
246
+ ],
247
+ "minimumVersion": "2026.10.22",
248
+ "apiKeyEnv": [
249
+ "CURSOR_API_KEY"
250
+ ],
251
+ "fullAccess": {
252
+ "args": true
253
+ },
254
+ "terminalConversationsLoad": false,
255
+ "registryIds": [
256
+ "cursor"
257
+ ]
258
+ }
259
+ },
260
+ "opencode": {
261
+ "title": "OpenCode",
262
+ "label": "OpenCode",
263
+ "icon": "opencode",
264
+ "description": "Open an OpenCode terminal tab and allow the initial input to drive the agent.",
265
+ "executables": [
266
+ "opencode"
267
+ ],
268
+ "terminal": {
269
+ "args": [],
270
+ "fullAccessArgs": [
271
+ "--auto"
272
+ ],
273
+ "hotkey": "mod+alt+6",
274
+ "session": {
275
+ "flag": "--session",
276
+ "minimumVersion": "2.0.19",
277
+ "idPattern": "^ses_[A-Za-z0-9]+$"
278
+ }
279
+ },
280
+ "install": {
281
+ "url": "https://opencode.ai/docs",
282
+ "command": "npm install -g opencode-ai@latest"
283
+ },
284
+ "signIn": [
285
+ "auth",
286
+ "login"
287
+ ],
288
+ "chat": {
289
+ "args": [
290
+ "acp"
291
+ ],
292
+ "minimumVersion": "1.18.14",
293
+ "terminalConversationsLoad": true,
294
+ "registryIds": [
295
+ "opencode",
296
+ "opencode-v2"
297
+ ]
298
+ }
299
+ },
300
+ "pi": {
301
+ "title": "Pi",
302
+ "label": "Pi",
303
+ "icon": "pi",
304
+ "description": "Open a Pi terminal tab and allow the initial input to drive the agent.",
305
+ "executables": [
306
+ "pi"
307
+ ],
308
+ "terminal": {
309
+ "args": [],
310
+ "fullAccessArgs": [],
311
+ "hotkey": "mod+alt+shift+p",
312
+ "configDir": ".pi",
313
+ "session": {
314
+ "flag": "--session-id",
315
+ "minimumVersion": "0.76.0",
316
+ "idPattern": "^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$",
317
+ "paneChoosesId": true,
318
+ "selectors": [
319
+ "--session",
320
+ "--continue",
321
+ "-c",
322
+ "--resume",
323
+ "-r",
324
+ "--fork",
325
+ "--no-session"
326
+ ]
327
+ }
328
+ },
329
+ "install": {
330
+ "url": "https://pi.dev",
331
+ "command": "npm install -g @earendil-works/pi-coding-agent@latest"
332
+ }
333
+ }
125
334
  }
126
335
  },
127
336
  "terminalKeys": {
@@ -225,7 +434,7 @@ exports.RUNPANE_CONTRACT = {
225
434
  "name": "agents doctor",
226
435
  "summary": "Diagnose whether a built-in agent command is available in a Pane repository environment.",
227
436
  "usage": [
228
- "runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json] [--pane-dir <path>]"
437
+ "runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json] [--pane-dir <path>]"
229
438
  ],
230
439
  "toolsets": [
231
440
  "admin"
@@ -565,7 +774,7 @@ exports.RUNPANE_CONTRACT = {
565
774
  "summary": "Hand your task to another agent on this or another machine: check your handoff note, make the branch reachable, send the note, and start the agent on it. A same-agent handoff from a Pane tab carries and resumes your own session (a fork on this machine) and checks it continued; otherwise a fresh agent starts with the note. From a Session's terminal, create the Session on another machine instead.",
566
775
  "usage": [
567
776
  "runpane handoff --template",
568
- "runpane handoff \"<destination>\" --note-file <path|-> [--machine <name>] [--agent <codex|claude|cursor|opencode>] [--model <model>] [--effort <level>] [--repo <selector>] [--push] [--note-only] [--dry-run] [--json]"
777
+ "runpane handoff \"<destination>\" --note-file <path|-> [--machine <name>] [--agent <codex|claude|cursor|opencode|pi>] [--model <model>] [--effort <level>] [--repo <selector>] [--push] [--note-only] [--dry-run] [--json]"
569
778
  ],
570
779
  "mutates": true,
571
780
  "wrappers": [
@@ -592,8 +801,8 @@ exports.RUNPANE_CONTRACT = {
592
801
  "name": "panes create",
593
802
  "summary": "1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. Create a Pane (a new worktree) only when the work's branch has no Pane yet; for review, audit, fix or QA on existing work use `panels create --pane <id>`.",
594
803
  "usage": [
595
- "runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] [options] [--pane-dir <path>]",
596
- "runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [--source user|agent] [--focus|--no-focus] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] [options] [--pane-dir <path>]",
804
+ "runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--source user|agent] [--focus|--no-focus] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] [options] [--pane-dir <path>]",
805
+ "runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--source user|agent] [--focus|--no-focus] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] [options] [--pane-dir <path>]",
597
806
  "runpane panes create --from-json <path|-> [--yes] [--json] [--pane-dir <path>]"
598
807
  ],
599
808
  "mutates": true,
@@ -612,8 +821,8 @@ exports.RUNPANE_CONTRACT = {
612
821
  "name": "panes adopt",
613
822
  "summary": "Adopt an existing externally managed git worktree as a Pane without changing the worktree.",
614
823
  "usage": [
615
- "runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [--resume <id>] [--folder <name>] [--launch [--prompt <text>|--prompt-file <path|->] [--wait-ready] [--ready-timeout-ms <ms>]] [--no-pinned] [--no-associate] [--dry-run] [--yes] [--json] [--pane-dir <path>]",
616
- "runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [--folder <name>] [--launch [--prompt <text>|--prompt-file <path|->] [--wait-ready] [--ready-timeout-ms <ms>]] [--no-pinned] [--no-associate] [--dry-run] [--yes] [--json] [--pane-dir <path>]"
824
+ "runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor|opencode|pi> [--resume <id>] [--folder <name>] [--launch [--prompt <text>|--prompt-file <path|->] [--wait-ready] [--ready-timeout-ms <ms>]] [--no-pinned] [--no-associate] [--dry-run] [--yes] [--json] [--pane-dir <path>]",
825
+ "runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--folder <name>] [--launch [--prompt <text>|--prompt-file <path|->] [--wait-ready] [--ready-timeout-ms <ms>]] [--no-pinned] [--no-associate] [--dry-run] [--yes] [--json] [--pane-dir <path>]"
617
826
  ],
618
827
  "mutates": true,
619
828
  "additive": true,
@@ -753,8 +962,8 @@ exports.RUNPANE_CONTRACT = {
753
962
  "name": "panels create",
754
963
  "summary": "Open a new agent or terminal tab inside an existing Pane, sharing its worktree. The default for review, QA, fixes and any other agent on work that already has a Pane.",
755
964
  "usage": [
756
- "runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json] [--pane-dir <path>]",
757
- "runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor>] [--title <title>] [--focus|--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json] [--pane-dir <path>]"
965
+ "runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--source user|agent] [--focus|--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json] [--pane-dir <path>]",
966
+ "runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--title <title>] [--focus|--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json] [--pane-dir <path>]"
758
967
  ],
759
968
  "mutates": true,
760
969
  "additive": true,
@@ -1413,7 +1622,7 @@ exports.RUNPANE_CONTRACT = {
1413
1622
  "name": "agents start",
1414
1623
  "summary": "Start an agent on a task and wait until it is ready: as a new tab in an existing Pane with --pane <id> (review, audit, fix, QA), or in a new Pane with --repo and --name for new work.",
1415
1624
  "usage": [
1416
- "runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]"
1625
+ "runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]"
1417
1626
  ],
1418
1627
  "mutates": true,
1419
1628
  "additive": true,
@@ -1700,7 +1909,7 @@ exports.RUNPANE_CONTRACT = {
1700
1909
  "name": "sessions set-agent",
1701
1910
  "summary": "Switch the durable terminal agent for a named Session.",
1702
1911
  "usage": [
1703
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]"
1912
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]"
1704
1913
  ],
1705
1914
  "mutates": true,
1706
1915
  "idempotent": true,
@@ -2188,7 +2397,7 @@ exports.RUNPANE_CONTRACT = {
2188
2397
  },
2189
2398
  {
2190
2399
  "name": "--agent",
2191
- "value": "<codex|claude|cursor>",
2400
+ "value": "<codex|claude|cursor|opencode|pi>",
2192
2401
  "description": "Built-in agent terminal template to open. With --tool-command, the agent that command runs."
2193
2402
  },
2194
2403
  {
@@ -2802,7 +3011,7 @@ exports.RUNPANE_CONTRACT = {
2802
3011
  },
2803
3012
  {
2804
3013
  "name": "--chat",
2805
- "description": "Open the agent as a chat tab (Claude or Codex over ACP, no terminal) instead of a terminal tab."
3014
+ "description": "Open --agent as a chat tab (over ACP, no terminal) instead of a terminal tab; the host lists the agents it can run."
2806
3015
  },
2807
3016
  {
2808
3017
  "name": "--next",
@@ -2836,7 +3045,7 @@ exports.RUNPANE_CONTRACT = {
2836
3045
  " runpane daemon repair [--pane-dir <path>] [--yes] [--json]",
2837
3046
  " runpane agent-context [--json]",
2838
3047
  " runpane mcp [--toolsets <name,...>] [--read-only]",
2839
- " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
3048
+ " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]",
2840
3049
  " runpane repos list [--json]",
2841
3050
  " runpane repos add --path <path> [--name <name>]",
2842
3051
  " runpane repos get [--repo <selector>] [--json]",
@@ -2854,7 +3063,7 @@ exports.RUNPANE_CONTRACT = {
2854
3063
  " runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]",
2855
3064
  " runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]",
2856
3065
  " runpane sessions pause|resume --session <id|name> [--json] [--pane-dir <path>]",
2857
- " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
3066
+ " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]",
2858
3067
  " runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]",
2859
3068
  " runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]",
2860
3069
  " runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]",
@@ -2871,11 +3080,11 @@ exports.RUNPANE_CONTRACT = {
2871
3080
  " runpane workspace <machine> read|write|exec|<command>",
2872
3081
  " runpane watch --follow",
2873
3082
  " runpane watch --until-event",
2874
- " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]",
3083
+ " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]",
2875
3084
  " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes",
2876
3085
  " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--dry-run] --yes",
2877
3086
  " runpane panes pause|resume --pane <pane-id> --yes [--json]",
2878
- " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes",
3087
+ " runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--source user|agent] [--focus|--no-focus] --yes",
2879
3088
  " runpane panels list --pane <pane-id> [--json]",
2880
3089
  " runpane panels output --panel <panel-id> [--limit <count>] [--json]",
2881
3090
  " runpane panels screen --panel <panel-id> [--limit <count>] [--json]",
@@ -2898,7 +3107,7 @@ exports.RUNPANE_CONTRACT = {
2898
3107
  " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]",
2899
3108
  " runpane docs search --query <text> [--limit <count>] [--json]",
2900
3109
  " runpane docs read --doc <path> [--json]",
2901
- " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
3110
+ " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
2902
3111
  " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]",
2903
3112
  " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]",
2904
3113
  " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]",
@@ -3204,7 +3413,7 @@ exports.RUNPANE_CONTRACT = {
3204
3413
  "Commands:",
3205
3414
  " runpane panes list [--repo <selector>] [--json]",
3206
3415
  " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]",
3207
- " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]",
3416
+ " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [options]",
3208
3417
  " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]",
3209
3418
  " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--dry-run] --yes [--json]",
3210
3419
  " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]",
@@ -3328,8 +3537,8 @@ exports.RUNPANE_CONTRACT = {
3328
3537
  ],
3329
3538
  "panes create": [
3330
3539
  "Usage:",
3331
- " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]",
3332
- " runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]",
3540
+ " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]",
3541
+ " runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]",
3333
3542
  " runpane panes create --from-json <path|-> [--yes] [--json]",
3334
3543
  "",
3335
3544
  "Creates a Pane in a saved repository and opens a terminal-backed tool tab. 1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. Create one only when the work's branch has no Pane yet; for existing work use `runpane panels create --pane <id>`.",
@@ -3342,7 +3551,7 @@ exports.RUNPANE_CONTRACT = {
3342
3551
  " --worktree-name <name> Worktree directory name; defaults to --name",
3343
3552
  " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name",
3344
3553
  " --base-branch <ref> Ref to branch from; --base is an alias",
3345
- " --agent <codex|claude|cursor> Built-in terminal template; with --tool-command, the agent it runs",
3554
+ " --agent <codex|claude|cursor|opencode|pi> Built-in terminal template; with --tool-command, the agent it runs",
3346
3555
  " --tool-command <command> Custom terminal command",
3347
3556
  " --title <title> Terminal tab title",
3348
3557
  " --initial-input <text> Text sent after the command is ready",
@@ -3376,8 +3585,8 @@ exports.RUNPANE_CONTRACT = {
3376
3585
  ],
3377
3586
  "panes adopt": [
3378
3587
  "Usage:",
3379
- " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [options]",
3380
- " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [options]",
3588
+ " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor|opencode|pi> [options]",
3589
+ " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [options]",
3381
3590
  "",
3382
3591
  "Adopts an existing externally managed git worktree without creating, syncing, or deleting it. Archiving only removes its worktree with `panes archive --remove-worktree`. To start new work on a named branch, use `panes create --base <ref> --branch <name>` instead of `git worktree add` plus adopt.",
3383
3592
  "",
@@ -3466,7 +3675,7 @@ exports.RUNPANE_CONTRACT = {
3466
3675
  " runpane panels <command> [options]",
3467
3676
  "",
3468
3677
  "Commands:",
3469
- " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]",
3678
+ " runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [options]",
3470
3679
  " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]",
3471
3680
  " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]",
3472
3681
  " runpane panels list --pane <pane-id> [--json]",
@@ -3560,12 +3769,12 @@ exports.RUNPANE_CONTRACT = {
3560
3769
  ],
3561
3770
  "agents doctor": [
3562
3771
  "Usage:",
3563
- " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
3772
+ " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]",
3564
3773
  "",
3565
3774
  "Diagnoses whether Codex or Claude is available in the same repository environment Pane will use.",
3566
3775
  "",
3567
3776
  "Options:",
3568
- " --agent <codex|claude|cursor> Built-in agent command to diagnose",
3777
+ " --agent <codex|claude|cursor|opencode|pi> Built-in agent command to diagnose",
3569
3778
  " --repo <selector> active, id, exact path, or saved repository name; defaults to active",
3570
3779
  " --pane-dir <path> Connect to a specific Pane data directory",
3571
3780
  " --json Print machine-readable output"
@@ -3635,13 +3844,15 @@ exports.RUNPANE_CONTRACT = {
3635
3844
  "Create a terminal-backed tool panel inside an existing Pane session.",
3636
3845
  "",
3637
3846
  "Usage:",
3638
- " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json]",
3639
- " runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor>] [--title <title>] [--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json]",
3847
+ " runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json]",
3848
+ " runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--title <title>] [--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json]",
3849
+ " runpane panels create --pane <pane-id> --chat --agent <id> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]",
3640
3850
  "",
3641
3851
  "Options:",
3642
3852
  " --pane <pane-id> Existing Pane session to add the panel to.",
3643
- " --agent <codex|claude|cursor> Built-in agent command template, or with --tool-command the agent it runs.",
3853
+ " --agent <codex|claude|cursor|opencode|pi> Built-in agent command template, or with --tool-command the agent it runs.",
3644
3854
  " --tool-command <command> Custom terminal command to launch.",
3855
+ " --chat Open --agent as a chat tab instead of a terminal; the host lists the agents it can run.",
3645
3856
  " --title <title> Panel title override.",
3646
3857
  " --initial-input, --prompt Initial input to send after the tool starts.",
3647
3858
  " --initial-input-file <path|-> Read initial input from a file or stdin.",
@@ -3721,7 +3932,7 @@ exports.RUNPANE_CONTRACT = {
3721
3932
  " --session <id|name> Named Session id or exact name.",
3722
3933
  " --from-json <path|-> Read structured JSON from a file or stdin.",
3723
3934
  " --pane <pane-id> User-visible Pane to associate or detach.",
3724
- " --agent <codex|claude|cursor> Agent terminal to use.",
3935
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
3725
3936
  " --json Print JSON output."
3726
3937
  ],
3727
3938
  "sessions create": [
@@ -3732,7 +3943,7 @@ exports.RUNPANE_CONTRACT = {
3732
3943
  " --session <id|name> Named Session id or exact name.",
3733
3944
  " --from-json <path|-> Read structured JSON from a file or stdin.",
3734
3945
  " --pane <pane-id> User-visible Pane to associate or detach.",
3735
- " --agent <codex|claude|cursor> Agent terminal to use.",
3946
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
3736
3947
  " --json Print JSON output.",
3737
3948
  "",
3738
3949
  "JSON isPinned: true pins the Session; omitted or false leaves it unpinned.",
@@ -3746,7 +3957,7 @@ exports.RUNPANE_CONTRACT = {
3746
3957
  " --session <id|name> Named Session id or exact name.",
3747
3958
  " --from-json <path|-> Read structured JSON from a file or stdin.",
3748
3959
  " --pane <pane-id> User-visible Pane to associate or detach.",
3749
- " --agent <codex|claude|cursor> Agent terminal to use.",
3960
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
3750
3961
  " --json Print JSON output."
3751
3962
  ],
3752
3963
  "sessions update": [
@@ -3757,20 +3968,20 @@ exports.RUNPANE_CONTRACT = {
3757
3968
  " --session <id|name> Named Session id or exact name.",
3758
3969
  " --from-json <path|-> Read structured JSON from a file or stdin.",
3759
3970
  " --pane <pane-id> User-visible Pane to associate or detach.",
3760
- " --agent <codex|claude|cursor> Agent terminal to use.",
3971
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
3761
3972
  " --json Print JSON output.",
3762
3973
  "",
3763
3974
  "JSON isPinned: true/false sets the Session pin star. Select the Session with --session, not a session field in JSON."
3764
3975
  ],
3765
3976
  "sessions set-agent": [
3766
3977
  "Usage:",
3767
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
3978
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]",
3768
3979
  "",
3769
3980
  "Options:",
3770
3981
  " --session <id|name> Named Session id or exact name.",
3771
3982
  " --from-json <path|-> Read structured JSON from a file or stdin.",
3772
3983
  " --pane <pane-id> User-visible Pane to associate or detach.",
3773
- " --agent <codex|claude|cursor> Agent terminal to use.",
3984
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
3774
3985
  " --json Print JSON output."
3775
3986
  ],
3776
3987
  "sessions associate": [
@@ -3781,7 +3992,7 @@ exports.RUNPANE_CONTRACT = {
3781
3992
  " --session <id|name> Named Session id or exact name.",
3782
3993
  " --from-json <path|-> Read structured JSON from a file or stdin.",
3783
3994
  " --pane <pane-id> User-visible Pane to associate or detach.",
3784
- " --agent <codex|claude|cursor> Agent terminal to use.",
3995
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
3785
3996
  " --json Print JSON output."
3786
3997
  ],
3787
3998
  "sessions detach": [
@@ -3792,7 +4003,7 @@ exports.RUNPANE_CONTRACT = {
3792
4003
  " --session <id|name> Named Session id or exact name.",
3793
4004
  " --from-json <path|-> Read structured JSON from a file or stdin.",
3794
4005
  " --pane <pane-id> User-visible Pane to associate or detach.",
3795
- " --agent <codex|claude|cursor> Agent terminal to use.",
4006
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
3796
4007
  " --json Print JSON output."
3797
4008
  ],
3798
4009
  "sessions overview": [
@@ -3803,7 +4014,7 @@ exports.RUNPANE_CONTRACT = {
3803
4014
  " --session <id|name> Named Session id or exact name.",
3804
4015
  " --from-json <path|-> Read structured JSON from a file or stdin.",
3805
4016
  " --pane <pane-id> User-visible Pane to associate or detach.",
3806
- " --agent <codex|claude|cursor> Agent terminal to use.",
4017
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
3807
4018
  " --json Print JSON output."
3808
4019
  ],
3809
4020
  "panes git-status": [
@@ -4050,14 +4261,14 @@ exports.RUNPANE_CONTRACT = {
4050
4261
  ],
4051
4262
  "agents start": [
4052
4263
  "Usage:",
4053
- " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
4264
+ " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
4054
4265
  "",
4055
4266
  "Start an agent on a task and wait until it is ready: as a new tab in an existing Pane with --pane <id> (review, audit, fix, QA), or in a new Pane with --repo and --name for new work.",
4056
4267
  "",
4057
4268
  "Options:",
4058
4269
  " --repo <selector> Repository: active, id, exact path, or saved name.",
4059
4270
  " --name <name> Name for the new Pane.",
4060
- " --agent <codex|claude|cursor> Built-in agent to launch.",
4271
+ " --agent <codex|claude|cursor|opencode|pi> Built-in agent to launch.",
4061
4272
  " --tool-command <command> Custom terminal command instead of a built-in agent.",
4062
4273
  " --prompt <task> The task to send once the agent is ready.",
4063
4274
  " --base-branch <branch> Branch to start the worktree from.",
@@ -4503,7 +4714,7 @@ exports.RUNPANE_CONTRACT = {
4503
4714
  "handoff": [
4504
4715
  "Usage:",
4505
4716
  " runpane handoff --template",
4506
- " runpane handoff \"<destination>\" --note-file <path|-> [--machine <name>] [--agent <codex|claude|cursor|opencode>] [--model <model>] [--effort <level>] [--repo <selector>] [--push] [--note-only] [--dry-run] [--json]",
4717
+ " runpane handoff \"<destination>\" --note-file <path|-> [--machine <name>] [--agent <codex|claude|cursor|opencode|pi>] [--model <model>] [--effort <level>] [--repo <selector>] [--push] [--note-only] [--dry-run] [--json]",
4507
4718
  "",
4508
4719
  "Hand your task to another agent. You write the note (runpane handoff --template); the CLI checks it,",
4509
4720
  "makes sure your branch is pushed, sends the note to the destination, and starts the agent there.",
@@ -4519,7 +4730,7 @@ exports.RUNPANE_CONTRACT = {
4519
4730
  " --template Print the note template, with this checkout's (or Session's) origin and git state filled in.",
4520
4731
  " --note-file <path|-> The note to check and send; every template section must be filled in.",
4521
4732
  " --machine <name> Destination machine (Tailscale name or unique prefix); overrides the text.",
4522
- " --agent <codex|claude|cursor> Receiving agent; overrides the text.",
4733
+ " --agent <codex|claude|cursor|opencode|pi> Receiving agent; overrides the text.",
4523
4734
  " --model <model> Model for the receiving agent; overrides the text.",
4524
4735
  " --effort <level> minimal, low, medium, high, xhigh, or max; supported for Claude and Codex only; overrides the text. Cursor effort is rejected.",
4525
4736
  " --repo <selector> Saved repository on the destination; defaults to the one with the same remote.",
@@ -4811,7 +5022,7 @@ exports.RUNPANE_CONTRACT = {
4811
5022
  " runpane daemon repair [--pane-dir <path>] [--yes] [--json]",
4812
5023
  " runpane agent-context [--json]",
4813
5024
  " runpane mcp [--toolsets <name,...>] [--read-only]",
4814
- " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
5025
+ " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]",
4815
5026
  " runpane repos list [--json]",
4816
5027
  " runpane repos add --path <path> [--name <name>]",
4817
5028
  " runpane repos get [--repo <selector>] [--json]",
@@ -4827,11 +5038,11 @@ exports.RUNPANE_CONTRACT = {
4827
5038
  " runpane workspace state [--repo <selector>] [--json]",
4828
5039
  " runpane watch --follow",
4829
5040
  " runpane watch --until-event",
4830
- " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]",
5041
+ " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]",
4831
5042
  " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes",
4832
5043
  " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--dry-run] --yes",
4833
5044
  " runpane panes pause|resume --pane <pane-id> --yes [--json]",
4834
- " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes",
5045
+ " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--source user|agent] [--focus|--no-focus] --yes",
4835
5046
  " runpane panels list --pane <pane-id> [--json]",
4836
5047
  " runpane panels output --panel <panel-id> [--limit <count>] [--json]",
4837
5048
  " runpane panels screen --panel <panel-id> [--limit <count>] [--json]",
@@ -4854,7 +5065,7 @@ exports.RUNPANE_CONTRACT = {
4854
5065
  " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]",
4855
5066
  " runpane docs search --query <text> [--limit <count>] [--json]",
4856
5067
  " runpane docs read --doc <path> [--json]",
4857
- " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
5068
+ " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
4858
5069
  " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]",
4859
5070
  " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]",
4860
5071
  " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]",
@@ -5166,7 +5377,7 @@ exports.RUNPANE_CONTRACT = {
5166
5377
  "Commands:",
5167
5378
  " runpane panes list [--repo <selector>] [--json]",
5168
5379
  " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]",
5169
- " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]",
5380
+ " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [options]",
5170
5381
  " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]",
5171
5382
  " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--dry-run] --yes [--json]",
5172
5383
  " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]",
@@ -5282,8 +5493,8 @@ exports.RUNPANE_CONTRACT = {
5282
5493
  ],
5283
5494
  "panes create": [
5284
5495
  "Usage:",
5285
- " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]",
5286
- " python -m runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]",
5496
+ " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]",
5497
+ " python -m runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]",
5287
5498
  " runpane panes create --from-json <path|-> [--yes] [--json]",
5288
5499
  "",
5289
5500
  "Creates a Pane in a saved repository and opens a terminal-backed tool tab. 1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. Create one only when the work's branch has no Pane yet; for existing work use `runpane panels create --pane <id>`.",
@@ -5296,7 +5507,7 @@ exports.RUNPANE_CONTRACT = {
5296
5507
  " --worktree-name <name> Worktree directory name; defaults to --name",
5297
5508
  " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name",
5298
5509
  " --base-branch <ref> Ref to branch from; --base is an alias",
5299
- " --agent <codex|claude|cursor> Built-in terminal template; with --tool-command, the agent it runs",
5510
+ " --agent <codex|claude|cursor|opencode|pi> Built-in terminal template; with --tool-command, the agent it runs",
5300
5511
  " --tool-command <command> Custom terminal command",
5301
5512
  " --title <title> Terminal tab title",
5302
5513
  " --initial-input <text> Text sent after the command is ready",
@@ -5330,8 +5541,8 @@ exports.RUNPANE_CONTRACT = {
5330
5541
  ],
5331
5542
  "panes adopt": [
5332
5543
  "Usage:",
5333
- " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [options]",
5334
- " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [options]",
5544
+ " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor|opencode|pi> [options]",
5545
+ " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [options]",
5335
5546
  "",
5336
5547
  "Adopts an existing externally managed git worktree without creating, syncing, or deleting it. Archiving only removes its worktree with `panes archive --remove-worktree`. To start new work on a named branch, use `panes create --base <ref> --branch <name>` instead of `git worktree add` plus adopt.",
5337
5548
  "",
@@ -5420,7 +5631,7 @@ exports.RUNPANE_CONTRACT = {
5420
5631
  " runpane panels <command> [options]",
5421
5632
  "",
5422
5633
  "Commands:",
5423
- " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]",
5634
+ " runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [options]",
5424
5635
  " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]",
5425
5636
  " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]",
5426
5637
  " runpane panels list --pane <pane-id> [--json]",
@@ -5506,12 +5717,12 @@ exports.RUNPANE_CONTRACT = {
5506
5717
  ],
5507
5718
  "agents doctor": [
5508
5719
  "Usage:",
5509
- " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
5720
+ " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]",
5510
5721
  "",
5511
5722
  "Diagnoses whether Codex or Claude is available in the same repository environment Pane will use.",
5512
5723
  "",
5513
5724
  "Options:",
5514
- " --agent <codex|claude|cursor> Built-in agent command to diagnose",
5725
+ " --agent <codex|claude|cursor|opencode|pi> Built-in agent command to diagnose",
5515
5726
  " --repo <selector> active, id, exact path, or saved repository name; defaults to active",
5516
5727
  " --pane-dir <path> Connect to a specific Pane data directory",
5517
5728
  " --json Print machine-readable output"
@@ -5581,13 +5792,15 @@ exports.RUNPANE_CONTRACT = {
5581
5792
  "Create a terminal-backed tool panel inside an existing Pane session.",
5582
5793
  "",
5583
5794
  "Usage:",
5584
- " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]",
5585
- " python -m runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor>] [--title <title>] [--no-focus] [--wait-ready] --yes [--json]",
5795
+ " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]",
5796
+ " python -m runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--title <title>] [--no-focus] [--wait-ready] --yes [--json]",
5797
+ " python -m runpane panels create --pane <pane-id> --chat --agent <id> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]",
5586
5798
  "",
5587
5799
  "Options:",
5588
5800
  " --pane <pane-id> Existing Pane session to add the panel to.",
5589
- " --agent <codex|claude|cursor> Built-in agent command template, or with --tool-command the agent it runs.",
5801
+ " --agent <codex|claude|cursor|opencode|pi> Built-in agent command template, or with --tool-command the agent it runs.",
5590
5802
  " --tool-command <command> Custom terminal command to launch.",
5803
+ " --chat Open --agent as a chat tab instead of a terminal; the host lists the agents it can run.",
5591
5804
  " --title <title> Panel title override.",
5592
5805
  " --initial-input, --prompt Initial input to send after the tool starts.",
5593
5806
  " --initial-input-file <path|-> Read initial input from a file or stdin.",
@@ -5667,7 +5880,7 @@ exports.RUNPANE_CONTRACT = {
5667
5880
  " --session <id|name> Named Session id or exact name.",
5668
5881
  " --from-json <path|-> Read structured JSON from a file or stdin.",
5669
5882
  " --pane <pane-id> User-visible Pane to associate or detach.",
5670
- " --agent <codex|claude|cursor> Agent terminal to use.",
5883
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
5671
5884
  " --json Print JSON output."
5672
5885
  ],
5673
5886
  "sessions create": [
@@ -5678,7 +5891,7 @@ exports.RUNPANE_CONTRACT = {
5678
5891
  " --session <id|name> Named Session id or exact name.",
5679
5892
  " --from-json <path|-> Read structured JSON from a file or stdin.",
5680
5893
  " --pane <pane-id> User-visible Pane to associate or detach.",
5681
- " --agent <codex|claude|cursor> Agent terminal to use.",
5894
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
5682
5895
  " --json Print JSON output.",
5683
5896
  "",
5684
5897
  "JSON isPinned: true pins the Session; omitted or false leaves it unpinned.",
@@ -5692,7 +5905,7 @@ exports.RUNPANE_CONTRACT = {
5692
5905
  " --session <id|name> Named Session id or exact name.",
5693
5906
  " --from-json <path|-> Read structured JSON from a file or stdin.",
5694
5907
  " --pane <pane-id> User-visible Pane to associate or detach.",
5695
- " --agent <codex|claude|cursor> Agent terminal to use.",
5908
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
5696
5909
  " --json Print JSON output."
5697
5910
  ],
5698
5911
  "sessions update": [
@@ -5703,20 +5916,20 @@ exports.RUNPANE_CONTRACT = {
5703
5916
  " --session <id|name> Named Session id or exact name.",
5704
5917
  " --from-json <path|-> Read structured JSON from a file or stdin.",
5705
5918
  " --pane <pane-id> User-visible Pane to associate or detach.",
5706
- " --agent <codex|claude|cursor> Agent terminal to use.",
5919
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
5707
5920
  " --json Print JSON output.",
5708
5921
  "",
5709
5922
  "JSON isPinned: true/false sets the Session pin star. Select the Session with --session, not a session field in JSON."
5710
5923
  ],
5711
5924
  "sessions set-agent": [
5712
5925
  "Usage:",
5713
- "python -m runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
5926
+ "python -m runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]",
5714
5927
  "",
5715
5928
  "Options:",
5716
5929
  " --session <id|name> Named Session id or exact name.",
5717
5930
  " --from-json <path|-> Read structured JSON from a file or stdin.",
5718
5931
  " --pane <pane-id> User-visible Pane to associate or detach.",
5719
- " --agent <codex|claude|cursor> Agent terminal to use.",
5932
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
5720
5933
  " --json Print JSON output."
5721
5934
  ],
5722
5935
  "sessions associate": [
@@ -5727,7 +5940,7 @@ exports.RUNPANE_CONTRACT = {
5727
5940
  " --session <id|name> Named Session id or exact name.",
5728
5941
  " --from-json <path|-> Read structured JSON from a file or stdin.",
5729
5942
  " --pane <pane-id> User-visible Pane to associate or detach.",
5730
- " --agent <codex|claude|cursor> Agent terminal to use.",
5943
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
5731
5944
  " --json Print JSON output."
5732
5945
  ],
5733
5946
  "sessions detach": [
@@ -5738,7 +5951,7 @@ exports.RUNPANE_CONTRACT = {
5738
5951
  " --session <id|name> Named Session id or exact name.",
5739
5952
  " --from-json <path|-> Read structured JSON from a file or stdin.",
5740
5953
  " --pane <pane-id> User-visible Pane to associate or detach.",
5741
- " --agent <codex|claude|cursor> Agent terminal to use.",
5954
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
5742
5955
  " --json Print JSON output."
5743
5956
  ],
5744
5957
  "sessions overview": [
@@ -5749,7 +5962,7 @@ exports.RUNPANE_CONTRACT = {
5749
5962
  " --session <id|name> Named Session id or exact name.",
5750
5963
  " --from-json <path|-> Read structured JSON from a file or stdin.",
5751
5964
  " --pane <pane-id> User-visible Pane to associate or detach.",
5752
- " --agent <codex|claude|cursor> Agent terminal to use.",
5965
+ " --agent <codex|claude|cursor|opencode|pi> Agent terminal to use.",
5753
5966
  " --json Print JSON output."
5754
5967
  ],
5755
5968
  "panes git-status": [
@@ -5989,7 +6202,7 @@ exports.RUNPANE_CONTRACT = {
5989
6202
  ],
5990
6203
  "agents start": [
5991
6204
  "Usage:",
5992
- " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
6205
+ " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
5993
6206
  "",
5994
6207
  "`runpane agents start` ships in the npm package and the Pane app, not in the Python package.",
5995
6208
  "Run it with Node instead: npx --yes runpane@latest agents start"
@@ -6396,7 +6609,7 @@ exports.RUNPANE_CONTRACT = {
6396
6609
  "handoff": [
6397
6610
  "Usage:",
6398
6611
  " runpane handoff --template",
6399
- " runpane handoff \"<destination>\" --note-file <path|-> [--machine <name>] [--agent <codex|claude|cursor|opencode>] [--model <model>] [--effort <level>] [--repo <selector>] [--push] [--note-only] [--dry-run] [--json]",
6612
+ " runpane handoff \"<destination>\" --note-file <path|-> [--machine <name>] [--agent <codex|claude|cursor|opencode|pi>] [--model <model>] [--effort <level>] [--repo <selector>] [--push] [--note-only] [--dry-run] [--json]",
6400
6613
  "",
6401
6614
  "`runpane handoff` ships in the npm package and the Pane app, not in the Python package.",
6402
6615
  "Run it with Node instead: npx --yes runpane@latest handoff"
@@ -6761,7 +6974,7 @@ exports.RUNPANE_CONTRACT = {
6761
6974
  "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]",
6762
6975
  "runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]",
6763
6976
  "runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]",
6764
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
6977
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]",
6765
6978
  "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]",
6766
6979
  "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]",
6767
6980
  "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]",
@@ -6818,7 +7031,7 @@ exports.RUNPANE_CONTRACT = {
6818
7031
  "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.",
6819
7032
  "`runpane panes cost` reports estimated token costs per Pane for the last 30 days, including per-model breakdowns and cache efficiency; unscoped output includes an Unattributed bucket that reconciles against workspace totals.",
6820
7033
  "`runpane panes create` connects to the running local Pane daemon, resolves the requested saved base repository, creates user-visible Pane sessions backed by Pane-managed worktrees/branches, opens terminal-backed tool tabs, and optionally sends initial input to the started tool. Built-in agent panes and `--source agent` default to background/no-focus unless `--focus` is passed. New Panes are pinned into the UI's favorite/pin set by default, except when the CLI runs inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID`), where child worktrees default to unpinned. Explicit `--pinned` / `--no-pinned` override creation defaults. First Session association clears an existing pin, including an explicit creation pin; use `panes pin` after association to pin a child. This avoids duplicating Session children in the global pinned list. Manual pins applied afterward are preserved. Panes created interactively in the Pane UI are unaffected. Inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID` set), new Panes are associated with that Session automatically; `--no-associate` opts out. A failed association is reported on the item and never undoes the Pane.",
6821
- "For `panes create --wait-ready` (and `panels create`, `panes adopt --launch`), ready means an identified agent at its own input box: declared with `--agent`, or detected from the command, its foreground process or its screen. A `--tool-command` that never shows a supported agent is not ready: `readiness.ok` is false with `readiness.reason.code` `no-agent-detected` after the timeout, or `command-exited` as soon as the command exits back to the shell, and nothing is typed into it. `agent-not-ready` means the agent was detected but its input box was not ready in time. CLI readiness is confirmed on consecutive polls. Codex also requires a recognized configured model or context footer below its live composer; its provisional startup composer is not ready. Hidden or unrecognized Codex status lines conservatively time out rather than prove readiness. Startup prompts return blocked with the prompt's own text in blocked.message and a suggestedCommand, and Pane never answers them, apart from Claude's folder trust for a Session's own folder: first-run trust and daemon dialogs and Agent Farm's `Trust this repository workspace? [y/N]` as blocked.kind=first-run-dialog; Codex's security setup banner and any other prompt, including a wrapper's or shell's `[y/N]` before the agent appears, as agent-prompt. A starting message blocked this way is held and sent once the prompt is answered and the agent's input box is ready. Every create with a starting message returns `initialInput`. Pane stages the text in the composer, presses the agent's submit key separately (Ctrl+Enter for Codex, declared or detected), and checks where it went: `initialInput.delivery` is `taken` or `queued` (from the agent's transcript or its screen), `in-composer`, or `unknown` (`argv` means a prompt was routed at launch; Pane gives the transcript up to 10 seconds before settling on unknown). `initialInput.verifiedSubmitted` is true exactly when it is `taken` or `queued`, and the create's `ok` is false unless a Claude or Codex starting message is verified. Cursor and OpenCode have no acceptance probe: their delivery stays `unknown` with a delivery.message saying so, `verification: unverifiable`, and `ok` follows readiness. Without `--wait-ready` the create returns at once with `initialInput.verifiedSubmitted: false`, a delivery.message saying the call did not wait, and a `panels wait` nextCommand; Pane still sends the message once the agent is identified and at its input box, and gives up without typing it if no supported agent appears within 30 seconds.",
7034
+ "For `panes create --wait-ready` (and `panels create`, `panes adopt --launch`), ready means an identified agent at its own input box: declared with `--agent`, or detected from the command, its foreground process or its screen. A `--tool-command` that never shows a supported agent is not ready: `readiness.ok` is false with `readiness.reason.code` `no-agent-detected` after the timeout, or `command-exited` as soon as the command exits back to the shell, and nothing is typed into it. `agent-not-ready` means the agent was detected but its input box was not ready in time. CLI readiness is confirmed on consecutive polls. Codex also requires a recognized configured model or context footer below its live composer; its provisional startup composer is not ready. Hidden or unrecognized Codex status lines conservatively time out rather than prove readiness. Startup prompts return blocked with the prompt's own text in blocked.message and a suggestedCommand, and Pane never answers them, apart from Claude's folder trust for a Session's own folder: first-run trust and daemon dialogs and Agent Farm's `Trust this repository workspace? [y/N]` as blocked.kind=first-run-dialog; Codex's security setup banner and any other prompt, including a wrapper's or shell's `[y/N]` before the agent appears, as agent-prompt. A starting message blocked this way is held and sent once the prompt is answered and the agent's input box is ready. Every create with a starting message returns `initialInput`. Pane stages the text in the composer, presses the agent's submit key separately (Ctrl+Enter for Codex, declared or detected), and checks where it went: `initialInput.delivery` is `taken` or `queued` (from the agent's transcript or its screen), `in-composer`, or `unknown` (`argv` means a prompt was routed at launch; Pane gives the transcript up to 10 seconds before settling on unknown). `initialInput.verifiedSubmitted` is true exactly when it is `taken` or `queued`, and the create's `ok` is false unless a Claude or Codex starting message is verified. Cursor, OpenCode and Pi have no acceptance probe: their delivery stays `unknown` with a delivery.message saying so, `verification: unverifiable`, and `ok` follows readiness. Without `--wait-ready` the create returns at once with `initialInput.verifiedSubmitted: false`, a delivery.message saying the call did not wait, and a `panels wait` nextCommand; Pane still sends the message once the agent is identified and at its input box, and gives up without typing it if no supported agent appears within 30 seconds.",
6822
7035
  "`runpane panes archive` refreshes the configured upstream, reports exact unpushed commit evidence, and refuses unsafe archive operations unless `--force` is used. A branch whose upstream is gone counts as pushed when a merged GitHub pull request has HEAD as its head (`safetyCheck.mergedViaPr`). Add `--dry-run` to inspect the same evidence without archiving. `--remove-worktree` applies the same check and removal to an adopted worktree; local branches are always kept. Successful archives report `worktreeCleanup: completed` once the worktree is gone from its path and from git; `trashDeletion: pending` means its files are still being deleted in the background. `runpane panes archive --session <id|name> --merged` archives every Session Pane that is clean and pushed or merged, and reports a reason for each skipped Pane. Archive refuses a Pane with an agent mid-turn or waiting for an answer (`agent-busy`, listed in `safetyCheck.busyAgents`), or with a tab holding unsent composer text or unsaved editor edits (`unsent-input`, listed in `safetyCheck.unsentInput`), unless `--force` is used, and the Session sweep skips it. Add `--closed` to the sweep to also archive Panes whose PR closed without merging.",
6823
7036
  "`runpane panes rename` trims and updates a Pane's display name without changing its worktree, branch, panels, or focus, and returns the updated pane summary.",
6824
7037
  "`runpane panes focus` raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Because it steals the user's window focus, run it only on an explicit user request to open, focus, show, or switch to a Pane; never focus a Pane proactively, the same doctrine that keeps `panes create` background/no-focus for `--source agent`.",
@@ -10172,10 +10385,8 @@ exports.RUNPANE_CONTRACT = {
10172
10385
  "type": "boolean"
10173
10386
  },
10174
10387
  "agentType": {
10175
- "enum": [
10176
- "codex",
10177
- "claude"
10178
- ]
10388
+ "type": "string",
10389
+ "description": "The agent's id: a configured agent, or an ACP Registry agent installed on the host."
10179
10390
  },
10180
10391
  "lastActivity": {
10181
10392
  "type": "string"
@@ -12411,10 +12622,8 @@ exports.RUNPANE_CONTRACT = {
12411
12622
  "type": "boolean"
12412
12623
  },
12413
12624
  "agentType": {
12414
- "enum": [
12415
- "codex",
12416
- "claude"
12417
- ]
12625
+ "type": "string",
12626
+ "description": "The agent's id: a configured agent, or an ACP Registry agent installed on the host."
12418
12627
  },
12419
12628
  "lastActivity": {
12420
12629
  "type": "string"
@@ -12707,10 +12916,8 @@ exports.RUNPANE_CONTRACT = {
12707
12916
  "type": "boolean"
12708
12917
  },
12709
12918
  "agentType": {
12710
- "enum": [
12711
- "codex",
12712
- "claude"
12713
- ]
12919
+ "type": "string",
12920
+ "description": "The agent's id: a configured agent, or an ACP Registry agent installed on the host."
12714
12921
  },
12715
12922
  "lastActivity": {
12716
12923
  "type": "string"
@@ -12968,10 +13175,8 @@ exports.RUNPANE_CONTRACT = {
12968
13175
  "type": "boolean"
12969
13176
  },
12970
13177
  "agentType": {
12971
- "enum": [
12972
- "codex",
12973
- "claude"
12974
- ]
13178
+ "type": "string",
13179
+ "description": "The agent's id: a configured agent, or an ACP Registry agent installed on the host."
12975
13180
  },
12976
13181
  "lastActivity": {
12977
13182
  "type": "string"
@@ -13188,10 +13393,8 @@ exports.RUNPANE_CONTRACT = {
13188
13393
  "type": "boolean"
13189
13394
  },
13190
13395
  "agentType": {
13191
- "enum": [
13192
- "codex",
13193
- "claude"
13194
- ]
13396
+ "type": "string",
13397
+ "description": "The agent's id: a configured agent, or an ACP Registry agent installed on the host."
13195
13398
  },
13196
13399
  "lastActivity": {
13197
13400
  "type": "string"
@@ -13268,10 +13471,8 @@ exports.RUNPANE_CONTRACT = {
13268
13471
  "type": "string"
13269
13472
  },
13270
13473
  "agentType": {
13271
- "enum": [
13272
- "claude",
13273
- "codex"
13274
- ]
13474
+ "type": "string",
13475
+ "description": "The agent's id: a configured agent, or an ACP Registry agent installed on the host."
13275
13476
  },
13276
13477
  "text": {
13277
13478
  "type": "string"
@@ -13627,10 +13828,8 @@ exports.RUNPANE_CONTRACT = {
13627
13828
  "type": "boolean"
13628
13829
  },
13629
13830
  "agentType": {
13630
- "enum": [
13631
- "codex",
13632
- "claude"
13633
- ]
13831
+ "type": "string",
13832
+ "description": "The agent's id: a configured agent, or an ACP Registry agent installed on the host."
13634
13833
  },
13635
13834
  "lastActivity": {
13636
13835
  "type": "string"
@@ -17266,7 +17465,7 @@ exports.RUNPANE_CONTRACT = {
17266
17465
  "agentContext": {
17267
17466
  "brief": {
17268
17467
  "title": "Pane agent context",
17269
- "summary": "Pane lets a developer manage saved base repositories, user-visible Panes (Pane sessions) for feature/PR work, and terminal-backed panel tabs. A Pane is a visible workspace that normally maps to one Pane-managed git worktree and branch; a panel is a terminal tab inside one Pane and shares that Pane's worktree; an agent is a CLI process running inside a panel.",
17468
+ "summary": "Pane runs coding agents in parallel git worktrees. A Pane is a visible workspace for one feature or PR, with its own Pane-managed git worktree and branch; a panel is a terminal tab in a Pane and shares its worktree; an agent is a CLI process running in a panel.",
17270
17469
  "rules": [
17271
17470
  "Start with `runpane doctor --json` to understand wrapper, platform, daemon reachability, and the next safe commands before mutating Pane state.",
17272
17471
  "In a Pane repository checkout, if `runpane` is not on PATH, build the local wrapper with `pnpm --filter runpane build` and run it with patched Node 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+ (26.x), for example `node packages/runpane/dist/cli.js doctor --json`.",
@@ -17284,7 +17483,7 @@ exports.RUNPANE_CONTRACT = {
17284
17483
  "When a command needs a secret (an API key, a token), run it with `runpane secrets exec --project <project> -- <command>`. If the secret is missing, ask the person with `runpane secrets request`; never ask them to paste a secret into the chat, and never print one.",
17285
17484
  "If WSL cannot reach Pane, the user may be running Windows Pane; try `/mnt/c/Users/<you>/.pane/bin/runpane doctor --json`, or with an older Pane build `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane doctor --json'`.",
17286
17485
  "If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.",
17287
- "Use `runpane agents doctor --agent <codex|claude|cursor> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.",
17486
+ "Use `runpane agents doctor --agent <codex|claude|cursor|opencode|pi> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.",
17288
17487
  "Use `runpane panes create --wait-ready` to create Panes, wait for each agent's input box, and verify its starting message in one call.",
17289
17488
  "Use `runpane panels screen` for compact current state, including Claude and Codex composer state. Use `panels wait` for create-time readiness or text checks. Use `runpane watch --follow` to block on workspace transitions (READY, BLOCKED, IDLE, STUCK, EXIT) without polling, or `runpane watch --until-event` to exit on the first one. Use `panels submit` to send and submit a new turn. Use `panels submit-composer --strategy auto` only for a composer that was filled separately.",
17290
17489
  "Use `runpane panels input` only when exact bytes are required, such as Ctrl-C or handcrafted terminal input.",
@@ -17316,7 +17515,7 @@ exports.RUNPANE_CONTRACT = {
17316
17515
  "name": "agents doctor",
17317
17516
  "summary": "Check whether Codex or Claude is available in the repo environment Pane will use.",
17318
17517
  "arguments": [
17319
- "--agent <codex|claude|cursor>",
17518
+ "--agent <codex|claude|cursor|opencode|pi>",
17320
17519
  "--repo <selector>",
17321
17520
  "--json"
17322
17521
  ]
@@ -17435,7 +17634,7 @@ exports.RUNPANE_CONTRACT = {
17435
17634
  "arguments": [
17436
17635
  "--repo <selector>",
17437
17636
  "--name <name>",
17438
- "--agent <codex|claude|cursor>",
17637
+ "--agent <codex|claude|cursor|opencode|pi>",
17439
17638
  "--tool-command <command>",
17440
17639
  "--prompt <text>",
17441
17640
  "--initial-input-file <path|->",
@@ -17516,7 +17715,7 @@ exports.RUNPANE_CONTRACT = {
17516
17715
  "summary": "Open reviewer, QA, fix or helper agent tabs inside an existing Pane; they share that Pane's worktree. The default for any later agent on existing work.",
17517
17716
  "arguments": [
17518
17717
  "--pane <pane-id>",
17519
- "--agent <codex|claude|cursor>",
17718
+ "--agent <codex|claude|cursor|opencode|pi>",
17520
17719
  "--tool-command <command>",
17521
17720
  "--source <user|agent>",
17522
17721
  "--no-focus",
@@ -18650,7 +18849,7 @@ exports.RUNPANE_CONTRACT = {
18650
18849
  },
18651
18850
  {
18652
18851
  "name": "--agent",
18653
- "value": "<codex|claude|cursor>",
18852
+ "value": "<codex|claude|cursor|opencode|pi>",
18654
18853
  "required": false,
18655
18854
  "description": "Built-in agent terminal template to open. With --tool-command, the agent that command runs."
18656
18855
  },
@@ -18862,7 +19061,7 @@ exports.RUNPANE_CONTRACT = {
18862
19061
  },
18863
19062
  {
18864
19063
  "name": "--agent",
18865
- "value": "<codex|claude|cursor>",
19064
+ "value": "<codex|claude|cursor|opencode|pi>",
18866
19065
  "required": false,
18867
19066
  "description": "Agent whose terminal to create; with --tool-command, the agent that command runs."
18868
19067
  },
@@ -19508,7 +19707,7 @@ exports.RUNPANE_CONTRACT = {
19508
19707
  "arguments": [
19509
19708
  {
19510
19709
  "name": "--agent",
19511
- "value": "<codex|claude|cursor>",
19710
+ "value": "<codex|claude|cursor|opencode|pi>",
19512
19711
  "required": true,
19513
19712
  "description": "Built-in agent command to diagnose."
19514
19713
  },
@@ -19587,7 +19786,7 @@ exports.RUNPANE_CONTRACT = {
19587
19786
  "panels submit": {
19588
19787
  "name": "panels submit",
19589
19788
  "summary": "Send and submit text to a terminal panel, including idle agent composers.",
19590
- "details": "Use this for ordinary interactive submissions. For Claude, Pane waits for the composer to appear and show the staged text, then sends Enter on its own and verifies that the composer cleared; Claude keeps an Enter that arrives together with the text as a newline. For a Codex composer, Pane stages the text, waits for paste handling, then queues with Tab while working or submits with Enter when ready, and verifies delivery when visible evidence is available. Wrapper-launched agents are handled the same way once Pane knows the agent (declared, from the foreground process, or from the screen). A Claude or Codex panel with no composer on screen gets nothing: the result is `ok: false` with `blocked.kind: composer-unknown`. Multi-line or long (over 512 characters) text reaches a Claude or Codex composer as one bracketed paste: CRLF becomes LF, and the submit key goes as its own write once the paste has settled, even while the agent is working. Other terminals receive a normalized CR Enter. Exact byte workflows remain on `panels input`.",
19789
+ "details": "Use this for ordinary interactive submissions. For Claude, Pane waits for the composer to appear and show the staged text, then sends Enter on its own and verifies that the composer cleared; Claude keeps an Enter that arrives together with the text as a newline. For a Codex composer, Pane stages the text, waits for paste handling, then queues with Tab while working or submits with Enter when ready, and verifies delivery when visible evidence is available. Wrapper-launched agents are handled the same way once Pane knows the agent (declared, from the foreground process, or from the screen). A Claude or Codex panel with no composer on screen gets nothing, and so does a typed-message agent (Pi, OpenCode) whose status rules do not recognize its input box, for example while a prompt, selector or dialog is open: the result is `ok: false` with `blocked.kind: composer-unknown`. Multi-line or long (over 512 characters) text reaches a Claude or Codex composer as one bracketed paste: CRLF becomes LF, and the submit key goes as its own write once the paste has settled, even while the agent is working. Other agents and plain terminals receive a normalized CR Enter. Exact byte workflows remain on `panels input`.",
19591
19790
  "requiresPaneDaemon": true,
19592
19791
  "mutates": true,
19593
19792
  "arguments": [
@@ -20034,7 +20233,7 @@ exports.RUNPANE_CONTRACT = {
20034
20233
  },
20035
20234
  {
20036
20235
  "name": "--agent",
20037
- "value": "<codex|claude|cursor>",
20236
+ "value": "<codex|claude|cursor|opencode|pi>",
20038
20237
  "required": false,
20039
20238
  "description": "Built-in agent command template to launch. With --tool-command, the agent that command runs."
20040
20239
  },
@@ -20047,7 +20246,7 @@ exports.RUNPANE_CONTRACT = {
20047
20246
  {
20048
20247
  "name": "--chat",
20049
20248
  "required": false,
20050
- "description": "Open --agent claude or codex as a chat tab (ACP, no terminal) instead of a terminal tab. Needs chat tabs on in Settings > AI & Agents."
20249
+ "description": "Open --agent as a chat tab (ACP, no terminal) instead of a terminal tab. --agent then takes any agent id; if the host cannot run it, the error lists the agents it can. Needs chat tabs on in Settings > AI & Agents."
20051
20250
  },
20052
20251
  {
20053
20252
  "name": "--agent-farm",
@@ -21390,7 +21589,7 @@ exports.RUNPANE_CONTRACT = {
21390
21589
  },
21391
21590
  {
21392
21591
  "name": "--agent",
21393
- "value": "<codex|claude|cursor>",
21592
+ "value": "<codex|claude|cursor|opencode|pi>",
21394
21593
  "required": false,
21395
21594
  "description": "Built-in agent to launch."
21396
21595
  },
@@ -21758,7 +21957,7 @@ exports.RUNPANE_CONTRACT = {
21758
21957
  }
21759
21958
  ],
21760
21959
  "examples": [
21761
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]"
21960
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]"
21762
21961
  ],
21763
21962
  "jsonSchemas": [
21764
21963
  "sessionResult"
@@ -22216,7 +22415,7 @@ exports.RUNPANE_CONTRACT = {
22216
22415
  },
22217
22416
  {
22218
22417
  "name": "--agent",
22219
- "value": "<codex|claude|cursor>",
22418
+ "value": "<codex|claude|cursor|opencode|pi>",
22220
22419
  "required": false,
22221
22420
  "description": "Receiving agent; overrides the text."
22222
22421
  },
@@ -23221,7 +23420,9 @@ exports.RUNPANE_CONTRACT = {
23221
23420
  "notifyResult"
23222
23421
  ],
23223
23422
  "notes": [
23224
- "Write the card the way the pane MCP server's instructions say: in plain words, what the work is for, what just happened, and what you need.",
23423
+ "Ask only what you can't find out yourself, and put related questions in one card. Send `info` rarely, only for what the person must know now.",
23424
+ "Write the card as its Summary: a title of about 80 to 100 characters on one line; context as a subtitle of one or two sentences saying why it matters; 2 to 4 choices, each saying what it does, with exactly one recommended; links to every file, page or approval it mentions. Pane refuses a title over 160 characters or with a line break, and two recommended choices.",
23425
+ "The person is juggling many tasks and has lost the thread. In plain words, say what the work is for (the outcome, not the file), what just happened, and what you need. For a decision, give the options and what each one means. Pane already shows which Pane and agent sent it.",
23225
23426
  "Results: options returns {answer: <chosen label>, note?}, with questions also answers (one label per question); approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.",
23226
23427
  "A result of {reply, picks?, id, replyId, next} means the person typed a reply instead of only picking: it may answer the question or ask one. Read it, then call `runpane notify --took <replyId> answer` to record it as the answer, or `runpane notify --took <replyId> question` and find out, then `runpane notify --update <replyId> --asked \"<their question>\" --what-changed \"<one line per change>\"` with whatever changed, instead of asking again. With no open call the reply reaches your tab as a `reply:` line; `correction:` lines fix how it was taken. --took returns {took, id, next?}. Use its replyId rather than the Q-n: only this call was given it, so it works from outside a Pane tab too.",
23227
23428
  "Only the reply's reader may run took and update: the asker, the orchestrator that relayed it, or Autopilot. Anyone else gets ERR_NOTIFY_NOT_READER.",
@@ -23230,8 +23431,10 @@ exports.RUNPANE_CONTRACT = {
23230
23431
  "Inside a Pane terminal the question names its Pane and panel (PANE_SESSION_ID and PANE_PANEL_ID); elsewhere it names the working directory.",
23231
23432
  "An older Pane ignores links and shows the card without them.",
23232
23433
  "With relays the call waits on the worker's card as on any notify, and the answer also goes straight to the worker's tab as `answer: Q-n → <answer> (by you)`. Then record it: `runpane inbox ack <item> --decision <D-n>`.",
23233
- "Invalid input, such as choices with ui ask, 10 choices, or ui with took or update, fails with a message naming the field, and nothing is shown."
23234
- ]
23434
+ "Invalid input, such as choices with ui ask, 10 choices, or ui with took or update, fails with a message naming the field, and nothing is shown.",
23435
+ "Examples of a good title and context. Needs a decision (ui approve): \"Speed up slow search: run the database change?\" with \"Search takes 4 s and an index brings it under 100 ms. It changes the live database and can't easily be undone.\", not \"Approve the migration?\" Blocked (ui options): \"The 2.5 release is stuck on a GitHub hiccup\" with \"The fixes pass everywhere except one Mac build machine, which errored. That's GitHub's machine, not our code.\", not \"Blocked\". Just so you know (ui info): \"Questions from agents now wait until you answer\", not \"Done\"."
23436
+ ],
23437
+ "helpIncludesNotes": true
23235
23438
  },
23236
23439
  "autopilot status": {
23237
23440
  "name": "autopilot status",
@@ -23633,82 +23836,9 @@ exports.RUNPANE_CONTRACT = {
23633
23836
  ],
23634
23837
  "notifyGuidance": {
23635
23838
  "rules": [
23636
- "Which card: Claude's own card (AskUserQuestion) only when you are answering the person's latest message in the chat they are typing in, the answer only steers this turn, and the question needs no context, links or Summary. Everything else is an approval card (`notify`, or `runpane report` for a worker): a worker's question in a Session, a question a Session orchestrator relays, and anything that waits, blocks other work, is recorded as a decision or approves an ask-first action. Unsure? Use an approval card. Codex and other agents without a built-in card always do.",
23637
- "In a Session, only its orchestrator asks the person. A worker in a Session (`PANE_SESSION_DIR` is set and `PANE_ORCHESTRATION_SESSION_ID` isn't, or your brief names an orchestrator or a parent status file) doesn't call `notify`: it reports blocked with `runpane report --state blocked --question \"<question>\"`, and the answer reaches its tab as `answer: Q-n → <answer> (by you)`; `closed: Q-n (by you)` and `correction: Q-n → <answer> (by you)` lines are the person's word too. A Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID` is set) posts each item that waits on the person once, as a background `runpane notify ... --json`, as its pane-orchestration guide says. Any other agent calls `notify`.",
23638
- "Ask only what you can't find out yourself.",
23639
- "Put related questions in one card.",
23640
- "Send `info` rarely, only for what the person must know now.",
23641
- "Write the card as its Summary: a title of about 80 to 100 characters on one line; context as a subtitle of one or two sentences saying why it matters; 2 to 4 choices, each saying what it does, with exactly one recommended; links to every file, page or approval it mentions. Pane refuses a title over 160 characters or with a line break, and two recommended choices.",
23642
- "A `reply:` line (or a `{reply, replyId}` result) is the person's typed reply: an answer or a question. If it answers, run `runpane notify --took <id|Q-n> answer`. If it asks, run `--took <id|Q-n> question`, find out, then `runpane notify --update <id|Q-n> --asked \"<their question>\" --what-changed \"<one line per change>\"` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` (a reworded choice adds `\"was\"`, its old label) instead of asking again. A `correction:` line fixes how it was taken. From a `{reply, replyId}` result, pass its replyId to --took and --update.",
23839
+ "Claude's own card (AskUserQuestion) only for a quick question about the person's latest message, in the chat they are typing in, that steers only this turn. Anything else (it waits, blocks other work, is recorded as a decision or approves an ask-first action) is an approval card (`notify`). Unsure? Use an approval card. Codex and other agents always do.",
23840
+ "In a Session, only its orchestrator asks the person. A worker (`PANE_SESSION_DIR` is set and `PANE_ORCHESTRATION_SESSION_ID` isn't, or your brief names an orchestrator or a parent status file) doesn't call `notify`: it reports blocked with `runpane report --state blocked --question \"<question>\"`. `answer:`, `closed:` and `correction:` lines ending `(by you)` in its tab are the person's word.",
23643
23841
  "For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`."
23644
- ],
23645
- "cardRule": "The person is juggling many tasks and has lost the thread. In plain words, say what the work is for (the outcome, not the file), what just happened, and what you need. For a decision, give the options and what each one means. Pane already shows which Pane and agent sent it.",
23646
- "results": "`waiting` means call `notify` again with `resume`. `unavailable` means ask in the terminal; for a secret, ask the person to save it in Pane under Settings > Secrets.",
23647
- "examples": [
23648
- {
23649
- "name": "Needs a decision",
23650
- "ui": "approve",
23651
- "bad": [
23652
- {
23653
- "title": "Approve the migration?",
23654
- "context": "Ready to run 0042_add_index on prod. Proceed?"
23655
- }
23656
- ],
23657
- "good": {
23658
- "title": "Speed up slow search: run the database change?",
23659
- "context": "Search in the app takes 4 s, and an index brings it under 100 ms. It changes the live database and can't easily be undone. Approve runs it now; Deny keeps it ready for later."
23660
- }
23661
- },
23662
- {
23663
- "name": "Blocked",
23664
- "ui": "options",
23665
- "bad": [
23666
- {
23667
- "title": "Blocked",
23668
- "context": "CI failing on macos-intel, hdiutil resource busy."
23669
- }
23670
- ],
23671
- "good": {
23672
- "title": "The 2.5 release is stuck on a GitHub hiccup",
23673
- "context": "The fixes you asked for pass everywhere except one Mac build machine, which errored. That's GitHub's machine, not our code.",
23674
- "choices": [
23675
- "Rerun it (about 15 min)",
23676
- "Ship without the Intel Mac build"
23677
- ]
23678
- }
23679
- },
23680
- {
23681
- "name": "Just so you know",
23682
- "ui": "info",
23683
- "bad": [
23684
- {
23685
- "title": "Done",
23686
- "context": "Completed refactor of src/notify/queue.ts (head 06d310a)."
23687
- },
23688
- {
23689
- "title": "PR #812 is ready",
23690
- "context": "Tests pass."
23691
- }
23692
- ],
23693
- "good": {
23694
- "title": "Questions from agents now wait until you answer",
23695
- "context": "The fix you asked for this morning is done and tested. Next is your review: one click to merge."
23696
- }
23697
- },
23698
- {
23699
- "name": "A question for ask",
23700
- "ui": "ask",
23701
- "bad": [
23702
- {
23703
- "title": "Which option?",
23704
- "context": "1, 2 or 3?"
23705
- }
23706
- ],
23707
- "good": {
23708
- "title": "What should the release headline say?",
23709
- "context": "You're writing the 2.5 release notes, and the headline is the first line people read. A few words is enough."
23710
- }
23711
- }
23712
23842
  ]
23713
23843
  }
23714
23844
  }