runpane 2.4.136 → 2.4.138

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.
@@ -94,7 +94,7 @@ export declare const RUNPANE_CONTRACT: {
94
94
  }, {
95
95
  readonly name: "version";
96
96
  readonly summary: "Print the runpane wrapper version without contacting, launching, or focusing Pane.";
97
- readonly usage: readonly ["runpane version", "runpane --version"];
97
+ readonly usage: readonly ["runpane version [--pane-dir <path>]", "runpane --version"];
98
98
  }, {
99
99
  readonly name: "doctor";
100
100
  readonly summary: "Run platform, release, installed Pane, daemon reachability, and remote setup diagnostics.";
@@ -112,7 +112,7 @@ export declare const RUNPANE_CONTRACT: {
112
112
  }, {
113
113
  readonly name: "agents doctor";
114
114
  readonly summary: "Diagnose whether a built-in agent command is available in a Pane repository environment.";
115
- readonly usage: readonly ["runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]"];
115
+ readonly usage: readonly ["runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json] [--pane-dir <path>]"];
116
116
  readonly toolsets: readonly ["admin"];
117
117
  readonly jsonSchemas: readonly ["agentDoctorResult"];
118
118
  }, {
@@ -135,7 +135,7 @@ export declare const RUNPANE_CONTRACT: {
135
135
  }, {
136
136
  readonly name: "repos add";
137
137
  readonly summary: "Register an existing git repository with the running Pane app.";
138
- readonly usage: readonly ["runpane repos add --path <path> [--name <name>] [--json] [--yes]"];
138
+ readonly usage: readonly ["runpane repos add --path <path> [--name <name>] [--json] [--yes] [--pane-dir <path>]"];
139
139
  readonly mutates: true;
140
140
  readonly additive: true;
141
141
  readonly idempotent: true;
@@ -144,31 +144,31 @@ export declare const RUNPANE_CONTRACT: {
144
144
  }, {
145
145
  readonly name: "panes list";
146
146
  readonly summary: "List Pane sessions in a saved repository.";
147
- readonly usage: readonly ["runpane panes list [--repo <selector>] [--json]"];
147
+ readonly usage: readonly ["runpane panes list [--repo <selector>] [--json] [--pane-dir <path>]"];
148
148
  readonly toolsets: readonly ["core", "panes"];
149
149
  readonly jsonSchemas: readonly ["paneListResult"];
150
150
  }, {
151
151
  readonly name: "panes cost";
152
152
  readonly summary: "Report estimated token cost per Pane, with per-model breakdown and cache efficiency.";
153
- readonly usage: readonly ["runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]"];
153
+ readonly usage: readonly ["runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json] [--pane-dir <path>]"];
154
154
  readonly toolsets: readonly ["panes"];
155
155
  readonly jsonSchemas: readonly ["paneCostRequest", "paneCostResult"];
156
156
  }, {
157
157
  readonly name: "workspace state";
158
158
  readonly summary: "Read one workspace snapshot of every Pane and CLI panel.";
159
- readonly usage: readonly ["runpane workspace state [--repo <selector>] [--json]"];
159
+ readonly usage: readonly ["runpane workspace state [--repo <selector>] [--json] [--pane-dir <path>]"];
160
160
  readonly toolsets: readonly ["core", "agents"];
161
161
  readonly jsonSchemas: readonly ["workspaceStateResult"];
162
162
  }, {
163
163
  readonly name: "watch";
164
164
  readonly summary: "Wait for workspace agent and Pane transitions using a daemon-held cursor.";
165
- readonly usage: readonly ["runpane watch [--as <name>|--since <generation>] [--follow] [--format <lines|json>] [--heartbeat <seconds>] [--idle-after <ms>] [--settle <ms>] [--blocked-settle <ms>] [--min-interval <ms>] [--idle-backoff] [--all-managed|--pane <id>] [--include-shells] [--self-test] [--kinds <kind,...>] [--repo <selector>] [--name-contains <text>] [--timeout-ms <ms>] [--from <now|earliest>] [--json]"];
165
+ readonly usage: readonly ["runpane watch [--as <name>|--since <generation>] [--follow] [--format <lines|json>] [--heartbeat <seconds>] [--idle-after <ms>] [--settle <ms>] [--blocked-settle <ms>] [--min-interval <ms>] [--idle-backoff] [--all-managed|--pane <id>|--session <id|name>] [--include-shells] [--self-test] [--quiet] [--kinds <kind,...>] [--repo <selector>] [--name-contains <text>] [--timeout-ms <ms>] [--from <now|earliest>] [--json] [--pane-dir <path>]"];
166
166
  readonly toolsets: readonly ["agents"];
167
167
  readonly jsonSchemas: readonly ["workspaceWaitRequest", "workspaceWaitResult"];
168
168
  }, {
169
169
  readonly name: "panes create";
170
170
  readonly summary: "Create user-visible Panes (Pane sessions) backed by Pane-managed worktrees for feature/PR work and open terminal-backed tool tabs.";
171
- readonly usage: readonly ["runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] [options]", "runpane panes create --from-json <path|-> [--yes] [--json]"];
171
+ readonly usage: readonly ["runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options] [--pane-dir <path>]", "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|->] [options] [--pane-dir <path>]", "runpane panes create --from-json <path|-> [--yes] [--json] [--pane-dir <path>]"];
172
172
  readonly mutates: true;
173
173
  readonly additive: true;
174
174
  readonly toolsets: readonly ["panes"];
@@ -176,22 +176,22 @@ export declare const RUNPANE_CONTRACT: {
176
176
  }, {
177
177
  readonly name: "panes adopt";
178
178
  readonly summary: "Adopt an existing externally managed git worktree as a Pane without changing the worktree.";
179
- readonly usage: readonly ["runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [--resume <id>] [--folder <name>] [--launch] [--no-pinned] [--no-associate] [--dry-run] [--yes] [--json]"];
179
+ readonly usage: readonly ["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>]", "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>]"];
180
180
  readonly mutates: true;
181
181
  readonly additive: true;
182
182
  readonly toolsets: readonly ["panes"];
183
183
  readonly jsonSchemas: readonly ["paneCreateResult"];
184
184
  }, {
185
185
  readonly name: "panes archive";
186
- readonly summary: "Archive a Pane (session) exactly like the UI Archive action, including safe removal of its Pane-managed git worktree.";
187
- readonly usage: readonly ["runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--dry-run] --yes [--json]"];
186
+ readonly summary: "Archive a Pane (session) exactly like the UI Archive action, including safe removal of its Pane-managed git worktree, or archive every merged Pane in a Session.";
187
+ readonly usage: readonly ["runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json] [--pane-dir <path>]", "runpane panes archive --session <id|name> --merged [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json] [--pane-dir <path>]"];
188
188
  readonly mutates: true;
189
189
  readonly toolsets: readonly ["core", "panes"];
190
- readonly jsonSchemas: readonly ["paneArchiveRequest", "paneArchiveResult"];
190
+ readonly jsonSchemas: readonly ["paneArchiveRequest", "paneArchiveBulkRequest", "paneArchiveResult", "paneArchiveBulkResult"];
191
191
  }, {
192
192
  readonly name: "panes pin";
193
193
  readonly summary: "Declaratively pin a Pane; pinned is the Pane UI's favorite/pin star and repeated requests are idempotent.";
194
- readonly usage: readonly ["runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]"];
194
+ readonly usage: readonly ["runpane panes pin --pane <pane-id> --yes [--dry-run] [--json] [--pane-dir <path>]"];
195
195
  readonly mutates: true;
196
196
  readonly idempotent: true;
197
197
  readonly toolsets: readonly ["panes"];
@@ -199,7 +199,7 @@ export declare const RUNPANE_CONTRACT: {
199
199
  }, {
200
200
  readonly name: "panes unpin";
201
201
  readonly summary: "Declaratively unpin a Pane; pinned is the Pane UI's favorite/pin star and repeated requests are idempotent.";
202
- readonly usage: readonly ["runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]"];
202
+ readonly usage: readonly ["runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json] [--pane-dir <path>]"];
203
203
  readonly mutates: true;
204
204
  readonly idempotent: true;
205
205
  readonly toolsets: readonly ["panes"];
@@ -207,7 +207,7 @@ export declare const RUNPANE_CONTRACT: {
207
207
  }, {
208
208
  readonly name: "panes rename";
209
209
  readonly summary: "Rename a Pane without changing its worktree, branch, panels, or focus.";
210
- readonly usage: readonly ["runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]"];
210
+ readonly usage: readonly ["runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json] [--pane-dir <path>]"];
211
211
  readonly mutates: true;
212
212
  readonly idempotent: true;
213
213
  readonly toolsets: readonly ["panes"];
@@ -215,7 +215,7 @@ export declare const RUNPANE_CONTRACT: {
215
215
  }, {
216
216
  readonly name: "panes focus";
217
217
  readonly summary: "Raise the Pane window and select a Pane (and optionally one of its panels) on explicit user request.";
218
- readonly usage: readonly ["runpane panes focus --pane <pane-id> [--panel <panel-id>] --source user|agent --yes [--json]"];
218
+ readonly usage: readonly ["runpane panes focus --pane <pane-id> [--panel <panel-id>] --source user|agent --yes [--json] [--pane-dir <path>]"];
219
219
  readonly mutates: true;
220
220
  readonly additive: true;
221
221
  readonly idempotent: true;
@@ -224,56 +224,68 @@ export declare const RUNPANE_CONTRACT: {
224
224
  }, {
225
225
  readonly name: "panels create";
226
226
  readonly summary: "Create a terminal-backed tool panel inside an existing Pane session.";
227
- readonly usage: readonly ["runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] [--wait-ready] --yes [--json]", "runpane panels create --pane <pane-id> --tool-command <command> [--title <title>] [--focus|--no-focus] --yes [--json]"];
227
+ readonly usage: readonly ["runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] [--wait-ready] --yes [--json] [--pane-dir <path>]", "runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor>] [--title <title>] [--focus|--no-focus] [--wait-ready] --yes [--json] [--pane-dir <path>]"];
228
228
  readonly mutates: true;
229
229
  readonly additive: true;
230
230
  readonly toolsets: readonly ["panels"];
231
231
  readonly jsonSchemas: readonly ["panelCreateRequest", "panelCreateResult"];
232
+ }, {
233
+ readonly name: "panels open";
234
+ readonly summary: "Open a URL or file as a browser/editor tab in a Pane, in split view beside the agent by default.";
235
+ readonly usage: readonly ["runpane panels open [--pane <pane-id>] (--url <url>|--file <path>) [--title <title>] [--split|--tab] [--focus|--no-focus] [--source user|agent] --yes [--json]"];
236
+ readonly mutates: true;
237
+ readonly jsonSchemas: readonly ["panelOpenRequest", "panelOpenResult"];
232
238
  }, {
233
239
  readonly name: "panels list";
234
240
  readonly summary: "List tool panels inside a Pane session.";
235
- readonly usage: readonly ["runpane panels list --pane <pane-id> [--json]"];
241
+ readonly usage: readonly ["runpane panels list --pane <pane-id> [--json] [--pane-dir <path>]"];
236
242
  readonly toolsets: readonly ["panels"];
237
243
  readonly jsonSchemas: readonly ["panelListResult"];
238
244
  }, {
239
245
  readonly name: "panels output";
240
246
  readonly summary: "Read recent terminal output from a panel.";
241
- readonly usage: readonly ["runpane panels output --panel <panel-id> [--limit <count>] [--json]"];
247
+ readonly usage: readonly ["runpane panels output --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]"];
242
248
  readonly toolsets: readonly ["panels"];
243
249
  readonly jsonSchemas: readonly ["panelOutputResult"];
244
250
  }, {
245
251
  readonly name: "panels screen";
246
252
  readonly summary: "Read a compact current-screen view from a terminal panel.";
247
- readonly usage: readonly ["runpane panels screen --panel <panel-id> [--limit <count>] [--json]"];
253
+ readonly usage: readonly ["runpane panels screen --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]"];
248
254
  readonly toolsets: readonly ["panels"];
249
255
  readonly jsonSchemas: readonly ["panelScreenResult"];
250
256
  }, {
251
257
  readonly name: "panels input";
252
258
  readonly summary: "Send input bytes to a terminal panel.";
253
- readonly usage: readonly ["runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]"];
259
+ readonly usage: readonly ["runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json] [--pane-dir <path>]"];
254
260
  readonly mutates: true;
255
261
  readonly toolsets: readonly ["core", "panels"];
256
262
  readonly jsonSchemas: readonly ["panelInputRequest", "panelInputResult"];
257
263
  }, {
258
264
  readonly name: "panels submit";
259
265
  readonly summary: "Send and submit text to a terminal panel, including idle agent composers.";
260
- readonly usage: readonly ["runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]"];
266
+ readonly usage: readonly ["runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) [--as-file-pointer] --yes [--json] [--pane-dir <path>]"];
261
267
  readonly mutates: true;
262
268
  readonly toolsets: readonly ["panels"];
263
269
  readonly jsonSchemas: readonly ["panelSubmitRequest", "panelSubmitResult"];
264
270
  }, {
265
271
  readonly name: "panels submit-composer";
266
272
  readonly summary: "Submit an agent composer using the panel-appropriate key sequence.";
267
- readonly usage: readonly ["runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]"];
273
+ readonly usage: readonly ["runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json] [--pane-dir <path>]"];
268
274
  readonly mutates: true;
269
275
  readonly toolsets: readonly ["panels"];
270
276
  readonly jsonSchemas: readonly ["panelSubmitComposerRequest", "panelSubmitComposerResult"];
271
277
  }, {
272
278
  readonly name: "panels wait";
273
279
  readonly summary: "Wait for a terminal panel to initialize, become ready/idle, or contain text.";
274
- readonly usage: readonly ["runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--contains <text>] [--timeout-ms <ms>] [--interval-ms <ms>] [--json]"];
280
+ readonly usage: readonly ["runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--contains <text>] [--timeout-ms <ms>] [--interval-ms <ms>] [--json] [--pane-dir <path>]"];
275
281
  readonly toolsets: readonly ["panels"];
276
282
  readonly jsonSchemas: readonly ["panelWaitResult"];
283
+ }, {
284
+ readonly name: "panels last-message";
285
+ readonly summary: "Read an agent's last reply from its transcript, without scraping the screen.";
286
+ readonly usage: readonly ["runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]"];
287
+ readonly toolsets: readonly ["panels", "agents"];
288
+ readonly jsonSchemas: readonly ["panelLastMessageResult"];
277
289
  }, {
278
290
  readonly name: "panes git-status";
279
291
  readonly summary: "Read the git status of a Pane worktree: uncommitted, unpushed, and behind-main counts.";
@@ -514,11 +526,20 @@ export declare const RUNPANE_CONTRACT: {
514
526
  }, {
515
527
  readonly name: "agents send";
516
528
  readonly summary: "Send a follow-up message to an agent and confirm it was submitted.";
517
- readonly usage: readonly ["runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]"];
529
+ readonly usage: readonly ["runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> [--as-file-pointer] --yes [--json] [--pane-dir <path>]"];
518
530
  readonly mutates: true;
519
531
  readonly wrappers: readonly ["npm"];
520
532
  readonly toolsets: readonly ["core", "agents"];
521
533
  readonly jsonSchemas: readonly ["agentSendResult"];
534
+ }, {
535
+ readonly name: "report";
536
+ readonly summary: "Hand back a worker's structured report: state, PR, head commit, summary, and the question when blocked.";
537
+ readonly usage: readonly ["runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text>] [--pane <pane-id> --panel <panel-id>] [--json] [--pane-dir <path>]"];
538
+ readonly mutates: true;
539
+ readonly additive: true;
540
+ readonly idempotent: true;
541
+ readonly toolsets: readonly ["agents"];
542
+ readonly jsonSchemas: readonly ["reportResult"];
522
543
  }, {
523
544
  readonly name: "sessions list";
524
545
  readonly summary: "List durable named orchestration Sessions.";
@@ -578,6 +599,29 @@ export declare const RUNPANE_CONTRACT: {
578
599
  readonly usage: readonly ["runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]"];
579
600
  readonly toolsets: readonly ["sessions"];
580
601
  readonly jsonSchemas: readonly ["sessionOverviewResult"];
602
+ }, {
603
+ readonly name: "lock acquire";
604
+ readonly summary: "Acquire a named lock on a resource shared between agents, such as one test account, optionally waiting for it.";
605
+ readonly usage: readonly ["runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]"];
606
+ readonly mutates: true;
607
+ readonly additive: true;
608
+ readonly idempotent: true;
609
+ readonly toolsets: readonly ["sessions"];
610
+ readonly jsonSchemas: readonly ["lockAcquireRequest", "lockAcquireResult"];
611
+ }, {
612
+ readonly name: "lock release";
613
+ readonly summary: "Release a named lock you hold, or force-release another owner's lock.";
614
+ readonly usage: readonly ["runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]"];
615
+ readonly mutates: true;
616
+ readonly idempotent: true;
617
+ readonly toolsets: readonly ["sessions"];
618
+ readonly jsonSchemas: readonly ["lockReleaseResult"];
619
+ }, {
620
+ readonly name: "lock list";
621
+ readonly summary: "List held named locks, optionally only one Session's.";
622
+ readonly usage: readonly ["runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]"];
623
+ readonly toolsets: readonly ["sessions"];
624
+ readonly jsonSchemas: readonly ["lockListResult"];
581
625
  }];
582
626
  readonly flags: {
583
627
  readonly wrapper: readonly [{
@@ -666,15 +710,20 @@ export declare const RUNPANE_CONTRACT: {
666
710
  }, {
667
711
  readonly name: "--name";
668
712
  readonly value: "<name>";
669
- readonly description: "Name for the registered repository or created/renamed pane session.";
713
+ readonly description: "Name for the registered repository, created/renamed pane session, or named lock.";
670
714
  }, {
671
715
  readonly name: "--worktree-name";
672
716
  readonly value: "<name>";
673
717
  readonly description: "Worktree name to request. Defaults to --name.";
718
+ }, {
719
+ readonly name: "--branch";
720
+ readonly value: "<name>";
721
+ readonly description: "Exact new branch name for the created worktree, slashes included. Must not exist yet; defaults to the worktree name.";
674
722
  }, {
675
723
  readonly name: "--base-branch";
676
- readonly value: "<branch>";
677
- readonly description: "Base branch for the created worktree.";
724
+ readonly value: "<ref>";
725
+ readonly aliases: readonly ["--base"];
726
+ readonly description: "Ref the created worktree branches from. --base is an alias.";
678
727
  }, {
679
728
  readonly name: "--folder";
680
729
  readonly value: "<name>";
@@ -686,7 +735,7 @@ export declare const RUNPANE_CONTRACT: {
686
735
  }, {
687
736
  readonly name: "--agent";
688
737
  readonly value: "<codex|claude|cursor>";
689
- readonly description: "Built-in agent terminal template to open.";
738
+ readonly description: "Built-in agent terminal template to open. With --tool-command, the agent that command runs.";
690
739
  }, {
691
740
  readonly name: "--tool-command";
692
741
  readonly value: "<command>";
@@ -695,6 +744,14 @@ export declare const RUNPANE_CONTRACT: {
695
744
  readonly name: "--title";
696
745
  readonly value: "<title>";
697
746
  readonly description: "Terminal tab title. Defaults to the selected agent title or Terminal.";
747
+ }, {
748
+ readonly name: "--url";
749
+ readonly value: "<url>";
750
+ readonly description: "http(s) or file URL for panels open; pane:// link for links open.";
751
+ }, {
752
+ readonly name: "--file";
753
+ readonly value: "<path>";
754
+ readonly description: "File inside the Pane worktree to open; HTML renders in a browser tab.";
698
755
  }, {
699
756
  readonly name: "--initial-input";
700
757
  readonly value: "<text>";
@@ -703,7 +760,8 @@ export declare const RUNPANE_CONTRACT: {
703
760
  }, {
704
761
  readonly name: "--initial-input-file";
705
762
  readonly value: "<path|->";
706
- readonly description: "Read initial input from a file or stdin.";
763
+ readonly aliases: readonly ["--prompt-file"];
764
+ readonly description: "Read initial input from a file or stdin. --prompt-file is an alias.";
707
765
  }, {
708
766
  readonly name: "--from-json";
709
767
  readonly value: "<path|->";
@@ -715,7 +773,7 @@ export declare const RUNPANE_CONTRACT: {
715
773
  }, {
716
774
  readonly name: "--ready-timeout-ms";
717
775
  readonly value: "<milliseconds>";
718
- readonly description: "Readiness wait timeout for panes create --wait-ready.";
776
+ readonly description: "Readiness wait timeout for panes create/adopt --wait-ready.";
719
777
  }, {
720
778
  readonly name: "--concurrency";
721
779
  readonly value: "<count>";
@@ -799,7 +857,7 @@ export declare const RUNPANE_CONTRACT: {
799
857
  }, {
800
858
  readonly name: "--min-interval";
801
859
  readonly value: "<milliseconds>";
802
- readonly description: "Follow-only opt-in: hold non-urgent lines and flush them together at most once per interval; BLOCKED bypasses it.";
860
+ readonly description: "Follow-only opt-in: hold non-urgent lines and flush them together at most once per interval; BLOCKED, REPORT, PR CONFLICTED, and PR CHECKS FAILED bypass it.";
803
861
  }, {
804
862
  readonly name: "--body-file";
805
863
  readonly value: "<path|->";
@@ -808,6 +866,18 @@ export declare const RUNPANE_CONTRACT: {
808
866
  readonly name: "--session";
809
867
  readonly value: "<id|name>";
810
868
  readonly description: "Named orchestration Session id or exact name.";
869
+ }, {
870
+ readonly name: "--ttl";
871
+ readonly value: "<duration>";
872
+ readonly description: "How long a named lock is held before it expires: a number with ms, s, m, or h (such as 30m); a bare number is milliseconds. At least 1s, at most 24h.";
873
+ }, {
874
+ readonly name: "--wait";
875
+ readonly value: "<milliseconds>";
876
+ readonly description: "How long lock acquire waits for a held lock to come free; 0 (the default) returns at once.";
877
+ }, {
878
+ readonly name: "--note";
879
+ readonly value: "<text>";
880
+ readonly description: "What a named lock is for. Outside a Pane terminal it also names the owner, so pass the same note to release it.";
811
881
  }, {
812
882
  readonly name: "--message";
813
883
  readonly value: "<message>";
@@ -820,10 +890,6 @@ export declare const RUNPANE_CONTRACT: {
820
890
  readonly name: "--doc";
821
891
  readonly value: "<path>";
822
892
  readonly description: "Doc path for docs read.";
823
- }, {
824
- readonly name: "--url";
825
- readonly value: "<pane-url>";
826
- readonly description: "pane:// link for links open.";
827
893
  }, {
828
894
  readonly name: "--toolsets";
829
895
  readonly value: "<name,...>";
@@ -832,6 +898,30 @@ export declare const RUNPANE_CONTRACT: {
832
898
  readonly name: "--keys";
833
899
  readonly value: "<name,...>";
834
900
  readonly description: "Named keys for panels input, such as down,enter.";
901
+ }, {
902
+ readonly name: "--state";
903
+ readonly value: "<ready|blocked|failed|done>";
904
+ readonly description: "Report state for runpane report.";
905
+ }, {
906
+ readonly name: "--pr";
907
+ readonly value: "<number>";
908
+ readonly description: "Pull request number for runpane report.";
909
+ }, {
910
+ readonly name: "--head";
911
+ readonly value: "<sha>";
912
+ readonly description: "Head commit (7-40 hex characters) for runpane report.";
913
+ }, {
914
+ readonly name: "--summary";
915
+ readonly value: "<text>";
916
+ readonly description: "Report summary text; up to 16,000 characters are kept.";
917
+ }, {
918
+ readonly name: "--summary-file";
919
+ readonly value: "<path|->";
920
+ readonly description: "Read the report summary from a file or stdin.";
921
+ }, {
922
+ readonly name: "--question";
923
+ readonly value: "<text>";
924
+ readonly description: "What a blocked worker needs answered; required with --state blocked.";
835
925
  }];
836
926
  readonly localBoolean: readonly [{
837
927
  readonly name: "--json";
@@ -845,6 +935,12 @@ export declare const RUNPANE_CONTRACT: {
845
935
  }, {
846
936
  readonly name: "--focus";
847
937
  readonly description: "Explicitly focus the created pane or panel.";
938
+ }, {
939
+ readonly name: "--split";
940
+ readonly description: "Open the tab in split view beside the primary tab group (default for panels open).";
941
+ }, {
942
+ readonly name: "--tab";
943
+ readonly description: "Open the tab in the current tab group instead of split view.";
848
944
  }, {
849
945
  readonly name: "--pinned";
850
946
  readonly description: "Accepted for backward compatibility; `panes create` already pins by default.";
@@ -856,10 +952,19 @@ export declare const RUNPANE_CONTRACT: {
856
952
  readonly description: "Inside a Session orchestrator, do not associate the created pane with that Session.";
857
953
  }, {
858
954
  readonly name: "--force";
859
- readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes.";
955
+ readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes; for lock release, release another owner's lock.";
956
+ }, {
957
+ readonly name: "--remove-worktree";
958
+ readonly description: "Also check and remove an adopted Pane's worktree when archiving it. The local branch is kept.";
959
+ }, {
960
+ readonly name: "--merged";
961
+ readonly description: "With panes archive --session, archive only Panes that are clean and pushed, or merged via a pull request.";
860
962
  }, {
861
963
  readonly name: "--launch";
862
964
  readonly description: "Run an adopted pane's agent resume command immediately instead of staging it.";
965
+ }, {
966
+ readonly name: "--as-file-pointer";
967
+ readonly description: "Write the prompt or text to a private file under the Pane directory and send the one line `Read and follow <path>` instead.";
863
968
  }, {
864
969
  readonly name: "--follow";
865
970
  readonly description: "Continue waiting for workspace events until interrupted.";
@@ -874,16 +979,20 @@ export declare const RUNPANE_CONTRACT: {
874
979
  readonly description: "Limit workspace events to CLI agent panels.";
875
980
  }, {
876
981
  readonly name: "--all-managed";
877
- readonly description: "Watch all non-archived, non-hidden managed panes.";
982
+ readonly description: "Watch every non-archived, non-hidden managed pane. This is the default scope; the flag states it explicitly and cannot be combined with --pane.";
878
983
  }, {
879
984
  readonly name: "--include-shells";
880
985
  readonly description: "Include ordinary shell panels in follow mode.";
881
986
  }, {
882
987
  readonly name: "--no-held-input";
883
- readonly description: "Disable redacted STUCK detection in lines follow mode.";
988
+ readonly description: "Disable redacted held-input detection under --follow (STUCK lines, and heldInputPresent in JSON).";
884
989
  }, {
885
990
  readonly name: "--self-test";
886
991
  readonly description: "Probe the current daemon watch path without advancing a named cursor.";
992
+ }, {
993
+ readonly name: "--quiet";
994
+ readonly aliases: readonly ["--no-control-lines"];
995
+ readonly description: "Watch only: drop the WATCH OK, HEARTBEAT, and WATCH RECONNECTED control lines (_ok, _heartbeat, _reconnected in JSON). Errors, resets, and dropped counts always print.";
887
996
  }, {
888
997
  readonly name: "--idle-backoff";
889
998
  readonly description: "Follow-only opt-in: IDLE fires at --idle-after, then 30m, 1h, 3h, then daily per panel; any activity resets it.";
@@ -897,40 +1006,41 @@ export declare const RUNPANE_CONTRACT: {
897
1006
  };
898
1007
  readonly help: {
899
1008
  readonly npm: {
900
- readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane sessions list [--json] [--pane-dir <path>]", " runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]", " runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", " runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--dry-run] --yes", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start --repo <selector> --name <name> (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> [--base-branch <branch>] --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup", "", "Advanced examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
1009
+ readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane sessions list [--json] [--pane-dir <path>]", " runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]", " runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", " runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start --repo <selector> --name <name> (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> [--base-branch <branch>] --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup", "", "Advanced examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
901
1010
  readonly install: readonly ["Usage:", " runpane install [client|daemon] [options]", "", "Examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest install daemon --prefer-tunnel ssh --label \"VM\"", "", "Wrapper options:", " --version <latest|vX.Y.Z> Pane release to install", " --format <auto|appimage|deb|dmg|zip|exe>", " --download-dir <path>", " --pane-path <path> Use an existing Pane executable", " --dry-run Print the plan without downloading", " --yes Skip interactive prompts where possible", " --verbose", "", "Daemon passthrough options:", " --label <name>", " --prefer-tunnel <tailscale|ssh|manual|auto>", " --channel <stable|nightly>", " --base-url <url>", " --pane-dir <path>", " --listen-port <port> / --port <port>", " --auto-listen-port", " --interactive-tailscale-setup", " --no-install-service", " --no-tailscale-serve", " --print-only", " --repo-ref <ref>"];
902
1011
  readonly setup: readonly ["Usage:", " runpane setup", "", "Opens the guided setup for desktop install, remote host setup, update, and diagnostics.", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup"];
903
1012
  readonly update: readonly ["Usage:", " runpane update [options]", "", "Updates Pane using the same artifact selection as \"runpane install client\".", "", "Options:", " --version <latest|vX.Y.Z>", " --format <auto|appimage|deb|dmg|zip|exe>", " --download-dir <path>", " --pane-path <path>", " --dry-run", " --yes", " --verbose"];
904
- readonly version: readonly ["Usage:", " runpane version", " runpane --version"];
1013
+ readonly version: readonly ["Usage:", " runpane version [--pane-dir <path>]", " runpane --version"];
905
1014
  readonly doctor: readonly ["Usage:", " runpane doctor [--json] [--pane-dir <path>] [--pane-path <path>] [--format <format>] [--verbose]", " runpane doctor --report [--title <text>] --body-file <path|-> [--yes] [--json]", "", "Checks wrapper/runtime details, release metadata, installed Pane detection, and Pane daemon reachability.", "", "Options:", " --json Print a machine-readable environment report", " --pane-dir <path> Connect to a specific Pane data directory", " --pane-path <path> Inspect a specific Pane executable", " --format <format> Release artifact format to inspect", " --verbose Print extra diagnostics", " --report Prepare a redacted, inspectable report", " --body-file <path|-> Read report evidence from a file or stdin", " --title <text> Report title", " --yes Confirm creating one greenfield-inc/Pane issue", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json"];
906
1015
  readonly "daemon repair": readonly ["Usage:", " runpane daemon repair [--pane-dir <path>] [--pane-path <path>] [--yes] [--json]", "", "Repairs and restarts only the managed remote-daemon launcher and service definition.", "", "Options:", " --pane-dir <path> Remote daemon data directory (default: ~/.pane_remote)", " --pane-path <path> Existing Pane executable used to perform repair", " --yes Skip the restart confirmation", " --json Print one machine-readable repair result"];
907
1016
  readonly "repos list": readonly ["Usage:", " runpane repos list [--json] [--pane-dir <path>]", "", "Lists repositories saved in the running Pane app.", "", "Options:", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
908
1017
  readonly "repos add": readonly ["Usage:", " runpane repos add --path <path> [--name <name>] [--json] [--yes]", "", "Registers an existing git repository with the running Pane app.", "", "Options:", " --path <path> Existing git repository path", " --name <name> Saved repository name; defaults to the directory name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without adding the repo", " --yes Skip confirmation for mutating commands"];
909
- readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
910
- readonly "panes list": readonly ["Usage:", " runpane panes list [--repo <selector>] [--json]", "", "Lists Pane sessions. Pass --repo to limit results to one saved repository.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1018
+ readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
1019
+ readonly "panes list": readonly ["Usage:", " runpane panes list [--repo <selector>] [--json]", "", "Lists Pane sessions. Pass --repo to limit results to one saved repository.", "", "status is running while any terminal panel is live. agentState is the most urgent state of the live agent panels: blocked, working, ready, or none.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
911
1020
  readonly "panes cost": readonly ["Usage:", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", "", "Reports estimated token costs per Pane for the last 30 days, including per-model and cache-efficiency details.", "", "Options:", " --repo <selector> Limit results to one saved repository", " --pane <pane-id> Return one Pane, including an idle Pane with zero usage", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
912
1021
  readonly workspace: readonly ["Workspace observation commands.", "", "Usage:", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow"];
913
1022
  readonly "workspace state": readonly ["Usage:", " runpane workspace state [--repo <selector>] [--json]", "", "Returns one workspace snapshot of every Pane and CLI panel."];
914
- readonly watch: readonly ["Usage:", " runpane watch [--as <name>|--since <generation>] [--follow] [options]", "", "Waits for agent state, Pane lifecycle, and panel exit transitions without polling.", "", "Options:", " --as <name> Use a persisted daemon-held cursor", " --since <generation> Use an explicit cursor instead", " --from <now|earliest> Starting point for a new named cursor", " --follow Continue waiting until interrupted", " --format <lines|json> Output format; lines is the follow default", " --heartbeat <seconds> Healthy-silence bound; defaults to 60 under --follow", " --idle-after <ms> Re-firing READY idle interval; defaults to 600000 under --follow", " --settle <ms> Opt-in: emit READY only after this quiet window (--follow only)", " --blocked-settle <ms> Opt-in: emit BLOCKED only after this window (--follow only)", " --min-interval <ms> Opt-in: batch non-urgent lines per interval; BLOCKED bypasses (--follow only)", " --idle-backoff Opt-in: IDLE at --idle-after, 30m, 1h, 3h, then daily (--follow only)", " --all-managed Explicitly watch all managed panes", " --include-shells Include ordinary shell panels", " --agents-only Limit to CLI agent panels", " --exclude-pane <id> Exclude a Pane; repeatable", " --self-test Anonymous, read-only daemon path probe", " --kinds <kind,...> Limit event kinds", " --pane <id> Limit to a Pane; repeatable", " --repo <selector> Limit to a saved repository", " --name-contains <text> Limit by Pane name substring", " --timeout-ms <ms> Wait timeout; 0 polls once", " --limit <count> Maximum entries per response", " --ack-now Use at-most-once named-cursor delivery", " --include-held-input Include unsubmitted composer text in JSON", " --no-held-input Disable redacted STUCK detection", " --json Alias for --format json", "", "Defaults are responsive: no settle, no batching, all kinds, IDLE every --idle-after. BUSY carries no action; drop it with --kinds.", "Expensive consumers opt in: --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "Pane Chat arms those flags itself through its skill; pass them only for your own scripts.", "STUCK means real unsubmitted composer text; an agent prompt suggestion never counts.", "Dead watch: HEARTBEAT is proof of life only. Judge death by a non-zero exit or a WATCH ERROR line, not by silence."];
915
- readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes create --from-json <path|-> [--yes] [--json]", "", "Creates user-visible Panes (Pane sessions) for feature/PR work in a saved repository and opens a terminal-backed tool tab. Pane creates and owns the worktree/branch for each new Pane.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Pane/session name", " --worktree-name <name> Worktree name; defaults to --name", " --base-branch <branch> Base branch for the worktree", " --agent <codex|claude|cursor> Built-in terminal template", " --tool-command <command> Custom terminal command", " --title <title> Terminal tab title", " --initial-input <text> Text sent after the command is ready", " --prompt <text> Alias for --initial-input", " --initial-input-file <path|-> Read initial input from a file or stdin", " --from-json <path|-> Read a full request payload", " --timeout-ms <milliseconds> Pane creation timeout", " --wait-ready Wait for terminal readiness before returning", " --ready-timeout-ms <ms> Readiness wait timeout; defaults to 30000", " --concurrency <count> Accepted; creation is currently serialized", " --source <user|agent> Mark mutation source; agent implies background creation", " --no-focus Create in the background without stealing focus", " --focus Explicitly focus the created pane", " --pinned Accepted for compatibility; creation already pins by default", " --no-pinned Create unpinned instead of the default pinned (the UI's favorite/pin star)", " --no-associate Inside a Session orchestrator, do not associate the new pane with that Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without creating panes", " --yes Skip confirmation for mutating commands"];
916
- readonly "panes adopt": readonly ["Usage:", " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [options]", "", "Adopts an existing externally managed git worktree without creating, syncing, or deleting it.", "", "Options: --resume <id> stages the agent resume command; --launch runs it immediately; --folder <name> groups the pane; --no-pinned opts out of pinning; --no-associate skips automatic Session association; --dry-run previews."];
917
- readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. Refuses unsafe archives unless --force is passed. Use --dry-run to print the evidence without mutating Pane state.", "", "Options:", " --pane <pane-id> Pane/session id to archive", " --source <user|agent> Mark mutation source", " --force Archive even if the pane has uncommitted, untracked, or unpushed changes", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Refresh and print archive safety evidence without archiving", " --yes Skip confirmation for mutating commands"];
1023
+ readonly watch: readonly ["Usage:", " runpane watch [--as <name>|--since <generation>] [--follow] [options]", "", "Waits for agent state, Pane lifecycle, and panel exit transitions without polling.", "", "Options:", " --as <name> Use a persisted daemon-held cursor", " --since <generation> Use an explicit cursor instead", " --from <now|earliest> Starting point for a new named cursor", " --follow Continue waiting until interrupted", " --format <lines|json> Output format; lines is the follow default", " --heartbeat <seconds> Healthy-silence bound; defaults to 60 under --follow", " --idle-after <ms> Re-firing READY idle interval; defaults to 600000 under --follow", " --settle <ms> Opt-in: emit READY only after this quiet window (--follow only)", " --blocked-settle <ms> Opt-in: emit BLOCKED only after this window (--follow only)", " --min-interval <ms> Opt-in: batch non-urgent lines per interval; BLOCKED, REPORT, and PR failures bypass (--follow only)", " --idle-backoff Opt-in: IDLE at --idle-after, 30m, 1h, 3h, then daily (--follow only)", " --all-managed Explicitly watch all managed panes", " --include-shells Include ordinary shell panels", " --agents-only Limit to CLI agent panels", " --exclude-pane <id> Exclude a Pane; repeatable", " --self-test Anonymous, read-only daemon path probe", " --quiet Drop WATCH OK, HEARTBEAT, and WATCH RECONNECTED lines", " --no-control-lines Alias for --quiet", " --kinds <kind,...> Limit event kinds", " --pane <id> Limit to a Pane; repeatable", " --session <id|name> Follow every Pane in a named Session; associate/detach apply live", " --repo <selector> Limit to a saved repository", " --name-contains <text> Limit by Pane name substring", " --timeout-ms <ms> Wait timeout; 0 polls once", " --limit <count> Maximum entries per response", " --ack-now Use at-most-once named-cursor delivery", " --include-held-input Include unsubmitted composer text in JSON", " --no-held-input Disable redacted STUCK detection", " --pane-dir <path> Connect to a specific Pane data directory", " --json Alias for --format json", "", "Defaults are responsive: no settle, no batching, all kinds, IDLE every --idle-after. BUSY carries no action; drop it with --kinds.", "agent.report (a worker ran `runpane report`) is opt-in: list it in --kinds. REPORT lines skip the --min-interval batch.", "Unattended (Pane Chat default): --quiet --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "User present: the same kinds with --settle 60000 --blocked-settle 15000 --min-interval 120000 and no --idle-backoff", "Session orchestrator: runpane watch --session <id|name> --follow --quiet --json --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "Pane Chat arms those flags itself through its skill; pass them only for your own scripts.", "STUCK means real unsubmitted composer text; an agent prompt suggestion never counts.", "Dead watch: HEARTBEAT is proof of life only (--quiet drops it). Judge death by a non-zero exit or a WATCH ERROR line, not by silence."];
1024
+ readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --from-json <path|-> [--yes] [--json]", "", "Creates user-visible Panes (Pane sessions) for feature/PR work in a saved repository and opens a terminal-backed tool tab. Pane creates and owns the worktree/branch for each new Pane.", "", "A long or multi-line prompt is never typed into the shell: on bash, zsh or sh the agent launches with `\"$(cat '<prompt file>')\"` reading a private copy under `<pane-dir>/prompts/<pane-id>/`; on PowerShell, cmd, fish or WSL the prompt is pasted into the agent's composer once it is ready.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Pane/session name", " --worktree-name <name> Worktree directory name; defaults to --name", " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name", " --base-branch <ref> Ref to branch from; --base is an alias", " --agent <codex|claude|cursor> Built-in terminal template; with --tool-command, the agent it runs", " --tool-command <command> Custom terminal command", " --title <title> Terminal tab title", " --initial-input <text> Text sent after the command is ready", " --prompt <text> Alias for --initial-input", " --initial-input-file <path|-> Read initial input from a file or stdin", " --as-file-pointer Send `Read and follow <prompt file>` instead of the prompt", " --prompt-file <path|-> Alias for --initial-input-file", " --from-json <path|-> Read a full request payload", " --timeout-ms <milliseconds> Pane creation timeout", " --wait-ready Wait for terminal readiness before returning", " --ready-timeout-ms <ms> Readiness wait timeout; defaults to 30000", " --concurrency <count> Accepted; creation is currently serialized", " --source <user|agent> Mark mutation source; agent implies background creation", " --no-focus Create in the background without stealing focus", " --focus Explicitly focus the created pane", " --pinned Accepted for compatibility; creation already pins by default", " --no-pinned Create unpinned instead of the default pinned (the UI's favorite/pin star)", " --no-associate Inside a Session orchestrator, do not associate the new pane with that Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without creating panes", " --yes Skip confirmation for mutating commands"];
1025
+ readonly "panes adopt": readonly ["Usage:", " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [options]", "", "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.", "", "Options: --resume <id> stages the agent resume command (built-in agents only); --launch runs the command immediately; --prompt <text> or --prompt-file <path|-> and --wait-ready require --launch; --folder <name> groups the pane; --no-pinned opts out of pinning; --no-associate skips automatic Session association; --dry-run previews.", "", "With --tool-command, --agent names the agent the command runs (a wrapper such as `agent-farm run`): Pane launches the command unchanged and treats the panel as that agent. Without --agent, Pane detects Claude Code, Codex and Cursor from the foreground process or the agent's screen."];
1026
+ readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. When the branch has no upstream or its upstream is gone, a merged GitHub pull request whose head is HEAD (found with `gh`) counts as pushed. Refuses unsafe archives unless --force is passed. An adopted worktree is kept unless --remove-worktree is passed, which applies the same safety check and removal. The local branch is always kept. With --session and --merged, archives every Pane associated with the Session whose work is clean and pushed or merged, and reports a reason for each Pane it skips. Use --dry-run to print the evidence without mutating Pane state.", "", "Options:", " --pane <pane-id> Pane/session id to archive", " --source <user|agent> Mark mutation source", " --force Archive even if the pane has uncommitted, untracked, or unpushed changes", " --remove-worktree Also check and remove an adopted Pane's worktree (the branch is kept)", " --session <id|name> Archive the Panes associated with this Session (requires --merged)", " --merged Only archive Panes that are clean and pushed, or merged via a PR", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Refresh and print archive safety evidence without archiving", " --yes Skip confirmation for mutating commands"];
918
1027
  readonly "panes pin": readonly ["Usage:", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", "", "Declaratively pins a Pane using the Pane UI's favorite/pin star. Repeating the command is idempotent and never changes focus. Use --dry-run to validate and preview without mutating.", "", "Options:", " --pane <pane-id> Pane/session id to pin", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without pinning the pane", " --yes Skip confirmation for mutating commands"];
919
1028
  readonly "panes unpin": readonly ["Usage:", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", "", "Declaratively unpins a Pane using the Pane UI's favorite/pin star. Repeating the command is idempotent and never changes focus. Use --dry-run to validate and preview without mutating.", "", "Options:", " --pane <pane-id> Pane/session id to unpin", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without unpinning the pane", " --yes Skip confirmation for mutating commands"];
920
1029
  readonly "panes rename": readonly ["Usage:", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Renames a Pane without changing its worktree, branch, panels, or focus. The name is trimmed like the Pane UI. Use --dry-run to validate and preview the updated pane without mutating.", "", "Options:", " --pane <pane-id> Pane/session id to rename", " --name <new-name> New non-empty Pane/session name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without renaming the pane", " --yes Skip confirmation for mutating commands"];
921
1030
  readonly "panes focus": readonly ["Usage:", " runpane panes focus --pane <pane-id> [--panel <panel-id>] --source user|agent --yes [--json]", "", "Raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Steals window focus, so run it only on an explicit user request to open, focus, or show a Pane, never proactively.", "", "Options:", " --pane <pane-id> Pane/session id to focus", " --panel <panel-id> Optional panel/tab id inside the Pane to select", " --source <user|agent> Mutation source; does not change focus behavior", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for mutating commands"];
922
- readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
923
- readonly "panels list": readonly ["Usage:", " runpane panels list --pane <pane-id> [--json]", "", "Lists tool panels in a Pane session.", "", "Options:", " --pane <pane-id> Pane/session id", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1031
+ readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1032
+ readonly "panels list": readonly ["Usage:", " runpane panels list --pane <pane-id> [--json]", "", "Lists tool panels in a Pane session.", "", "agentDetection says how Pane knows agentType: declared, command, process, or screen. launchCommand is the command the panel was launched with.", "", "Options:", " --pane <pane-id> Pane/session id", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
924
1033
  readonly "panels output": readonly ["Usage:", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", "", "Reads bounded recent terminal output from a panel.", "", "Options:", " --panel <panel-id> Tool panel id", " --limit <count> Maximum recent output lines or records to read", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
925
1034
  readonly "panels input": readonly ["Usage:", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", "", "Sends exact input bytes to a terminal panel. Include a newline in the input when you mean Enter.", "", "Options:", " --panel <panel-id> Terminal panel id", " --text <text> Text bytes to send", " --keys <name,...> Keys to press: enter, escape, tab, up, down, ctrl-c, ...", " --input-file <path|-> Read input from a file or stdin", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for mutating commands"];
926
- readonly "agent-context": readonly ["Usage:", " runpane agent-context [--json]", " runpane agent-context --command <command> [--json]", "", "Prints Pane command context for coding agents without requiring a running Pane app.", "", "Options:", " --command <command> Print the full definition for one runpane command", " --json Print machine-readable output", "", "Examples:", " runpane agent-context", " runpane agent-context --json", " runpane agent-context --command \"panes create\"", " runpane agent-context --command \"panes create\" --json"];
1035
+ readonly "agent-context": readonly ["Usage:", " runpane agent-context [--json]", " runpane agent-context --command <command> [--json]", "", "Prints Pane command context for coding agents without requiring a running Pane app.", "", "Options:", " --command <command> Print the full definition for one runpane command", " --json Print machine-readable output", " --pane-dir <path> Accepted and ignored; agent-context never contacts Pane", "", "Examples:", " runpane agent-context", " runpane agent-context --json", " runpane agent-context --command \"panes create\"", " runpane agent-context --command \"panes create\" --json"];
927
1036
  readonly mcp: readonly ["Usage:", " runpane mcp [--toolsets <name,...>] [--read-only]", "", "Runs the Pane MCP server over stdio. Each runpane command with a JSON result becomes a tool that returns the same JSON as `runpane <command> --json`. Commands that need --yes take `yes: true` instead.", "Pane registers this server with Claude Code, Codex, and Cursor automatically (Settings > AI & Agents). To register it by hand:", " claude mcp add --scope user pane -- npx --yes runpane@latest mcp", " codex mcp add pane -- npx --yes runpane@latest mcp", "", "The MCP server ships in the npm package and inside the Pane app. The Python package does not include it.", "", "Options:", " --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, git, docs, links, admin", " --read-only Serve only read-only tools"];
928
1037
  readonly "agents doctor": readonly ["Usage:", " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]", "", "Diagnoses whether Codex or Claude is available in the same repository environment Pane will use.", "", "Options:", " --agent <codex|claude|cursor> Built-in agent command to diagnose", " --repo <selector> active, id, exact path, or saved repository name; defaults to active", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
929
1038
  readonly "panels screen": readonly ["Usage:", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", "", "Reads a compact current-screen view from a terminal panel. Prefers alternate-screen/TUI output and falls back to recent scrollback.", "", "Options:", " --panel <panel-id> Terminal panel id", " --limit <count> Maximum lines to return; defaults to 80", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
930
- readonly "panels submit": readonly ["Usage:", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", "", "Sends text to a terminal panel and normalizes the final terminal Enter to CR. Use this for ordinary prompt answers and shell commands.", "", "Options:", " --panel <panel-id> Terminal panel id", " --text <text> Text to submit before Enter", " --input-file <path|-> Read text from a file or stdin before Enter", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for this mutating command"];
1039
+ readonly "panels submit": readonly ["Usage:", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) [--as-file-pointer] --yes [--json]", "", "Sends text to a terminal panel and normalizes the final terminal Enter to CR. Use this for ordinary prompt answers and shell commands.", "", "For a Claude or Codex panel with no composer on screen, nothing is sent: 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.", "", "For Claude, text starting with `!`, `#`, `/` or `@` is sent unchanged and the result carries a `warnings` entry (for example `leading-bang-runs-shell`), because Claude Code gives those characters a meaning of its own.", "", "Options:", " --panel <panel-id> Terminal panel id", " --text <text> Text to submit before Enter", " --input-file <path|-> Read text from a file or stdin before Enter", " --as-file-pointer Write the text to a prompt file and submit `Read and follow <path>`", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for this mutating command"];
931
1040
  readonly "panels wait": readonly ["Usage:", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--contains <text>] [--timeout-ms <ms>] [--interval-ms <ms>] [--json]", "", "Polls a terminal panel until it is initialized, ready, idle, or contains text. Output is intentionally small and includes next-step guidance.", "", "Options:", " --panel <panel-id> Terminal panel id", " --for <condition> initialized, ready, idle, or text; defaults to ready for CLI panels and idle otherwise", " --contains <text> Text required for --for text; implies --for text when omitted", " --timeout-ms <milliseconds> Wait timeout; defaults to 30000", " --interval-ms <milliseconds> Poll interval; defaults to 500", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
932
- readonly "panels create": readonly ["Create a terminal-backed tool panel inside an existing Pane session.", "", "Usage:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]", " runpane panels create --pane <pane-id> --tool-command <command> [--title <title>] [--no-focus] --yes [--json]", "", "Options:", " --pane <pane-id> Existing Pane session to add the panel to.", " --agent <codex|claude|cursor> Built-in agent command template to launch.", " --tool-command <command> Custom terminal command to launch.", " --title <title> Panel title override.", " --initial-input, --prompt Initial input to send after the tool starts.", " --initial-input-file <path|-> Read initial input from a file or stdin.", " --no-focus Create the panel in the background.", " --focus Explicitly focus the created panel.", " --source <user|agent> Mark the mutation source; agent implies background creation.", " --wait-ready Wait until the terminal tool is ready.", " --ready-timeout-ms <ms> Readiness wait timeout.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
933
- readonly "panels submit-composer": readonly ["Submit an agent composer using the panel-appropriate key sequence.", "", "Usage:", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", "", "Options:", " --panel <panel-id> Terminal panel id.", " --strategy <strategy> Defaults to auto; Codex queues with Tab while working and submits with Enter when ready.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1041
+ readonly "panels create": readonly ["Create a terminal-backed tool panel inside an existing Pane session.", "", "Usage:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]", " runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor>] [--title <title>] [--no-focus] [--wait-ready] --yes [--json]", "", "Options:", " --pane <pane-id> Existing Pane session to add the panel to.", " --agent <codex|claude|cursor> Built-in agent command template, or with --tool-command the agent it runs.", " --tool-command <command> Custom terminal command to launch.", " --title <title> Panel title override.", " --initial-input, --prompt Initial input to send after the tool starts.", " --initial-input-file <path|-> Read initial input from a file or stdin.", " --as-file-pointer Send `Read and follow <prompt file>` instead of the prompt.", " --no-focus Create the panel in the background.", " --focus Explicitly focus the created panel.", " --source <user|agent> Mark the mutation source; agent implies background creation.", " --wait-ready Wait until the terminal tool is ready.", " --ready-timeout-ms <ms> Readiness wait timeout.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1042
+ readonly "panels open": readonly ["Open a URL or file as a browser/editor tab in a Pane, in split view beside the agent by default.", "", "Usage:", " runpane panels open [--pane <pane-id>] (--url <url>|--file <path>) [--title <title>] [--split|--tab] [--focus|--no-focus] [--source user|agent] --yes [--json]", "", "Opens a tab inside a Pane (default: the Pane of the calling panel, from PANE_SESSION_ID). Use it to show the user an HTML page, plan, report, local dev server, or file beside the conversation. --url opens a browser tab (http, https, or file). --file opens a file inside the Pane worktree: .html/.htm files render in a browser tab, other files open in an editor tab. Tabs open in split view beside the agent by default; --tab keeps them in the current group. An existing tab showing the same URL or file is reused. Never raises or focuses the Pane window.", "", "Options:", " --pane <pane-id> Pane to open the tab in; defaults to PANE_SESSION_ID.", " --url <url> http(s) or file URL to open in a browser tab.", " --file <path> File inside the Pane worktree (relative or absolute).", " --title <title> Tab title override.", " --split Open in split view beside the agent (default).", " --tab Open in the current tab group instead.", " --no-focus Open without selecting the tab.", " --focus Select the tab (default); never raises the window.", " --source <user|agent> Mutation source.", " --pane-dir <path> Connect to a specific Pane data directory.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1043
+ readonly "panels submit-composer": readonly ["Submit an agent composer using the panel-appropriate key sequence.", "", "Usage:", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", "", "Options:", " --panel <panel-id> Terminal panel id.", " --strategy <strategy> Defaults to auto; Codex queues with Tab while working and submits with Enter when ready. auto retries once if the text is still in the composer.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
934
1044
  readonly "sessions list": readonly ["Usage:", "runpane sessions list [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output."];
935
1045
  readonly "sessions create": readonly ["Usage:", "runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output."];
936
1046
  readonly "sessions get": readonly ["Usage:", "runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output."];
@@ -961,44 +1071,51 @@ export declare const RUNPANE_CONTRACT: {
961
1071
  readonly "docs read": readonly ["Usage:", " runpane docs read --doc <path> [--json]", "", "Read one Pane doc, help topic, or skill in full.", "", "Options:", " --doc <path> Path from docs search, such as docs/PANE_MCP.md.", " --json Print machine-readable output."];
962
1072
  readonly "agents start": readonly ["Usage:", " runpane agents start --repo <selector> --name <name> (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> [--base-branch <branch>] --yes [--json] [--pane-dir <path>]", "", "Start an agent on a task: create a Pane in a repository, launch the agent with the prompt, and wait until it is ready.", "", "Options:", " --repo <selector> Repository: active, id, exact path, or saved name.", " --name <name> Name for the new Pane.", " --agent <codex|claude|cursor> Built-in agent to launch.", " --tool-command <command> Custom terminal command instead of a built-in agent.", " --prompt <task> The task to send once the agent is ready.", " --base-branch <branch> Branch to start the worktree from.", " --yes Confirm this change; required in non-interactive shells.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
963
1073
  readonly "agents status": readonly ["Usage:", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", "", "Check on an agent: whether it is working, ready, blocked, or idle, plus its current screen.", "", "Options:", " --pane <pane-id> Pane id; its agent panel is used.", " --panel <panel-id> Panel id.", " --limit <count> Screen lines to return; defaults to 40.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
964
- readonly "agents send": readonly ["Usage:", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", "", "Send a follow-up message to an agent and confirm it was submitted.", "", "Options:", " --pane <pane-id> Pane id; its agent panel is used.", " --panel <panel-id> Panel id.", " --text <message> The message to submit.", " --yes Confirm this change; required in non-interactive shells.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
1074
+ readonly "agents send": readonly ["Usage:", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> [--as-file-pointer] --yes [--json] [--pane-dir <path>]", "", "Send a follow-up message to an agent and confirm it was submitted.", "", "Options:", " --pane <pane-id> Pane id; its agent panel is used.", " --panel <panel-id> Panel id.", " --text <message> The message to submit.", " --as-file-pointer Write the message to a prompt file and send `Read and follow <path>`.", " --yes Confirm this change; required in non-interactive shells.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
965
1075
  readonly sessions: readonly ["Usage:", " runpane sessions <list|create|get|update|set-agent|associate|detach|overview> [options]", "", "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."];
1076
+ readonly report: readonly ["Usage:", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text>] [--pane <pane-id> --panel <panel-id>] [--json] [--pane-dir <path>]", "", "Hands back a worker's structured report for its panel: the orchestrator receives it as an", "agent.report watch event and reads it in `agents status` and `sessions overview`.", "Inside a Pane terminal the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "", "Options:", " --state <state> ready, blocked, failed, or done", " --pr <number> Pull request number", " --head <sha> Head commit, 7-40 hex characters", " --summary <text> Summary text; up to 16,000 characters are kept", " --summary-file <path|-> Read the summary from a file or stdin", " --question <text> What you need answered; required with --state blocked", " --pane <pane-id> Pane id when not running inside a Pane terminal", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md"];
1077
+ readonly "panels last-message": readonly ["Usage:", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]", "", "Reads a Claude or Codex agent's last reply from its transcript. It never scrapes the screen:", "without a transcript it reports transcript-unavailable and exits non-zero.", "", "Options:", " --panel <panel-id> Agent panel id", " --limit <count> Maximum characters to return; defaults to 20000 (the end is kept)", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1078
+ readonly lock: readonly ["Usage:", " runpane lock <acquire|release|list> [options]", "", "Named locks coordinate a resource shared between agents, such as one test account.", "The caller is the owner: the Pane and panel from $PANE_SESSION_ID and $PANE_PANEL_ID.", "A lock is scoped to the owner's Session when its Pane belongs to one; otherwise it is global.", "It is released on --ttl expiry, when the owner panel exits, or when the owner Pane is archived."];
1079
+ readonly "lock acquire": readonly ["Usage:", "runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
1080
+ readonly "lock release": readonly ["Usage:", "runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
1081
+ readonly "lock list": readonly ["Usage:", "runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
966
1082
  };
967
1083
  readonly pip: {
968
- readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--dry-run] --yes", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start --repo <selector> --name <name> (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> [--base-branch <branch>] --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup", "", "Advanced examples:", " pipx run runpane install client", " pipx run runpane install daemon --label \"My Server\"", " uvx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
1084
+ readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start --repo <selector> --name <name> (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> [--base-branch <branch>] --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup", "", "Advanced examples:", " pipx run runpane install client", " pipx run runpane install daemon --label \"My Server\"", " uvx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
969
1085
  readonly install: readonly ["Usage:", " runpane install [client|daemon] [options]", "", "Examples:", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest install daemon --prefer-tunnel ssh --label \"VM\"", " pipx run runpane install daemon --label \"My Server\"", "", "Wrapper options:", " --version <latest|vX.Y.Z>", " --format <auto|appimage|deb|dmg|zip|exe>", " --download-dir <path>", " --pane-path <path>", " --dry-run", " --yes", " --verbose", "", "Daemon passthrough options:", " --label <name>", " --prefer-tunnel <tailscale|ssh|manual|auto>", " --channel <stable|nightly>", " --base-url <url>", " --pane-dir <path>", " --listen-port <port> / --port <port>", " --auto-listen-port", " --interactive-tailscale-setup", " --no-install-service", " --no-tailscale-serve", " --print-only", " --repo-ref <ref>"];
970
1086
  readonly setup: readonly ["Usage:", " runpane setup", "", "Opens the guided setup for desktop install, remote host setup, update, and diagnostics.", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup"];
971
1087
  readonly update: readonly ["Usage:", " runpane update [--version <latest|vX.Y.Z>] [--dry-run] [--yes]"];
972
- readonly version: readonly ["Usage:", " runpane version", " runpane --version"];
1088
+ readonly version: readonly ["Usage:", " runpane version [--pane-dir <path>]", " runpane --version"];
973
1089
  readonly doctor: readonly ["Usage:", " runpane doctor [--json] [--pane-dir <path>] [--pane-path <path>] [--format <format>] [--verbose]", " runpane doctor --report [--title <text>] --body-file <path|-> [--yes] [--json]", "", "Checks wrapper/runtime details, release metadata, installed Pane detection, and Pane daemon reachability.", "", "Options:", " --json", " --pane-dir <path>", " --pane-path <path>", " --format <format>", " --verbose", " --report", " --body-file <path|->", " --title <text>", " --yes", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json"];
974
1090
  readonly "daemon repair": readonly ["Usage:", " runpane daemon repair [--pane-dir <path>] [--pane-path <path>] [--yes] [--json]", "", "Repairs and restarts only the managed remote-daemon launcher and service definition.", "", "Options:", " --pane-dir <path>", " --pane-path <path>", " --yes", " --json"];
975
1091
  readonly "repos list": readonly ["Usage:", " runpane repos list [--json] [--pane-dir <path>]", "", "Lists repositories saved in the running Pane app.", "", "Options:", " --json", " --pane-dir <path>"];
976
1092
  readonly "repos add": readonly ["Usage:", " runpane repos add --path <path> [--name <name>] [--json] [--yes]", "", "Registers an existing git repository with the running Pane app.", "", "Options:", " --path <path>", " --name <name>", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
977
- readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
978
- readonly "panes list": readonly ["Usage:", " runpane panes list [--repo <selector>] [--json]", "", "Lists Pane sessions. Pass --repo to limit results to one saved repository.", "", "Options:", " --repo <selector>", " --pane-dir <path>", " --json"];
1093
+ readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
1094
+ readonly "panes list": readonly ["Usage:", " runpane panes list [--repo <selector>] [--json]", "", "Lists Pane sessions. Pass --repo to limit results to one saved repository.", "", "status is running while any terminal panel is live. agentState is the most urgent state of the live agent panels: blocked, working, ready, or none.", "", "Options:", " --repo <selector>", " --pane-dir <path>", " --json"];
979
1095
  readonly "panes cost": readonly ["Usage:", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", "", "Reports estimated token costs per Pane for the last 30 days, including per-model and cache-efficiency details.", "", "Options:", " --repo <selector>", " --pane <pane-id>", " --pane-dir <path>", " --json"];
980
1096
  readonly workspace: readonly ["Workspace observation commands.", "", "Usage:", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow"];
981
1097
  readonly "workspace state": readonly ["Usage:", " runpane workspace state [--repo <selector>] [--json]", "", "Returns one workspace snapshot of every Pane and CLI panel."];
982
- readonly watch: readonly ["Usage:", " runpane watch [--as <name>|--since <generation>] [--follow] [options]", "", "Waits for workspace transitions without polling.", "", "Options:", " --as <name>", " --since <generation>", " --from <now|earliest>", " --follow", " --format <lines|json>", " --heartbeat <seconds>", " --idle-after <ms>", " --settle <ms> Opt-in READY quiet window (--follow only)", " --blocked-settle <ms> Opt-in BLOCKED window (--follow only)", " --min-interval <ms> Opt-in batching; BLOCKED bypasses (--follow only)", " --idle-backoff Opt-in IDLE backoff (--follow only)", " --all-managed", " --include-shells", " --agents-only", " --exclude-pane <id> Repeatable", " --self-test", " --kinds <kind,...>", " --pane <id> Repeatable", " --repo <selector>", " --name-contains <text>", " --timeout-ms <ms> 0 polls once", " --limit <count>", " --ack-now", " --include-held-input", " --no-held-input", " --json Alias for --format json", "", "Defaults are responsive: no settle, no batching, all kinds, IDLE every --idle-after. BUSY carries no action; drop it with --kinds.", "Expensive consumers opt in: --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "Pane Chat arms those flags itself through its skill; pass them only for your own scripts.", "STUCK means real unsubmitted composer text; an agent prompt suggestion never counts.", "Dead watch: HEARTBEAT is proof of life only. Judge death by a non-zero exit or a WATCH ERROR line, not by silence."];
983
- readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes create --from-json <path|-> [--yes] [--json]", "", "Creates user-visible Panes (Pane sessions) for feature/PR work in a saved repository and opens a terminal-backed tool tab. Pane creates and owns the worktree/branch for each new Pane.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Pane/session name", " --worktree-name <name> Worktree name; defaults to --name", " --base-branch <branch> Base branch for the worktree", " --agent <codex|claude|cursor> Built-in terminal template", " --tool-command <command> Custom terminal command", " --title <title> Terminal tab title", " --initial-input <text> Text sent after the command is ready", " --prompt <text> Alias for --initial-input", " --initial-input-file <path|-> Read initial input from a file or stdin", " --from-json <path|-> Read a full request payload", " --timeout-ms <milliseconds> Pane creation timeout", " --wait-ready Wait for terminal readiness before returning", " --ready-timeout-ms <ms> Readiness wait timeout; defaults to 30000", " --concurrency <count> Accepted; creation is currently serialized", " --source <user|agent> Mark mutation source; agent implies background creation", " --no-focus Create in the background without stealing focus", " --focus Explicitly focus the created pane", " --pinned Accepted for compatibility; creation already pins by default", " --no-pinned Create unpinned instead of the default pinned (the UI's favorite/pin star)", " --no-associate Inside a Session orchestrator, do not associate the new pane with that Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without creating panes", " --yes Skip confirmation for mutating commands"];
984
- readonly "panes adopt": readonly ["Usage:", " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [options]", "", "Adopts an existing externally managed git worktree without creating, syncing, or deleting it.", "", "Options: --resume <id> stages the agent resume command; --launch runs it immediately; --folder <name> groups the pane; --no-pinned opts out of pinning; --no-associate skips automatic Session association; --dry-run previews."];
985
- readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. Refuses unsafe archives unless --force is passed. Use --dry-run to print the evidence without mutating Pane state.", "", "Options:", " --pane <pane-id>", " --source <user|agent>", " --force", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
1098
+ readonly watch: readonly ["Usage:", " runpane watch [--as <name>|--since <generation>] [--follow] [options]", "", "Waits for workspace transitions without polling.", "", "Options:", " --as <name>", " --since <generation>", " --from <now|earliest>", " --follow", " --format <lines|json>", " --heartbeat <seconds>", " --idle-after <ms>", " --settle <ms> Opt-in READY quiet window (--follow only)", " --blocked-settle <ms> Opt-in BLOCKED window (--follow only)", " --min-interval <ms> Opt-in batching; BLOCKED, REPORT, and PR failures bypass (--follow only)", " --idle-backoff Opt-in IDLE backoff (--follow only)", " --all-managed", " --include-shells", " --agents-only", " --exclude-pane <id> Repeatable", " --self-test", " --quiet Drop OK, HEARTBEAT, and RECONNECTED lines", " --no-control-lines Alias for --quiet", " --kinds <kind,...>", " --pane <id> Repeatable", " --session <id|name> Follow a named Session's Panes; no re-arm", " --repo <selector>", " --name-contains <text>", " --timeout-ms <ms> 0 polls once", " --limit <count>", " --ack-now", " --include-held-input", " --no-held-input", " --pane-dir <path> Connect to a specific Pane data directory", " --json Alias for --format json", "", "Defaults are responsive: no settle, no batching, all kinds, IDLE every --idle-after. BUSY carries no action; drop it with --kinds.", "agent.report (a worker ran `runpane report`) is opt-in: list it in --kinds. REPORT lines skip the --min-interval batch.", "Unattended (Pane Chat default): --quiet --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "User present: the same kinds with --settle 60000 --blocked-settle 15000 --min-interval 120000 and no --idle-backoff", "Session orchestrator: runpane watch --session <id|name> --follow --quiet --json --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "Pane Chat arms those flags itself through its skill; pass them only for your own scripts.", "STUCK means real unsubmitted composer text; an agent prompt suggestion never counts.", "Dead watch: HEARTBEAT is proof of life only (--quiet drops it). Judge death by a non-zero exit or a WATCH ERROR line, not by silence."];
1099
+ readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " python -m runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --from-json <path|-> [--yes] [--json]", "", "Creates user-visible Panes (Pane sessions) for feature/PR work in a saved repository and opens a terminal-backed tool tab. Pane creates and owns the worktree/branch for each new Pane.", "", "A long or multi-line prompt is never typed into the shell: on bash, zsh or sh the agent launches with `\"$(cat '<prompt file>')\"` reading a private copy under `<pane-dir>/prompts/<pane-id>/`; on PowerShell, cmd, fish or WSL the prompt is pasted into the agent's composer once it is ready.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Pane/session name", " --worktree-name <name> Worktree directory name; defaults to --name", " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name", " --base-branch <ref> Ref to branch from; --base is an alias", " --agent <codex|claude|cursor> Built-in terminal template; with --tool-command, the agent it runs", " --tool-command <command> Custom terminal command", " --title <title> Terminal tab title", " --initial-input <text> Text sent after the command is ready", " --prompt <text> Alias for --initial-input", " --initial-input-file <path|-> Read initial input from a file or stdin", " --as-file-pointer Send `Read and follow <prompt file>` instead of the prompt", " --prompt-file <path|-> Alias for --initial-input-file", " --from-json <path|-> Read a full request payload", " --timeout-ms <milliseconds> Pane creation timeout", " --wait-ready Wait for terminal readiness before returning", " --ready-timeout-ms <ms> Readiness wait timeout; defaults to 30000", " --concurrency <count> Accepted; creation is currently serialized", " --source <user|agent> Mark mutation source; agent implies background creation", " --no-focus Create in the background without stealing focus", " --focus Explicitly focus the created pane", " --pinned Accepted for compatibility; creation already pins by default", " --no-pinned Create unpinned instead of the default pinned (the UI's favorite/pin star)", " --no-associate Inside a Session orchestrator, do not associate the new pane with that Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without creating panes", " --yes Skip confirmation for mutating commands"];
1100
+ readonly "panes adopt": readonly ["Usage:", " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [options]", "", "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.", "", "Options: --resume <id> stages the agent resume command (built-in agents only); --launch runs the command immediately; --prompt <text> or --prompt-file <path|-> and --wait-ready require --launch; --folder <name> groups the pane; --no-pinned opts out of pinning; --no-associate skips automatic Session association; --dry-run previews.", "", "With --tool-command, --agent names the agent the command runs (a wrapper such as `agent-farm run`): Pane launches the command unchanged and treats the panel as that agent. Without --agent, Pane detects Claude Code, Codex and Cursor from the foreground process or the agent's screen."];
1101
+ readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. When the branch has no upstream or its upstream is gone, a merged GitHub pull request whose head is HEAD (found with `gh`) counts as pushed. Refuses unsafe archives unless --force is passed. An adopted worktree is kept unless --remove-worktree is passed, which applies the same safety check and removal. The local branch is always kept. With --session and --merged, archives every Pane associated with the Session whose work is clean and pushed or merged, and reports a reason for each Pane it skips. Use --dry-run to print the evidence without mutating Pane state.", "", "Options:", " --pane <pane-id>", " --source <user|agent>", " --force", " --remove-worktree", " --session <id|name>", " --merged", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
986
1102
  readonly "panes pin": readonly ["Usage:", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", "", "Declaratively pins a Pane using the Pane UI's favorite/pin star. Repeating the command is idempotent and never changes focus. Use --dry-run to validate and preview without mutating.", "", "Options:", " --pane <pane-id>", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
987
1103
  readonly "panes unpin": readonly ["Usage:", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", "", "Declaratively unpins a Pane using the Pane UI's favorite/pin star. Repeating the command is idempotent and never changes focus. Use --dry-run to validate and preview without mutating.", "", "Options:", " --pane <pane-id>", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
988
1104
  readonly "panes rename": readonly ["Usage:", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Renames a Pane without changing its worktree, branch, panels, or focus. The name is trimmed like the Pane UI. Use --dry-run to validate and preview the updated pane without mutating.", "", "Options:", " --pane <pane-id>", " --name <new-name>", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
989
1105
  readonly "panes focus": readonly ["Usage:", " runpane panes focus --pane <pane-id> [--panel <panel-id>] --source user|agent --yes [--json]", "", "Raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Steals window focus, so run it only on an explicit user request to open, focus, or show a Pane, never proactively.", "", "Options:", " --pane <pane-id>", " --panel <panel-id>", " --source <user|agent>", " --pane-dir <path>", " --json", " --yes"];
990
- readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
991
- readonly "panels list": readonly ["Usage:", " runpane panels list --pane <pane-id> [--json]", "", "Lists tool panels in a Pane session.", "", "Options:", " --pane <pane-id>", " --pane-dir <path>", " --json"];
1106
+ readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1107
+ readonly "panels list": readonly ["Usage:", " runpane panels list --pane <pane-id> [--json]", "", "Lists tool panels in a Pane session.", "", "agentDetection says how Pane knows agentType: declared, command, process, or screen. launchCommand is the command the panel was launched with.", "", "Options:", " --pane <pane-id>", " --pane-dir <path>", " --json"];
992
1108
  readonly "panels output": readonly ["Usage:", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", "", "Reads recent terminal output records from a panel.", "", "Options:", " --panel <panel-id>", " --limit <count>", " --pane-dir <path>", " --json"];
993
1109
  readonly "panels input": readonly ["Usage:", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", "", "Sends exact input bytes to a terminal panel. Include a newline in the input when you mean Enter.", "", "Options:", " --panel <panel-id>", " --text <text>", " --keys <name,...> Keys to press: enter, escape, tab, up, down, ctrl-c, ...", " --input-file <path|->", " --pane-dir <path>", " --json", " --yes"];
994
- readonly "agent-context": readonly ["Usage:", " runpane agent-context [--json]", " runpane agent-context --command <command> [--json]", "", "Prints Pane command context for coding agents without requiring a running Pane app.", "", "Options:", " --command <command>", " --json", "", "Examples:", " runpane agent-context", " runpane agent-context --json", " runpane agent-context --command \"panes create\"", " runpane agent-context --command \"panes create\" --json"];
1110
+ readonly "agent-context": readonly ["Usage:", " runpane agent-context [--json]", " runpane agent-context --command <command> [--json]", "", "Prints Pane command context for coding agents without requiring a running Pane app.", "", "Options:", " --command <command>", " --json", " --pane-dir <path> Accepted and ignored", "", "Examples:", " runpane agent-context", " runpane agent-context --json", " runpane agent-context --command \"panes create\"", " runpane agent-context --command \"panes create\" --json"];
995
1111
  readonly mcp: readonly ["Usage:", " runpane mcp", "", "The Pane MCP server ships in the npm package and inside the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest mcp"];
996
1112
  readonly "agents doctor": readonly ["Usage:", " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]", "", "Diagnoses whether Codex or Claude is available in the same repository environment Pane will use.", "", "Options:", " --agent <codex|claude|cursor> Built-in agent command to diagnose", " --repo <selector> active, id, exact path, or saved repository name; defaults to active", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
997
1113
  readonly "panels screen": readonly ["Usage:", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", "", "Reads a compact current-screen view from a terminal panel. Prefers alternate-screen/TUI output and falls back to recent scrollback.", "", "Options:", " --panel <panel-id> Terminal panel id", " --limit <count> Maximum lines to return; defaults to 80", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
998
- readonly "panels submit": readonly ["Usage:", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", "", "Sends text to a terminal panel and normalizes the final terminal Enter to CR. Use this for ordinary prompt answers and shell commands.", "", "Options:", " --panel <panel-id> Terminal panel id", " --text <text> Text to submit before Enter", " --input-file <path|-> Read text from a file or stdin before Enter", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for this mutating command"];
1114
+ readonly "panels submit": readonly ["Usage:", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) [--as-file-pointer] --yes [--json]", "", "Sends text to a terminal panel and normalizes the final terminal Enter to CR. Use this for ordinary prompt answers and shell commands.", "", "For a Claude or Codex panel with no composer on screen, nothing is sent: 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.", "", "For Claude, text starting with `!`, `#`, `/` or `@` is sent unchanged and the result carries a `warnings` entry (for example `leading-bang-runs-shell`), because Claude Code gives those characters a meaning of its own.", "", "Options:", " --panel <panel-id> Terminal panel id", " --text <text> Text to submit before Enter", " --input-file <path|-> Read text from a file or stdin before Enter", " --as-file-pointer Write the text to a prompt file and submit `Read and follow <path>`", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for this mutating command"];
999
1115
  readonly "panels wait": readonly ["Usage:", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--contains <text>] [--timeout-ms <ms>] [--interval-ms <ms>] [--json]", "", "Polls a terminal panel until it is initialized, ready, idle, or contains text. Output is intentionally small and includes next-step guidance.", "", "Options:", " --panel <panel-id> Terminal panel id", " --for <condition> initialized, ready, idle, or text; defaults to ready for CLI panels and idle otherwise", " --contains <text> Text required for --for text; implies --for text when omitted", " --timeout-ms <milliseconds> Wait timeout; defaults to 30000", " --interval-ms <milliseconds> Poll interval; defaults to 500", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1000
- readonly "panels create": readonly ["Create a terminal-backed tool panel inside an existing Pane session.", "", "Usage:", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]", " python -m runpane panels create --pane <pane-id> --tool-command <command> [--title <title>] [--no-focus] --yes [--json]", "", "Options:", " --pane <pane-id> Existing Pane session to add the panel to.", " --agent <codex|claude|cursor> Built-in agent command template to launch.", " --tool-command <command> Custom terminal command to launch.", " --title <title> Panel title override.", " --initial-input, --prompt Initial input to send after the tool starts.", " --initial-input-file <path|-> Read initial input from a file or stdin.", " --no-focus Create the panel in the background.", " --focus Explicitly focus the created panel.", " --source <user|agent> Mark the mutation source; agent implies background creation.", " --wait-ready Wait until the terminal tool is ready.", " --ready-timeout-ms <ms> Readiness wait timeout.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1001
- readonly "panels submit-composer": readonly ["Submit an agent composer using the panel-appropriate key sequence.", "", "Usage:", " python -m runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", "", "Options:", " --panel <panel-id> Terminal panel id.", " --strategy <strategy> Defaults to auto; Codex queues with Tab while working and submits with Enter when ready.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1116
+ readonly "panels create": readonly ["Create a terminal-backed tool panel inside an existing Pane session.", "", "Usage:", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]", " python -m runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor>] [--title <title>] [--no-focus] [--wait-ready] --yes [--json]", "", "Options:", " --pane <pane-id> Existing Pane session to add the panel to.", " --agent <codex|claude|cursor> Built-in agent command template, or with --tool-command the agent it runs.", " --tool-command <command> Custom terminal command to launch.", " --title <title> Panel title override.", " --initial-input, --prompt Initial input to send after the tool starts.", " --initial-input-file <path|-> Read initial input from a file or stdin.", " --as-file-pointer Send `Read and follow <prompt file>` instead of the prompt.", " --no-focus Create the panel in the background.", " --focus Explicitly focus the created panel.", " --source <user|agent> Mark the mutation source; agent implies background creation.", " --wait-ready Wait until the terminal tool is ready.", " --ready-timeout-ms <ms> Readiness wait timeout.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1117
+ readonly "panels open": readonly ["Open a URL or file as a browser/editor tab in a Pane, in split view beside the agent by default.", "", "Usage:", " python -m runpane panels open [--pane <pane-id>] (--url <url>|--file <path>) [--title <title>] [--split|--tab] [--focus|--no-focus] [--source user|agent] --yes [--json]", "", "Opens a tab inside a Pane (default: the Pane of the calling panel, from PANE_SESSION_ID). Use it to show the user an HTML page, plan, report, local dev server, or file beside the conversation. --url opens a browser tab (http, https, or file). --file opens a file inside the Pane worktree: .html/.htm files render in a browser tab, other files open in an editor tab. Tabs open in split view beside the agent by default; --tab keeps them in the current group. An existing tab showing the same URL or file is reused. Never raises or focuses the Pane window.", "", "Options:", " --pane <pane-id> Pane to open the tab in; defaults to PANE_SESSION_ID.", " --url <url> http(s) or file URL to open in a browser tab.", " --file <path> File inside the Pane worktree (relative or absolute).", " --title <title> Tab title override.", " --split Open in split view beside the agent (default).", " --tab Open in the current tab group instead.", " --no-focus Open without selecting the tab.", " --focus Select the tab (default); never raises the window.", " --source <user|agent> Mutation source.", " --pane-dir <path> Connect to a specific Pane data directory.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1118
+ readonly "panels submit-composer": readonly ["Submit an agent composer using the panel-appropriate key sequence.", "", "Usage:", " python -m runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", "", "Options:", " --panel <panel-id> Terminal panel id.", " --strategy <strategy> Defaults to auto; Codex queues with Tab while working and submits with Enter when ready. auto retries once if the text is still in the composer.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1002
1119
  readonly "sessions list": readonly ["Usage:", "python -m runpane sessions list [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output."];
1003
1120
  readonly "sessions create": readonly ["Usage:", "python -m runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output."];
1004
1121
  readonly "sessions get": readonly ["Usage:", "python -m runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output."];
@@ -1029,8 +1146,14 @@ export declare const RUNPANE_CONTRACT: {
1029
1146
  readonly "docs read": readonly ["Usage:", " runpane docs read --doc <path> [--json]", "", "`runpane docs read` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest docs read"];
1030
1147
  readonly "agents start": readonly ["Usage:", " runpane agents start --repo <selector> --name <name> (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> [--base-branch <branch>] --yes [--json] [--pane-dir <path>]", "", "`runpane agents start` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest agents start"];
1031
1148
  readonly "agents status": readonly ["Usage:", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", "", "`runpane agents status` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest agents status"];
1032
- readonly "agents send": readonly ["Usage:", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", "", "`runpane agents send` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest agents send"];
1149
+ readonly "agents send": readonly ["Usage:", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> [--as-file-pointer] --yes [--json] [--pane-dir <path>]", "", "`runpane agents send` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest agents send"];
1033
1150
  readonly sessions: readonly ["Usage:", " runpane sessions <list|create|get|update|set-agent|associate|detach|overview> [options]", "", "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."];
1151
+ readonly report: readonly ["Usage:", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text>] [--pane <pane-id> --panel <panel-id>] [--json] [--pane-dir <path>]", "", "Hands back a worker's structured report for its panel: the orchestrator receives it as an", "agent.report watch event and reads it in `agents status` and `sessions overview`.", "Inside a Pane terminal the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "", "Options:", " --state <state> ready, blocked, failed, or done", " --pr <number> Pull request number", " --head <sha> Head commit, 7-40 hex characters", " --summary <text> Summary text; up to 16,000 characters are kept", " --summary-file <path|-> Read the summary from a file or stdin", " --question <text> What you need answered; required with --state blocked", " --pane <pane-id> Pane id when not running inside a Pane terminal", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md"];
1152
+ readonly "panels last-message": readonly ["Usage:", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]", "", "Reads a Claude or Codex agent's last reply from its transcript. It never scrapes the screen:", "without a transcript it reports transcript-unavailable and exits non-zero.", "", "Options:", " --panel <panel-id> Agent panel id", " --limit <count> Maximum characters to return; defaults to 20000 (the end is kept)", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1153
+ readonly lock: readonly ["Usage:", " python -m runpane lock <acquire|release|list> [options]", "", "Named locks coordinate a resource shared between agents, such as one test account.", "The caller is the owner: the Pane and panel from $PANE_SESSION_ID and $PANE_PANEL_ID.", "A lock is scoped to the owner's Session when its Pane belongs to one; otherwise it is global.", "It is released on --ttl expiry, when the owner panel exits, or when the owner Pane is archived."];
1154
+ readonly "lock acquire": readonly ["Usage:", "python -m runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
1155
+ readonly "lock release": readonly ["Usage:", "python -m runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
1156
+ readonly "lock list": readonly ["Usage:", "python -m runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
1034
1157
  };
1035
1158
  };
1036
1159
  readonly docs: {
@@ -1039,16 +1162,16 @@ export declare const RUNPANE_CONTRACT: {
1039
1162
  readonly npmCommands: readonly ["npx --yes runpane@latest", "npx --yes runpane@latest setup", "npx --yes runpane@latest install client", "npx --yes runpane@latest install daemon --label \"My Server\"", "pnpm dlx runpane@latest", "pnpm dlx runpane@latest install daemon --label \"My Server\"", "npm i -g runpane && runpane", "npm i -g runpane && runpane setup", "npm i -g runpane && runpane install daemon --label \"My Server\"", "pnpm add -g runpane && runpane", "pnpm add -g runpane && runpane setup", "pnpm add -g runpane && runpane install daemon --label \"My Server\"", "yarn dlx runpane@latest install daemon --label \"My Server\"", "bunx runpane@latest install daemon --label \"My Server\""];
1040
1163
  readonly pythonCommands: readonly ["pipx run runpane", "pipx run runpane setup", "python -m pip install runpane", "runpane", "runpane setup", "python -m runpane setup", "runpane install daemon --label \"My Server\"", "pipx install runpane", "runpane", "runpane setup", "pipx run runpane install daemon --label \"My Server\"", "uvx runpane@latest", "uvx runpane@latest setup", "uvx runpane@latest install daemon --label \"My Server\"", "python -m runpane install daemon --label \"My Server\""];
1041
1164
  readonly packageManagerNotes: readonly ["Use `pnpm dlx` for one-shot pnpm execution and `pnpm add -g` for persistent CLI installation.", "Do not document `pnpm install runpane` as the public CLI install path."];
1042
- readonly commandUsages: readonly ["runpane", "runpane setup", "runpane install", "runpane install client", "runpane install daemon", "runpane update", "runpane version", "runpane doctor", "runpane doctor --json", "runpane daemon repair --pane-dir ~/.pane_remote --yes --json", "runpane agent-context", "runpane agent-context --command \"panes create\" --json", "runpane mcp", "runpane repos list --json", "runpane repos add --path /path/to/repo --name Pane --yes --json", "runpane panes list --repo active --json", "runpane panes cost --pane <pane-id> --json", "runpane panes create --repo active --name issue-252 --agent <agent> --prompt \"Kick off the discussion skill for issue 252\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --from-json panes.json --yes --json", "runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes rename --pane <pane-id> --name issue-393 --yes --json", "runpane panels list --pane <pane-id> --json", "runpane panels output --panel <panel-id> --limit 200 --json", "printf 'Continue\\n' | runpane panels input --panel <panel-id> --input-file - --yes --json", "runpane watch --self-test", "runpane watch --follow", "runpane watch --follow --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "runpane sessions list [--json] [--pane-dir <path>]", "runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]", "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", "runpane agents start --repo active --name fix-login --agent claude --prompt \"Fix the login redirect\" --yes --json", "runpane agents status --pane <pane-id> --json", "runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json", "runpane docs search --query \"archive a pane\" --json", "runpane links create --pane <pane-id> --json", "runpane panes git-status --pane <pane-id> --json", "runpane help", "runpane <command> --help"];
1043
- readonly commandDescriptions: readonly ["`runpane` with no arguments and `runpane setup` open an interactive wizard when stdin and stdout are TTYs. The remote-host wizard asks only for a name, then runs interactive Tailscale setup with automatic port selection; explicit install daemon flags remain available for SSH and manual URLs. In non-interactive shells or CI, both forms must print help, common commands, and agent discovery hints, then exit successfully instead of waiting for input.", "`runpane install` is an alias for `runpane install client`.", "`runpane install client` downloads the selected Pane desktop artifact and installs, opens, or launches it for the current platform.", "`runpane install daemon` downloads or installs Pane, resolves a stable Pane executable path, and spawns `<pane executable> --remote-setup <forwarded remote setup args>`.", "The wrapper must stream Pane stdout/stderr without reformatting because `pane --remote-setup` prints the one-time `pane-remote://...` connection code.", "`runpane update` uses the same release resolution and installer path as `install client`.", "`runpane version` prints only wrapper package metadata and does not contact, launch, or focus the Pane app or daemon.", "`runpane doctor` checks platform support, release metadata reachability, download URL selection, installed Pane detection, daemon reachability, and remote-daemon hints. Add `--json` for a machine-readable report that agents should run before mutating Pane state. Installed app version detection must be best-effort and must not launch, focus, or configure Pane; macOS wrappers read app bundle metadata instead of executing `Pane --version`.", "`runpane daemon repair` rewrites and restarts only the managed remote-daemon launcher/service. It never creates pairing credentials, changes tunnels, or downloads Pane; doctor only recommends it and never runs it automatically.", "`runpane agent-context` prints a brief, token-efficient command schema for coding agents without connecting to the Pane daemon.", "`runpane agent-context --command \"panes create\"` prints the detailed definition for one command. Add `--json` for machine-readable output.", "`runpane mcp` runs a stdio MCP server whose tools are generated from this contract: every command with result `jsonSchemas` becomes a tool that runs `runpane <command> --json` and returns its output. Only the npm package and the Pane app include it; the Python wrapper prints how to run it with Node and exits non-zero.", "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.", "`runpane repos add` registers an existing git repository with the running local Pane daemon. It does not create directories or initialize git repositories by default.", "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.", "`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.", "`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; pass `--no-pinned` to opt out. 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.", "For `panes create --wait-ready`, `initialInput.verifiedSubmitted: true` is reported only after argument attachment or composer-clear plus activity evidence. Routing input does not by itself verify submission.", "`runpane panes archive` refreshes the configured upstream, reports exact unpushed commit evidence, and refuses unsafe archive operations unless `--force` is used. Add `--dry-run` to inspect the same evidence without archiving. Successful archives wait for worktree removal and report `worktreeCleanup`.", "`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.", "`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`.", "`runpane panels list` lists tool panels inside one Pane session.", "`runpane panels output` reads bounded recent terminal output from one panel and strips common terminal control noise for agent use.", "`runpane panels input` sends exact input bytes to one terminal panel. Prefer `--input-file` for newlines, Ctrl-C, quotes, or shell-sensitive text.", "`runpane panes create --prompt` is an alias for `--initial-input`; request JSON and daemon payloads should use the canonical `initialInput` field.", "If composer submission cannot be verified without risking a duplicate, the create item is unsuccessful with `initialInput.staged`, `initialInput.attempts`, `initialInput.blocked.kind: submission_unverified`, and an actionable `nextCommand`. The CLI-facing `--prompt` alias maps to this canonical `initialInput` result.", "When running from WSL while Pane is installed on Windows, the Linux wrapper may look for a missing `/tmp/pane-daemon.../daemon.sock` or resolve to a Windows shim such as Volta. In that case invoke the Windows wrapper through PowerShell from a Windows cwd, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.", "`runpane watch` waits for workspace transitions from the daemon journal without polling. `--follow` keeps waiting and prints one line per event: READY, BLOCKED, IDLE, STUCK, NEW, GONE, EXIT, plus HEARTBEAT every 60 seconds as proof of life. Defaults are responsive: no settle, no batching, all kinds, IDLE every `--idle-after`. Expensive consumers opt into `--kinds` (drop `agent.busy`; BUSY carries no action), `--settle <ms>` (READY only after a quiet window; a BUSY inside it cancels the line), `--blocked-settle <ms>`, `--min-interval <ms>` (batch non-urgent lines; BLOCKED bypasses it), and `--idle-backoff` (10m, 30m, 1h, 3h, then daily). The recommended orchestrator invocation is `runpane watch --follow --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff`, which budgets about 6 wake-ups per active pane per hour worst case, usually 1-3. Pane Chat arms it automatically through its skill; only your own scripts need the flags. STUCK means real unsubmitted composer text, never an agent prompt suggestion. Judge a dead watch by a non-zero exit or a WATCH ERROR line, not by silence.", "`sessions list` list durable named orchestration Sessions.", "`sessions create` create a durable named orchestration Session and its hidden terminal owner.", "`sessions get` read one durable named orchestration Session.", "`sessions update` update a Session overview from structured JSON.", "`sessions set-agent` switch the durable terminal agent for a named Session.", "`sessions associate` associate a user-visible Pane with a named Session.", "`sessions detach` detach a Pane from a named Session.", "`sessions overview` read a live status, activity, git, and pull request overview for a named Session.", "`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task in a repository, check on it, and send it a follow-up.", "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.", "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.", "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only."];
1165
+ readonly commandUsages: readonly ["runpane", "runpane setup", "runpane install", "runpane install client", "runpane install daemon", "runpane update", "runpane version", "runpane doctor", "runpane doctor --json", "runpane daemon repair --pane-dir ~/.pane_remote --yes --json", "runpane agent-context", "runpane agent-context --command \"panes create\" --json", "runpane mcp", "runpane repos list --json", "runpane repos add --path /path/to/repo --name Pane --yes --json", "runpane panes list --repo active --json", "runpane panes cost --pane <pane-id> --json", "runpane panes create --repo active --name issue-252 --agent <agent> --prompt \"Kick off the discussion skill for issue 252\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --from-json panes.json --yes --json", "runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes rename --pane <pane-id> --name issue-393 --yes --json", "runpane panels list --pane <pane-id> --json", "runpane panels output --panel <panel-id> --limit 200 --json", "printf 'Continue\\n' | runpane panels input --panel <panel-id> --input-file - --yes --json", "runpane watch --self-test", "runpane watch --follow", "runpane watch --follow --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "runpane watch --session <id|name> --follow --quiet --json --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "runpane sessions list [--json] [--pane-dir <path>]", "runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]", "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", "runpane lock acquire --name testing-account --ttl 30m --wait 1800000 --note \"call QA\" --json", "runpane lock release --name testing-account --json", "runpane lock list --json", "runpane agents start --repo active --name fix-login --agent claude --prompt \"Fix the login redirect\" --yes --json", "runpane agents status --pane <pane-id> --json", "runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json", "runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json", "runpane panels last-message --panel <panel-id> --json", "runpane docs search --query \"archive a pane\" --json", "runpane links create --pane <pane-id> --json", "runpane panes git-status --pane <pane-id> --json", "runpane help", "runpane <command> --help"];
1166
+ readonly commandDescriptions: readonly ["`runpane` with no arguments and `runpane setup` open an interactive wizard when stdin and stdout are TTYs. The remote-host wizard asks only for a name, then runs interactive Tailscale setup with automatic port selection; explicit install daemon flags remain available for SSH and manual URLs. In non-interactive shells or CI, both forms must print help, common commands, and agent discovery hints, then exit successfully instead of waiting for input.", "`runpane install` is an alias for `runpane install client`.", "`runpane install client` downloads the selected Pane desktop artifact and installs, opens, or launches it for the current platform.", "`runpane install daemon` downloads or installs Pane, resolves a stable Pane executable path, and spawns `<pane executable> --remote-setup <forwarded remote setup args>`.", "The wrapper must stream Pane stdout/stderr without reformatting because `pane --remote-setup` prints the one-time `pane-remote://...` connection code.", "`runpane update` uses the same release resolution and installer path as `install client`.", "`runpane version` prints only wrapper package metadata and does not contact, launch, or focus the Pane app or daemon.", "`runpane doctor` checks platform support, release metadata reachability, download URL selection, installed Pane detection, daemon reachability, and remote-daemon hints. Add `--json` for a machine-readable report that agents should run before mutating Pane state. Installed app version detection must be best-effort and must not launch, focus, or configure Pane; macOS wrappers read app bundle metadata instead of executing `Pane --version`.", "`runpane daemon repair` rewrites and restarts only the managed remote-daemon launcher/service. It never creates pairing credentials, changes tunnels, or downloads Pane; doctor only recommends it and never runs it automatically.", "`runpane agent-context` prints a brief, token-efficient command schema for coding agents without connecting to the Pane daemon.", "`runpane agent-context --command \"panes create\"` prints the detailed definition for one command. Add `--json` for machine-readable output. An unknown command exits 2 and lists the closest command names; with `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout.", "`runpane mcp` runs a stdio MCP server whose tools are generated from this contract: every command with result `jsonSchemas` becomes a tool that runs `runpane <command> --json` and returns its output. Only the npm package and the Pane app include it; the Python wrapper prints how to run it with Node and exits non-zero.", "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.", "`runpane repos add` registers an existing git repository with the running local Pane daemon. It does not create directories or initialize git repositories by default.", "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.", "`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.", "`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; 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.", "For `panes create --wait-ready`, `initialInput.delivery` says where the prompt went: `taken` or `queued` (from the agent's transcript, its screen, or `argv` for a launch-argument prompt), `in-composer`, or `unknown`. `initialInput.verifiedSubmitted` is true exactly when it is `taken` or `queued`. Routing input does not by itself verify submission.", "`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.", "`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.", "`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`.", "`runpane panels open` opens a URL or a file from the Pane worktree as a tab in an existing Pane (default: the calling panel's Pane from `PANE_SESSION_ID`), in split view beside the agent unless `--tab` is passed. HTML files render in a browser tab and other files open in an editor tab; an existing tab showing the same target is reused. It activates the tab inside the Pane but never raises or focuses the Pane window.", "`runpane panels list` lists tool panels inside one Pane session.", "`runpane panels output` reads bounded recent terminal output from one panel and strips common terminal control noise for agent use.", "`runpane panels input` sends exact input bytes to one terminal panel. Prefer `--input-file` for newlines, Ctrl-C, quotes, or shell-sensitive text.", "`runpane panes create --prompt` is an alias for `--initial-input`; request JSON and daemon payloads should use the canonical `initialInput` field.", "`runpane panes create --branch <name>` creates the Pane's worktree on exactly that new branch, slashes included (for example `agents/w5a`). The name is checked with `git check-ref-format --branch`, creation fails if the branch already exists, and Pane never renames it to make it unique. `--worktree-name` still names the directory and defaults to `--name`. `--base` is an alias for `--base-branch`, and `--prompt-file` for `--initial-input-file`. `panes create --base <ref> --branch <name> --prompt-file <file>` replaces `git worktree add` plus `panes adopt`.", "`runpane panes adopt --launch` accepts `--prompt`, `--prompt-file`, `--wait-ready`, and `--ready-timeout-ms`, and reports `readiness`, `initialInput`, and `nextCommand` like `panes create`. A prompt without `--launch` is an error rather than being dropped.", "If composer submission cannot be verified without risking a duplicate, the create item is unsuccessful with `initialInput.staged`, `initialInput.attempts`, `initialInput.blocked.kind: submission_unverified`, and an actionable `nextCommand`. The CLI-facing `--prompt` alias maps to this canonical `initialInput` result.", "When running from WSL while Pane is installed on Windows, the Linux wrapper may look for a missing `/tmp/pane-daemon.../daemon.sock` or resolve to a Windows shim such as Volta. In that case invoke the Windows wrapper through PowerShell from a Windows cwd, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.", "`runpane watch` waits for workspace transitions from the daemon journal without polling. `--follow` keeps waiting and prints one line per event: READY, BLOCKED, IDLE, STUCK, NEW, GONE, EXIT, plus HEARTBEAT every 60 seconds as proof of life. Defaults are responsive: no settle, no batching, all kinds, IDLE every `--idle-after`. Expensive consumers opt into `--kinds` (drop `agent.busy`; BUSY carries no action), `--settle <ms>` (READY only after a quiet window; a BUSY inside it cancels the line), `--blocked-settle <ms>`, `--min-interval <ms>` (batch non-urgent lines; BLOCKED bypasses it), and `--idle-backoff` (10m, 30m, 1h, 3h, then daily). Two profiles cover orchestrators. Unattended: `runpane watch --follow --quiet --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff`, which budgets about 6 wake-ups per active pane per hour worst case, usually 1-3, and can deliver READY up to about 13 minutes late. User present: the same kinds with `--settle 60000 --blocked-settle 15000 --min-interval 120000` and no `--idle-backoff`, so READY arrives within about 3 minutes. Pane Chat arms it automatically through its skill; only your own scripts need the flags. STUCK means real unsubmitted composer text, never an agent prompt suggestion. `--quiet` (alias `--no-control-lines`) drops the WATCH OK, HEARTBEAT, and WATCH RECONNECTED control lines (`_ok`, `_heartbeat`, `_reconnected` in JSON); WATCH ERROR, RESET, and DROPPED (`_error`, `_reset`, `_dropped`) always print. Judge a dead watch by a non-zero exit or a WATCH ERROR line, not by silence. `--session <id|name>` follows every Pane associated with a named Session and re-reads membership on every read, so associate and detach need no re-arm; JOINED and LEFT (`pane.associated`, `pane.detached`) report membership changes. For Session members with an open PR, the daemon polls GitHub about every 3 minutes and reports `pr.conflicted` (`PR <pane-name> pane <pane-id> #<number> CONFLICTED`), `pr.checks` (`... CHECKS PASSED` or `... CHECKS FAILED <names>`), and `pr.merged` (`... MERGED`) on transitions only; list them in `--kinds`. In JSON, an entry with `replay: true` restates current state after a reset and is never READY.", "`sessions list` list durable named orchestration Sessions.", "`sessions create` create a durable named orchestration Session and its hidden terminal owner.", "`sessions get` read one durable named orchestration Session.", "`sessions update` update a Session overview from structured JSON.", "`sessions set-agent` switch the durable terminal agent for a named Session.", "`sessions associate` associate a user-visible Pane with a named Session.", "`sessions detach` detach a Pane from a named Session.", "`sessions overview` read a live status, activity, git, and pull request overview for a named Session.", "`runpane lock acquire|release|list` coordinate a resource shared between agents, such as one test account. The caller's Pane and panel own the lock; it is scoped to the owner's Session (or global outside one), renews for the same owner, and is released on TTL expiry, owner panel exit, or owner Pane archive. `--wait` blocks in the daemon until the lock comes free.", "`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task in a repository, check on it, and send it a follow-up.", "`runpane report --state ready|blocked|failed|done` is how a worker hands back its result. It stores the latest report on the worker's panel (state, `--pr`, `--head`, up to 16,000 characters of `--summary` or `--summary-file`, and the `--question` a blocked worker needs answered), journals an opt-in `agent.report` watch event (`REPORT <pane-name> pane <pane-id> panel <panel-id> ready pr#747 fc5dce9`; it skips the `--min-interval` batch), records it as Session activity, and shows it in `agents status`, `panels list`, and `sessions overview` (`panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`.", "`runpane panels last-message --panel <panel-id>` reads a Claude or Codex agent's last reply from its transcript (up to `--limit` characters, default 20,000, keeping the end and reporting `truncated`). It never scrapes the screen: without a transcript it prints `{ ok: false, reason: \"transcript-unavailable\" }` and exits 1.", "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.", "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.", "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only."];
1044
1167
  readonly wrapperFlagNote: "The top-level `runpane --version` form prints the wrapper version. The install subcommand form `runpane install --version vX.Y.Z` selects a Pane release.";
1045
- readonly localControlFlagNote: "`runpane doctor --json`, `runpane repos list`, `runpane panes ...`, and `runpane panels ...` commands use or describe the local framed daemon socket/pipe for a running Pane app. `--pane-dir` points the wrapper at a non-default Pane data directory, such as `PANE_DIR=~/.pane_test` in development. `runpane agent-context` is local/offline and can be used before Pane is running. In a Pane repository checkout, if `runpane` is not on PATH, use the built local wrapper with Node 22, for example `PATH=/opt/homebrew/opt/node@22/bin:$PATH node packages/runpane/dist/cli.js doctor --json`. From WSL, if the user runs Windows Pane, call the Windows wrapper through `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane ...'` so the command can reach the Windows named-pipe daemon and avoid UNC cwd issues.";
1168
+ readonly localControlFlagNote: "`runpane doctor --json`, `runpane repos list`, `runpane panes ...`, and `runpane panels ...` commands use or describe the local framed daemon socket/pipe for a running Pane app. `--pane-dir` points the wrapper at a non-default Pane data directory, such as `PANE_DIR=~/.pane_test` in development. `runpane agent-context` is local/offline and can be used before Pane is running. `agent-context` and `version` accept and ignore `--pane-dir`, so one `--pane-dir` can be passed to every runpane command. In a Pane repository checkout, if `runpane` is not on PATH, use the built local wrapper with Node 22, for example `PATH=/opt/homebrew/opt/node@22/bin:$PATH node packages/runpane/dist/cli.js doctor --json`. From WSL, if the user runs Windows Pane, call the Windows wrapper through `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane ...'` so the command can reach the Windows named-pipe daemon and avoid UNC cwd issues.";
1046
1169
  readonly daemonFlagNote: "Unknown daemon flags should be forwarded rather than dropped so newer Pane versions can extend `--remote-setup` without requiring an immediate wrapper release. Unknown flags for non-daemon commands should fail clearly.";
1047
1170
  readonly downloadAttribution: readonly ["The npm package uses `source=npm` for all npm-registry consumers, including `npx`, `pnpm dlx`, `yarn dlx`, `bunx`, and global npm/pnpm installs.", "The PyPI package uses `source=pip` for all Python consumers, including pip, pipx, uvx, and `python -m runpane`.", "Wrappers should prefer `https://runpane.com/api/download?platform=<platform>&arch=<arch>&format=<format>&version=<version>&channel=<channel>&source=<npm|pip>`.", "If the website route cannot satisfy the download, wrappers may fall back to the matching GitHub release asset and print a warning that website attribution may be incomplete for that run.", "Wrappers also emit best-effort lifecycle telemetry to `https://runpane.com/api/runpane/telemetry` for command start/success/failure, download request/success/failure, and GitHub fallback usage.", "Wrapper telemetry uses a persisted anonymous `install_id` in the form `install_<uuid>` and PostHog `distinct_id = install:<install_id>` so distinct wrapper users can be counted with `count(DISTINCT properties.install_id)`.", "Wrapper telemetry must be disabled in CI and when `RUNPANE_TELEMETRY_DISABLED` is set, and must not include raw paths, labels, prompts, raw error text, or environment values."];
1048
1171
  readonly publishingCredentials: readonly ["Local implementation, build, and dry-run validation do not need npm or PyPI API tokens.", "Release publishing should prefer npm Trusted Publishing and PyPI Trusted Publishing from GitHub Actions.", "Fallback `NPM_TOKEN` or `PYPI_API_TOKEN` credentials may be used for first package reservation or manual publication only. They must be supplied through local environment variables or GitHub Actions secrets, never committed, and revoked or rotated after use."];
1049
1172
  };
1050
1173
  readonly testFixtures: {
1051
- readonly parserSamples: readonly [readonly ["setup"], readonly ["install"], readonly ["install", "client", "--version", "v2.2.8", "--format", "dmg", "--download-dir", "/tmp/pane-downloads", "--dry-run", "--yes"], readonly ["install", "daemon", "--label", "VM", "--prefer-tunnel", "ssh", "--channel", "nightly", "--base-url", "https://example.test", "--pane-dir", "/tmp/pane", "--listen-port", "4555", "--auto-listen-port", "--print-only", "--repo-ref", "main", "--unknown-future-flag", "future-value", "--dry-run", "--verbose"], readonly ["update", "--version", "latest", "--format", "appimage", "--pane-path", "/usr/bin/pane", "--dry-run"], readonly ["doctor", "--pane-path", "/usr/bin/pane", "--format", "zip", "--verbose"], readonly ["doctor", "--json", "--pane-dir", "/tmp/pane"], readonly ["doctor", "--report", "--title", "watch failed", "--body-file", "/tmp/watch-evidence.txt", "--json"], readonly ["watch", "--as", "monitor", "--from", "earliest", "--follow", "--format", "lines", "--heartbeat", "60", "--idle-after", "600000", "--settle", "180000", "--blocked-settle", "30000", "--min-interval", "600000", "--idle-backoff", "--all-managed", "--agents-only", "--exclude-pane", "pane-old", "--kinds", "agent.ready,agent.idle", "--include-held-input", "--self-test"], readonly ["daemon", "repair", "--pane-dir", "/tmp/pane-remote", "--yes", "--json"], readonly ["agent-context"], readonly ["agent-context", "--command", "panes create", "--json"], readonly ["repos", "list", "--json", "--pane-dir", "/tmp/pane"], readonly ["repos", "add", "--path", "/tmp/repo", "--name", "Repo", "--dry-run", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panes", "list", "--repo", "active", "--json"], readonly ["panes", "cost", "--pane", "session-1", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--pinned", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--no-pinned", "--no-associate", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--from-json", "-", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--force", "--source", "agent", "--yes", "--json"], readonly ["panes", "pin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "unpin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "rename", "--pane", "session-1", "--name", "issue-393", "--yes", "--json"], readonly ["panes", "focus", "--pane", "session-1", "--panel", "panel-1", "--source", "user", "--yes", "--json"], readonly ["panels", "list", "--pane", "session-1", "--json"], readonly ["panels", "output", "--panel", "panel-1", "--limit", "200", "--json"], readonly ["panels", "input", "--panel", "panel-1", "--text", "Continue\\n", "--yes", "--json"], readonly ["--version"], readonly ["agents", "doctor", "--agent", "codex", "--repo", "active", "--json"], readonly ["panes", "create", "--from-json", "-", "--source", "agent", "--focus", "--wait-ready", "--ready-timeout-ms", "45000", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "screen", "--panel", "panel-1", "--limit", "80", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "2", "--yes", "--json"], readonly ["panels", "wait", "--panel", "panel-1", "--for", "text", "--contains", "ready", "--timeout-ms", "30000", "--interval-ms", "500", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--source", "agent", "--no-focus", "--wait-ready", "--ready-timeout-ms", "15000", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--focus", "--yes", "--json"], readonly ["panels", "submit-composer", "--panel", "panel-1", "--strategy", "auto", "--yes", "--json"], readonly ["sessions", "list", "--json"], readonly ["sessions", "get", "--session", "demo", "--json"], readonly ["sessions", "update", "--session", "demo", "--from-json", "-"], readonly ["panels", "submit", "--panel=panel-1", "--text=- [ ] item", "--yes", "--json"], readonly ["panes", "commit", "--pane", "pane-1", "--message", "fix: title\n\nbody", "--yes", "--json"], readonly ["links", "create", "--pane", "pane-1", "--panel", "panel-1", "--json"], readonly ["links", "open", "--url=pane://open?pane=pane-1", "--yes"], readonly ["mcp", "--toolsets", "core,git", "--read-only"], readonly ["docs", "search", "--query", "archive a pane", "--limit", "3"], readonly ["docs", "read", "--doc", "docs/PANE_MCP.md"], readonly ["agents", "start", "--repo", "active", "--name", "fix-login", "--agent", "claude", "--prompt", "Fix the login redirect", "--yes", "--json"], readonly ["agents", "send", "--pane", "pane-1", "--text=- [ ] item", "--yes"], readonly ["panels", "input", "--panel", "panel-1", "--keys", "down,enter", "--yes", "--json"], readonly ["panes", "squash-rebase", "--pane", "pane-1", "--message", "feat: land it", "--yes", "--json"], readonly ["folders", "create", "--repo", "3", "--name", "Reviews", "--yes"], readonly ["panes", "move", "--pane", "pane-1", "--folder", "folder-9", "--yes", "--json"]];
1174
+ readonly parserSamples: readonly [readonly ["setup"], readonly ["install"], readonly ["install", "client", "--version", "v2.2.8", "--format", "dmg", "--download-dir", "/tmp/pane-downloads", "--dry-run", "--yes"], readonly ["install", "daemon", "--label", "VM", "--prefer-tunnel", "ssh", "--channel", "nightly", "--base-url", "https://example.test", "--pane-dir", "/tmp/pane", "--listen-port", "4555", "--auto-listen-port", "--print-only", "--repo-ref", "main", "--unknown-future-flag", "future-value", "--dry-run", "--verbose"], readonly ["update", "--version", "latest", "--format", "appimage", "--pane-path", "/usr/bin/pane", "--dry-run"], readonly ["doctor", "--pane-path", "/usr/bin/pane", "--format", "zip", "--verbose"], readonly ["doctor", "--json", "--pane-dir", "/tmp/pane"], readonly ["doctor", "--report", "--title", "watch failed", "--body-file", "/tmp/watch-evidence.txt", "--json"], readonly ["watch", "--as", "monitor", "--from", "earliest", "--follow", "--format", "lines", "--heartbeat", "60", "--idle-after", "600000", "--settle", "180000", "--blocked-settle", "30000", "--min-interval", "600000", "--idle-backoff", "--all-managed", "--agents-only", "--exclude-pane", "pane-old", "--kinds", "agent.ready,agent.idle", "--include-held-input", "--self-test"], readonly ["daemon", "repair", "--pane-dir", "/tmp/pane-remote", "--yes", "--json"], readonly ["agent-context"], readonly ["agent-context", "--command", "panes create", "--json"], readonly ["repos", "list", "--json", "--pane-dir", "/tmp/pane"], readonly ["repos", "add", "--path", "/tmp/repo", "--name", "Repo", "--dry-run", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panes", "list", "--repo", "active", "--json"], readonly ["panes", "cost", "--pane", "session-1", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--pinned", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--no-pinned", "--no-associate", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--from-json", "-", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--force", "--source", "agent", "--yes", "--json"], readonly ["panes", "pin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "unpin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "rename", "--pane", "session-1", "--name", "issue-393", "--yes", "--json"], readonly ["panes", "focus", "--pane", "session-1", "--panel", "panel-1", "--source", "user", "--yes", "--json"], readonly ["panels", "list", "--pane", "session-1", "--json"], readonly ["panels", "output", "--panel", "panel-1", "--limit", "200", "--json"], readonly ["panels", "input", "--panel", "panel-1", "--text", "Continue\\n", "--yes", "--json"], readonly ["--version"], readonly ["agents", "doctor", "--agent", "codex", "--repo", "active", "--json"], readonly ["panes", "create", "--from-json", "-", "--source", "agent", "--focus", "--wait-ready", "--ready-timeout-ms", "45000", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "screen", "--panel", "panel-1", "--limit", "80", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "2", "--yes", "--json"], readonly ["panels", "wait", "--panel", "panel-1", "--for", "text", "--contains", "ready", "--timeout-ms", "30000", "--interval-ms", "500", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--source", "agent", "--no-focus", "--wait-ready", "--ready-timeout-ms", "15000", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--focus", "--yes", "--json"], readonly ["panels", "submit-composer", "--panel", "panel-1", "--strategy", "auto", "--yes", "--json"], readonly ["sessions", "list", "--json"], readonly ["sessions", "get", "--session", "demo", "--json"], readonly ["sessions", "update", "--session", "demo", "--from-json", "-"], readonly ["panels", "submit", "--panel=panel-1", "--text=- [ ] item", "--yes", "--json"], readonly ["panes", "commit", "--pane", "pane-1", "--message", "fix: title\n\nbody", "--yes", "--json"], readonly ["links", "create", "--pane", "pane-1", "--panel", "panel-1", "--json"], readonly ["links", "open", "--url=pane://open?pane=pane-1", "--yes"], readonly ["mcp", "--toolsets", "core,git", "--read-only"], readonly ["docs", "search", "--query", "archive a pane", "--limit", "3"], readonly ["docs", "read", "--doc", "docs/PANE_MCP.md"], readonly ["agents", "start", "--repo", "active", "--name", "fix-login", "--agent", "claude", "--prompt", "Fix the login redirect", "--yes", "--json"], readonly ["agents", "send", "--pane", "pane-1", "--text=- [ ] item", "--yes"], readonly ["panels", "input", "--panel", "panel-1", "--keys", "down,enter", "--yes", "--json"], readonly ["panes", "squash-rebase", "--pane", "pane-1", "--message", "feat: land it", "--yes", "--json"], readonly ["folders", "create", "--repo", "3", "--name", "Reviews", "--yes"], readonly ["panes", "move", "--pane", "pane-1", "--folder", "folder-9", "--yes", "--json"], readonly ["watch", "--follow", "--quiet", "--json", "--pane-dir", "/tmp/pane"], readonly ["watch", "--follow", "--no-control-lines", "--all-managed"], readonly ["watch", "--session", "__orchestration_session_1b4e28ba-2fa1-11d2-883f-0016d3cca427__", "--follow", "--quiet", "--json", "--kinds", "agent.ready,agent.blocked,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged", "--settle", "180000"], readonly ["watch", "--session=Release train", "--as", "release-watch", "--exclude-pane", "pane-old"], readonly ["agent-context", "--command", "panes create", "--json", "--pane-dir", "/tmp/pane"], readonly ["agent-context", "--pane-dir=/tmp/pane"], readonly ["version", "--pane-dir", "/tmp/pane"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--agent", "claude", "--base-branch", "origin/release", "--source", "agent", "--no-focus", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--tool-command", "wrapper codex-run", "--wait-ready", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "farm", "--tool-command", "agent-farm run free-range", "--agent", "claude", "--prompt", "Plan", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "brief.md", "--as-file-pointer", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "long", "--agent", "claude", "--initial-input-file", "brief.md", "--as-file-pointer", "--dry-run", "--yes", "--json"], readonly ["report", "--state", "ready", "--pr", "747", "--head", "FC5DCE9", "--summary", "Done: tests pass", "--json"], readonly ["report", "--state", "blocked", "--question", "Which API version?", "--pane", "session-1", "--panel", "panel-1", "--summary-file", "-"], readonly ["report", "--state=done", "--summary-file=/tmp/report.md", "--pane-dir", "/tmp/pane"], readonly ["panels", "last-message", "--panel", "panel-1", "--limit", "5000", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--base", "release/foo", "--branch", "agents/w5a", "--agent", "claude", "--prompt-file", "prompt.md", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "w5b", "--base-branch", "origin/main", "--branch", "agents/w5b", "--worktree-name", "w5b-dir", "--tool-command", "bash", "--initial-input-file", "-", "--dry-run", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--remove-worktree", "--yes", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--dry-run", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--remove-worktree", "--yes"], readonly ["lock", "acquire", "--name", "testing-account", "--ttl", "30m", "--wait", "1800000", "--note", "call QA", "--json"], readonly ["lock", "acquire", "--name", "staging-db", "--ttl", "1500", "--pane", "session-1", "--panel", "panel-1", "--pane-dir", "/tmp/pane"], readonly ["lock", "acquire", "--name=db", "--ttl=2h"], readonly ["lock", "release", "--name", "testing-account", "--force", "--session", "Release QA", "--json"], readonly ["lock", "list", "--session", "Release QA", "--json"], readonly ["lock", "--help"], readonly ["panels", "open", "--pane", "session-1", "--file", "plan.html", "--title", "Plan", "--split", "--no-focus", "--source", "agent", "--yes", "--json"], readonly ["panels", "open", "--url", "http://localhost:3000", "--tab", "--yes", "--json"]];
1052
1175
  readonly topLevelHelpIncludes: readonly ["runpane setup", "runpane install", "runpane update", "runpane version", "runpane doctor", "runpane agent-context", "runpane repos list", "runpane repos add", "runpane panes list", "runpane panes create", "runpane panes archive", "runpane panels create", "runpane panels list", "runpane panels output", "runpane panels input", "runpane agents doctor", "runpane panels screen", "runpane panels submit", "runpane panels submit-composer", "runpane panels wait", "runpane doctor --json", "runpane agent-context --json", "Agent discovery:", "Common commands:"];
1053
1176
  readonly npmHelpIncludes: readonly ["pnpm dlx runpane@latest", "npx --yes runpane@latest"];
1054
1177
  readonly pipHelpIncludes: readonly ["pipx run runpane", "python -m pip install runpane && python -m runpane setup"];
@@ -1518,6 +1641,9 @@ export declare const RUNPANE_CONTRACT: {
1518
1641
  readonly worktreeName: {
1519
1642
  readonly type: "string";
1520
1643
  };
1644
+ readonly branch: {
1645
+ readonly type: "string";
1646
+ };
1521
1647
  readonly baseBranch: {
1522
1648
  readonly type: "string";
1523
1649
  };
@@ -1541,6 +1667,9 @@ export declare const RUNPANE_CONTRACT: {
1541
1667
  readonly initialInput: {
1542
1668
  readonly type: "string";
1543
1669
  };
1670
+ readonly initialInputAsFilePointer: {
1671
+ readonly type: "boolean";
1672
+ };
1544
1673
  };
1545
1674
  readonly additionalProperties: false;
1546
1675
  }, {
@@ -1550,12 +1679,18 @@ export declare const RUNPANE_CONTRACT: {
1550
1679
  readonly command: {
1551
1680
  readonly type: "string";
1552
1681
  };
1682
+ readonly agentType: {
1683
+ readonly enum: readonly ["codex", "claude", "cursor"];
1684
+ };
1553
1685
  readonly title: {
1554
1686
  readonly type: "string";
1555
1687
  };
1556
1688
  readonly initialInput: {
1557
1689
  readonly type: "string";
1558
1690
  };
1691
+ readonly initialInputAsFilePointer: {
1692
+ readonly type: "boolean";
1693
+ };
1559
1694
  };
1560
1695
  readonly additionalProperties: false;
1561
1696
  }];
@@ -1755,6 +1890,9 @@ export declare const RUNPANE_CONTRACT: {
1755
1890
  readonly verifiedSubmitted: {
1756
1891
  readonly type: "boolean";
1757
1892
  };
1893
+ readonly delivery: {
1894
+ readonly $ref: "#/jsonSchemas/panelSubmitResult/properties/delivery";
1895
+ };
1758
1896
  readonly staged: {
1759
1897
  readonly type: "boolean";
1760
1898
  };
@@ -1818,6 +1956,12 @@ export declare const RUNPANE_CONTRACT: {
1818
1956
  };
1819
1957
  readonly additionalProperties: false;
1820
1958
  };
1959
+ readonly promptFile: {
1960
+ readonly type: "string";
1961
+ };
1962
+ readonly warnings: {
1963
+ readonly $ref: "#/jsonSchemas/panelSubmitResult/properties/warnings";
1964
+ };
1821
1965
  };
1822
1966
  readonly additionalProperties: false;
1823
1967
  }, {
@@ -1918,6 +2062,9 @@ export declare const RUNPANE_CONTRACT: {
1918
2062
  readonly agentStatus: {
1919
2063
  readonly enum: readonly ["active", "idle"];
1920
2064
  };
2065
+ readonly agentState: {
2066
+ readonly enum: readonly ["ready", "working", "blocked", "none"];
2067
+ };
1921
2068
  readonly ownership: {
1922
2069
  readonly enum: readonly ["pane", "external"];
1923
2070
  };
@@ -2194,7 +2341,7 @@ export declare const RUNPANE_CONTRACT: {
2194
2341
  readonly type: "string";
2195
2342
  };
2196
2343
  readonly kind: {
2197
- readonly enum: readonly ["agent.ready", "agent.busy", "agent.blocked", "agent.unknown", "agent.idle", "pane.created", "pane.gone", "panel.exited"];
2344
+ readonly enum: readonly ["agent.ready", "agent.busy", "agent.blocked", "agent.unknown", "agent.idle", "pane.created", "pane.gone", "panel.exited", "agent.report", "pane.associated", "pane.detached", "pr.conflicted", "pr.checks", "pr.merged"];
2198
2345
  };
2199
2346
  readonly paneId: {
2200
2347
  readonly type: "string";
@@ -2224,7 +2371,7 @@ export declare const RUNPANE_CONTRACT: {
2224
2371
  readonly enum: readonly ["blocked", "working", "idle", "unknown"];
2225
2372
  };
2226
2373
  readonly source: {
2227
- readonly enum: readonly ["agent", "exit", "session"];
2374
+ readonly enum: readonly ["agent", "exit", "session", "github"];
2228
2375
  };
2229
2376
  readonly reason: {
2230
2377
  readonly oneOf: readonly [{
@@ -2254,9 +2401,84 @@ export declare const RUNPANE_CONTRACT: {
2254
2401
  readonly baseline: {
2255
2402
  readonly const: true;
2256
2403
  };
2404
+ readonly replay: {
2405
+ readonly const: true;
2406
+ readonly description: "Set on baseline entries delivered after a reset. A replayed entry restates current state and is never a new transition: a replayed agent.ready is not READY.";
2407
+ };
2257
2408
  readonly changedWhileAway: {
2258
2409
  readonly type: "boolean";
2259
2410
  };
2411
+ readonly sessionId: {
2412
+ readonly type: "string";
2413
+ readonly description: "Named Session of a pane.associated or pane.detached entry.";
2414
+ };
2415
+ readonly sessionName: {
2416
+ readonly type: "string";
2417
+ };
2418
+ readonly pr: {
2419
+ readonly type: "object";
2420
+ readonly description: "PR of a pr.conflicted, pr.checks, or pr.merged entry.";
2421
+ readonly required: readonly ["number", "url", "headOid"];
2422
+ readonly properties: {
2423
+ readonly number: {
2424
+ readonly type: "number";
2425
+ };
2426
+ readonly url: {
2427
+ readonly type: "string";
2428
+ };
2429
+ readonly headOid: {
2430
+ readonly type: "string";
2431
+ };
2432
+ };
2433
+ readonly additionalProperties: false;
2434
+ };
2435
+ readonly checks: {
2436
+ readonly enum: readonly ["passed", "failed"];
2437
+ readonly description: "Settled result of a pr.checks entry: every check on pr.headOid finished.";
2438
+ };
2439
+ readonly failingChecks: {
2440
+ readonly type: "array";
2441
+ readonly items: {
2442
+ readonly type: "string";
2443
+ };
2444
+ readonly description: "Up to five failing check names of a failed pr.checks entry.";
2445
+ };
2446
+ readonly report: {
2447
+ readonly $ref: "#/jsonSchemas/agentReport";
2448
+ readonly description: "Report of an agent.report entry; its summary is cut to 2,000 characters (the panel keeps up to 16,000).";
2449
+ };
2450
+ };
2451
+ readonly additionalProperties: false;
2452
+ };
2453
+ readonly agentReport: {
2454
+ readonly type: "object";
2455
+ readonly description: "The latest runpane report from an agent panel.";
2456
+ readonly required: readonly ["state", "reportedAt"];
2457
+ readonly properties: {
2458
+ readonly state: {
2459
+ readonly enum: readonly ["ready", "blocked", "failed", "done"];
2460
+ };
2461
+ readonly pr: {
2462
+ readonly type: "number";
2463
+ };
2464
+ readonly head: {
2465
+ readonly type: "string";
2466
+ };
2467
+ readonly summary: {
2468
+ readonly type: "string";
2469
+ };
2470
+ readonly summaryTruncated: {
2471
+ readonly const: true;
2472
+ };
2473
+ readonly summaryPath: {
2474
+ readonly type: "string";
2475
+ };
2476
+ readonly question: {
2477
+ readonly type: "string";
2478
+ };
2479
+ readonly reportedAt: {
2480
+ readonly type: "string";
2481
+ };
2260
2482
  };
2261
2483
  readonly additionalProperties: false;
2262
2484
  };
@@ -2290,6 +2512,10 @@ export declare const RUNPANE_CONTRACT: {
2290
2512
  readonly type: "string";
2291
2513
  };
2292
2514
  };
2515
+ readonly session: {
2516
+ readonly type: "string";
2517
+ readonly description: "Named Session id or exact name. Limits the wait to the Session's associated Panes, resolved on every read, and implies the opt-in pane.associated, pane.detached, and pr.* entries. Cannot be combined with paneIds.";
2518
+ };
2293
2519
  readonly excludePaneIds: {
2294
2520
  readonly type: "array";
2295
2521
  readonly items: {
@@ -2411,6 +2637,20 @@ export declare const RUNPANE_CONTRACT: {
2411
2637
  };
2412
2638
  readonly additionalProperties: false;
2413
2639
  };
2640
+ readonly session: {
2641
+ readonly type: "object";
2642
+ readonly description: "The Session a session request resolved to. A client that sent session and gets no session back is talking to a daemon that ignored it.";
2643
+ readonly required: readonly ["id", "name"];
2644
+ readonly properties: {
2645
+ readonly id: {
2646
+ readonly type: "string";
2647
+ };
2648
+ readonly name: {
2649
+ readonly type: "string";
2650
+ };
2651
+ };
2652
+ readonly additionalProperties: false;
2653
+ };
2414
2654
  readonly nextCommand: {
2415
2655
  readonly type: "string";
2416
2656
  };
@@ -2433,6 +2673,9 @@ export declare const RUNPANE_CONTRACT: {
2433
2673
  readonly dryRun: {
2434
2674
  readonly type: "boolean";
2435
2675
  };
2676
+ readonly removeWorktree: {
2677
+ readonly type: "boolean";
2678
+ };
2436
2679
  };
2437
2680
  readonly additionalProperties: false;
2438
2681
  };
@@ -2570,6 +2813,11 @@ export declare const RUNPANE_CONTRACT: {
2570
2813
  };
2571
2814
  readonly worktreeCleanup: {
2572
2815
  readonly enum: readonly ["completed", "failed", "timeout", "not-applicable"];
2816
+ readonly description: "`completed`: the worktree is gone from its path and from git (see trashDeletion). `failed`: removal failed and the worktree may remain; ok is false. `timeout`: the archive script or git removal is still running in the background; ok stays true. `not-applicable`: nothing was removed (main-repo Pane, or an adopted worktree without --remove-worktree). Released CLIs decode exactly these values.";
2817
+ };
2818
+ readonly trashDeletion: {
2819
+ readonly enum: readonly ["pending", "done"];
2820
+ readonly description: "Present with worktreeCleanup `completed`. `pending`: the removed worktree was moved into the repository's .git/pane-trash and its files are still being deleted in the background. `done`: the files are gone.";
2573
2821
  };
2574
2822
  readonly worktreePath: {
2575
2823
  readonly type: "string";
@@ -2615,6 +2863,30 @@ export declare const RUNPANE_CONTRACT: {
2615
2863
  readonly additionalProperties: false;
2616
2864
  };
2617
2865
  };
2866
+ readonly reason: {
2867
+ readonly enum: readonly ["external-worktree", "main-repo", "missing-project-context", "git-error"];
2868
+ };
2869
+ readonly worktreeWillRemain: {
2870
+ readonly const: true;
2871
+ };
2872
+ readonly upstreamGone: {
2873
+ readonly type: "boolean";
2874
+ readonly description: "The branch had an upstream that no longer exists on the remote, so commits were compared with the base branch.";
2875
+ };
2876
+ readonly mergedViaPr: {
2877
+ readonly type: "object";
2878
+ readonly description: "A merged pull request whose head commit is HEAD. Its commits are not counted as unpushed.";
2879
+ readonly required: readonly ["number", "headOid"];
2880
+ readonly properties: {
2881
+ readonly number: {
2882
+ readonly type: "number";
2883
+ };
2884
+ readonly headOid: {
2885
+ readonly type: "string";
2886
+ };
2887
+ };
2888
+ readonly additionalProperties: false;
2889
+ };
2618
2890
  };
2619
2891
  readonly additionalProperties: false;
2620
2892
  };
@@ -2714,6 +2986,12 @@ export declare const RUNPANE_CONTRACT: {
2714
2986
  readonly additionalProperties: false;
2715
2987
  };
2716
2988
  };
2989
+ readonly reason: {
2990
+ readonly enum: readonly ["external-worktree", "main-repo", "missing-project-context", "git-error"];
2991
+ };
2992
+ readonly worktreeWillRemain: {
2993
+ readonly const: true;
2994
+ };
2717
2995
  };
2718
2996
  readonly additionalProperties: false;
2719
2997
  };
@@ -2767,6 +3045,12 @@ export declare const RUNPANE_CONTRACT: {
2767
3045
  readonly agentType: {
2768
3046
  readonly type: "string";
2769
3047
  };
3048
+ readonly agentDetection: {
3049
+ readonly enum: readonly ["declared", "command", "process", "screen"];
3050
+ };
3051
+ readonly launchCommand: {
3052
+ readonly type: "string";
3053
+ };
2770
3054
  readonly isCliPanel: {
2771
3055
  readonly type: "boolean";
2772
3056
  };
@@ -2779,6 +3063,9 @@ export declare const RUNPANE_CONTRACT: {
2779
3063
  readonly lastActiveAt: {
2780
3064
  readonly type: "string";
2781
3065
  };
3066
+ readonly report: {
3067
+ readonly $ref: "#/jsonSchemas/agentReport";
3068
+ };
2782
3069
  };
2783
3070
  readonly additionalProperties: false;
2784
3071
  };
@@ -3053,6 +3340,9 @@ export declare const RUNPANE_CONTRACT: {
3053
3340
  readonly hasUndeliveredText: {
3054
3341
  readonly type: "boolean";
3055
3342
  };
3343
+ readonly ghostText: {
3344
+ readonly type: "string";
3345
+ };
3056
3346
  };
3057
3347
  readonly additionalProperties: false;
3058
3348
  };
@@ -3075,6 +3365,9 @@ export declare const RUNPANE_CONTRACT: {
3075
3365
  readonly input: {
3076
3366
  readonly type: "string";
3077
3367
  };
3368
+ readonly asFilePointer: {
3369
+ readonly type: "boolean";
3370
+ };
3078
3371
  };
3079
3372
  readonly additionalProperties: false;
3080
3373
  };
@@ -3106,12 +3399,44 @@ export declare const RUNPANE_CONTRACT: {
3106
3399
  readonly verifiedSubmitted: {
3107
3400
  readonly type: "boolean";
3108
3401
  };
3402
+ readonly delivery: {
3403
+ readonly type: "object";
3404
+ readonly required: readonly ["state", "evidence"];
3405
+ readonly properties: {
3406
+ readonly state: {
3407
+ readonly enum: readonly ["taken", "queued", "in-composer", "unknown"];
3408
+ };
3409
+ readonly evidence: {
3410
+ readonly enum: readonly ["transcript", "screen", "argv"];
3411
+ };
3412
+ };
3413
+ readonly additionalProperties: false;
3414
+ };
3109
3415
  readonly sentAt: {
3110
3416
  readonly type: "string";
3111
3417
  };
3112
3418
  readonly blocked: {
3113
3419
  readonly $ref: "#/jsonSchemas/panelSubmitComposerResult/properties/blocked";
3114
3420
  };
3421
+ readonly promptFile: {
3422
+ readonly type: "string";
3423
+ };
3424
+ readonly warnings: {
3425
+ readonly type: "array";
3426
+ readonly items: {
3427
+ readonly type: "object";
3428
+ readonly required: readonly ["code", "message"];
3429
+ readonly properties: {
3430
+ readonly code: {
3431
+ readonly enum: readonly ["leading-bang-runs-shell", "leading-hash-memory", "leading-slash-command", "leading-at-mention"];
3432
+ };
3433
+ readonly message: {
3434
+ readonly type: "string";
3435
+ };
3436
+ };
3437
+ readonly additionalProperties: false;
3438
+ };
3439
+ };
3115
3440
  readonly nextCommand: {
3116
3441
  readonly type: "string";
3117
3442
  };
@@ -3212,6 +3537,60 @@ export declare const RUNPANE_CONTRACT: {
3212
3537
  };
3213
3538
  readonly additionalProperties: false;
3214
3539
  };
3540
+ readonly panelLastMessageResult: {
3541
+ readonly oneOf: readonly [{
3542
+ readonly type: "object";
3543
+ readonly required: readonly ["ok", "panelId", "paneId", "agentType", "text", "length", "limit", "truncated"];
3544
+ readonly properties: {
3545
+ readonly ok: {
3546
+ readonly const: true;
3547
+ };
3548
+ readonly panelId: {
3549
+ readonly type: "string";
3550
+ };
3551
+ readonly paneId: {
3552
+ readonly type: "string";
3553
+ };
3554
+ readonly agentType: {
3555
+ readonly enum: readonly ["claude", "codex"];
3556
+ };
3557
+ readonly text: {
3558
+ readonly type: "string";
3559
+ };
3560
+ readonly length: {
3561
+ readonly type: "number";
3562
+ };
3563
+ readonly limit: {
3564
+ readonly type: "number";
3565
+ };
3566
+ readonly truncated: {
3567
+ readonly type: "boolean";
3568
+ };
3569
+ };
3570
+ readonly additionalProperties: false;
3571
+ }, {
3572
+ readonly type: "object";
3573
+ readonly required: readonly ["ok", "panelId", "paneId", "reason", "message"];
3574
+ readonly properties: {
3575
+ readonly ok: {
3576
+ readonly const: false;
3577
+ };
3578
+ readonly panelId: {
3579
+ readonly type: "string";
3580
+ };
3581
+ readonly paneId: {
3582
+ readonly type: "string";
3583
+ };
3584
+ readonly reason: {
3585
+ readonly const: "transcript-unavailable";
3586
+ };
3587
+ readonly message: {
3588
+ readonly type: "string";
3589
+ };
3590
+ };
3591
+ readonly additionalProperties: false;
3592
+ }];
3593
+ };
3215
3594
  readonly agentDoctorResult: {
3216
3595
  readonly type: "object";
3217
3596
  readonly required: readonly ["ok", "agent", "command", "available", "checks"];
@@ -3410,43 +3789,117 @@ export declare const RUNPANE_CONTRACT: {
3410
3789
  };
3411
3790
  readonly additionalProperties: false;
3412
3791
  };
3792
+ readonly promptFile: {
3793
+ readonly type: "string";
3794
+ };
3795
+ readonly warnings: {
3796
+ readonly $ref: "#/jsonSchemas/panelSubmitResult/properties/warnings";
3797
+ };
3413
3798
  readonly nextCommand: {
3414
3799
  readonly type: "string";
3415
3800
  };
3416
3801
  };
3417
3802
  readonly additionalProperties: false;
3418
3803
  };
3419
- readonly panelSubmitComposerRequest: {
3804
+ readonly panelOpenRequest: {
3420
3805
  readonly type: "object";
3421
- readonly required: readonly ["panelId"];
3806
+ readonly required: readonly ["paneId"];
3422
3807
  readonly properties: {
3423
- readonly panelId: {
3808
+ readonly paneId: {
3424
3809
  readonly type: "string";
3425
3810
  };
3426
- readonly strategy: {
3427
- readonly enum: readonly ["auto", "codex-ctrl-enter", "enter", "tab"];
3811
+ readonly url: {
3812
+ readonly type: "string";
3813
+ };
3814
+ readonly filePath: {
3815
+ readonly type: "string";
3816
+ };
3817
+ readonly title: {
3818
+ readonly type: "string";
3819
+ };
3820
+ readonly placement: {
3821
+ readonly enum: readonly ["split", "tab"];
3822
+ };
3823
+ readonly noFocus: {
3824
+ readonly type: "boolean";
3825
+ };
3826
+ readonly focus: {
3827
+ readonly type: "boolean";
3828
+ };
3829
+ readonly source: {
3830
+ readonly enum: readonly ["user", "agent"];
3428
3831
  };
3429
3832
  };
3430
3833
  readonly additionalProperties: false;
3431
3834
  };
3432
- readonly panelSubmitComposerResult: {
3835
+ readonly panelOpenResult: {
3433
3836
  readonly type: "object";
3434
- readonly required: readonly ["ok", "panelId", "inputBytes", "strategy", "sequenceName", "verifiedSubmitted", "sentAt"];
3837
+ readonly required: readonly ["ok", "paneId", "panelId", "type", "title", "placement", "active", "reused"];
3435
3838
  readonly properties: {
3436
3839
  readonly ok: {
3437
- readonly type: "boolean";
3840
+ readonly const: true;
3438
3841
  };
3439
- readonly generation: {
3440
- readonly type: "number";
3842
+ readonly paneId: {
3843
+ readonly type: "string";
3441
3844
  };
3442
3845
  readonly panelId: {
3443
3846
  readonly type: "string";
3444
3847
  };
3445
- readonly paneId: {
3848
+ readonly type: {
3849
+ readonly enum: readonly ["browser", "editor"];
3850
+ };
3851
+ readonly title: {
3446
3852
  readonly type: "string";
3447
3853
  };
3448
- readonly inputBytes: {
3449
- readonly type: "number";
3854
+ readonly url: {
3855
+ readonly type: "string";
3856
+ };
3857
+ readonly filePath: {
3858
+ readonly type: "string";
3859
+ };
3860
+ readonly placement: {
3861
+ readonly enum: readonly ["split", "tab"];
3862
+ };
3863
+ readonly active: {
3864
+ readonly type: "boolean";
3865
+ };
3866
+ readonly reused: {
3867
+ readonly type: "boolean";
3868
+ };
3869
+ };
3870
+ readonly additionalProperties: false;
3871
+ };
3872
+ readonly panelSubmitComposerRequest: {
3873
+ readonly type: "object";
3874
+ readonly required: readonly ["panelId"];
3875
+ readonly properties: {
3876
+ readonly panelId: {
3877
+ readonly type: "string";
3878
+ };
3879
+ readonly strategy: {
3880
+ readonly enum: readonly ["auto", "codex-ctrl-enter", "enter", "tab"];
3881
+ };
3882
+ };
3883
+ readonly additionalProperties: false;
3884
+ };
3885
+ readonly panelSubmitComposerResult: {
3886
+ readonly type: "object";
3887
+ readonly required: readonly ["ok", "panelId", "inputBytes", "strategy", "sequenceName", "verifiedSubmitted", "sentAt"];
3888
+ readonly properties: {
3889
+ readonly ok: {
3890
+ readonly type: "boolean";
3891
+ };
3892
+ readonly generation: {
3893
+ readonly type: "number";
3894
+ };
3895
+ readonly panelId: {
3896
+ readonly type: "string";
3897
+ };
3898
+ readonly paneId: {
3899
+ readonly type: "string";
3900
+ };
3901
+ readonly inputBytes: {
3902
+ readonly type: "number";
3450
3903
  };
3451
3904
  readonly strategy: {
3452
3905
  readonly enum: readonly ["codex-ctrl-enter", "enter", "tab"];
@@ -3457,6 +3910,9 @@ export declare const RUNPANE_CONTRACT: {
3457
3910
  readonly verifiedSubmitted: {
3458
3911
  readonly type: "boolean";
3459
3912
  };
3913
+ readonly delivery: {
3914
+ readonly $ref: "#/jsonSchemas/panelSubmitResult/properties/delivery";
3915
+ };
3460
3916
  readonly sentAt: {
3461
3917
  readonly type: "string";
3462
3918
  };
@@ -3465,7 +3921,7 @@ export declare const RUNPANE_CONTRACT: {
3465
3921
  readonly required: readonly ["kind", "message"];
3466
3922
  readonly properties: {
3467
3923
  readonly kind: {
3468
- readonly enum: readonly ["codex-update", "agent-prompt", "submission_unverified", "unknown"];
3924
+ readonly enum: readonly ["codex-update", "agent-prompt", "submission_unverified", "composer-unknown", "unknown"];
3469
3925
  };
3470
3926
  readonly message: {
3471
3927
  readonly type: "string";
@@ -3545,9 +4001,207 @@ export declare const RUNPANE_CONTRACT: {
3545
4001
  readonly refreshedAt: {
3546
4002
  readonly type: "string";
3547
4003
  };
4004
+ readonly locks: {
4005
+ readonly type: "array";
4006
+ readonly items: {
4007
+ readonly $ref: "#/jsonSchemas/lockListResult/properties/locks/items";
4008
+ };
4009
+ };
4010
+ };
4011
+ readonly additionalProperties: false;
4012
+ };
4013
+ readonly lockListResult: {
4014
+ readonly type: "object";
4015
+ readonly required: readonly ["ok", "locks"];
4016
+ readonly properties: {
4017
+ readonly ok: {
4018
+ readonly const: true;
4019
+ };
4020
+ readonly locks: {
4021
+ readonly type: "array";
4022
+ readonly items: {
4023
+ readonly type: "object";
4024
+ readonly required: readonly ["name", "scope", "owner", "acquiredAt", "expiresAt", "ttlMs"];
4025
+ readonly properties: {
4026
+ readonly name: {
4027
+ readonly type: "string";
4028
+ readonly minLength: 1;
4029
+ };
4030
+ readonly scope: {
4031
+ readonly enum: readonly ["session", "global"];
4032
+ };
4033
+ readonly sessionId: {
4034
+ readonly type: "string";
4035
+ };
4036
+ readonly owner: {
4037
+ readonly type: "object";
4038
+ readonly required: readonly ["kind"];
4039
+ readonly properties: {
4040
+ readonly kind: {
4041
+ readonly enum: readonly ["pane", "external"];
4042
+ };
4043
+ readonly paneId: {
4044
+ readonly type: "string";
4045
+ };
4046
+ readonly panelId: {
4047
+ readonly type: "string";
4048
+ };
4049
+ readonly label: {
4050
+ readonly type: "string";
4051
+ };
4052
+ };
4053
+ readonly additionalProperties: false;
4054
+ };
4055
+ readonly note: {
4056
+ readonly type: "string";
4057
+ };
4058
+ readonly acquiredAt: {
4059
+ readonly type: "string";
4060
+ };
4061
+ readonly expiresAt: {
4062
+ readonly type: "string";
4063
+ };
4064
+ readonly ttlMs: {
4065
+ readonly type: "number";
4066
+ };
4067
+ };
4068
+ readonly additionalProperties: false;
4069
+ };
4070
+ };
3548
4071
  };
3549
4072
  readonly additionalProperties: false;
3550
4073
  };
4074
+ readonly lockAcquireRequest: {
4075
+ readonly type: "object";
4076
+ readonly required: readonly ["name", "ttlMs", "owner"];
4077
+ readonly properties: {
4078
+ readonly name: {
4079
+ readonly type: "string";
4080
+ readonly minLength: 1;
4081
+ };
4082
+ readonly ttlMs: {
4083
+ readonly type: "number";
4084
+ };
4085
+ readonly waitMs: {
4086
+ readonly type: "number";
4087
+ };
4088
+ readonly note: {
4089
+ readonly type: "string";
4090
+ };
4091
+ readonly owner: {
4092
+ readonly type: "object";
4093
+ readonly properties: {
4094
+ readonly paneId: {
4095
+ readonly type: "string";
4096
+ };
4097
+ readonly panelId: {
4098
+ readonly type: "string";
4099
+ };
4100
+ readonly label: {
4101
+ readonly type: "string";
4102
+ };
4103
+ };
4104
+ readonly additionalProperties: false;
4105
+ };
4106
+ };
4107
+ readonly additionalProperties: false;
4108
+ };
4109
+ readonly lockAcquireResult: {
4110
+ readonly oneOf: readonly [{
4111
+ readonly type: "object";
4112
+ readonly required: readonly ["ok", "acquired", "renewed", "waitedMs", "lock"];
4113
+ readonly properties: {
4114
+ readonly ok: {
4115
+ readonly const: true;
4116
+ };
4117
+ readonly acquired: {
4118
+ readonly const: true;
4119
+ };
4120
+ readonly renewed: {
4121
+ readonly type: "boolean";
4122
+ };
4123
+ readonly waitedMs: {
4124
+ readonly type: "number";
4125
+ };
4126
+ readonly lock: {
4127
+ readonly $ref: "#/jsonSchemas/lockListResult/properties/locks/items";
4128
+ };
4129
+ };
4130
+ readonly additionalProperties: false;
4131
+ }, {
4132
+ readonly type: "object";
4133
+ readonly required: readonly ["ok", "acquired", "timedOut", "waitedMs", "heldBy", "expiresAt", "lock"];
4134
+ readonly properties: {
4135
+ readonly ok: {
4136
+ readonly const: false;
4137
+ };
4138
+ readonly acquired: {
4139
+ readonly const: false;
4140
+ };
4141
+ readonly timedOut: {
4142
+ readonly type: "boolean";
4143
+ };
4144
+ readonly waitedMs: {
4145
+ readonly type: "number";
4146
+ };
4147
+ readonly heldBy: {
4148
+ readonly $ref: "#/jsonSchemas/lockListResult/properties/locks/items/properties/owner";
4149
+ };
4150
+ readonly expiresAt: {
4151
+ readonly type: "string";
4152
+ };
4153
+ readonly lock: {
4154
+ readonly $ref: "#/jsonSchemas/lockListResult/properties/locks/items";
4155
+ };
4156
+ };
4157
+ readonly additionalProperties: false;
4158
+ }];
4159
+ };
4160
+ readonly lockReleaseResult: {
4161
+ readonly oneOf: readonly [{
4162
+ readonly type: "object";
4163
+ readonly required: readonly ["ok", "released", "forced"];
4164
+ readonly properties: {
4165
+ readonly ok: {
4166
+ readonly const: true;
4167
+ };
4168
+ readonly released: {
4169
+ readonly type: "boolean";
4170
+ };
4171
+ readonly forced: {
4172
+ readonly type: "boolean";
4173
+ };
4174
+ readonly lock: {
4175
+ readonly $ref: "#/jsonSchemas/lockListResult/properties/locks/items";
4176
+ };
4177
+ };
4178
+ readonly additionalProperties: false;
4179
+ }, {
4180
+ readonly type: "object";
4181
+ readonly required: readonly ["ok", "released", "reason", "heldBy", "expiresAt", "lock"];
4182
+ readonly properties: {
4183
+ readonly ok: {
4184
+ readonly const: false;
4185
+ };
4186
+ readonly released: {
4187
+ readonly const: false;
4188
+ };
4189
+ readonly reason: {
4190
+ readonly const: "not-owner";
4191
+ };
4192
+ readonly heldBy: {
4193
+ readonly $ref: "#/jsonSchemas/lockListResult/properties/locks/items/properties/owner";
4194
+ };
4195
+ readonly expiresAt: {
4196
+ readonly type: "string";
4197
+ };
4198
+ readonly lock: {
4199
+ readonly $ref: "#/jsonSchemas/lockListResult/properties/locks/items";
4200
+ };
4201
+ };
4202
+ readonly additionalProperties: false;
4203
+ }];
4204
+ };
3551
4205
  readonly daemonActionResult: {
3552
4206
  readonly type: "object";
3553
4207
  readonly required: readonly ["ok"];
@@ -3720,6 +4374,9 @@ export declare const RUNPANE_CONTRACT: {
3720
4374
  readonly link: {
3721
4375
  readonly type: "string";
3722
4376
  };
4377
+ readonly report: {
4378
+ readonly $ref: "#/jsonSchemas/agentReport";
4379
+ };
3723
4380
  };
3724
4381
  readonly additionalProperties: false;
3725
4382
  };
@@ -3739,21 +4396,181 @@ export declare const RUNPANE_CONTRACT: {
3739
4396
  readonly delivered: {
3740
4397
  readonly type: "boolean";
3741
4398
  };
4399
+ readonly delivery: {
4400
+ readonly $ref: "#/jsonSchemas/panelSubmitResult/properties/delivery";
4401
+ };
3742
4402
  readonly blocked: {
3743
4403
  readonly type: "string";
3744
4404
  };
4405
+ readonly promptFile: {
4406
+ readonly type: "string";
4407
+ };
4408
+ readonly warnings: {
4409
+ readonly $ref: "#/jsonSchemas/panelSubmitResult/properties/warnings";
4410
+ };
3745
4411
  readonly next: {
3746
4412
  readonly type: "string";
3747
4413
  };
3748
4414
  };
3749
4415
  readonly additionalProperties: false;
3750
4416
  };
4417
+ readonly agentContextUnknownCommandError: {
4418
+ readonly type: "object";
4419
+ readonly required: readonly ["ok", "code", "message", "candidates"];
4420
+ readonly properties: {
4421
+ readonly ok: {
4422
+ readonly const: false;
4423
+ };
4424
+ readonly code: {
4425
+ readonly const: "unknown_command";
4426
+ };
4427
+ readonly message: {
4428
+ readonly type: "string";
4429
+ };
4430
+ readonly candidates: {
4431
+ readonly type: "array";
4432
+ readonly items: {
4433
+ readonly type: "string";
4434
+ };
4435
+ };
4436
+ };
4437
+ readonly additionalProperties: false;
4438
+ };
4439
+ readonly reportResult: {
4440
+ readonly type: "object";
4441
+ readonly required: readonly ["ok", "paneId", "panelId", "report", "sessionIds"];
4442
+ readonly properties: {
4443
+ readonly ok: {
4444
+ readonly const: true;
4445
+ };
4446
+ readonly generation: {
4447
+ readonly type: "number";
4448
+ };
4449
+ readonly paneId: {
4450
+ readonly type: "string";
4451
+ };
4452
+ readonly panelId: {
4453
+ readonly type: "string";
4454
+ };
4455
+ readonly report: {
4456
+ readonly $ref: "#/jsonSchemas/agentReport";
4457
+ };
4458
+ readonly sessionIds: {
4459
+ readonly type: "array";
4460
+ readonly items: {
4461
+ readonly type: "string";
4462
+ };
4463
+ };
4464
+ };
4465
+ readonly additionalProperties: false;
4466
+ };
4467
+ readonly paneArchiveBulkRequest: {
4468
+ readonly type: "object";
4469
+ readonly required: readonly ["sessionId", "merged"];
4470
+ readonly properties: {
4471
+ readonly sessionId: {
4472
+ readonly type: "string";
4473
+ };
4474
+ readonly merged: {
4475
+ readonly const: true;
4476
+ };
4477
+ readonly source: {
4478
+ readonly enum: readonly ["user", "agent"];
4479
+ };
4480
+ readonly dryRun: {
4481
+ readonly type: "boolean";
4482
+ };
4483
+ readonly removeWorktree: {
4484
+ readonly type: "boolean";
4485
+ };
4486
+ };
4487
+ readonly additionalProperties: false;
4488
+ };
4489
+ readonly paneArchiveBulkResult: {
4490
+ readonly type: "object";
4491
+ readonly required: readonly ["ok", "sessionId", "merged", "removeWorktree", "archived", "skipped", "failed", "items"];
4492
+ readonly properties: {
4493
+ readonly ok: {
4494
+ readonly type: "boolean";
4495
+ };
4496
+ readonly sessionId: {
4497
+ readonly type: "string";
4498
+ };
4499
+ readonly merged: {
4500
+ readonly const: true;
4501
+ };
4502
+ readonly dryRun: {
4503
+ readonly const: true;
4504
+ };
4505
+ readonly removeWorktree: {
4506
+ readonly type: "boolean";
4507
+ };
4508
+ readonly archived: {
4509
+ readonly type: "number";
4510
+ readonly description: "Panes archived, or that would be archived with --dry-run.";
4511
+ };
4512
+ readonly skipped: {
4513
+ readonly type: "number";
4514
+ };
4515
+ readonly failed: {
4516
+ readonly type: "number";
4517
+ };
4518
+ readonly items: {
4519
+ readonly type: "array";
4520
+ readonly items: {
4521
+ readonly type: "object";
4522
+ readonly required: readonly ["paneId", "outcome"];
4523
+ readonly properties: {
4524
+ readonly paneId: {
4525
+ readonly type: "string";
4526
+ };
4527
+ readonly name: {
4528
+ readonly type: "string";
4529
+ };
4530
+ readonly outcome: {
4531
+ readonly enum: readonly ["archived", "would-archive", "skipped", "failed"];
4532
+ };
4533
+ readonly skipped: {
4534
+ readonly type: "object";
4535
+ readonly required: readonly ["code", "message"];
4536
+ readonly properties: {
4537
+ readonly code: {
4538
+ readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown", "missing-pane", "already-archived", "main-repo"];
4539
+ };
4540
+ readonly message: {
4541
+ readonly type: "string";
4542
+ };
4543
+ };
4544
+ readonly additionalProperties: false;
4545
+ };
4546
+ readonly error: {
4547
+ readonly type: "string";
4548
+ };
4549
+ readonly safetyCheck: {
4550
+ readonly $ref: "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/safetyCheck";
4551
+ };
4552
+ readonly worktreeCleanup: {
4553
+ readonly $ref: "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/worktreeCleanup";
4554
+ };
4555
+ readonly trashDeletion: {
4556
+ readonly $ref: "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/trashDeletion";
4557
+ };
4558
+ readonly worktreePath: {
4559
+ readonly type: "string";
4560
+ };
4561
+ };
4562
+ readonly additionalProperties: false;
4563
+ };
4564
+ };
4565
+ };
4566
+ readonly additionalProperties: false;
4567
+ };
3751
4568
  };
3752
4569
  readonly agentContext: {
3753
4570
  readonly brief: {
3754
4571
  readonly title: "Pane agent context";
3755
4572
  readonly 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.";
3756
- readonly rules: readonly ["Start with `runpane doctor --json` to understand wrapper, platform, daemon reachability, and the next safe commands before mutating Pane state.", "In a Pane repository checkout, if `runpane` is not on PATH, use the built local wrapper with Node 22, for example `PATH=/opt/homebrew/opt/node@22/bin:$PATH node packages/runpane/dist/cli.js doctor --json`.", "Happy path for any user request to use Pane/RunPane: run `runpane doctor --json`, read `runpane agent-context --json`, resolve or add the saved base repo, create the requested visible Pane with a complete command such as `runpane panes create --repo <repo> --name <name> --agent <agent> --prompt \"<task>\" --source agent --no-focus --wait-ready --yes --json` (the new Pane is pinned by default; add `--no-pinned` for a throwaway Pane, or use `--tool-command <command>` instead of `--agent <agent>`), then validate with `panels wait` or `panels screen`. For long-lived supervision, use `runpane watch --follow` instead of polling wait or screen.", "Treat Pane as the user's visible cockpit for watching/co-driving work. Do not create Panes or panels for private delegation unless the user asked for visible Pane orchestration or the result should appear in the Pane app.", "Register the saved base repository once with `repos add`; do not register a pre-created worktree as a separate repo unless the user explicitly asks.", "Use `panes create` for separate visible Panes (Pane sessions) for feature/PR work. Pane creates and owns the worktree/branch for each new Pane.", "Use `panels create` for reviewer/helper/clean-context tabs that should stay inside an existing Pane and share that Pane's worktree.", "For private background decomposition, use your normal subagent/worktree mechanism instead of Pane.", "Skill routing: Pane's skills live in `<PANE_DIR>/skills/pane-chat/skills/`, and the Pane Chat entry point is `<PANE_DIR>/skills/pane-chat/pane-orchestrator/SKILL.md`; read the skill that matches the request, such as `discussion`, `create-ticket`, `tdd`, `prepare-pr`, or `review`.", "When an agent creates Panes or panels, pass `--source agent --no-focus --wait-ready --yes --json` unless the user explicitly wants focus moved; `panes create` pins the new Pane into the UI's favorite/pin set by default, so no follow-up `panes pin` call is needed and `--no-pinned` is the opt-out for throwaway Panes.", "Use `runpane agent-context --json` for the full agent-facing CLI context, or `runpane agent-context --command <command> --json` for one detailed command definition.", "For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.", "Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.", "If WSL cannot reach Pane or `runpane` resolves to a broken Windows shim, the user may be running Windows Pane; try `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane doctor --json'`.", "If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.", "Use `runpane agents doctor --agent <codex|claude|cursor> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.", "Use `runpane panes create --wait-ready` to create Panes and validate initial terminal readiness in one call.", "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. Use `panels submit` to send and submit a new turn. Use `panels submit-composer --strategy auto` only for a composer that was filled separately.", "Use `runpane panels input` only when exact bytes are required, such as Ctrl-C or handcrafted terminal input.", "Pane terminals draw inline images: sixel, iTerm2 inline images, and the kitty graphics protocol. Tools that need kitty graphics, such as terminal-browser and terminal-doom, run inside a Pane panel; `runpane doctor --json` reports the exact list under `terminal.graphicsProtocols`.", "After creating Panes or sending terminal input, validate with `panels wait` or bounded `panels screen` before reporting success. For ongoing supervision, `runpane watch --follow` is the canonical monitor."];
4573
+ readonly rules: readonly ["Start with `runpane doctor --json` to understand wrapper, platform, daemon reachability, and the next safe commands before mutating Pane state.", "In a Pane repository checkout, if `runpane` is not on PATH, use the built local wrapper with Node 22, for example `PATH=/opt/homebrew/opt/node@22/bin:$PATH node packages/runpane/dist/cli.js doctor --json`.", "Happy path for any user request to use Pane/RunPane: run `runpane doctor --json`, read `runpane agent-context --json`, resolve or add the saved base repo, create the requested visible Pane with a complete command such as `runpane panes create --repo <repo> --name <name> --agent <agent> --prompt \"<task>\" --source agent --no-focus --wait-ready --yes --json` (the new Pane is pinned by default; add `--no-pinned` for a throwaway Pane, add `--base-branch <ref>` to branch from something other than the repository default, or use `--tool-command <command>` instead of `--agent <agent>`), then validate with `panels wait` or `panels screen`. For long-lived supervision, use `runpane watch --follow` instead of polling wait or screen.", "Treat Pane as the user's visible cockpit for watching/co-driving work. Do not create Panes or panels for private delegation unless the user asked for visible Pane orchestration or the result should appear in the Pane app.", "Register the saved base repository once with `repos add`; do not register a pre-created worktree as a separate repo unless the user explicitly asks.", "Use `panes create` for separate visible Panes (Pane sessions) for feature/PR work. Pane creates and owns the worktree/branch for each new Pane.", "Use `panels create` for reviewer/helper/clean-context tabs that should stay inside an existing Pane and share that Pane's worktree.", "For private background decomposition, use your normal subagent/worktree mechanism instead of Pane.", "Skill routing: Pane's skills live in `<PANE_DIR>/skills/pane-chat/skills/`, and the Pane Chat entry point is `<PANE_DIR>/skills/pane-chat/pane-orchestrator/SKILL.md`; read the skill that matches the request, such as `discussion`, `create-ticket`, `tdd`, `prepare-pr`, or `review`.", "When an agent creates Panes or panels, pass `--source agent --no-focus --wait-ready --yes --json` unless the user explicitly wants focus moved; `panes create` pins the new Pane into the UI's favorite/pin set by default, so no follow-up `panes pin` call is needed and `--no-pinned` is the opt-out for throwaway Panes.", "Use `runpane agent-context --json` for the full agent-facing CLI context, or `runpane agent-context --command <command> --json` for one detailed command definition.", "For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.", "Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.", "If WSL cannot reach Pane or `runpane` resolves to a broken Windows shim, the user may be running Windows Pane; try `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane doctor --json'`.", "If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.", "Use `runpane agents doctor --agent <codex|claude|cursor> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.", "Use `runpane panes create --wait-ready` to create Panes and validate initial terminal readiness in one call.", "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. Use `panels submit` to send and submit a new turn. Use `panels submit-composer --strategy auto` only for a composer that was filled separately.", "Use `runpane panels input` only when exact bytes are required, such as Ctrl-C or handcrafted terminal input.", "Pane terminals draw inline images: sixel, iTerm2 inline images, and the kitty graphics protocol. Tools that need kitty graphics, such as terminal-browser and terminal-doom, run inside a Pane panel; `runpane doctor --json` reports the exact list under `terminal.graphicsProtocols`.", "After creating Panes or sending terminal input, validate with `panels wait` or bounded `panels screen` before reporting success. For ongoing supervision, `runpane watch --follow` is the canonical monitor.", "When several agents share one resource, such as a test account, name a lock in their prompts: each worker runs `runpane lock acquire --name <name> --ttl 30m --wait 1800000 --json` before using it and `runpane lock release --name <name>` after."];
3757
4574
  readonly detailCommand: "runpane agent-context --command <command> [--json]";
3758
4575
  readonly tools: readonly [{
3759
4576
  readonly name: "doctor";
@@ -3789,8 +4606,8 @@ export declare const RUNPANE_CONTRACT: {
3789
4606
  readonly arguments: readonly ["--repo <selector>", "--name <name>", "--agent <codex|claude|cursor>", "--tool-command <command>", "--prompt <text>", "--initial-input-file <path|->", "--from-json <path|->", "--source <user|agent>", "--pinned", "--no-pinned", "--no-associate", "--no-focus", "--focus", "--wait-ready", "--ready-timeout-ms <ms>", "--concurrency <count>", "--yes", "--json"];
3790
4607
  }, {
3791
4608
  readonly name: "panes archive";
3792
- readonly summary: "Archive a Pane exactly like the UI Archive action, including safe removal of its Pane-managed git worktree.";
3793
- readonly arguments: readonly ["--pane <pane-id>", "--source <user|agent>", "--force", "--dry-run", "--yes", "--json"];
4609
+ readonly summary: "Archive a Pane exactly like the UI Archive action, including safe removal of its Pane-managed git worktree, or archive every merged Pane in a Session.";
4610
+ readonly arguments: readonly ["--pane <pane-id>", "--session <id|name>", "--merged", "--source <user|agent>", "--force", "--remove-worktree", "--dry-run", "--yes", "--json"];
3794
4611
  }, {
3795
4612
  readonly name: "panes pin";
3796
4613
  readonly summary: "Declaratively pin a Pane (the Pane UI's favorite/pin star) without changing focus.";
@@ -3811,6 +4628,10 @@ export declare const RUNPANE_CONTRACT: {
3811
4628
  readonly name: "panels create";
3812
4629
  readonly summary: "Create reviewer/helper terminal tabs inside an existing Pane; they share that Pane's worktree.";
3813
4630
  readonly arguments: readonly ["--pane <pane-id>", "--agent <codex|claude|cursor>", "--tool-command <command>", "--source <user|agent>", "--no-focus", "--focus", "--wait-ready", "--yes", "--json"];
4631
+ }, {
4632
+ readonly name: "panels open";
4633
+ readonly summary: "Show the user an HTML page, plan, report, dev server URL, or file as a tab in split view beside the agent.";
4634
+ readonly arguments: readonly ["--pane <pane-id>", "--url <url>", "--file <path>", "--title <title>", "--split", "--tab", "--no-focus", "--source <user|agent>", "--yes", "--json"];
3814
4635
  }, {
3815
4636
  readonly name: "panels list";
3816
4637
  readonly summary: "List tool panels inside a Pane session.";
@@ -3841,8 +4662,8 @@ export declare const RUNPANE_CONTRACT: {
3841
4662
  readonly arguments: readonly ["--panel <panel-id>", "--for <condition>", "--contains <text>", "--timeout-ms <ms>", "--interval-ms <ms>", "--json", "--pane-dir <path>"];
3842
4663
  }, {
3843
4664
  readonly name: "watch";
3844
- readonly summary: "Wait for workspace transitions (READY, BLOCKED, IDLE, STUCK, NEW, GONE, EXIT) from the daemon journal without polling; responsive by default, with opt-in cadence flags for expensive consumers.";
3845
- readonly arguments: readonly ["--follow", "--self-test", "--kinds <kind,...>", "--settle <ms>", "--blocked-settle <ms>", "--min-interval <ms>", "--idle-backoff", "--json"];
4665
+ readonly summary: "Wait for workspace transitions (READY, BLOCKED, IDLE, STUCK, NEW, GONE, EXIT, JOINED, LEFT, PR) from the daemon journal without polling; responsive by default, with opt-in cadence flags for expensive consumers.";
4666
+ readonly arguments: readonly ["--follow", "--session <id|name>", "--self-test", "--kinds <kind,...>", "--settle <ms>", "--blocked-settle <ms>", "--min-interval <ms>", "--idle-backoff", "--json"];
3846
4667
  }];
3847
4668
  };
3848
4669
  readonly commands: {
@@ -3935,6 +4756,11 @@ export declare const RUNPANE_CONTRACT: {
3935
4756
  readonly value: "<path>";
3936
4757
  readonly required: false;
3937
4758
  readonly description: "Ignored for version; retained only for parser compatibility.";
4759
+ }, {
4760
+ readonly name: "--pane-dir";
4761
+ readonly value: "<path>";
4762
+ readonly required: false;
4763
+ readonly description: "Accepted and ignored, so one --pane-dir can be passed to every runpane command.";
3938
4764
  }];
3939
4765
  readonly examples: readonly ["runpane version", "runpane --version"];
3940
4766
  readonly notes: readonly [];
@@ -4037,8 +4863,8 @@ export declare const RUNPANE_CONTRACT: {
4037
4863
  readonly description: "Print machine-readable output.";
4038
4864
  }];
4039
4865
  readonly examples: readonly ["runpane agent-context", "runpane agent-context --command \"panes create\" --json"];
4040
- readonly jsonSchemas: readonly ["agentContextBriefResult", "agentContextCommandResult"];
4041
- readonly notes: readonly ["Default output is brief so AGENTS.md can point here without bloating context.", "`--command` accepts canonical spaced names and common copied forms, including `panes.create` and `runpane panes create`."];
4866
+ readonly jsonSchemas: readonly ["agentContextBriefResult", "agentContextCommandResult", "agentContextUnknownCommandError"];
4867
+ readonly notes: readonly ["Default output is brief so AGENTS.md can point here without bloating context.", "`--command` accepts canonical spaced names and common copied forms, including `panes.create` and `runpane panes create`.", "An unknown `--command` exits 2. With `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout, where `candidates` lists the closest command names first; without `--json` the same candidates go to stderr.", "`--pane-dir <path>` is accepted and ignored, so one `--pane-dir` can be passed to every runpane command."];
4042
4868
  };
4043
4869
  readonly mcp: {
4044
4870
  readonly name: "mcp";
@@ -4140,7 +4966,7 @@ export declare const RUNPANE_CONTRACT: {
4140
4966
  }];
4141
4967
  readonly examples: readonly ["runpane panes list --repo active --json"];
4142
4968
  readonly jsonSchemas: readonly ["paneListResult"];
4143
- readonly notes: readonly ["Without --repo, this lists sessions across saved Pane repositories."];
4969
+ readonly notes: readonly ["Without --repo, this lists sessions across saved Pane repositories.", "`status` is `running` while any terminal panel is live, otherwise the stored lifecycle value. `agentState` is the most urgent state of the live agent panels: `blocked`, `working`, `ready`, or `none`. `agentStatus` (`active`/`idle`) is kept for older clients."];
4144
4970
  };
4145
4971
  readonly "panes cost": {
4146
4972
  readonly name: "panes cost";
@@ -4188,16 +5014,41 @@ export declare const RUNPANE_CONTRACT: {
4188
5014
  readonly value: "<name>";
4189
5015
  readonly required: true;
4190
5016
  readonly description: "Pane/session name.";
5017
+ }, {
5018
+ readonly name: "--base-branch";
5019
+ readonly value: "<branch>";
5020
+ readonly required: false;
5021
+ readonly description: "Branch the new worktree from this ref (for example origin/main or release/2.4) instead of the repository default.";
5022
+ }, {
5023
+ readonly name: "--worktree-name";
5024
+ readonly value: "<name>";
5025
+ readonly required: false;
5026
+ readonly description: "Worktree and branch name; defaults to --name. Characters outside [a-z0-9-] are removed.";
4191
5027
  }, {
4192
5028
  readonly name: "--agent";
4193
5029
  readonly value: "<codex|claude|cursor>";
4194
5030
  readonly required: false;
4195
- readonly description: "Built-in agent terminal template to open.";
5031
+ readonly description: "Built-in agent terminal template to open. With --tool-command, the agent that command runs.";
4196
5032
  }, {
4197
5033
  readonly name: "--tool-command";
4198
5034
  readonly value: "<command>";
4199
5035
  readonly required: false;
4200
5036
  readonly description: "Custom terminal command to run instead of a built-in agent.";
5037
+ }, {
5038
+ readonly name: "--base-branch";
5039
+ readonly value: "<ref>";
5040
+ readonly required: false;
5041
+ readonly description: "Ref to branch from, such as origin/main or release/foo. --base is an alias.";
5042
+ }, {
5043
+ readonly name: "--branch";
5044
+ readonly value: "<name>";
5045
+ readonly required: false;
5046
+ readonly description: "Exact new branch name, slashes included (for example agents/w5a). Fails if the branch exists; never renamed to be unique. Defaults to the worktree name.";
5047
+ }, {
5048
+ readonly name: "--worktree-name";
5049
+ readonly value: "<name>";
5050
+ readonly required: false;
5051
+ readonly description: "Worktree directory name; defaults to --name.";
4201
5052
  }, {
4202
5053
  readonly name: "--prompt";
4203
5054
  readonly value: "<text>";
@@ -4207,7 +5058,11 @@ export declare const RUNPANE_CONTRACT: {
4207
5058
  readonly name: "--initial-input-file";
4208
5059
  readonly value: "<path|->";
4209
5060
  readonly required: false;
4210
- readonly description: "Read initial input from a file or stdin.";
5061
+ readonly description: "Read initial input from a file or stdin. --prompt-file is an alias.";
5062
+ }, {
5063
+ readonly name: "--as-file-pointer";
5064
+ readonly required: false;
5065
+ readonly description: "Write the prompt or text to a private file under the Pane directory and send the one line `Read and follow <path>` instead.";
4211
5066
  }, {
4212
5067
  readonly name: "--from-json";
4213
5068
  readonly value: "<path|->";
@@ -4264,10 +5119,15 @@ export declare const RUNPANE_CONTRACT: {
4264
5119
  readonly value: "<count>";
4265
5120
  readonly required: false;
4266
5121
  readonly description: "Accepted for compatibility. Pane currently serializes multi-pane session creation so queued jobs do not time out before starting.";
5122
+ }, {
5123
+ readonly name: "--pane-dir";
5124
+ readonly value: "<path>";
5125
+ readonly required: false;
5126
+ readonly description: "Connect to a specific Pane data directory.";
4267
5127
  }];
4268
- readonly examples: readonly ["runpane panes create --repo active --name issue-257 --agent <agent> --prompt \"Plan this issue\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --from-json panes.json --yes --json", "runpane panes create --repo active --name issue-123 --agent <agent> --prompt \"Plan this issue\" --source agent --no-focus --wait-ready --yes --json"];
5128
+ readonly examples: readonly ["runpane panes create --repo active --name issue-257 --agent <agent> --prompt \"Plan this issue\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --repo active --name w5a --base origin/main --branch agents/w5a --agent <agent> --prompt-file prompt.md --source agent --no-focus --wait-ready --yes --json", "runpane panes create --from-json panes.json --yes --json", "runpane panes create --repo active --name issue-123 --agent <agent> --prompt \"Plan this issue\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --repo active --name issue-123 --agent claude --initial-input-file brief.md --as-file-pointer --source agent --no-focus --wait-ready --yes --json"];
4269
5129
  readonly jsonSchemas: readonly ["paneCreateRequest", "paneCreateResult"];
4270
- readonly notes: readonly ["At least one of --agent or --tool-command is required unless --from-json is used.", "`panes create` is for user-visible Pane orchestration, not the agent's default private delegation mechanism.", "Register the saved base repository once. Pane creates and owns the worktree/branch for each new Pane.", "Use `panels create` instead when a reviewer/helper should share an existing Pane's worktree.", "Agent-created Panes should pass `--source agent --no-focus --wait-ready --yes --json` unless the user explicitly wants focus moved. `panes create` pins the new Pane by default, so a follow-up `panes pin` call is unnecessary; pass `--no-pinned` for throwaway shells or bulk imports. `--pinned` is still accepted and is now a no-op. 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.", "The built-in agent templates come from the runpane contract; custom terminal commands can pass agent-specific flags when requested by the user.", "Use --initial-input-file for multi-line prompts or shell-sensitive initial input.", "With --wait-ready, verifiedSubmitted is earned from delivery evidence; routing initial input alone does not imply verified submission.", "If initialInput.blocked.kind is submission_unverified, do not submit again automatically. Inspect initialInput.staged and attempts, then run nextCommand to resolve the ambiguous composer state.", "When the JSON result includes nextCommand, run it to validate that the terminal produced output before reporting success.", "Multi-pane requests are created sequentially today. The --concurrency flag is accepted for compatibility, but agents should not rely on parallel creation.", "For POSIX or WSL command chaining, use a custom terminal command like `bash -lc 'cmd1 && cmd2 && cmd3'`.", "For Windows PowerShell command chaining, use a custom terminal command like `powershell -NoProfile -Command \"cmd1; if ($LASTEXITCODE) { exit $LASTEXITCODE }; cmd2\"`.", "From WSL with Windows Pane, invoke through PowerShell and select the saved WSL repo by name or id, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane panes create --repo \"WSL Pane\" --name issue-123 --agent <agent> --prompt \"Plan this issue\" --source agent --no-focus --wait-ready --yes --json'`.", "Use --wait-ready when an agent needs to verify that an agent terminal started instead of only creating a pane.", "If readiness returns blocked, inspect blocked.suggestedCommand rather than guessing which prompt to answer."];
5130
+ readonly notes: readonly ["At least one of --agent or --tool-command is required unless --from-json is used.", "`panes create` is for user-visible Pane orchestration, not the agent's default private delegation mechanism.", "Register the saved base repository once. Pane creates and owns the worktree/branch for each new Pane.", "`panes create --base <ref> --branch <name> --prompt-file <file>` replaces `git worktree add` plus `panes adopt`: Pane creates the worktree on exactly that branch name. `--branch` is checked with `git check-ref-format --branch` and fails if the branch already exists; `--worktree-name` still names the directory.", "Use `panels create` instead when a reviewer/helper should share an existing Pane's worktree.", "Agent-created Panes should pass `--source agent --no-focus --wait-ready --yes --json` unless the user explicitly wants focus moved. `panes create` pins the new Pane by default, so a follow-up `panes pin` call is unnecessary; pass `--no-pinned` for throwaway shells or bulk imports. `--pinned` is still accepted and is now a no-op. 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.", "The built-in agent templates come from the runpane contract; custom terminal commands can pass agent-specific flags when requested by the user.", "Use --initial-input-file for multi-line prompts or shell-sensitive initial input. A long or multi-line prompt is never typed into the shell: on bash, zsh or sh the agent launches with `\"$(cat '<prompt file>')\"` reading a private copy under `<pane-dir>/prompts/<pane-id>/`; on PowerShell, cmd, fish or WSL the prompt is pasted into the agent's composer once it is ready.", "`--as-file-pointer` writes the text to `<pane-dir>/prompts/<pane-id>/<timestamp>.md` (readable only by you) and sends the one line `Read and follow <path>`; the result includes `promptFile`. Prefer it for long prompts.", "For Claude, text starting with `!`, `#`, `/` or `@` is sent unchanged and the result carries a `warnings` entry (for example `leading-bang-runs-shell`), because Claude Code gives those characters a meaning of its own.", "With --wait-ready, `initialInput.delivery` reports `taken`, `queued`, `in-composer` or `unknown` with its evidence (`transcript`, `screen`, or `argv` for a prompt passed at launch); verifiedSubmitted is true for `taken` or `queued`. Routing initial input alone does not imply verified submission.", "If initialInput.blocked.kind is submission_unverified, do not submit again automatically. Inspect initialInput.staged and attempts, then run nextCommand to resolve the ambiguous composer state.", "When the JSON result includes nextCommand, run it to validate that the terminal produced output before reporting success.", "Multi-pane requests are created sequentially today. The --concurrency flag is accepted for compatibility, but agents should not rely on parallel creation.", "For POSIX or WSL command chaining, use a custom terminal command like `bash -lc 'cmd1 && cmd2 && cmd3'`.", "For Windows PowerShell command chaining, use a custom terminal command like `powershell -NoProfile -Command \"cmd1; if ($LASTEXITCODE) { exit $LASTEXITCODE }; cmd2\"`.", "From WSL with Windows Pane, invoke through PowerShell and select the saved WSL repo by name or id, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane panes create --repo \"WSL Pane\" --name issue-123 --agent <agent> --prompt \"Plan this issue\" --source agent --no-focus --wait-ready --yes --json'`.", "Use --wait-ready when an agent needs to verify that an agent terminal started instead of only creating a pane.", "If readiness returns blocked, inspect blocked.suggestedCommand rather than guessing which prompt to answer.", "With --tool-command, --agent names the agent the command runs (a wrapper such as `agent-farm run`): Pane launches the command unchanged and treats the panel as that agent. Without --agent, Pane detects Claude Code, Codex and Cursor from the foreground process or the agent's screen."];
4271
5131
  };
4272
5132
  readonly "panes adopt": {
4273
5133
  readonly name: "panes adopt";
@@ -4293,8 +5153,13 @@ export declare const RUNPANE_CONTRACT: {
4293
5153
  }, {
4294
5154
  readonly name: "--agent";
4295
5155
  readonly value: "<codex|claude|cursor>";
4296
- readonly required: true;
4297
- readonly description: "Agent whose terminal to create.";
5156
+ readonly required: false;
5157
+ readonly description: "Agent whose terminal to create; with --tool-command, the agent that command runs.";
5158
+ }, {
5159
+ readonly name: "--tool-command";
5160
+ readonly value: "<command>";
5161
+ readonly required: false;
5162
+ readonly description: "Custom command to stage or launch instead of a built-in agent, such as a wrapper that runs one.";
4298
5163
  }, {
4299
5164
  readonly name: "--resume";
4300
5165
  readonly value: "<id>";
@@ -4308,7 +5173,26 @@ export declare const RUNPANE_CONTRACT: {
4308
5173
  }, {
4309
5174
  readonly name: "--launch";
4310
5175
  readonly required: false;
4311
- readonly description: "Run the resume command immediately.";
5176
+ readonly description: "Run the agent (or its resume command) immediately.";
5177
+ }, {
5178
+ readonly name: "--prompt";
5179
+ readonly value: "<text>";
5180
+ readonly required: false;
5181
+ readonly description: "Alias for --initial-input; sent once the launched agent is ready. Requires --launch.";
5182
+ }, {
5183
+ readonly name: "--prompt-file";
5184
+ readonly value: "<path|->";
5185
+ readonly required: false;
5186
+ readonly description: "Alias for --initial-input-file; read the prompt from a file or stdin. Requires --launch.";
5187
+ }, {
5188
+ readonly name: "--wait-ready";
5189
+ readonly required: false;
5190
+ readonly description: "Wait for the launched agent to be ready and the prompt submitted before returning. Requires --launch.";
5191
+ }, {
5192
+ readonly name: "--ready-timeout-ms";
5193
+ readonly value: "<ms>";
5194
+ readonly required: false;
5195
+ readonly description: "Readiness timeout; defaults to 30000.";
4312
5196
  }, {
4313
5197
  readonly name: "--no-pinned";
4314
5198
  readonly required: false;
@@ -4329,22 +5213,27 @@ export declare const RUNPANE_CONTRACT: {
4329
5213
  readonly name: "--json";
4330
5214
  readonly required: false;
4331
5215
  readonly description: "Print machine-readable output.";
5216
+ }, {
5217
+ readonly name: "--pane-dir";
5218
+ readonly value: "<path>";
5219
+ readonly required: false;
5220
+ readonly description: "Connect to a specific Pane data directory.";
4332
5221
  }];
4333
- readonly examples: readonly ["runpane panes adopt --repo active --path /path/to/worktree --name imported --agent codex --resume <id> --yes --json"];
5222
+ readonly examples: readonly ["runpane panes adopt --repo active --path /path/to/worktree --name imported --agent codex --resume <id> --yes --json", "runpane panes adopt --repo active --path /path/to/worktree --name imported --tool-command \"agent-farm run free-range\" --agent claude --launch --yes --json", "runpane panes adopt --repo active --path /path/to/worktree --name imported --agent claude --launch --prompt-file prompt.md --wait-ready --yes --json"];
4334
5223
  readonly jsonSchemas: readonly ["paneCreateResult"];
4335
- readonly notes: readonly ["The resume command is staged without Enter unless --launch is passed.", "Pane never removes an externally owned worktree."];
5224
+ readonly notes: readonly ["The resume command is staged without Enter unless --launch is passed.", "Archiving never deletes an adopted worktree unless `runpane panes archive --remove-worktree` is used.", "One of --agent or --tool-command is required.", "With --tool-command, --agent names the agent the command runs (a wrapper such as `agent-farm run`): Pane launches the command unchanged and treats the panel as that agent. Without --agent, Pane detects Claude Code, Codex and Cursor from the foreground process or the agent's screen.", "--resume needs a built-in agent command; a wrapper command resumes its own way.", "The adopted Pane reports `status: running` in `panes list` while its terminal is live.", "A prompt (--prompt, --initial-input, --prompt-file, --initial-input-file) or --wait-ready needs --launch; without it adopt fails instead of dropping the prompt.", "With --launch the result carries the same readiness, initialInput, and nextCommand fields as panes create. With --resume the prompt goes to the resumed conversation's composer once the agent is ready.", "To start new work on a named branch, prefer `panes create --base <ref> --branch <name>` over `git worktree add` plus adopt."];
4336
5225
  };
4337
5226
  readonly "panes archive": {
4338
5227
  readonly name: "panes archive";
4339
- readonly summary: "Archive a Pane (session) exactly like the UI Archive action, including safe removal of its Pane-managed git worktree.";
4340
- readonly details: "Use this to close out a Pane once its PR has merged. The safety check refreshes the configured upstream before comparing it to HEAD and includes exact unpushed commit IDs and subjects. Refuses unsafe archive operations unless --force is used. Use --dry-run to inspect the same evidence without mutating Pane state.";
5228
+ readonly summary: "Archive a Pane (session) exactly like the UI Archive action, including safe removal of its Pane-managed git worktree, or archive every merged Pane in a Session.";
5229
+ readonly details: "Use this to close out a Pane once its PR has merged. The safety check refreshes the configured upstream before comparing it to HEAD and includes exact unpushed commit IDs and subjects. When the branch has no upstream or its upstream is gone (GitHub deletes merged branches), a merged pull request whose head is HEAD counts as pushed, so squash-merged branches archive without --force. Refuses unsafe archive operations unless --force is used. Use --dry-run to inspect the same evidence without mutating Pane state. Use --session <id|name> --merged to close out every finished Pane of a Session at once.";
4341
5230
  readonly requiresPaneDaemon: true;
4342
5231
  readonly mutates: true;
4343
5232
  readonly arguments: readonly [{
4344
5233
  readonly name: "--pane";
4345
5234
  readonly value: "<pane-id>";
4346
- readonly required: true;
4347
- readonly description: "Pane/session id to archive.";
5235
+ readonly required: false;
5236
+ readonly description: "Pane/session id to archive. Required unless --session is used.";
4348
5237
  }, {
4349
5238
  readonly name: "--source";
4350
5239
  readonly value: "<user|agent>";
@@ -4354,6 +5243,19 @@ export declare const RUNPANE_CONTRACT: {
4354
5243
  readonly name: "--force";
4355
5244
  readonly required: false;
4356
5245
  readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes.";
5246
+ }, {
5247
+ readonly name: "--remove-worktree";
5248
+ readonly required: false;
5249
+ readonly description: "Also check and remove an adopted Pane's worktree. Pane-managed worktrees are always removed; the local branch is always kept.";
5250
+ }, {
5251
+ readonly name: "--session";
5252
+ readonly value: "<id|name>";
5253
+ readonly required: false;
5254
+ readonly description: "Archive the Panes associated with this named Session instead of one Pane. Requires --merged.";
5255
+ }, {
5256
+ readonly name: "--merged";
5257
+ readonly required: false;
5258
+ readonly description: "With --session, archive only Panes that are clean and pushed, or merged via a pull request; skip the rest with a reason.";
4357
5259
  }, {
4358
5260
  readonly name: "--yes";
4359
5261
  readonly required: false;
@@ -4366,10 +5268,15 @@ export declare const RUNPANE_CONTRACT: {
4366
5268
  readonly name: "--json";
4367
5269
  readonly required: false;
4368
5270
  readonly description: "Print machine-readable output.";
5271
+ }, {
5272
+ readonly name: "--pane-dir";
5273
+ readonly value: "<path>";
5274
+ readonly required: false;
5275
+ readonly description: "Connect to a specific Pane data directory.";
4369
5276
  }];
4370
- readonly examples: readonly ["runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes archive --pane <pane-id> --dry-run --json", "runpane panes archive --pane <pane-id> --force --yes --json"];
4371
- readonly jsonSchemas: readonly ["paneArchiveRequest", "paneArchiveResult"];
4372
- readonly notes: readonly ["If the result has ok:false with a blocked field, the pane was NOT archived; inspect blocked.code and rerun with --force if discarding the flagged work is intentional.", "Inspect safetyCheck.unpushedCommitDetails for exact commit IDs and subjects; upstreamRefreshed confirms the tracking ref was refreshed first.", "A --dry-run result sets dryRun:true and wouldArchive without deleting the Pane or its worktree.", "A successful archive waits for the Pane-managed worktree to be removed before returning; check worktreeCleanup in the result for the final outcome.", "Archiving a main-repo Pane (no Pane-managed worktree) always succeeds immediately since nothing is deleted from disk.", "Undo an archive with `runpane panes restore --pane <pane-id> --yes`, which recreates the worktree. `runpane links create --pane <pane-id>` gives the user a link to review the Pane first."];
5277
+ readonly examples: readonly ["runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes archive --pane <pane-id> --dry-run --json", "runpane panes archive --pane <pane-id> --remove-worktree --yes --json", "runpane panes archive --session <id|name> --merged --dry-run --json", "runpane panes archive --session <id|name> --merged --remove-worktree --yes --json", "runpane panes archive --pane <pane-id> --force --yes --json"];
5278
+ readonly jsonSchemas: readonly ["paneArchiveRequest", "paneArchiveBulkRequest", "paneArchiveResult", "paneArchiveBulkResult"];
5279
+ readonly notes: readonly ["If the result has ok:false with a blocked field, the pane was NOT archived; inspect blocked.code and rerun with --force if discarding the flagged work is intentional.", "Inspect safetyCheck.unpushedCommitDetails for exact commit IDs and subjects; upstreamRefreshed confirms the tracking ref was refreshed first.", "A --dry-run result sets dryRun:true and wouldArchive without deleting the Pane or its worktree.", "A successful archive reports worktreeCleanup `completed` once the worktree is gone from its path and from git. trashDeletion `pending` means a large worktree (for example one with node_modules) is still being deleted from .git/pane-trash in the background; that is still ok:true. `timeout` (also ok:true) means removal is still running; only `failed` sets ok:false.", "safetyCheck.mergedViaPr names the merged PR whose head is HEAD; it needs an authenticated `gh`. Without it, a squash-merged branch whose remote branch was deleted reports unpushed-commits.", "An adopted Pane (panes adopt) keeps its worktree unless --remove-worktree is passed. `panes restore` does not recreate a removed adopted worktree; the local branch is kept, so `git worktree add <path> <branch>` brings it back.", "With --session --merged, each item has outcome archived, would-archive (dry run), skipped (with skipped.code and skipped.message), or failed.", "Archiving a main-repo Pane (no Pane-managed worktree) always succeeds immediately since nothing is deleted from disk.", "Undo an archive with `runpane panes restore --pane <pane-id> --yes`, which recreates the worktree. `runpane links create --pane <pane-id>` gives the user a link to review the Pane first.", "When the safety check is skipped, `safetyCheck.reason` says why: `external-worktree` (an adopted Pane whose worktree Pane does not own), `main-repo`, `missing-project-context`, or `git-error`. `worktreeWillRemain: true` means archiving leaves the worktree on disk."];
4373
5280
  };
4374
5281
  readonly "panes pin": {
4375
5282
  readonly name: "panes pin";
@@ -4394,6 +5301,11 @@ export declare const RUNPANE_CONTRACT: {
4394
5301
  readonly name: "--json";
4395
5302
  readonly required: false;
4396
5303
  readonly description: "Print machine-readable output.";
5304
+ }, {
5305
+ readonly name: "--pane-dir";
5306
+ readonly value: "<path>";
5307
+ readonly required: false;
5308
+ readonly description: "Connect to a specific Pane data directory.";
4397
5309
  }];
4398
5310
  readonly examples: readonly ["runpane panes pin --pane <pane-id> --yes --json", "runpane panes pin --pane <pane-id> --dry-run --json"];
4399
5311
  readonly jsonSchemas: readonly ["panePinRequest", "panePinResult"];
@@ -4422,6 +5334,11 @@ export declare const RUNPANE_CONTRACT: {
4422
5334
  readonly name: "--json";
4423
5335
  readonly required: false;
4424
5336
  readonly description: "Print machine-readable output.";
5337
+ }, {
5338
+ readonly name: "--pane-dir";
5339
+ readonly value: "<path>";
5340
+ readonly required: false;
5341
+ readonly description: "Connect to a specific Pane data directory.";
4425
5342
  }];
4426
5343
  readonly examples: readonly ["runpane panes unpin --pane <pane-id> --yes --json", "runpane panes unpin --pane <pane-id> --dry-run --json"];
4427
5344
  readonly jsonSchemas: readonly ["panePinRequest", "panePinResult"];
@@ -4455,6 +5372,11 @@ export declare const RUNPANE_CONTRACT: {
4455
5372
  readonly name: "--json";
4456
5373
  readonly required: false;
4457
5374
  readonly description: "Print machine-readable output including the updated pane.";
5375
+ }, {
5376
+ readonly name: "--pane-dir";
5377
+ readonly value: "<path>";
5378
+ readonly required: false;
5379
+ readonly description: "Connect to a specific Pane data directory.";
4458
5380
  }];
4459
5381
  readonly examples: readonly ["runpane panes rename --pane <pane-id> --name issue-393 --yes --json", "runpane panes rename --pane <pane-id> --name issue-393 --dry-run --json"];
4460
5382
  readonly jsonSchemas: readonly ["paneRenameRequest", "paneRenameResult"];
@@ -4489,6 +5411,11 @@ export declare const RUNPANE_CONTRACT: {
4489
5411
  readonly name: "--json";
4490
5412
  readonly required: false;
4491
5413
  readonly description: "Print machine-readable output.";
5414
+ }, {
5415
+ readonly name: "--pane-dir";
5416
+ readonly value: "<path>";
5417
+ readonly required: false;
5418
+ readonly description: "Connect to a specific Pane data directory.";
4492
5419
  }];
4493
5420
  readonly examples: readonly ["runpane panes focus --pane <pane-id> --source user --yes --json", "runpane panes focus --pane <pane-id> --panel <panel-id> --source user --yes --json"];
4494
5421
  readonly jsonSchemas: readonly ["paneFocusRequest", "paneFocusResult"];
@@ -4517,7 +5444,7 @@ export declare const RUNPANE_CONTRACT: {
4517
5444
  }];
4518
5445
  readonly examples: readonly ["runpane panels list --pane <pane-id> --json"];
4519
5446
  readonly jsonSchemas: readonly ["panelListResult"];
4520
- readonly notes: readonly ["The ids returned here are stable inputs for `panels output` and `panels input`."];
5447
+ readonly notes: readonly ["The ids returned here are stable inputs for `panels output` and `panels input`.", "`agentType` is the agent Pane treats the panel as; `agentDetection` says how it knows (`declared`, `command`, `process`, or `screen`), and `launchCommand` is the command the panel was launched with."];
4521
5448
  };
4522
5449
  readonly "panels output": {
4523
5450
  readonly name: "panels output";
@@ -4651,12 +5578,12 @@ export declare const RUNPANE_CONTRACT: {
4651
5578
  }];
4652
5579
  readonly examples: readonly ["runpane panels screen --panel <panel-id> --limit 80 --json"];
4653
5580
  readonly jsonSchemas: readonly ["panelScreenResult"];
4654
- readonly notes: readonly ["Use this before `panels output` when an agent only needs the latest visible/current state.", "The composer object reports whether a Claude or Codex composer is present and whether it holds undelivered text. Claude's dim placeholder suggestion does not count as undelivered text.", "If hasMore is true and context is missing, rerun with a larger --limit or use `panels output`."];
5581
+ readonly notes: readonly ["Use this before `panels output` when an agent only needs the latest visible/current state.", "The composer object reports whether a Claude or Codex composer is present and whether it holds undelivered text. Placeholder and suggestion text (drawn dim or grey, such as Claude's suggested next prompt) does not count as undelivered text; `composer.ghostText` carries it, and text output marks its line with `⟨suggestion⟩`.", "If hasMore is true and context is missing, rerun with a larger --limit or use `panels output`."];
4655
5582
  };
4656
5583
  readonly "panels submit": {
4657
5584
  readonly name: "panels submit";
4658
5585
  readonly summary: "Send and submit text to a terminal panel, including idle agent composers.";
4659
- readonly 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 an idle Codex composer, Pane stages the text, waits for Codex paste handling, sends the Codex submit sequence, and verifies that the turn started when visible evidence is available. Other terminals receive a normalized CR Enter. Exact byte workflows remain on `panels input`.";
5586
+ readonly 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`.";
4660
5587
  readonly requiresPaneDaemon: true;
4661
5588
  readonly mutates: true;
4662
5589
  readonly arguments: readonly [{
@@ -4674,6 +5601,10 @@ export declare const RUNPANE_CONTRACT: {
4674
5601
  readonly value: "<path|->";
4675
5602
  readonly required: false;
4676
5603
  readonly description: "Read text from a file or stdin before Enter.";
5604
+ }, {
5605
+ readonly name: "--as-file-pointer";
5606
+ readonly required: false;
5607
+ readonly description: "Write the prompt or text to a private file under the Pane directory and send the one line `Read and follow <path>` instead.";
4677
5608
  }, {
4678
5609
  readonly name: "--yes";
4679
5610
  readonly required: false;
@@ -4688,9 +5619,9 @@ export declare const RUNPANE_CONTRACT: {
4688
5619
  readonly required: false;
4689
5620
  readonly description: "Connect to a specific Pane data directory.";
4690
5621
  }];
4691
- readonly examples: readonly ["runpane panels submit --panel <panel-id> --text \"2\" --yes --json", "printf \"echo hello\" | runpane panels submit --panel <panel-id> --input-file - --yes --json"];
5622
+ readonly examples: readonly ["runpane panels submit --panel <panel-id> --text \"2\" --yes --json", "printf \"echo hello\" | runpane panels submit --panel <panel-id> --input-file - --yes --json", "runpane panels submit --panel <panel-id> --input-file brief.md --as-file-pointer --yes --json"];
4692
5623
  readonly jsonSchemas: readonly ["panelSubmitRequest", "panelSubmitResult"];
4693
- readonly notes: readonly ["The response includes sequenceName, verifiedSubmitted, and nextCommand. If ok is false, inspect blocked and do not assume the turn started.", "Do not follow `panels submit` with `panels submit-composer`; Claude and idle Codex composer submission is handled atomically.", "Use `panels input` for Ctrl-C, escape sequences, or any workflow requiring exact bytes."];
5624
+ readonly notes: readonly ["The response includes sequenceName, verifiedSubmitted, delivery and nextCommand. For Claude and Codex, `delivery.state` is `taken` (the agent started a turn with the text), `queued` (it holds the text until its current turn ends), `in-composer` (the text is still in the composer) or `unknown`, and `delivery.evidence` is `transcript` (the agent's own transcript) or `screen`. verifiedSubmitted is true for `taken` or `queued`; never resend those. If ok is false, inspect blocked and do not assume the turn started.", "Do not follow `panels submit` with `panels submit-composer`; Claude and Codex composer submission is handled atomically.", "Use `panels input` for Ctrl-C, escape sequences, or any workflow requiring exact bytes.", "On `blocked.kind: composer-unknown`, nothing was typed. Check `panels screen`; if the agent is at a prompt Pane does not recognise, use `panels input`.", "For Claude, text starting with `!`, `#`, `/` or `@` is sent unchanged and the result carries a `warnings` entry (for example `leading-bang-runs-shell`), because Claude Code gives those characters a meaning of its own.", "`--as-file-pointer` writes the text to `<pane-dir>/prompts/<pane-id>/<timestamp>.md` (readable only by you) and sends the one line `Read and follow <path>`; the result includes `promptFile`. Prefer it for long prompts."];
4694
5625
  };
4695
5626
  readonly "panels wait": {
4696
5627
  readonly name: "panels wait";
@@ -4722,7 +5653,37 @@ export declare const RUNPANE_CONTRACT: {
4722
5653
  readonly name: "--interval-ms";
4723
5654
  readonly value: "<ms>";
4724
5655
  readonly required: false;
4725
- readonly description: "Polling interval; defaults to 500.";
5656
+ readonly description: "Polling interval; defaults to 500.";
5657
+ }, {
5658
+ readonly name: "--json";
5659
+ readonly required: false;
5660
+ readonly description: "Print machine-readable output.";
5661
+ }, {
5662
+ readonly name: "--pane-dir";
5663
+ readonly value: "<path>";
5664
+ readonly required: false;
5665
+ readonly description: "Connect to a specific Pane data directory.";
5666
+ }];
5667
+ readonly examples: readonly ["runpane panels wait --panel <panel-id> --for ready --timeout-ms 30000 --json", "runpane panels wait --panel <panel-id> --contains \"Ready\" --json"];
5668
+ readonly jsonSchemas: readonly ["panelWaitResult"];
5669
+ readonly notes: readonly ["If blocked is present, do not assume success. Use blocked.suggestedCommand or inspect `panels screen`.", "The default timeout and screen are intentionally small for agent context safety."];
5670
+ };
5671
+ readonly "panels last-message": {
5672
+ readonly name: "panels last-message";
5673
+ readonly summary: "Read an agent's last reply from its transcript, without scraping the screen.";
5674
+ readonly details: "Use this when a worker is READY and you need what it said, such as its PR number or result. It reads the Claude or Codex transcript Pane found for the panel and never falls back to the screen.";
5675
+ readonly requiresPaneDaemon: true;
5676
+ readonly mutates: false;
5677
+ readonly arguments: readonly [{
5678
+ readonly name: "--panel";
5679
+ readonly value: "<panel-id>";
5680
+ readonly required: true;
5681
+ readonly description: "Agent panel id.";
5682
+ }, {
5683
+ readonly name: "--limit";
5684
+ readonly value: "<count>";
5685
+ readonly required: false;
5686
+ readonly description: "Maximum characters to return; defaults to 20000. The end of the reply is kept.";
4726
5687
  }, {
4727
5688
  readonly name: "--json";
4728
5689
  readonly required: false;
@@ -4733,9 +5694,9 @@ export declare const RUNPANE_CONTRACT: {
4733
5694
  readonly required: false;
4734
5695
  readonly description: "Connect to a specific Pane data directory.";
4735
5696
  }];
4736
- readonly examples: readonly ["runpane panels wait --panel <panel-id> --for ready --timeout-ms 30000 --json", "runpane panels wait --panel <panel-id> --contains \"Ready\" --json"];
4737
- readonly jsonSchemas: readonly ["panelWaitResult"];
4738
- readonly notes: readonly ["If blocked is present, do not assume success. Use blocked.suggestedCommand or inspect `panels screen`.", "The default timeout and screen are intentionally small for agent context safety."];
5697
+ readonly examples: readonly ["runpane panels last-message --panel <panel-id> --json"];
5698
+ readonly jsonSchemas: readonly ["panelLastMessageResult"];
5699
+ readonly notes: readonly ["Without a transcript (a shell panel, another agent, or no reply yet) the result is `{ ok: false, reason: \"transcript-unavailable\" }` and the command exits 1. Use `panels screen` then.", "A worker that ran `runpane report` already handed back its state, PR, head, and summary; read those with `agents status` before reading the whole reply."];
4739
5700
  };
4740
5701
  readonly "panels create": {
4741
5702
  readonly name: "panels create";
@@ -4752,7 +5713,7 @@ export declare const RUNPANE_CONTRACT: {
4752
5713
  readonly name: "--agent";
4753
5714
  readonly value: "<codex|claude|cursor>";
4754
5715
  readonly required: false;
4755
- readonly description: "Built-in agent command template to launch.";
5716
+ readonly description: "Built-in agent command template to launch. With --tool-command, the agent that command runs.";
4756
5717
  }, {
4757
5718
  readonly name: "--tool-command";
4758
5719
  readonly value: "<command>";
@@ -4773,6 +5734,10 @@ export declare const RUNPANE_CONTRACT: {
4773
5734
  readonly value: "<path|->";
4774
5735
  readonly required: false;
4775
5736
  readonly description: "Read initial input from a file or stdin.";
5737
+ }, {
5738
+ readonly name: "--as-file-pointer";
5739
+ readonly required: false;
5740
+ readonly description: "Write the prompt or text to a private file under the Pane directory and send the one line `Read and follow <path>` instead.";
4776
5741
  }, {
4777
5742
  readonly name: "--source";
4778
5743
  readonly value: "<user|agent>";
@@ -4803,10 +5768,75 @@ export declare const RUNPANE_CONTRACT: {
4803
5768
  readonly name: "--json";
4804
5769
  readonly required: false;
4805
5770
  readonly description: "Print machine-readable output.";
5771
+ }, {
5772
+ readonly name: "--pane-dir";
5773
+ readonly value: "<path>";
5774
+ readonly required: false;
5775
+ readonly description: "Connect to a specific Pane data directory.";
4806
5776
  }];
4807
- readonly examples: readonly ["runpane panels create --pane <pane-id> --agent <agent> --source agent --no-focus --wait-ready --yes --json", "runpane panels create --pane <pane-id> --tool-command <command> --title <title> --source agent --no-focus --wait-ready --yes --json"];
5777
+ readonly examples: readonly ["runpane panels create --pane <pane-id> --agent <agent> --source agent --no-focus --wait-ready --yes --json", "runpane panels create --pane <pane-id> --tool-command <command> --title <title> --source agent --no-focus --wait-ready --yes --json", "runpane panels create --pane <pane-id> --tool-command \"agent-farm run free-range\" --agent claude --source agent --no-focus --wait-ready --yes --json"];
4808
5778
  readonly jsonSchemas: readonly ["panelCreateRequest", "panelCreateResult"];
4809
- readonly notes: readonly ["Use this for same-pane reviewer loops after PR creation/testing.", "Panels share the existing Pane's worktree and branch.", "`panels create` is for visible helper/reviewer tabs, not the agent's default private delegation mechanism.", "For agent-created panels, prefer --source agent or --no-focus to avoid stealing focus from the user or implementation tab."];
5779
+ readonly notes: readonly ["Use this for same-pane reviewer loops after PR creation/testing.", "Panels share the existing Pane's worktree and branch.", "`panels create` is for visible helper/reviewer tabs, not the agent's default private delegation mechanism.", "For agent-created panels, prefer --source agent or --no-focus to avoid stealing focus from the user or implementation tab.", "With --tool-command, --agent names the agent the command runs (a wrapper such as `agent-farm run`): Pane launches the command unchanged and treats the panel as that agent. Without --agent, Pane detects Claude Code, Codex and Cursor from the foreground process or the agent's screen."];
5780
+ };
5781
+ readonly "panels open": {
5782
+ readonly name: "panels open";
5783
+ readonly summary: "Open a URL or file as a browser/editor tab in a Pane, in split view beside the agent by default.";
5784
+ readonly details: "Opens a tab inside a Pane (default: the Pane of the calling panel, from PANE_SESSION_ID). Use it to show the user an HTML page, plan, report, local dev server, or file beside the conversation. --url opens a browser tab (http, https, or file). --file opens a file inside the Pane worktree: .html/.htm files render in a browser tab, other files open in an editor tab. Tabs open in split view beside the agent by default; --tab keeps them in the current group. An existing tab showing the same URL or file is reused. Never raises or focuses the Pane window.";
5785
+ readonly requiresPaneDaemon: true;
5786
+ readonly mutates: true;
5787
+ readonly arguments: readonly [{
5788
+ readonly name: "--pane";
5789
+ readonly value: "<pane-id>";
5790
+ readonly required: false;
5791
+ readonly description: "Pane to open the tab in; defaults to PANE_SESSION_ID (the calling panel's Pane, including a Session orchestrator's).";
5792
+ }, {
5793
+ readonly name: "--url";
5794
+ readonly value: "<url>";
5795
+ readonly required: false;
5796
+ readonly description: "http(s) or file URL to open in a browser tab. Pass exactly one of --url or --file.";
5797
+ }, {
5798
+ readonly name: "--file";
5799
+ readonly value: "<path>";
5800
+ readonly required: false;
5801
+ readonly description: "File inside the Pane worktree, relative or absolute. .html/.htm renders in a browser tab; other files open in an editor tab.";
5802
+ }, {
5803
+ readonly name: "--title";
5804
+ readonly value: "<title>";
5805
+ readonly required: false;
5806
+ readonly description: "Tab title override.";
5807
+ }, {
5808
+ readonly name: "--split";
5809
+ readonly required: false;
5810
+ readonly description: "Open in split view beside the primary tab group (default).";
5811
+ }, {
5812
+ readonly name: "--tab";
5813
+ readonly required: false;
5814
+ readonly description: "Open in the current tab group instead of split view.";
5815
+ }, {
5816
+ readonly name: "--no-focus";
5817
+ readonly required: false;
5818
+ readonly description: "Open the tab without selecting it.";
5819
+ }, {
5820
+ readonly name: "--focus";
5821
+ readonly required: false;
5822
+ readonly description: "Select the tab (default). Never raises or focuses the Pane window.";
5823
+ }, {
5824
+ readonly name: "--source";
5825
+ readonly value: "<user|agent>";
5826
+ readonly required: false;
5827
+ readonly description: "Mutation source.";
5828
+ }, {
5829
+ readonly name: "--yes";
5830
+ readonly required: false;
5831
+ readonly description: "Skip confirmation for this mutating command.";
5832
+ }, {
5833
+ readonly name: "--json";
5834
+ readonly required: false;
5835
+ readonly description: "Print machine-readable output.";
5836
+ }];
5837
+ readonly examples: readonly ["runpane panels open --file plan.html --source agent --yes --json", "runpane panels open --url http://localhost:3000 --source agent --yes --json", "runpane panels open --pane <pane-id> --file src/app.ts --tab --source agent --yes --json"];
5838
+ readonly jsonSchemas: readonly ["panelOpenRequest", "panelOpenResult"];
5839
+ readonly notes: readonly ["Prefer this over opening the system browser when showing the user a page, plan, report, or dev server.", "Write plans and reports as self-contained HTML files, then open them with --file; rerunning the command on the same file reuses its tab.", "Opening a tab does not steal window focus; use `panes focus` only on explicit user request."];
4810
5840
  };
4811
5841
  readonly "panels submit-composer": {
4812
5842
  readonly name: "panels submit-composer";
@@ -4832,10 +5862,15 @@ export declare const RUNPANE_CONTRACT: {
4832
5862
  readonly name: "--json";
4833
5863
  readonly required: false;
4834
5864
  readonly description: "Print machine-readable output.";
5865
+ }, {
5866
+ readonly name: "--pane-dir";
5867
+ readonly value: "<path>";
5868
+ readonly required: false;
5869
+ readonly description: "Connect to a specific Pane data directory.";
4835
5870
  }];
4836
5871
  readonly examples: readonly ["runpane panels submit-composer --panel <codex-panel-id> --strategy auto --yes --json", "runpane panels submit-composer --panel <panel-id> --strategy enter --yes --json"];
4837
5872
  readonly jsonSchemas: readonly ["panelSubmitComposerRequest", "panelSubmitComposerResult"];
4838
- readonly notes: readonly ["Use `panels input` or `panels submit` to write prompt text first; this command only submits the current composer.", "Use --strategy auto for agent workflows; explicit strategies are diagnostic escape hatches.", "The JSON result includes sequenceName and verifiedSubmitted. If ok is false, follow blocked.suggestedCommand instead of assuming submission happened."];
5873
+ readonly notes: readonly ["Use `panels input` or `panels submit` to write prompt text first; this command only submits the current composer.", "Use --strategy auto for agent workflows; explicit strategies are diagnostic escape hatches.", "The JSON result includes sequenceName, verifiedSubmitted and, for Claude and Codex, delivery (`taken`, `queued`, `in-composer` or `unknown`, with `transcript` or `screen` evidence). If ok is false, follow blocked.suggestedCommand instead of assuming submission happened.", "With `--strategy auto`, if the staged text is still visible in the composer after the first attempt, Pane retries once and checks again: Tab for working Codex, Enter otherwise. It never retries an empty composer."];
4839
5874
  };
4840
5875
  readonly "workspace state": {
4841
5876
  readonly name: "workspace state";
@@ -4852,6 +5887,11 @@ export declare const RUNPANE_CONTRACT: {
4852
5887
  readonly name: "--json";
4853
5888
  readonly required: false;
4854
5889
  readonly description: "Print machine-readable output.";
5890
+ }, {
5891
+ readonly name: "--pane-dir";
5892
+ readonly value: "<path>";
5893
+ readonly required: false;
5894
+ readonly description: "Connect to a specific Pane data directory.";
4855
5895
  }];
4856
5896
  readonly examples: readonly ["runpane workspace state --json"];
4857
5897
  readonly notes: readonly ["The response carries the daemon epoch and current journal generation."];
@@ -4866,7 +5906,7 @@ export declare const RUNPANE_CONTRACT: {
4866
5906
  readonly name: "--as";
4867
5907
  readonly value: "<consumer-name>";
4868
5908
  readonly required: false;
4869
- readonly description: "Use a persisted named cursor (at-least-once delivery). Default: PANE_PANEL_ID under --follow when set, otherwise anonymous.";
5909
+ readonly description: "Use a persisted named cursor (at-least-once delivery): 1-128 letters, numbers, dots, underscores, or hyphens (daemons before this release accept 64). Default under --follow: session-<uuid> with --session (session-<name> for a name; shortened to session-<sha256 prefix> when longer than 64 characters), else PANE_PANEL_ID when set, shortened to panel-<sha256 prefix> when it is longer than 64 characters; otherwise anonymous.";
4870
5910
  }, {
4871
5911
  readonly name: "--since";
4872
5912
  readonly value: "<generation>";
@@ -4890,7 +5930,7 @@ export declare const RUNPANE_CONTRACT: {
4890
5930
  readonly name: "--heartbeat";
4891
5931
  readonly value: "<seconds>";
4892
5932
  readonly required: false;
4893
- readonly description: "Healthy-silence bound; a HEARTBEAT line proves the watcher is alive. Default 60 under --follow, 0 otherwise. Filter it out of any monitor that wakes an agent.";
5933
+ readonly description: "Healthy-silence bound; a HEARTBEAT line proves the watcher is alive. Default 60 under --follow, 0 otherwise. Any monitor that wakes an agent should pass --quiet, which drops it.";
4894
5934
  }, {
4895
5935
  readonly name: "--idle-after";
4896
5936
  readonly value: "<milliseconds>";
@@ -4900,17 +5940,17 @@ export declare const RUNPANE_CONTRACT: {
4900
5940
  readonly name: "--settle";
4901
5941
  readonly value: "<milliseconds>";
4902
5942
  readonly required: false;
4903
- readonly description: "Opt-in (follow only): emit READY only after the panel stays idle this long; a BUSY, BLOCKED, UNKNOWN, EXIT, or GONE inside the window cancels it silently. Default 0. Use when a pane flips idle/working while it waits on subagents; the orchestrator value is 180000.";
5943
+ readonly description: "Opt-in (follow only): emit READY only after the panel stays idle this long; a BUSY, BLOCKED, UNKNOWN, EXIT, or GONE inside the window cancels it silently. Default 0. Use when a pane flips idle/working while it waits on subagents; the unattended orchestrator value is 180000, the user-present value 60000.";
4904
5944
  }, {
4905
5945
  readonly name: "--blocked-settle";
4906
5946
  readonly value: "<milliseconds>";
4907
5947
  readonly required: false;
4908
- readonly description: "Opt-in (follow only): emit BLOCKED only after this window; an in-pane answer inside it cancels the line. Default 0. The orchestrator value is 30000.";
5948
+ readonly description: "Opt-in (follow only): emit BLOCKED only after this window; an in-pane answer inside it cancels the line. Default 0. The unattended orchestrator value is 30000, the user-present value 15000.";
4909
5949
  }, {
4910
5950
  readonly name: "--min-interval";
4911
5951
  readonly value: "<milliseconds>";
4912
5952
  readonly required: false;
4913
- readonly description: "Opt-in (follow only): hold READY, IDLE, NEW, GONE, EXIT, and UNKNOWN lines and flush them together at most once per interval; BLOCKED bypasses it and carries the held lines with it. Default 0. The orchestrator value is 600000.";
5953
+ readonly description: "Opt-in (follow only): hold READY, IDLE, NEW, GONE, EXIT, and UNKNOWN lines and flush them together at most once per interval; BLOCKED, REPORT, pr.conflicted, and failed pr.checks bypass it and carry the held lines with them. Default 0. The unattended orchestrator value is 600000, the user-present value 120000.";
4914
5954
  }, {
4915
5955
  readonly name: "--idle-backoff";
4916
5956
  readonly required: false;
@@ -4919,12 +5959,17 @@ export declare const RUNPANE_CONTRACT: {
4919
5959
  readonly name: "--kinds";
4920
5960
  readonly required: false;
4921
5961
  readonly value: "<kind,...>";
4922
- readonly description: "Limit event kinds: agent.ready, agent.busy, agent.blocked, agent.unknown, agent.idle, pane.created, pane.gone, panel.exited. Default all. Drop agent.busy for any consumer that acts on lines; BUSY carries no action.";
5962
+ readonly description: "Limit event kinds: agent.ready, agent.busy, agent.blocked, agent.unknown, agent.idle, pane.created, pane.gone, panel.exited, agent.report, pane.associated, pane.detached, pr.conflicted, pr.checks, pr.merged. agent.report arrives only when listed explicitly. Default all, except that pane.associated, pane.detached, and the pr.* kinds arrive only when listed here or implied by --session. Drop agent.busy for any consumer that acts on lines; BUSY carries no action.";
4923
5963
  }, {
4924
5964
  readonly name: "--pane";
4925
5965
  readonly required: false;
4926
5966
  readonly value: "<pane-id>";
4927
- readonly description: "Limit to a Pane; repeatable. Default all managed panes.";
5967
+ readonly description: "Limit to a Pane; repeatable. Default all managed panes. Cannot be combined with --session.";
5968
+ }, {
5969
+ readonly name: "--session";
5970
+ readonly required: false;
5971
+ readonly value: "<id|name>";
5972
+ readonly description: "Follow every Pane associated with a named Session (id or exact name). The daemon re-reads membership on every read, so a Pane associated after arming is included and a detached or archived Pane drops out without a re-arm. The Session's own orchestrator panels are never reported. Cannot be combined with --pane or --all-managed; an unknown Session fails.";
4928
5973
  }, {
4929
5974
  readonly name: "--exclude-pane";
4930
5975
  readonly required: false;
@@ -4947,7 +5992,7 @@ export declare const RUNPANE_CONTRACT: {
4947
5992
  }, {
4948
5993
  readonly name: "--all-managed";
4949
5994
  readonly required: false;
4950
- readonly description: "Explicit spelling for the all-managed default scope.";
5995
+ readonly description: "Explicit spelling of the default scope: every non-archived, non-hidden managed Pane. Cannot be combined with --pane.";
4951
5996
  }, {
4952
5997
  readonly name: "--include-shells";
4953
5998
  readonly required: false;
@@ -4969,22 +6014,36 @@ export declare const RUNPANE_CONTRACT: {
4969
6014
  }, {
4970
6015
  readonly name: "--include-held-input";
4971
6016
  readonly required: false;
4972
- readonly description: "Include up to 120 characters of unsubmitted composer text in JSON entries. Default off (presence only).";
6017
+ readonly description: "Include up to 120 characters of unsubmitted composer text in JSON entries. Default off: under --follow, JSON entries carry only heldInputPresent: true.";
4973
6018
  }, {
4974
6019
  readonly name: "--no-held-input";
4975
6020
  readonly required: false;
4976
- readonly description: "Disable redacted STUCK detection in lines follow mode.";
6021
+ readonly description: "Disable redacted held-input detection under --follow: no STUCK lines, and no heldInputPresent in JSON.";
4977
6022
  }, {
4978
6023
  readonly name: "--self-test";
4979
6024
  readonly required: false;
4980
6025
  readonly description: "Probe the watch path anonymously without advancing a named cursor; run it before arming --follow.";
6026
+ }, {
6027
+ readonly name: "--quiet";
6028
+ readonly required: false;
6029
+ readonly description: "Drop the control lines that only prove liveness: WATCH OK, HEARTBEAT, and WATCH RECONNECTED (_ok, _heartbeat, _reconnected in JSON). WATCH ERROR/_error, RESET/_reset, and DROPPED/_dropped always print, and --self-test still prints its WATCH OK result. Alias: --no-control-lines.";
4981
6030
  }, {
4982
6031
  readonly name: "--json";
4983
6032
  readonly required: false;
4984
6033
  readonly description: "Emit structured NDJSON; held-input content remains opt-in.";
6034
+ }, {
6035
+ readonly name: "--pane-dir";
6036
+ readonly value: "<path>";
6037
+ readonly required: false;
6038
+ readonly description: "Connect to a specific Pane data directory.";
6039
+ }, {
6040
+ readonly name: "--pane-dir";
6041
+ readonly value: "<path>";
6042
+ readonly required: false;
6043
+ readonly description: "Connect to a specific Pane data directory.";
4985
6044
  }];
4986
- readonly examples: readonly ["runpane watch --self-test", "runpane watch --follow", "runpane watch --as monitor --follow --json", "runpane watch --follow --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff"];
4987
- readonly notes: readonly ["Defaults stay responsive: no settle, no batching, all kinds, IDLE every --idle-after. Cadence flags are opt-in for expensive consumers and require --follow.", "Recommended orchestrator invocation (what Pane Chat arms automatically): runpane watch --self-test, then runpane watch --follow --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff. Budget: about 6 wake-ups per active pane per hour worst case, usually 1-3.", "BUSY carries no action; drop it with --kinds. HEARTBEAT is client-side proof of life, is never shaped by cadence flags, and should be filtered out of any monitor that wakes an agent.", "STUCK means real unsubmitted composer text. An agent prompt suggestion (for example a grey Try \"...\" hint) never counts.", "Dead watch: judge death by a non-zero exit or a WATCH ERROR line, not by silence. Re-arm once; if it dies again, file runpane doctor --report.", "Cadence state is held per named consumer; an anonymous --follow with a cadence flag names itself follow-<pid>. Held lines survive a reconnect of the same consumer; a changed filter re-delivers them under the new filter.", "Journal loss is surfaced through reset and dropped metadata.", "The daemon treats omitted idleAfterMs as disabled so older clients never receive agent.idle unexpectedly."];
6045
+ readonly examples: readonly ["runpane watch --self-test", "runpane watch --follow", "runpane watch --as monitor --follow --quiet --json", "runpane watch --follow --quiet --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "runpane watch --follow --quiet --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 60000 --blocked-settle 15000 --min-interval 120000", "runpane watch --session <id|name> --follow --quiet --json --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff", "runpane watch --session <id|name> --follow --quiet --json --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged --settle 60000 --blocked-settle 15000 --min-interval 120000"];
6046
+ readonly notes: readonly ["Defaults stay responsive: no settle, no batching, all kinds, IDLE every --idle-after. Cadence flags are opt-in for expensive consumers and require --follow.", "Unattended profile (what Pane Chat arms automatically, for overnight or background runs): runpane watch --self-test, then runpane watch --follow --quiet --kinds agent.ready,agent.blocked,agent.idle,panel.exited,pane.gone --settle 180000 --blocked-settle 30000 --min-interval 600000 --idle-backoff. Budget: about 6 wake-ups per active pane per hour worst case, usually 1-3; READY can arrive up to about 13 minutes after the turn ended.", "User-present profile (a person is waiting on the result): the same command with --settle 60000 --blocked-settle 15000 --min-interval 120000 and no --idle-backoff. READY arrives within about 3 minutes of the turn ending.", "BUSY carries no action; drop it with --kinds. HEARTBEAT is client-side proof of life and is never shaped by cadence flags; pass --quiet for any monitor that wakes an agent.", "STUCK means real unsubmitted composer text. An agent prompt suggestion (for example a grey Try \"...\" hint) never counts.", "Dead watch: judge death by a non-zero exit or a WATCH ERROR line, not by silence. Re-arm once; if it dies again, file runpane doctor --report.", "Cadence state is held per named consumer; an anonymous --follow with a cadence flag names itself follow-<pid>. Held lines survive a reconnect of the same consumer; a changed filter re-delivers them under the new filter.", "Journal loss is surfaced through reset and dropped metadata.", "The daemon treats omitted idleAfterMs as disabled so older clients never receive agent.idle unexpectedly.", "Control lines are not journal entries. JSON kinds and their lines-format text: _ok (WATCH OK, once when armed), _heartbeat (HEARTBEAT, every --heartbeat seconds), _reconnected (WATCH RECONNECTED, after a retried daemon error), _error (WATCH ERROR, a daemon error; the process exits 2 unless --follow retries it), _reset (RESET, the journal restarted or the cursor fell behind; a fresh baseline follows), and _dropped (DROPPED, entries lost to journal truncation). --quiet drops _ok, _heartbeat, and _reconnected; _error, _reset, and _dropped always print.", "Under --follow, JSON entries for panels holding unsubmitted composer text carry heldInputPresent: true, the JSON equivalent of the STUCK line. --no-held-input turns this off.", "--session <id|name> scopes the watch to a named Session. The daemon resolves the Session once per request and its associated Panes on every read, so sessions associate and sessions detach take effect without a re-arm; archived and detached Panes drop out, and the Session's own orchestrator panels are excluded. Cadence state is keyed by the Session, not its current Panes, so membership changes keep held lines. A detached Pane's held lines are dropped.", "Under --session, pane.associated (JOINED <pane-name> pane <pane-id> session <session-id>) and pane.detached (LEFT ...) report membership changes; list them in --kinds next to the agent kinds. Other consumers receive them only when --kinds lists them, so older clients never see an unknown kind.", "PR events (decision D7): about every 3 minutes (jittered) the daemon visits each Pane associated with a live Session (none: no gh at all), finds its PR by branch when no open PR is known yet (gh pr list --head, so unwatched workers' new and reopened PRs are found), runs gh pr view on an open PR, and appends pr.conflicted (PR <pane-name> pane <pane-id> #<number> CONFLICTED: the PR now conflicts with its base), pr.checks (... CHECKS PASSED, or CHECKS FAILED <up to five names>: every check on the head commit finished), and pr.merged (... MERGED). Entries carry pr: {number, url, headOid}, plus checks and failingChecks for pr.checks. They fire on transitions only: the first poll of a PR after the daemon starts only records its state, so re-check conflicts after a restart with gh pr view. pr.conflicted and failed pr.checks bypass --min-interval like BLOCKED. Like JOINED/LEFT, they reach a consumer only under --session or when --kinds lists them. Without gh, or while it is signed out or rate limited, polling backs off (up to an hour) and no PR entries arrive.", "A daemon that predates --session returns no session field; runpane then fails with WATCH ERROR instead of watching every Pane.", "Replay: after a reset (RESET/_reset), the baseline restates current state. In JSON, those entries carry replay: true (and changedWhileAway: true after an epoch change). A replayed agent.ready is never READY: re-read runpane sessions overview instead of acting on it. Lines mode prints only CHANGED for them.", "agent.report (REPORT <pane-name> pane <pane-id> panel <panel-id> <state> [pr#<n>] [<head>][: <question>]) is a worker's `runpane report`. It is opt-in: only a consumer that lists it in --kinds receives it. It bypasses --min-interval, and orchestrators treat it as the completion signal; a READY without a report means look, and maybe nudge."];
4988
6047
  };
4989
6048
  readonly "panes git-status": {
4990
6049
  readonly name: "panes git-status";
@@ -5681,6 +6740,10 @@ export declare const RUNPANE_CONTRACT: {
5681
6740
  readonly value: "<message>";
5682
6741
  readonly required: true;
5683
6742
  readonly description: "The message to submit.";
6743
+ }, {
6744
+ readonly name: "--as-file-pointer";
6745
+ readonly required: false;
6746
+ readonly description: "Write the prompt or text to a private file under the Pane directory and send the one line `Read and follow <path>` instead.";
5684
6747
  }, {
5685
6748
  readonly name: "--yes";
5686
6749
  readonly required: false;
@@ -5695,9 +6758,69 @@ export declare const RUNPANE_CONTRACT: {
5695
6758
  readonly required: false;
5696
6759
  readonly description: "Connect to a specific Pane data directory.";
5697
6760
  }];
5698
- readonly examples: readonly ["runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json"];
6761
+ readonly examples: readonly ["runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json", "runpane agents send --pane <pane-id> --text \"$(cat review-notes.md)\" --as-file-pointer --yes --json"];
5699
6762
  readonly jsonSchemas: readonly ["agentSendResult"];
5700
- readonly notes: readonly ["`delivered` is true only when Pane saw the message leave the composer.", "It types the text, then queues with Tab when Codex is working or submits with Enter when ready. It is for messages, not keys. To answer a menu, use `runpane panels input --panel <panel-id> --keys down,enter --yes`, then check the screen with `runpane agents status`."];
6763
+ readonly notes: readonly ["`delivered` is true when the agent took the message or queued it for after its current turn; `delivery` says which (`taken` or `queued`) and how Pane knows (`transcript` or `screen`). Never resend a delivered message.", "It types the text, then queues with Tab when Codex is working or submits with Enter when ready. It is for messages, not keys. To answer a menu, use `runpane panels input --panel <panel-id> --keys down,enter --yes`, then check the screen with `runpane agents status`.", "`--as-file-pointer` writes the text to `<pane-dir>/prompts/<pane-id>/<timestamp>.md` (readable only by you) and sends the one line `Read and follow <path>`; the result includes `promptFile`. Prefer it for long prompts."];
6764
+ };
6765
+ readonly report: {
6766
+ readonly name: "report";
6767
+ readonly summary: "Hand back a worker's structured report: state, PR, head commit, summary, and the question when blocked.";
6768
+ readonly details: "Run this as a delegated worker when you finish, fail, or get blocked, as the last step of your task. The orchestrator receives it as an agent.report watch event and treats it as the completion signal.";
6769
+ readonly requiresPaneDaemon: true;
6770
+ readonly mutates: true;
6771
+ readonly arguments: readonly [{
6772
+ readonly name: "--state";
6773
+ readonly value: "<ready|blocked|failed|done>";
6774
+ readonly required: true;
6775
+ readonly description: "ready: work is ready for review; done: finished with nothing to review; blocked: needs an answer; failed: could not finish.";
6776
+ }, {
6777
+ readonly name: "--pr";
6778
+ readonly value: "<number>";
6779
+ readonly required: false;
6780
+ readonly description: "Pull request number.";
6781
+ }, {
6782
+ readonly name: "--head";
6783
+ readonly value: "<sha>";
6784
+ readonly required: false;
6785
+ readonly description: "Head commit the report is about, 7-40 hex characters.";
6786
+ }, {
6787
+ readonly name: "--summary";
6788
+ readonly value: "<text>";
6789
+ readonly required: false;
6790
+ readonly description: "Summary text; up to 16,000 characters are kept.";
6791
+ }, {
6792
+ readonly name: "--summary-file";
6793
+ readonly value: "<path|->";
6794
+ readonly required: false;
6795
+ readonly description: "Read the summary from a file or stdin; the absolute path is kept as summaryPath.";
6796
+ }, {
6797
+ readonly name: "--question";
6798
+ readonly value: "<text>";
6799
+ readonly required: false;
6800
+ readonly description: "What you need answered; required with --state blocked.";
6801
+ }, {
6802
+ readonly name: "--pane";
6803
+ readonly value: "<pane-id>";
6804
+ readonly required: false;
6805
+ readonly description: "Pane id when not running inside a Pane terminal (PANE_SESSION_ID).";
6806
+ }, {
6807
+ readonly name: "--panel";
6808
+ readonly value: "<panel-id>";
6809
+ readonly required: false;
6810
+ readonly description: "Panel id when not running inside a Pane terminal (PANE_PANEL_ID).";
6811
+ }, {
6812
+ readonly name: "--json";
6813
+ readonly required: false;
6814
+ readonly description: "Print machine-readable output.";
6815
+ }, {
6816
+ readonly name: "--pane-dir";
6817
+ readonly value: "<path>";
6818
+ readonly required: false;
6819
+ readonly description: "Connect to a specific Pane data directory.";
6820
+ }];
6821
+ readonly examples: readonly ["runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json", "runpane report --state blocked --question \"Should the migration drop the old column?\""];
6822
+ readonly jsonSchemas: readonly ["reportResult"];
6823
+ readonly notes: readonly ["Inside a Pane terminal the report is for the current panel (PANE_SESSION_ID and PANE_PANEL_ID). Explicit --panel (with an optional --pane) wins; with neither, the command fails with a clear error.", "Each report replaces the panel's previous one and survives a Pane restart.", "Watchers receive agent.report only when they list it in --kinds. REPORT lines skip the --min-interval batch."];
5701
6824
  };
5702
6825
  readonly "sessions list": {
5703
6826
  readonly name: "sessions list";
@@ -5705,7 +6828,12 @@ export declare const RUNPANE_CONTRACT: {
5705
6828
  readonly details: "List durable named orchestration Sessions.";
5706
6829
  readonly requiresPaneDaemon: true;
5707
6830
  readonly mutates: false;
5708
- readonly arguments: readonly [];
6831
+ readonly arguments: readonly [{
6832
+ readonly name: "--pane-dir";
6833
+ readonly value: "<path>";
6834
+ readonly required: false;
6835
+ readonly description: "Connect to a specific Pane data directory.";
6836
+ }];
5709
6837
  readonly examples: readonly ["runpane sessions list [--json] [--pane-dir <path>]"];
5710
6838
  readonly jsonSchemas: readonly ["sessionListResult"];
5711
6839
  readonly notes: readonly [];
@@ -5716,10 +6844,15 @@ export declare const RUNPANE_CONTRACT: {
5716
6844
  readonly details: "Create a durable named orchestration Session and its hidden terminal owner.";
5717
6845
  readonly requiresPaneDaemon: true;
5718
6846
  readonly mutates: true;
5719
- readonly arguments: readonly [];
6847
+ readonly arguments: readonly [{
6848
+ readonly name: "--pane-dir";
6849
+ readonly value: "<path>";
6850
+ readonly required: false;
6851
+ readonly description: "Connect to a specific Pane data directory.";
6852
+ }];
5720
6853
  readonly examples: readonly ["runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]"];
5721
6854
  readonly jsonSchemas: readonly ["sessionResult"];
5722
- readonly notes: readonly [];
6855
+ readonly notes: readonly ["Structured input accepts launchCommand (full command including arguments; empty uses the selected agent default) and profile (Session behavior instructions). Creating/opening a Session submits no automatic prompt. Changes apply on next terminal launch."];
5723
6856
  };
5724
6857
  readonly "sessions get": {
5725
6858
  readonly name: "sessions get";
@@ -5727,7 +6860,12 @@ export declare const RUNPANE_CONTRACT: {
5727
6860
  readonly details: "Read one durable named orchestration Session.";
5728
6861
  readonly requiresPaneDaemon: true;
5729
6862
  readonly mutates: false;
5730
- readonly arguments: readonly [];
6863
+ readonly arguments: readonly [{
6864
+ readonly name: "--pane-dir";
6865
+ readonly value: "<path>";
6866
+ readonly required: false;
6867
+ readonly description: "Connect to a specific Pane data directory.";
6868
+ }];
5731
6869
  readonly examples: readonly ["runpane sessions get --session <id|name> [--json] [--pane-dir <path>]"];
5732
6870
  readonly jsonSchemas: readonly ["sessionResult"];
5733
6871
  readonly notes: readonly [];
@@ -5738,10 +6876,15 @@ export declare const RUNPANE_CONTRACT: {
5738
6876
  readonly details: "Update a Session overview from structured JSON.";
5739
6877
  readonly requiresPaneDaemon: true;
5740
6878
  readonly mutates: true;
5741
- readonly arguments: readonly [];
6879
+ readonly arguments: readonly [{
6880
+ readonly name: "--pane-dir";
6881
+ readonly value: "<path>";
6882
+ readonly required: false;
6883
+ readonly description: "Connect to a specific Pane data directory.";
6884
+ }];
5742
6885
  readonly examples: readonly ["runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]"];
5743
6886
  readonly jsonSchemas: readonly ["sessionResult"];
5744
- readonly notes: readonly [];
6887
+ readonly notes: readonly ["Structured input accepts launchCommand (full command including arguments; empty uses the selected agent default) and profile (Session behavior instructions). Creating/opening a Session submits no automatic prompt. Changes apply on next terminal launch."];
5745
6888
  };
5746
6889
  readonly "sessions set-agent": {
5747
6890
  readonly name: "sessions set-agent";
@@ -5749,7 +6892,12 @@ export declare const RUNPANE_CONTRACT: {
5749
6892
  readonly details: "Switch the durable terminal agent for a named Session.";
5750
6893
  readonly requiresPaneDaemon: true;
5751
6894
  readonly mutates: true;
5752
- readonly arguments: readonly [];
6895
+ readonly arguments: readonly [{
6896
+ readonly name: "--pane-dir";
6897
+ readonly value: "<path>";
6898
+ readonly required: false;
6899
+ readonly description: "Connect to a specific Pane data directory.";
6900
+ }];
5753
6901
  readonly examples: readonly ["runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]"];
5754
6902
  readonly jsonSchemas: readonly ["sessionResult"];
5755
6903
  readonly notes: readonly [];
@@ -5760,7 +6908,12 @@ export declare const RUNPANE_CONTRACT: {
5760
6908
  readonly details: "Associate a user-visible Pane with a named Session. `panes create` and `panes adopt` already do this automatically when run inside a Session orchestrator; use this for existing Panes or after `--no-associate`.";
5761
6909
  readonly requiresPaneDaemon: true;
5762
6910
  readonly mutates: true;
5763
- readonly arguments: readonly [];
6911
+ readonly arguments: readonly [{
6912
+ readonly name: "--pane-dir";
6913
+ readonly value: "<path>";
6914
+ readonly required: false;
6915
+ readonly description: "Connect to a specific Pane data directory.";
6916
+ }];
5764
6917
  readonly examples: readonly ["runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]"];
5765
6918
  readonly jsonSchemas: readonly ["sessionResult"];
5766
6919
  readonly notes: readonly [];
@@ -5771,7 +6924,12 @@ export declare const RUNPANE_CONTRACT: {
5771
6924
  readonly details: "Detach a Pane from a named Session.";
5772
6925
  readonly requiresPaneDaemon: true;
5773
6926
  readonly mutates: true;
5774
- readonly arguments: readonly [];
6927
+ readonly arguments: readonly [{
6928
+ readonly name: "--pane-dir";
6929
+ readonly value: "<path>";
6930
+ readonly required: false;
6931
+ readonly description: "Connect to a specific Pane data directory.";
6932
+ }];
5775
6933
  readonly examples: readonly ["runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]"];
5776
6934
  readonly jsonSchemas: readonly ["sessionResult"];
5777
6935
  readonly notes: readonly [];
@@ -5782,9 +6940,138 @@ export declare const RUNPANE_CONTRACT: {
5782
6940
  readonly details: "Read a live status, activity, git, and pull request overview for a named Session.";
5783
6941
  readonly requiresPaneDaemon: true;
5784
6942
  readonly mutates: false;
5785
- readonly arguments: readonly [];
6943
+ readonly arguments: readonly [{
6944
+ readonly name: "--pane-dir";
6945
+ readonly value: "<path>";
6946
+ readonly required: false;
6947
+ readonly description: "Connect to a specific Pane data directory.";
6948
+ }];
5786
6949
  readonly examples: readonly ["runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]"];
5787
6950
  readonly jsonSchemas: readonly ["sessionOverviewResult"];
6951
+ readonly notes: readonly ["The result includes `locks`: named locks scoped to the Session or held by its Panes (see `runpane lock`)."];
6952
+ };
6953
+ readonly "lock acquire": {
6954
+ readonly name: "lock acquire";
6955
+ readonly summary: "Acquire a named lock on a resource shared between agents, such as one test account, optionally waiting for it.";
6956
+ readonly details: "Run this before using a resource that only one agent may use at a time, such as a shared test account, and release it when done. The owner is the calling Pane and panel ($PANE_SESSION_ID and $PANE_PANEL_ID, or --pane/--panel). The lock is scoped to the owner's Session when its Pane belongs to one, so two Sessions can each hold `testing-account`; otherwise it is global. It succeeds when the lock is free, expired, or already yours (which renews the TTL). Otherwise it returns ok:false with heldBy and expiresAt at once, or with --wait blocks in the daemon until the lock is released, expires, or its owner's panel exits or Pane is archived.";
6957
+ readonly requiresPaneDaemon: true;
6958
+ readonly mutates: true;
6959
+ readonly arguments: readonly [{
6960
+ readonly name: "--name";
6961
+ readonly value: "<name>";
6962
+ readonly required: true;
6963
+ readonly description: "Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".";
6964
+ }, {
6965
+ readonly name: "--ttl";
6966
+ readonly value: "<duration>";
6967
+ readonly required: true;
6968
+ readonly description: "How long the lock is held before it expires, such as 90s, 30m, or 2h; at most 24h. Acquire again before it runs out to renew.";
6969
+ }, {
6970
+ readonly name: "--wait";
6971
+ readonly value: "<milliseconds>";
6972
+ readonly required: false;
6973
+ readonly description: "Wait this long for the lock to come free. The CLI waits in daemon calls of up to 120 seconds each.";
6974
+ }, {
6975
+ readonly name: "--note";
6976
+ readonly value: "<text>";
6977
+ readonly required: false;
6978
+ readonly description: "What the lock is for, shown to other agents. Required outside a Pane terminal, where it also names the owner.";
6979
+ }, {
6980
+ readonly name: "--pane";
6981
+ readonly value: "<pane-id>";
6982
+ readonly required: false;
6983
+ readonly description: "Act for this Pane instead of $PANE_SESSION_ID.";
6984
+ }, {
6985
+ readonly name: "--panel";
6986
+ readonly value: "<panel-id>";
6987
+ readonly required: false;
6988
+ readonly description: "Act for this panel instead of $PANE_PANEL_ID.";
6989
+ }, {
6990
+ readonly name: "--json";
6991
+ readonly required: false;
6992
+ readonly description: "Print machine-readable output.";
6993
+ }, {
6994
+ readonly name: "--pane-dir";
6995
+ readonly value: "<path>";
6996
+ readonly required: false;
6997
+ readonly description: "Connect to a specific Pane data directory.";
6998
+ }];
6999
+ readonly examples: readonly ["runpane lock acquire --name testing-account --ttl 30m --wait 1800000 --note \"call QA\" --json", "runpane lock acquire --name staging-db --ttl 10m --json"];
7000
+ readonly jsonSchemas: readonly ["lockAcquireRequest", "lockAcquireResult"];
7001
+ readonly notes: readonly ["Exit status is 0 only when the lock is yours; ok:false (exit 1) means another owner holds it, named by heldBy until expiresAt.", "Release the lock as soon as you are done with the resource: `runpane lock release --name <name>`. If you interrupt a waiting acquire, the lock can still be granted to you for up to two minutes; release it or let the TTL expire.", "Pane releases the lock when its TTL runs out, when the owner panel exits, or when the owner Pane is archived. Quitting Pane does not release it; locks survive a restart."];
7002
+ };
7003
+ readonly "lock release": {
7004
+ readonly name: "lock release";
7005
+ readonly summary: "Release a named lock you hold, or force-release another owner's lock.";
7006
+ readonly details: "Only the owner can release a lock. --force releases another owner's lock, for example a stuck worker's; use --session to name a Session-scoped lock from outside that Session.";
7007
+ readonly requiresPaneDaemon: true;
7008
+ readonly mutates: true;
7009
+ readonly arguments: readonly [{
7010
+ readonly name: "--name";
7011
+ readonly value: "<name>";
7012
+ readonly required: true;
7013
+ readonly description: "Lock name.";
7014
+ }, {
7015
+ readonly name: "--force";
7016
+ readonly required: false;
7017
+ readonly description: "Release the lock even though another owner holds it.";
7018
+ }, {
7019
+ readonly name: "--session";
7020
+ readonly value: "<id|name>";
7021
+ readonly required: false;
7022
+ readonly description: "Session whose lock to release; defaults to the caller's Session, or global.";
7023
+ }, {
7024
+ readonly name: "--note";
7025
+ readonly value: "<text>";
7026
+ readonly required: false;
7027
+ readonly description: "Outside a Pane terminal, the note the lock was acquired with.";
7028
+ }, {
7029
+ readonly name: "--pane";
7030
+ readonly value: "<pane-id>";
7031
+ readonly required: false;
7032
+ readonly description: "Act for this Pane instead of $PANE_SESSION_ID.";
7033
+ }, {
7034
+ readonly name: "--panel";
7035
+ readonly value: "<panel-id>";
7036
+ readonly required: false;
7037
+ readonly description: "Act for this panel instead of $PANE_PANEL_ID.";
7038
+ }, {
7039
+ readonly name: "--json";
7040
+ readonly required: false;
7041
+ readonly description: "Print machine-readable output.";
7042
+ }, {
7043
+ readonly name: "--pane-dir";
7044
+ readonly value: "<path>";
7045
+ readonly required: false;
7046
+ readonly description: "Connect to a specific Pane data directory.";
7047
+ }];
7048
+ readonly examples: readonly ["runpane lock release --name testing-account --json", "runpane lock release --name testing-account --session \"<session-id-or-name>\" --force --json"];
7049
+ readonly jsonSchemas: readonly ["lockReleaseResult"];
7050
+ readonly notes: readonly ["released:false with ok:true means no such lock was held. ok:false with reason not-owner (exit 1) means another owner holds it."];
7051
+ };
7052
+ readonly "lock list": {
7053
+ readonly name: "lock list";
7054
+ readonly summary: "List held named locks, optionally only one Session's.";
7055
+ readonly details: "List every held lock, or with --session the locks scoped to that Session plus those its Panes hold. `runpane sessions overview` includes the same Session locks.";
7056
+ readonly requiresPaneDaemon: true;
7057
+ readonly mutates: false;
7058
+ readonly arguments: readonly [{
7059
+ readonly name: "--session";
7060
+ readonly value: "<id|name>";
7061
+ readonly required: false;
7062
+ readonly description: "Named Session id or exact name.";
7063
+ }, {
7064
+ readonly name: "--json";
7065
+ readonly required: false;
7066
+ readonly description: "Print machine-readable output.";
7067
+ }, {
7068
+ readonly name: "--pane-dir";
7069
+ readonly value: "<path>";
7070
+ readonly required: false;
7071
+ readonly description: "Connect to a specific Pane data directory.";
7072
+ }];
7073
+ readonly examples: readonly ["runpane lock list --json", "runpane lock list --session \"<session-id-or-name>\" --json"];
7074
+ readonly jsonSchemas: readonly ["lockListResult"];
5788
7075
  readonly notes: readonly [];
5789
7076
  };
5790
7077
  };