runpane 2.4.230 → 2.4.232

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.
Files changed (44) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +14 -0
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands.d.ts +8 -0
  5. package/dist/commands.d.ts.map +1 -1
  6. package/dist/commands.js +39 -1
  7. package/dist/commands.js.map +1 -1
  8. package/dist/devices.d.ts +10 -0
  9. package/dist/devices.d.ts.map +1 -0
  10. package/dist/devices.js +167 -0
  11. package/dist/devices.js.map +1 -0
  12. package/dist/docs-index.json +1 -1
  13. package/dist/docs.js +1 -1
  14. package/dist/docs.js.map +1 -1
  15. package/dist/generated/contract.d.ts +1299 -186
  16. package/dist/generated/contract.d.ts.map +1 -1
  17. package/dist/generated/contract.js +2294 -430
  18. package/dist/generated/contract.js.map +1 -1
  19. package/dist/handoff.js +1 -1
  20. package/dist/handoff.js.map +1 -1
  21. package/dist/localControl.d.ts.map +1 -1
  22. package/dist/localControl.js +7 -0
  23. package/dist/localControl.js.map +1 -1
  24. package/dist/machine.d.ts +4 -0
  25. package/dist/machine.d.ts.map +1 -0
  26. package/dist/machine.js +231 -0
  27. package/dist/machine.js.map +1 -0
  28. package/dist/mcp.d.ts.map +1 -1
  29. package/dist/mcp.js +15 -1
  30. package/dist/mcp.js.map +1 -1
  31. package/dist/mcpTools.d.ts +2 -0
  32. package/dist/mcpTools.d.ts.map +1 -1
  33. package/dist/mcpTools.js +1 -1
  34. package/dist/mcpTools.js.map +1 -1
  35. package/dist/updateArtifacts.d.ts +2 -0
  36. package/dist/updateArtifacts.d.ts.map +1 -1
  37. package/dist/updateArtifacts.js +6 -1
  38. package/dist/updateArtifacts.js.map +1 -1
  39. package/dist/updateCapacity.d.ts +1 -1
  40. package/dist/updateCapacity.d.ts.map +1 -1
  41. package/dist/updateCapacity.js +2 -0
  42. package/dist/updateCapacity.js.map +1 -1
  43. package/dist/updateOperation.d.ts +3 -3
  44. package/package.json +1 -1
@@ -101,6 +101,21 @@ exports.RUNPANE_CONTRACT = {
101
101
  "cursor",
102
102
  "opencode",
103
103
  "pi"
104
+ ],
105
+ "reclaimKinds": [
106
+ "update-snapshot",
107
+ "migration-backup",
108
+ "archived-pane-folder",
109
+ "agent-temp",
110
+ "paused-scratch",
111
+ "foreign-worktree",
112
+ "foreign-pane-data",
113
+ "other-tool-data"
114
+ ],
115
+ "foreignReclaimKinds": [
116
+ "foreign-worktree",
117
+ "foreign-pane-data",
118
+ "other-tool-data"
104
119
  ]
105
120
  },
106
121
  "agents": {
@@ -133,6 +148,9 @@ exports.RUNPANE_CONTRACT = {
133
148
  "transcriptDirs": [
134
149
  ".claude/projects"
135
150
  ],
151
+ "tempDirs": [
152
+ "{tmp}/claude-{uid}"
153
+ ],
136
154
  "signIn": [
137
155
  "auth",
138
156
  "login"
@@ -370,6 +388,7 @@ exports.RUNPANE_CONTRACT = {
370
388
  "fullAccessArgs": [
371
389
  "--auto"
372
390
  ],
391
+ "paneMcpConfigEnv": "OPENCODE_CONFIG_CONTENT",
373
392
  "hotkey": "mod+alt+6",
374
393
  "session": {
375
394
  "flag": "--session",
@@ -796,6 +815,164 @@ exports.RUNPANE_CONTRACT = {
796
815
  ],
797
816
  "localControl": true
798
817
  },
818
+ {
819
+ "name": "devices list",
820
+ "mcpName": "device_list",
821
+ "summary": "List the phone simulators and emulators this Pane can open: platform, name, OS, machine, state, and which Pane holds each.",
822
+ "usage": [
823
+ "runpane devices list [--json] [--pane-dir <path>]"
824
+ ],
825
+ "toolsets": [
826
+ "core",
827
+ "devices"
828
+ ],
829
+ "jsonSchemas": [
830
+ "devicesListResult"
831
+ ],
832
+ "localControl": true,
833
+ "wrappers": [
834
+ "npm"
835
+ ]
836
+ },
837
+ {
838
+ "name": "devices open",
839
+ "mcpName": "device_open",
840
+ "summary": "Boot a phone simulator or emulator for this Pane and show its live screen in a device tab beside the agent.",
841
+ "usage": [
842
+ "runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]"
843
+ ],
844
+ "mutates": true,
845
+ "additive": true,
846
+ "toolsets": [
847
+ "core",
848
+ "devices"
849
+ ],
850
+ "jsonSchemas": [
851
+ "devicesOpenResult"
852
+ ],
853
+ "localControl": true,
854
+ "wrappers": [
855
+ "npm"
856
+ ]
857
+ },
858
+ {
859
+ "name": "devices screenshot",
860
+ "mcpName": "device_screenshot",
861
+ "summary": "Capture the screen of this Pane's open device as an image.",
862
+ "usage": [
863
+ "runpane devices screenshot [--platform <ios|android>] [--json] [--pane-dir <path>]"
864
+ ],
865
+ "toolsets": [
866
+ "core",
867
+ "devices"
868
+ ],
869
+ "jsonSchemas": [
870
+ "devicesScreenshotResult"
871
+ ],
872
+ "localControl": true,
873
+ "wrappers": [
874
+ "npm"
875
+ ]
876
+ },
877
+ {
878
+ "name": "devices act",
879
+ "mcpName": "device_act",
880
+ "summary": "Run an agent-device command on this Pane's open device: open an app, snapshot -i for element refs, press @e3, fill, swipe, install, logs.",
881
+ "usage": [
882
+ "runpane devices act [--platform <ios|android>] [--json] [--pane-dir <path>] -- <command>"
883
+ ],
884
+ "mutates": true,
885
+ "toolsets": [
886
+ "core",
887
+ "devices"
888
+ ],
889
+ "jsonSchemas": [
890
+ "devicesActResult"
891
+ ],
892
+ "localControl": true,
893
+ "wrappers": [
894
+ "npm"
895
+ ]
896
+ },
897
+ {
898
+ "name": "devices run",
899
+ "mcpName": "device_run",
900
+ "summary": "Run a command where this Pane's device runs, such as a build (npx expo run:ios) or Metro with --background.",
901
+ "usage": [
902
+ "runpane devices run [--platform <ios|android>] [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>"
903
+ ],
904
+ "mutates": true,
905
+ "openWorld": true,
906
+ "toolsets": [
907
+ "core",
908
+ "devices"
909
+ ],
910
+ "jsonSchemas": [
911
+ "devicesRunResult"
912
+ ],
913
+ "localControl": true,
914
+ "wrappers": [
915
+ "npm"
916
+ ]
917
+ },
918
+ {
919
+ "name": "devices close",
920
+ "mcpName": "device_close",
921
+ "summary": "Release this Pane's device (or, with --platform, only that one) and stop the commands device_run started. The device stays warm for 10 minutes.",
922
+ "usage": [
923
+ "runpane devices close [--platform <ios|android>] [--json] [--pane-dir <path>]"
924
+ ],
925
+ "mutates": true,
926
+ "idempotent": true,
927
+ "toolsets": [
928
+ "core",
929
+ "devices"
930
+ ],
931
+ "jsonSchemas": [
932
+ "devicesCloseResult"
933
+ ],
934
+ "localControl": true,
935
+ "wrappers": [
936
+ "npm"
937
+ ]
938
+ },
939
+ {
940
+ "name": "devices usage",
941
+ "mcpName": "device_usage",
942
+ "summary": "Report every simulator and emulator on this machine, and the memory and disk they, Pane's device tools and build checkouts use.",
943
+ "usage": [
944
+ "runpane devices usage [--json] [--pane-dir <path>]"
945
+ ],
946
+ "toolsets": [
947
+ "devices"
948
+ ],
949
+ "jsonSchemas": [
950
+ "devicesUsageResult"
951
+ ],
952
+ "localControl": true,
953
+ "wrappers": [
954
+ "npm"
955
+ ]
956
+ },
957
+ {
958
+ "name": "devices free",
959
+ "mcpName": "device_free",
960
+ "summary": "Shut down unused devices (--idle), or also delete every unused device Pane made and the build checkouts no Pane holds (--all).",
961
+ "usage": [
962
+ "runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]"
963
+ ],
964
+ "mutates": true,
965
+ "toolsets": [
966
+ "devices"
967
+ ],
968
+ "jsonSchemas": [
969
+ "devicesFreeResult"
970
+ ],
971
+ "localControl": true,
972
+ "wrappers": [
973
+ "npm"
974
+ ]
975
+ },
799
976
  {
800
977
  "name": "theme read",
801
978
  "summary": "Show Pane's own theme: what is selected, the Custom theme, every colour token with its current value, the stable selectors, and the guide for restyling Pane.",
@@ -2301,6 +2478,36 @@ exports.RUNPANE_CONTRACT = {
2301
2478
  ],
2302
2479
  "localControl": true
2303
2480
  },
2481
+ {
2482
+ "name": "machine health",
2483
+ "summary": "Show this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free, by tier.",
2484
+ "usage": [
2485
+ "runpane machine health [--json] [--pane-dir <path>]"
2486
+ ],
2487
+ "toolsets": [
2488
+ "machine"
2489
+ ],
2490
+ "jsonSchemas": [
2491
+ "machineHealthResult"
2492
+ ],
2493
+ "localControl": true
2494
+ },
2495
+ {
2496
+ "name": "machine cleanup",
2497
+ "confirmDescription": "Delete the listed items (the CLI's --yes). Without it the call is a dry run that lists them and deletes nothing.",
2498
+ "summary": "Free disk space that Pane made: list one kind of tier 1 or 2 item with its size (a dry run), or delete them with --yes.",
2499
+ "usage": [
2500
+ "runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"
2501
+ ],
2502
+ "mutates": true,
2503
+ "toolsets": [
2504
+ "machine"
2505
+ ],
2506
+ "jsonSchemas": [
2507
+ "machineCleanupResult"
2508
+ ],
2509
+ "localControl": true
2510
+ },
2304
2511
  {
2305
2512
  "name": "sessions unpin",
2306
2513
  "summary": "Declaratively unpin a named Session using the UI pin state; repeated requests keep the requested state.",
@@ -3185,6 +3392,26 @@ exports.RUNPANE_CONTRACT = {
3185
3392
  "name": "--search",
3186
3393
  "value": "<text>",
3187
3394
  "description": "models only: keep models whose name contains this text."
3395
+ },
3396
+ {
3397
+ "name": "--platform",
3398
+ "value": "<ios|android>",
3399
+ "description": "devices open: ios or android. devices screenshot, act, run and close: which of the Pane's devices; defaults to the one opened last."
3400
+ },
3401
+ {
3402
+ "name": "--device",
3403
+ "value": "<name-or-id>",
3404
+ "description": "devices open: one of the person's own devices by name or id."
3405
+ },
3406
+ {
3407
+ "name": "--wait-ms",
3408
+ "value": "<milliseconds>",
3409
+ "description": "devices run: how long to wait for the command to exit."
3410
+ },
3411
+ {
3412
+ "name": "--kind",
3413
+ "value": "<kind>",
3414
+ "description": "Kind of item for runpane machine cleanup, such as update-snapshot; runpane machine health lists each item's kind."
3188
3415
  }
3189
3416
  ],
3190
3417
  "localBoolean": [
@@ -3343,6 +3570,14 @@ exports.RUNPANE_CONTRACT = {
3343
3570
  {
3344
3571
  "name": "--hook",
3345
3572
  "description": "runpane panels conversation: read a Claude Code SessionStart hook's JSON from stdin and report it for PANE_PANEL_ID. Prints nothing and always exits 0."
3573
+ },
3574
+ {
3575
+ "name": "--background",
3576
+ "description": "devices run: keep the command running after the call returns; it stops at devices close."
3577
+ },
3578
+ {
3579
+ "name": "--idle",
3580
+ "description": "devices free: shut down Pane's devices no Pane holds."
3346
3581
  }
3347
3582
  ]
3348
3583
  },
@@ -3373,6 +3608,14 @@ exports.RUNPANE_CONTRACT = {
3373
3608
  " runpane secrets delete --project <project> --name <name> --yes",
3374
3609
  " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...",
3375
3610
  " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]",
3611
+ " runpane devices list [--json] [--pane-dir <path>]",
3612
+ " runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]",
3613
+ " runpane devices screenshot [--json] [--pane-dir <path>]",
3614
+ " runpane devices act [--json] [--pane-dir <path>] -- <command>",
3615
+ " runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>",
3616
+ " runpane devices close [--json] [--pane-dir <path>]",
3617
+ " runpane devices usage [--json] [--pane-dir <path>]",
3618
+ " runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]",
3376
3619
  " runpane theme read [--json]",
3377
3620
  " runpane theme set [--base <theme>] [--colors <json>] [--css <text>] [--name <text>] [--json]",
3378
3621
  " runpane theme set --theme <id> [--json]",
@@ -3391,6 +3634,8 @@ exports.RUNPANE_CONTRACT = {
3391
3634
  " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]",
3392
3635
  " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]",
3393
3636
  " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]",
3637
+ " runpane machine health [--json]",
3638
+ " runpane machine cleanup --kind <kind> [--yes] [--json]",
3394
3639
  " runpane loops list [--json]",
3395
3640
  " runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes",
3396
3641
  " runpane loops update|run|pause|resume|delete --loop <id> --yes",
@@ -3896,7 +4141,7 @@ exports.RUNPANE_CONTRACT = {
3896
4141
  "Options:",
3897
4142
  " --repo <selector> active, id, exact path, or saved repository name",
3898
4143
  " --name <name> Pane/session name",
3899
- " --worktree-name <name> Worktree directory name; defaults to --name",
4144
+ " --worktree-name <name> Worktree directory name, cut to 100 characters at a word; defaults to --name",
3900
4145
  " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name",
3901
4146
  " --base-branch <ref> Ref to branch from; --base is an alias",
3902
4147
  " --agent <codex|claude|cursor|opencode|pi> Built-in terminal template; with --tool-command, the agent it runs",
@@ -4112,7 +4357,7 @@ exports.RUNPANE_CONTRACT = {
4112
4357
  "The MCP server ships in the npm package and inside the Pane app. The Python package does not include it.",
4113
4358
  "",
4114
4359
  "Options:",
4115
- " --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, workspace, git, docs, links, admin",
4360
+ " --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, workspace, machine, git, docs, links, admin",
4116
4361
  " --read-only Serve only read-only tools"
4117
4362
  ],
4118
4363
  "relay": [
@@ -5415,6 +5660,151 @@ exports.RUNPANE_CONTRACT = {
5415
5660
  " --session <id|name> Named Session id or exact name",
5416
5661
  " --pane-dir <path> Connect to a specific Pane data directory",
5417
5662
  " --json Print machine-readable output"
5663
+ ],
5664
+ "devices list": [
5665
+ "Usage:",
5666
+ " runpane devices list [--json] [--pane-dir <path>]",
5667
+ "",
5668
+ "Lists this machine's iOS simulators and Android emulators, plus the iOS machine Pane uses when this one has no Xcode. paneMade marks the devices Pane created; device_open uses those unless you name another.",
5669
+ "",
5670
+ "Options:",
5671
+ " --json Print machine-readable output",
5672
+ " --pane-dir <path> Connect to a specific Pane data directory"
5673
+ ],
5674
+ "devices open": [
5675
+ "Usage:",
5676
+ " runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]",
5677
+ "",
5678
+ "Leases a device to the calling tab's Pane and boots it. Without --device, Pane uses its own device (Pane iPhone or Pane_Android) and makes one from the newest installed runtime when needed. The first call on a machine installs Pane's device tools (agent-device and Expo's device hub), which takes a minute. When every device Pane may boot is held by another Pane, it waits up to 60 seconds, then fails with ERR_DEVICE_BUSY naming the holder. On a machine without Xcode, iOS opens on a linked Mac. Later device calls act on this device; you never pass it again.",
5679
+ "",
5680
+ "Options:",
5681
+ " --platform <ios|android> ios for an iOS simulator, android for an Android emulator",
5682
+ " --device <name-or-id> One of the person's own devices by name or id, from device_list. Leave it out to use Pane's own device",
5683
+ " --json Print machine-readable output",
5684
+ " --pane-dir <path> Connect to a specific Pane data directory"
5685
+ ],
5686
+ "devices screenshot": [
5687
+ "Usage:",
5688
+ " runpane devices screenshot [--json] [--pane-dir <path>]",
5689
+ "",
5690
+ "Returns the PNG's path; MCP clients also get the image itself.",
5691
+ "",
5692
+ "Options:",
5693
+ " --json Print machine-readable output",
5694
+ " --pane-dir <path> Connect to a specific Pane data directory"
5695
+ ],
5696
+ "devices act": [
5697
+ "Usage:",
5698
+ " runpane devices act [--json] [--pane-dir <path>] -- <command>",
5699
+ "",
5700
+ "Passes the command to agent-device, pinned to the device this Pane holds. Start with `open <app id>`, then `snapshot -i` for @refs, then `press @eN --settle`. agent-device's own help: `help workflow`. Flags that pick another device, session or daemon (--session, --device, --udid, --serial, --platform) are refused.",
5701
+ "",
5702
+ "Options:",
5703
+ " --json Print machine-readable output",
5704
+ " --pane-dir <path> Connect to a specific Pane data directory"
5705
+ ],
5706
+ "devices run": [
5707
+ "Usage:",
5708
+ " runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>",
5709
+ "",
5710
+ "On this machine it runs in the Pane's worktree. When the device runs on a linked Mac, Pane first syncs the worktree there (uncommitted changes included) and runs in Pane's checkout on the Mac. It waits up to --wait-ms (default 120000) and returns the exit code and log tail (the last 16 KB, starting with [earlier output cut] when output was dropped), or a jobId while it still runs. --background keeps a server such as Metro running until device_close. Pass an empty command to sync only.",
5711
+ "",
5712
+ "Options:",
5713
+ " --background Keep the command running after the call returns (Metro); it stops at device_close",
5714
+ " --wait-ms <milliseconds> How long to wait for the command to exit (default 120000)",
5715
+ " --json Print machine-readable output",
5716
+ " --pane-dir <path> Connect to a specific Pane data directory"
5717
+ ],
5718
+ "devices close": [
5719
+ "Usage:",
5720
+ " runpane devices close [--json] [--pane-dir <path>]",
5721
+ "",
5722
+ "Ends the lease so another Pane can use the device. It shuts down 10 minutes later unless a Pane opens it again.",
5723
+ "",
5724
+ "Options:",
5725
+ " --json Print machine-readable output",
5726
+ " --pane-dir <path> Connect to a specific Pane data directory"
5727
+ ],
5728
+ "devices usage": [
5729
+ "Usage:",
5730
+ " runpane devices usage [--json] [--pane-dir <path>]",
5731
+ "",
5732
+ "For machine health. Lists every simulator and emulator on this machine, including ones made outside Pane (paneMade false), with OS, disk and, when booted, memory (simslim measure when installed, otherwise the simulator's processes).",
5733
+ "",
5734
+ "Options:",
5735
+ " --json Print machine-readable output",
5736
+ " --pane-dir <path> Connect to a specific Pane data directory"
5737
+ ],
5738
+ "devices free": [
5739
+ "Usage:",
5740
+ " runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]",
5741
+ "",
5742
+ "Never touches the person's own devices or runtimes, or a device a Pane holds.",
5743
+ "",
5744
+ "Options:",
5745
+ " --idle Shut down Pane's devices no Pane holds",
5746
+ " --all Also erase and delete them",
5747
+ " --yes Confirm the change",
5748
+ " --json Print machine-readable output",
5749
+ " --pane-dir <path> Connect to a specific Pane data directory"
5750
+ ],
5751
+ "devices": [
5752
+ "Usage:",
5753
+ " runpane devices <list|open|screenshot|act|run|close|usage|free> [options]",
5754
+ "",
5755
+ "Phone simulators and emulators for agents. device_open boots a device for the calling tab's Pane and shows its live screen in a device tab beside the agent; the other commands act only on that Pane's device.",
5756
+ "On a machine without Xcode, iOS runs on a linked Mac. See docs/DEVICES.md.",
5757
+ "",
5758
+ "Commands:",
5759
+ " runpane devices list [--json] [--pane-dir <path>]",
5760
+ " runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]",
5761
+ " runpane devices screenshot [--json] [--pane-dir <path>]",
5762
+ " runpane devices act [--json] [--pane-dir <path>] -- <command>",
5763
+ " runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>",
5764
+ " runpane devices close [--json] [--pane-dir <path>]",
5765
+ " runpane devices usage [--json] [--pane-dir <path>]",
5766
+ " runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]"
5767
+ ],
5768
+ "machine": [
5769
+ "Usage:",
5770
+ " runpane machine <health|cleanup> [options]",
5771
+ "",
5772
+ "Shows this machine's health and frees the disk space Pane made.",
5773
+ "Tier 1: Pane made it and nothing uses it now; Pane removes it by itself.",
5774
+ "Tier 2: may still be wanted (archived Pane folders, paused Panes' scratch, agent temp folders); Pane asks before it deletes.",
5775
+ "Tier 3: not Pane's: another tool's data, a database copy Pane did not write, or a worktree Pane did not create.",
5776
+ "Pane never deletes tier 3; machine health says how to free each one.",
5777
+ "",
5778
+ "Commands:",
5779
+ " runpane machine health [--json] [--pane-dir <path>]",
5780
+ " runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"
5781
+ ],
5782
+ "machine health": [
5783
+ "Usage:",
5784
+ "runpane machine health [--json] [--pane-dir <path>]",
5785
+ "",
5786
+ "Shows free disk per volume, the memory level and its source, the Panes using the most memory,",
5787
+ "leak warnings, and the last storage scan by tier, with sizes and reasons. It deletes nothing.",
5788
+ "",
5789
+ "Options:",
5790
+ " --json Print JSON output.",
5791
+ " --pane-dir <path> Connect to a specific Pane data directory."
5792
+ ],
5793
+ "machine cleanup": [
5794
+ "Usage:",
5795
+ "runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]",
5796
+ "",
5797
+ "Without --yes, lists the tier 1 and 2 items of that kind from the last scan and their total size,",
5798
+ "and deletes nothing. With --yes, Pane re-checks each item, deletes it, and reports what it skipped and why.",
5799
+ "Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused: free them with the tool that owns them.",
5800
+ "",
5801
+ "Options:",
5802
+ " --kind <kind> Kind of item to delete, from machine health:",
5803
+ " update-snapshot, migration-backup, archived-pane-folder,",
5804
+ " agent-temp, paused-scratch.",
5805
+ " --yes Delete them. Without --yes, list them and delete nothing.",
5806
+ " --json Print JSON output.",
5807
+ " --pane-dir <path> Connect to a specific Pane data directory."
5418
5808
  ]
5419
5809
  },
5420
5810
  "pip": {
@@ -5500,6 +5890,8 @@ exports.RUNPANE_CONTRACT = {
5500
5890
  " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]",
5501
5891
  " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]",
5502
5892
  " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]",
5893
+ " python -m runpane machine health [--json]",
5894
+ " python -m runpane machine cleanup --kind <kind> [--yes] [--json]",
5503
5895
  " python -m runpane loops list [--json]",
5504
5896
  " python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes",
5505
5897
  " python -m runpane loops update|run|pause|resume|delete --loop <id> --yes",
@@ -5940,7 +6332,7 @@ exports.RUNPANE_CONTRACT = {
5940
6332
  "Options:",
5941
6333
  " --repo <selector> active, id, exact path, or saved repository name",
5942
6334
  " --name <name> Pane/session name",
5943
- " --worktree-name <name> Worktree directory name; defaults to --name",
6335
+ " --worktree-name <name> Worktree directory name, cut to 100 characters at a word; defaults to --name",
5944
6336
  " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name",
5945
6337
  " --base-branch <ref> Ref to branch from; --base is an alias",
5946
6338
  " --agent <codex|claude|cursor|opencode|pi> Built-in terminal template; with --tool-command, the agent it runs",
@@ -7347,38 +7739,142 @@ exports.RUNPANE_CONTRACT = {
7347
7739
  " --session <id|name> Named Session id or exact name",
7348
7740
  " --pane-dir <path> Connect to a specific Pane data directory",
7349
7741
  " --json Print machine-readable output"
7350
- ]
7351
- }
7352
- },
7353
- "docs": {
7354
- "maintainerRules": [
7355
- "Treat `contracts/runpane/contract.json` as the source of truth for both wrapper packages and generated docs.",
7356
- "Every command, flag, platform default, artifact-selection rule, and attribution rule change must be reflected in the contract.",
7357
- "The npm and PyPI wrappers must expose the same command behavior unless the contract explicitly documents a package-manager-specific difference.",
7358
- "Root `README.md` and package READMEs should lead with one guided quick-start command. Explicit commands, package-manager variants, and flags belong in an Advanced section.",
7359
- "Release version bumps must keep root `package.json`, `packages/runpane`, and `packages/runpane-py` versions in sync. Run `pnpm run check:runpane-package-versions` before release.",
7360
- "`pnpm run test:runpane-contract` must pass before changing wrapper command parsing, help output, platform defaults, release asset selection, or generated contract artifacts.",
7361
- "Token-based npm or PyPI publishing is a temporary fallback. Prefer trusted publishing once the package names are reserved and trusted publishers are configured."
7362
- ],
7363
- "recommendedQuickStarts": [
7364
- "npx --yes runpane@latest",
7365
- "npm i -g runpane && runpane setup",
7366
- "pipx run runpane",
7367
- "python -m pip install runpane && python -m runpane setup"
7368
- ],
7369
- "npmCommands": [
7370
- "npx --yes runpane@latest",
7371
- "npx --yes runpane@latest setup",
7372
- "npx --yes runpane@latest install client",
7373
- "npx --yes runpane@latest install daemon --label \"My Server\"",
7374
- "pnpm dlx runpane@latest",
7375
- "pnpm dlx runpane@latest install daemon --label \"My Server\"",
7376
- "npm i -g runpane && runpane",
7377
- "npm i -g runpane && runpane setup",
7378
- "npm i -g runpane && runpane install daemon --label \"My Server\"",
7379
- "pnpm add -g runpane && runpane",
7380
- "pnpm add -g runpane && runpane setup",
7381
- "pnpm add -g runpane && runpane install daemon --label \"My Server\"",
7742
+ ],
7743
+ "devices list": [
7744
+ "Usage:",
7745
+ " runpane devices list [--json] [--pane-dir <path>]",
7746
+ "",
7747
+ "`runpane devices list` ships in the npm package and the Pane app, not in the Python package.",
7748
+ "Run it with Node instead: npx --yes runpane@latest devices list"
7749
+ ],
7750
+ "devices open": [
7751
+ "Usage:",
7752
+ " runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]",
7753
+ "",
7754
+ "`runpane devices open` ships in the npm package and the Pane app, not in the Python package.",
7755
+ "Run it with Node instead: npx --yes runpane@latest devices open"
7756
+ ],
7757
+ "devices screenshot": [
7758
+ "Usage:",
7759
+ " runpane devices screenshot [--json] [--pane-dir <path>]",
7760
+ "",
7761
+ "`runpane devices screenshot` ships in the npm package and the Pane app, not in the Python package.",
7762
+ "Run it with Node instead: npx --yes runpane@latest devices screenshot"
7763
+ ],
7764
+ "devices act": [
7765
+ "Usage:",
7766
+ " runpane devices act [--json] [--pane-dir <path>] -- <command>",
7767
+ "",
7768
+ "`runpane devices act` ships in the npm package and the Pane app, not in the Python package.",
7769
+ "Run it with Node instead: npx --yes runpane@latest devices act"
7770
+ ],
7771
+ "devices run": [
7772
+ "Usage:",
7773
+ " runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>",
7774
+ "",
7775
+ "`runpane devices run` ships in the npm package and the Pane app, not in the Python package.",
7776
+ "Run it with Node instead: npx --yes runpane@latest devices run"
7777
+ ],
7778
+ "devices close": [
7779
+ "Usage:",
7780
+ " runpane devices close [--json] [--pane-dir <path>]",
7781
+ "",
7782
+ "`runpane devices close` ships in the npm package and the Pane app, not in the Python package.",
7783
+ "Run it with Node instead: npx --yes runpane@latest devices close"
7784
+ ],
7785
+ "devices usage": [
7786
+ "Usage:",
7787
+ " runpane devices usage [--json] [--pane-dir <path>]",
7788
+ "",
7789
+ "`runpane devices usage` ships in the npm package and the Pane app, not in the Python package.",
7790
+ "Run it with Node instead: npx --yes runpane@latest devices usage"
7791
+ ],
7792
+ "devices free": [
7793
+ "Usage:",
7794
+ " runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]",
7795
+ "",
7796
+ "`runpane devices free` ships in the npm package and the Pane app, not in the Python package.",
7797
+ "Run it with Node instead: npx --yes runpane@latest devices free"
7798
+ ],
7799
+ "devices": [
7800
+ "Usage:",
7801
+ " runpane devices <list|open|screenshot|act|run|close|usage|free> [options]",
7802
+ "",
7803
+ "`runpane devices` ships in the npm package and the Pane app, not in the Python package.",
7804
+ "Run it with Node instead: npx --yes runpane@latest devices"
7805
+ ],
7806
+ "machine": [
7807
+ "Usage:",
7808
+ " python -m runpane machine <health|cleanup> [options]",
7809
+ "",
7810
+ "Shows this machine's health and frees the disk space Pane made.",
7811
+ "Tier 1: Pane made it and nothing uses it now; Pane removes it by itself.",
7812
+ "Tier 2: may still be wanted (archived Pane folders, paused Panes' scratch, agent temp folders); Pane asks before it deletes.",
7813
+ "Tier 3: not Pane's: another tool's data, a database copy Pane did not write, or a worktree Pane did not create.",
7814
+ "Pane never deletes tier 3; machine health says how to free each one.",
7815
+ "",
7816
+ "Commands:",
7817
+ " python -m runpane machine health [--json] [--pane-dir <path>]",
7818
+ " python -m runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"
7819
+ ],
7820
+ "machine health": [
7821
+ "Usage:",
7822
+ "python -m runpane machine health [--json] [--pane-dir <path>]",
7823
+ "",
7824
+ "Shows free disk per volume, the memory level and its source, the Panes using the most memory,",
7825
+ "leak warnings, and the last storage scan by tier, with sizes and reasons. It deletes nothing.",
7826
+ "",
7827
+ "Options:",
7828
+ " --json Print JSON output.",
7829
+ " --pane-dir <path> Connect to a specific Pane data directory."
7830
+ ],
7831
+ "machine cleanup": [
7832
+ "Usage:",
7833
+ "python -m runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]",
7834
+ "",
7835
+ "Without --yes, lists the tier 1 and 2 items of that kind from the last scan and their total size,",
7836
+ "and deletes nothing. With --yes, Pane re-checks each item, deletes it, and reports what it skipped and why.",
7837
+ "Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused: free them with the tool that owns them.",
7838
+ "",
7839
+ "Options:",
7840
+ " --kind <kind> Kind of item to delete, from machine health:",
7841
+ " update-snapshot, migration-backup, archived-pane-folder,",
7842
+ " agent-temp, paused-scratch.",
7843
+ " --yes Delete them. Without --yes, list them and delete nothing.",
7844
+ " --json Print JSON output.",
7845
+ " --pane-dir <path> Connect to a specific Pane data directory."
7846
+ ]
7847
+ }
7848
+ },
7849
+ "docs": {
7850
+ "maintainerRules": [
7851
+ "Treat `contracts/runpane/contract.json` as the source of truth for both wrapper packages and generated docs.",
7852
+ "Every command, flag, platform default, artifact-selection rule, and attribution rule change must be reflected in the contract.",
7853
+ "The npm and PyPI wrappers must expose the same command behavior unless the contract explicitly documents a package-manager-specific difference.",
7854
+ "Root `README.md` and package READMEs should lead with one guided quick-start command. Explicit commands, package-manager variants, and flags belong in an Advanced section.",
7855
+ "Release version bumps must keep root `package.json`, `packages/runpane`, and `packages/runpane-py` versions in sync. Run `pnpm run check:runpane-package-versions` before release.",
7856
+ "`pnpm run test:runpane-contract` must pass before changing wrapper command parsing, help output, platform defaults, release asset selection, or generated contract artifacts.",
7857
+ "Token-based npm or PyPI publishing is a temporary fallback. Prefer trusted publishing once the package names are reserved and trusted publishers are configured."
7858
+ ],
7859
+ "recommendedQuickStarts": [
7860
+ "npx --yes runpane@latest",
7861
+ "npm i -g runpane && runpane setup",
7862
+ "pipx run runpane",
7863
+ "python -m pip install runpane && python -m runpane setup"
7864
+ ],
7865
+ "npmCommands": [
7866
+ "npx --yes runpane@latest",
7867
+ "npx --yes runpane@latest setup",
7868
+ "npx --yes runpane@latest install client",
7869
+ "npx --yes runpane@latest install daemon --label \"My Server\"",
7870
+ "pnpm dlx runpane@latest",
7871
+ "pnpm dlx runpane@latest install daemon --label \"My Server\"",
7872
+ "npm i -g runpane && runpane",
7873
+ "npm i -g runpane && runpane setup",
7874
+ "npm i -g runpane && runpane install daemon --label \"My Server\"",
7875
+ "pnpm add -g runpane && runpane",
7876
+ "pnpm add -g runpane && runpane setup",
7877
+ "pnpm add -g runpane && runpane install daemon --label \"My Server\"",
7382
7878
  "yarn dlx runpane@latest install daemon --label \"My Server\"",
7383
7879
  "bunx runpane@latest install daemon --label \"My Server\""
7384
7880
  ],
@@ -7451,6 +7947,9 @@ exports.RUNPANE_CONTRACT = {
7451
7947
  "runpane lock acquire --name testing-account --ttl 30m --wait 1800000 --note \"call QA\" --json",
7452
7948
  "runpane lock release --name testing-account --json",
7453
7949
  "runpane lock list --json",
7950
+ "runpane machine health --json",
7951
+ "runpane machine cleanup --kind update-snapshot --json",
7952
+ "runpane machine cleanup --kind update-snapshot --yes --json",
7454
7953
  "runpane loops create --repo active --name nightly-bug-sweep --cron \"0 3 * * *\" --agent claude --prompt \"Fix one bug from yesterday's issues\" --yes --json",
7455
7954
  "runpane loops list --json",
7456
7955
  "runpane loops run --loop <loop-id> --yes --json",
@@ -7528,6 +8027,7 @@ exports.RUNPANE_CONTRACT = {
7528
8027
  "`sessions detach` detach a Pane from a named Session.",
7529
8028
  "`sessions overview` read a live status, activity, git, and pull request overview for a named Session. Each panel in `panes[].panels[]` carries its own latest `runpane report` as `report`, so one call shows what every worker last reported and when (`reportedAt`, next to the panel's `state` and `lastActivityAt`). When a report's summary is a complete JSON object, such as a status file sent with `--summary-file`, `report.data` holds it exactly as the worker gave it; Pane never reads, renames or validates its fields. A summary that is not a JSON object (plain text, an array, a scalar or invalid JSON), is nested more than 64 levels deep, or was truncated (`summaryTruncated`), has no `data`. A panel that never reported has no `report`. `panes[].report` is still the newest report among the Pane's panels. Each panel also has `type` (`terminal`, `browser`, `editor`, `explorer`, `diff`, ...): a Pane linked whole lists every tab, with `explorer` and `diff` last, and a link that names tabs lists exactly those.",
7530
8029
  "`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.",
8030
+ "`runpane machine health` shows this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free by tier. `runpane machine cleanup --kind <kind>` lists one kind of tier 1 or 2 item (a dry run) and deletes them with `--yes`; tier 3 items are not Pane's, so it refuses them and says how to free them. Agents free disk only through this command, never with rm.",
7531
8031
  "`runpane loops list|create|update|run|pause|resume|delete` manage loops (scheduled tasks): a cron schedule that starts a new Pane in a fresh worktree for each run, or sends a prompt to a Session's agent. Loops are for large recurring jobs and run at most once an hour; for short waits, agents use their harness's own sleep and wake. See [LOOPS.md](LOOPS.md).",
7532
8032
  "`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task (a new tab in the work's Pane with `--pane <id>`, or a new Pane for new work), check on it, and send it a follow-up.",
7533
8033
  "`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` (each panel's own report as `panes[].panels[].report`, with a JSON object summary as `data`, and the Pane's newest as `panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`. It prints how many watches were waiting for the report and received it (`Delivered to 1 waiting watcher.`, `liveWatchers` in JSON). Zero means nobody was waiting right now, not that the report is lost: it stays on the panel, and a named-cursor watch receives it when it next waits.",
@@ -9110,6 +9610,19 @@ exports.RUNPANE_CONTRACT = {
9110
9610
  "https://runpane.net/pair#s=secret&c=k7xq2m4n8p3r5t6v&n=parsa-devbox",
9111
9611
  "--yes",
9112
9612
  "--json"
9613
+ ],
9614
+ [
9615
+ "machine",
9616
+ "health",
9617
+ "--json"
9618
+ ],
9619
+ [
9620
+ "machine",
9621
+ "cleanup",
9622
+ "--kind",
9623
+ "update-snapshot",
9624
+ "--yes",
9625
+ "--json"
9113
9626
  ]
9114
9627
  ],
9115
9628
  "topLevelHelpIncludes": [
@@ -18359,167 +18872,1147 @@ exports.RUNPANE_CONTRACT = {
18359
18872
  }
18360
18873
  },
18361
18874
  "additionalProperties": false
18362
- }
18363
- },
18364
- "agentContext": {
18365
- "intro": {
18366
- "humans": {
18367
- "title": "For people",
18368
- "sentences": [
18369
- "Open a Session for each workstream and tell its agent what you want, in plain words.",
18370
- "It plans the work, starts a Pane for each feature, and runs the builders, reviewers and QA as tabs inside them, so you don't have to.",
18371
- "{approvals}",
18372
- "When a feature is done, archiving its Pane cleans up its worktree and files for you."
18373
- ],
18374
- "approvals": {
18375
- "on": "Anything that needs you, like a decision, an approval or a merge, waits for you in Approvals while everything else keeps moving.",
18376
- "off": "When the agent needs you for a decision, an approval or a merge, it asks in its terminal while everything else keeps moving."
18377
- }
18378
- },
18379
- "agents": {
18380
- "title": "For agents",
18381
- "sentences": [
18382
- "In Pane, work flows from a Session to Panes to tabs.",
18383
- "A Session is a workstream: the person or an orchestrator opens it, and every Pane created or adopted from inside it joins it. When you are in one ($PANE_SESSION_DIR is set: you orchestrate it or your Pane belongs to it), start new Panes from there (each result's `association` names the Session they joined); when you are in none, work with several parts starts a new Session.",
18384
- "Each feature gets one Pane, a git worktree on its own branch, and everything for that feature (the agent that builds it, its reviews, QA and fixes) runs as tabs inside it.",
18385
- "Scratch files go in $PANE_SCRATCH_DIR inside the Pane.",
18386
- "When the feature is done, archive the Pane and Pane cleans up its worktree, tabs and scratch files.",
18387
- "{approvals}"
18388
- ],
18389
- "approvals": {
18390
- "on": "When you need the person, ask through Approvals (a Session worker reports blocked to its orchestrator instead).",
18391
- "off": "When you need the person, ask in this terminal."
18392
- }
18393
- }
18394
18875
  },
18395
- "workspaceRules": [
18396
- "Session: where a workstream lives, and the default home for orchestrated work. Its folder ($PANE_SESSION_DIR) holds plans, notes and reports.",
18397
- "Pane: one per feature (one worktree, one branch). Before creating one, find the feature's Pane (`runpane panes list --json`, match the branch) and create one only when none exists.",
18398
- "Tab: reviews, review reruns, QA, fixes and follow-ups for a feature go in new tabs in its Pane (`runpane panels create --pane <id>`), never a new Pane or a plain `git worktree`.",
18399
- "Scratch: in Pane, put temporary files, clones, captures, downloads, logs and test instances (an isolated PANE_DIR and HOME for QA) in `$PANE_SCRATCH_DIR`, not /tmp or your tool's own scratchpad. When the feature is done, archive the Pane and Pane cleans it up."
18400
- ],
18401
- "brief": {
18402
- "title": "Pane agent context",
18403
- "summary": "Pane runs coding agents in parallel git worktrees. A Pane is a visible workspace for one feature or PR, with its own Pane-managed git worktree and branch; a panel is a terminal tab in a Pane and shares its worktree; an agent is a CLI process running in a panel.",
18404
- "rules": [
18405
- "Start with `runpane doctor --json` to understand wrapper, platform, daemon reachability, and the next safe commands before mutating Pane state.",
18406
- "In a Pane repository checkout, if `runpane` is not on PATH, build the local wrapper with `pnpm --filter runpane build` and run it with patched Node 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+ (26.x), for example `node packages/runpane/dist/cli.js doctor --json`.",
18407
- "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, then route by the rule If the work's branch already has a Pane (find it with `runpane panes list --repo <repo> --json` by matching the PR's head branch against `git -C <worktreePath> branch --show-current`), open a new agent tab in it with `runpane panels create --pane <id> --agent <agent> --initial-input \"<task>\" --source agent --no-focus --wait-ready --yes --json`; only when the branch has no Pane yet, create one 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.",
18408
- "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.",
18409
- "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.",
18410
- "Use `panes create` only when the work's branch has no Pane yet (new work, or an existing PR with no Pane), since each new Pane creates a worktree. Every later agent for that branch opens as a new tab in its Pane with `panels create --pane <id>`, never a new Pane. Tabs share one checkout: only the implementer changes the branch or HEAD, one writer at a time; review, audit and QA tabs never run `git checkout`, `reset` or `stash`.",
18411
- "For private background decomposition, use your normal subagent/worktree mechanism instead of Pane.",
18412
- "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`.",
18413
- "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.",
18414
- "Use `runpane agent-context --json` for the full agent-facing CLI context, or `runpane agent-context --command <command> --json` for one detailed command definition.",
18415
- "For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.",
18416
- "Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.",
18417
- "Read and change a repo's Project Settings (build, run, and archive scripts, worktree folder, environment variables) with `runpane repos get` and `runpane repos update`; never edit Pane's database by hand.",
18418
- "When a command needs a secret (an API key, a token), run it with `runpane secrets exec --project <project> -- <command>`. If the secret is missing, ask the person with `runpane secrets request`; never ask them to paste a secret into the chat, and never print one.",
18419
- "If WSL cannot reach Pane, the user may be running Windows Pane; try `/mnt/c/Users/<you>/.pane/bin/runpane doctor --json`, or with an older Pane build `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane doctor --json'`.",
18420
- "If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.",
18421
- "Use `runpane agents doctor --agent <codex|claude|cursor|opencode|pi> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.",
18422
- "Use `runpane panes create --wait-ready` to create Panes, wait for each agent's input box, and verify its starting message in one call.",
18423
- "Use `runpane panels screen` for compact current state, including Claude and Codex composer state. Use `panels wait` for create-time readiness or text checks. Use `runpane watch --follow` to block on workspace transitions (READY, BLOCKED, IDLE, STUCK, EXIT) without polling, or `runpane watch --until-event` to exit on the first one. Use `panels submit` to send and submit a new turn. Use `panels submit-composer --strategy auto` only for a composer that was filled separately.",
18424
- "Use `runpane panels input` only when exact bytes are required, such as Ctrl-C or handcrafted terminal input.",
18425
- "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`.",
18426
- "After creating Panes or sending terminal input, validate with `panels wait` or bounded `panels screen`. For a harness that consumes streaming output, use `runpane watch --follow` (with `--session <id>` for a Session); its named consumer applies settling and batching. Adding numeric --since leaves it unnamed and bypasses cadence; --as cannot be combined with --since. A harness that wakes only when a process exits uses `runpane watch --as <name> --until-event --json` and runs it again after each event. Single-event waits deliver immediately without follow cadence. Never pipe `--follow` into `grep -m1` or `head`.",
18427
- "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.",
18428
- "Loops (`runpane loops create`) run a task on a cron schedule, each run in a new Pane or, with `--session`, as a message to a Session's agent. They are for large recurring jobs, such as a nightly bug sweep, and run at most once an hour. For a short wait, use your agent harness's own sleep and wake instead."
18876
+ "deviceSummary": {
18877
+ "type": "object",
18878
+ "required": [
18879
+ "id",
18880
+ "platform",
18881
+ "name",
18882
+ "os",
18883
+ "machine",
18884
+ "state",
18885
+ "paneMade"
18429
18886
  ],
18430
- "detailCommand": "runpane agent-context --command <command> [--json]",
18431
- "tools": [
18432
- {
18433
- "name": "doctor",
18434
- "summary": "Report wrapper, platform, installed Pane, and daemon reachability before an agent mutates Pane state.",
18435
- "arguments": [
18436
- "--json",
18437
- "--pane-dir <path>",
18438
- "--pane-path <path>"
18439
- ]
18440
- },
18441
- {
18442
- "name": "agent-context",
18443
- "summary": "Print token-efficient Pane command context for coding agents.",
18444
- "arguments": [
18445
- "--command <command>",
18446
- "--json"
18447
- ]
18887
+ "properties": {
18888
+ "id": {
18889
+ "type": "string"
18448
18890
  },
18449
- {
18450
- "name": "agents doctor",
18451
- "summary": "Check whether Codex or Claude is available in the repo environment Pane will use.",
18452
- "arguments": [
18453
- "--agent <codex|claude|cursor|opencode|pi>",
18454
- "--repo <selector>",
18455
- "--json"
18891
+ "platform": {
18892
+ "enum": [
18893
+ "ios",
18894
+ "android"
18456
18895
  ]
18457
18896
  },
18458
- {
18459
- "name": "repos list",
18460
- "summary": "List repositories saved in the running Pane app.",
18461
- "arguments": [
18462
- "--json",
18463
- "--pane-dir <path>"
18464
- ]
18897
+ "name": {
18898
+ "type": "string"
18465
18899
  },
18466
- {
18467
- "name": "repos add",
18468
- "summary": "Register an existing git repository with the running Pane app.",
18469
- "arguments": [
18470
- "--path <path>",
18471
- "--name <name>",
18472
- "--yes",
18473
- "--json",
18474
- "--dry-run",
18475
- "--pane-dir <path>"
18476
- ]
18900
+ "os": {
18901
+ "type": "string"
18477
18902
  },
18478
- {
18479
- "name": "repos get",
18480
- "summary": "Show a saved repository's Project Settings and the scripts Pane will run.",
18481
- "arguments": [
18482
- "--repo <selector>",
18483
- "--json",
18484
- "--pane-dir <path>"
18485
- ]
18903
+ "machine": {
18904
+ "type": "string",
18905
+ "description": "The machine the device runs on."
18486
18906
  },
18487
- {
18488
- "name": "repos update",
18489
- "summary": "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.",
18490
- "arguments": [
18491
- "--repo <selector>",
18492
- "--build-script <script>",
18493
- "--run-script <script>",
18494
- "--archive-script <script>",
18495
- "--worktree-folder <path>",
18496
- "--env <json>",
18497
- "--env-remove <name,...>",
18498
- "--name <name>",
18499
- "--clear <setting,...>",
18500
- "--from-json <path|->",
18501
- "--yes",
18502
- "--dry-run",
18503
- "--json"
18907
+ "state": {
18908
+ "enum": [
18909
+ "booted",
18910
+ "shutdown"
18504
18911
  ]
18505
18912
  },
18506
- {
18507
- "name": "repos rename",
18508
- "summary": "Rename a repository saved in the running Pane app.",
18509
- "arguments": [
18510
- "--repo <selector>",
18511
- "--name <name>",
18512
- "--yes",
18513
- "--json",
18514
- "--pane-dir <path>"
18515
- ]
18913
+ "paneMade": {
18914
+ "type": "boolean",
18915
+ "description": "Pane created this device; it erases and deletes only these."
18516
18916
  },
18517
- {
18518
- "name": "secrets list",
18519
- "summary": "List Pane secrets: project, name, time and machine. Never a value.",
18520
- "arguments": [
18521
- "--project <project>",
18522
- "--json"
18917
+ "heldBy": {
18918
+ "type": "object",
18919
+ "required": [
18920
+ "paneId",
18921
+ "paneName"
18922
+ ],
18923
+ "properties": {
18924
+ "paneId": {
18925
+ "type": "string"
18926
+ },
18927
+ "paneName": {
18928
+ "type": "string"
18929
+ }
18930
+ },
18931
+ "additionalProperties": false
18932
+ }
18933
+ },
18934
+ "additionalProperties": false
18935
+ },
18936
+ "devicesListResult": {
18937
+ "type": "object",
18938
+ "required": [
18939
+ "ok",
18940
+ "devices"
18941
+ ],
18942
+ "properties": {
18943
+ "ok": {
18944
+ "const": true
18945
+ },
18946
+ "devices": {
18947
+ "type": "array",
18948
+ "items": {
18949
+ "$ref": "#/jsonSchemas/deviceSummary"
18950
+ }
18951
+ }
18952
+ },
18953
+ "additionalProperties": false
18954
+ },
18955
+ "devicesOpenResult": {
18956
+ "type": "object",
18957
+ "required": [
18958
+ "ok",
18959
+ "device",
18960
+ "machine",
18961
+ "panelId",
18962
+ "paneDevice",
18963
+ "next"
18964
+ ],
18965
+ "properties": {
18966
+ "ok": {
18967
+ "const": true
18968
+ },
18969
+ "device": {
18970
+ "$ref": "#/jsonSchemas/deviceSummary"
18971
+ },
18972
+ "machine": {
18973
+ "type": "object",
18974
+ "required": [
18975
+ "name",
18976
+ "reason"
18977
+ ],
18978
+ "properties": {
18979
+ "name": {
18980
+ "type": "string"
18981
+ },
18982
+ "reason": {
18983
+ "type": "string",
18984
+ "description": "Why this machine runs the device."
18985
+ }
18986
+ },
18987
+ "additionalProperties": false
18988
+ },
18989
+ "panelId": {
18990
+ "type": "string",
18991
+ "description": "The device tab beside the agent."
18992
+ },
18993
+ "paneDevice": {
18994
+ "type": "object",
18995
+ "description": "Marker a chat tab uses to show the device card.",
18996
+ "required": [
18997
+ "kind",
18998
+ "panelId",
18999
+ "name",
19000
+ "machine"
19001
+ ],
19002
+ "properties": {
19003
+ "kind": {
19004
+ "const": "pane-device"
19005
+ },
19006
+ "panelId": {
19007
+ "type": "string"
19008
+ },
19009
+ "name": {
19010
+ "type": "string"
19011
+ },
19012
+ "os": {
19013
+ "type": "string"
19014
+ },
19015
+ "machine": {
19016
+ "type": "string"
19017
+ }
19018
+ },
19019
+ "additionalProperties": false
19020
+ },
19021
+ "next": {
19022
+ "type": "string"
19023
+ }
19024
+ },
19025
+ "additionalProperties": false
19026
+ },
19027
+ "devicesScreenshotResult": {
19028
+ "type": "object",
19029
+ "required": [
19030
+ "ok",
19031
+ "path",
19032
+ "mimeType"
19033
+ ],
19034
+ "properties": {
19035
+ "ok": {
19036
+ "const": true
19037
+ },
19038
+ "path": {
19039
+ "type": "string",
19040
+ "description": "PNG on the caller's machine."
19041
+ },
19042
+ "mimeType": {
19043
+ "const": "image/png"
19044
+ },
19045
+ "width": {
19046
+ "type": "number"
19047
+ },
19048
+ "height": {
19049
+ "type": "number"
19050
+ }
19051
+ },
19052
+ "additionalProperties": false
19053
+ },
19054
+ "devicesActResult": {
19055
+ "type": "object",
19056
+ "required": [
19057
+ "ok",
19058
+ "exitCode",
19059
+ "output"
19060
+ ],
19061
+ "properties": {
19062
+ "ok": {
19063
+ "const": true
19064
+ },
19065
+ "exitCode": {
19066
+ "type": "number",
19067
+ "description": "agent-device's exit code."
19068
+ },
19069
+ "output": {
19070
+ "type": "string",
19071
+ "description": "agent-device's output."
19072
+ }
19073
+ },
19074
+ "additionalProperties": false
19075
+ },
19076
+ "devicesRunResult": {
19077
+ "type": "object",
19078
+ "required": [
19079
+ "ok"
19080
+ ],
19081
+ "properties": {
19082
+ "ok": {
19083
+ "const": true
19084
+ },
19085
+ "synced": {
19086
+ "type": "boolean"
19087
+ },
19088
+ "cwd": {
19089
+ "type": "string",
19090
+ "description": "Where the command ran: the worktree, or Pane's synced checkout on a linked Mac."
19091
+ },
19092
+ "machine": {
19093
+ "type": "string"
19094
+ },
19095
+ "jobId": {
19096
+ "type": "string"
19097
+ },
19098
+ "state": {
19099
+ "enum": [
19100
+ "running",
19101
+ "exited"
19102
+ ]
19103
+ },
19104
+ "exitCode": {
19105
+ "type": "number"
19106
+ },
19107
+ "logTail": {
19108
+ "type": "string"
19109
+ }
19110
+ },
19111
+ "additionalProperties": false
19112
+ },
19113
+ "devicesCloseResult": {
19114
+ "type": "object",
19115
+ "required": [
19116
+ "ok",
19117
+ "closed",
19118
+ "jobsStopped"
19119
+ ],
19120
+ "properties": {
19121
+ "ok": {
19122
+ "const": true
19123
+ },
19124
+ "closed": {
19125
+ "type": "array",
19126
+ "items": {
19127
+ "type": "string"
19128
+ }
19129
+ },
19130
+ "jobsStopped": {
19131
+ "type": "number"
19132
+ }
19133
+ },
19134
+ "additionalProperties": false
19135
+ },
19136
+ "devicesUsageResult": {
19137
+ "type": "object",
19138
+ "required": [
19139
+ "ok",
19140
+ "machines"
19141
+ ],
19142
+ "properties": {
19143
+ "ok": {
19144
+ "const": true
19145
+ },
19146
+ "machines": {
19147
+ "type": "array",
19148
+ "items": {
19149
+ "type": "object",
19150
+ "required": [
19151
+ "machine",
19152
+ "devices",
19153
+ "helpers",
19154
+ "checkouts",
19155
+ "runtimes",
19156
+ "slimSim"
19157
+ ],
19158
+ "properties": {
19159
+ "machine": {
19160
+ "type": "string"
19161
+ },
19162
+ "devices": {
19163
+ "type": "array",
19164
+ "items": {
19165
+ "type": "object",
19166
+ "required": [
19167
+ "id",
19168
+ "platform",
19169
+ "name",
19170
+ "os",
19171
+ "paneMade",
19172
+ "booted"
19173
+ ],
19174
+ "properties": {
19175
+ "id": {
19176
+ "type": "string"
19177
+ },
19178
+ "platform": {
19179
+ "enum": [
19180
+ "ios",
19181
+ "android"
19182
+ ]
19183
+ },
19184
+ "name": {
19185
+ "type": "string"
19186
+ },
19187
+ "os": {
19188
+ "type": "string",
19189
+ "description": "The device's OS runtime, such as iOS 27.0."
19190
+ },
19191
+ "paneMade": {
19192
+ "type": "boolean",
19193
+ "description": "Pane made it; false for simulators made outside Pane."
19194
+ },
19195
+ "booted": {
19196
+ "type": "boolean"
19197
+ },
19198
+ "heldBy": {
19199
+ "type": "string"
19200
+ },
19201
+ "lastUsedAt": {
19202
+ "type": "string"
19203
+ },
19204
+ "memoryBytes": {
19205
+ "type": "number"
19206
+ },
19207
+ "diskBytes": {
19208
+ "type": "number"
19209
+ }
19210
+ },
19211
+ "additionalProperties": false
19212
+ }
19213
+ },
19214
+ "helpers": {
19215
+ "type": "array",
19216
+ "items": {
19217
+ "type": "object",
19218
+ "required": [
19219
+ "name",
19220
+ "pid",
19221
+ "memoryBytes"
19222
+ ],
19223
+ "properties": {
19224
+ "name": {
19225
+ "type": "string"
19226
+ },
19227
+ "pid": {
19228
+ "type": "number"
19229
+ },
19230
+ "memoryBytes": {
19231
+ "type": "number"
19232
+ }
19233
+ },
19234
+ "additionalProperties": false
19235
+ }
19236
+ },
19237
+ "checkouts": {
19238
+ "type": "array",
19239
+ "items": {
19240
+ "type": "object",
19241
+ "required": [
19242
+ "path",
19243
+ "bytes"
19244
+ ],
19245
+ "properties": {
19246
+ "path": {
19247
+ "type": "string"
19248
+ },
19249
+ "bytes": {
19250
+ "type": "number"
19251
+ }
19252
+ },
19253
+ "additionalProperties": false
19254
+ }
19255
+ },
19256
+ "runtimes": {
19257
+ "type": "array",
19258
+ "description": "The OS runtimes and system images installed here, which devices are made from.",
19259
+ "items": {
19260
+ "type": "object",
19261
+ "required": [
19262
+ "platform",
19263
+ "name"
19264
+ ],
19265
+ "properties": {
19266
+ "platform": {
19267
+ "enum": [
19268
+ "ios",
19269
+ "android"
19270
+ ]
19271
+ },
19272
+ "name": {
19273
+ "type": "string"
19274
+ },
19275
+ "bytes": {
19276
+ "type": "number"
19277
+ }
19278
+ },
19279
+ "additionalProperties": false
19280
+ }
19281
+ },
19282
+ "slimSim": {
19283
+ "type": "boolean"
19284
+ }
19285
+ },
19286
+ "additionalProperties": false
19287
+ }
19288
+ }
19289
+ },
19290
+ "additionalProperties": false
19291
+ },
19292
+ "devicesFreeResult": {
19293
+ "type": "object",
19294
+ "required": [
19295
+ "ok",
19296
+ "machine",
19297
+ "shutdown",
19298
+ "deleted",
19299
+ "checkouts",
19300
+ "freedBytes"
19301
+ ],
19302
+ "properties": {
19303
+ "ok": {
19304
+ "const": true
19305
+ },
19306
+ "machine": {
19307
+ "type": "string"
19308
+ },
19309
+ "shutdown": {
19310
+ "type": "array",
19311
+ "items": {
19312
+ "type": "string"
19313
+ }
19314
+ },
19315
+ "deleted": {
19316
+ "type": "array",
19317
+ "items": {
19318
+ "type": "string"
19319
+ }
19320
+ },
19321
+ "checkouts": {
19322
+ "type": "array",
19323
+ "description": "Build checkouts deleted (--all): those no Pane on this machine or a linked computer holds a device for.",
19324
+ "items": {
19325
+ "type": "string"
19326
+ }
19327
+ },
19328
+ "freedBytes": {
19329
+ "type": "number",
19330
+ "description": "Disk freed by the deleted devices and checkouts."
19331
+ }
19332
+ },
19333
+ "additionalProperties": false
19334
+ },
19335
+ "reclaimItem": {
19336
+ "type": "object",
19337
+ "required": [
19338
+ "id",
19339
+ "kind",
19340
+ "tier",
19341
+ "path",
19342
+ "sizeBytes",
19343
+ "modifiedAt",
19344
+ "sessionId",
19345
+ "reason"
19346
+ ],
19347
+ "properties": {
19348
+ "id": {
19349
+ "type": "string",
19350
+ "minLength": 1
19351
+ },
19352
+ "kind": {
19353
+ "enum": [
19354
+ "update-snapshot",
19355
+ "migration-backup",
19356
+ "archived-pane-folder",
19357
+ "agent-temp",
19358
+ "paused-scratch",
19359
+ "foreign-worktree",
19360
+ "foreign-pane-data",
19361
+ "other-tool-data"
19362
+ ]
19363
+ },
19364
+ "tier": {
19365
+ "enum": [
19366
+ 1,
19367
+ 2,
19368
+ 3
19369
+ ]
19370
+ },
19371
+ "path": {
19372
+ "type": "string"
19373
+ },
19374
+ "sizeBytes": {
19375
+ "type": "number"
19376
+ },
19377
+ "modifiedAt": {
19378
+ "type": "number"
19379
+ },
19380
+ "sessionId": {
19381
+ "type": [
19382
+ "string",
19383
+ "null"
19384
+ ]
19385
+ },
19386
+ "reason": {
19387
+ "type": "string"
19388
+ },
19389
+ "projectPath": {
19390
+ "type": "string"
19391
+ },
19392
+ "howToFree": {
19393
+ "type": "string"
19394
+ }
19395
+ }
19396
+ },
19397
+ "machineHealthResult": {
19398
+ "type": "object",
19399
+ "required": [
19400
+ "ok",
19401
+ "snapshot",
19402
+ "inventory"
19403
+ ],
19404
+ "properties": {
19405
+ "ok": {
19406
+ "const": true
19407
+ },
19408
+ "snapshot": {
19409
+ "type": "object",
19410
+ "required": [
19411
+ "sampledAt",
19412
+ "platform",
19413
+ "hostname",
19414
+ "disk",
19415
+ "memory",
19416
+ "cpuPercent",
19417
+ "app",
19418
+ "panes",
19419
+ "leaks"
19420
+ ],
19421
+ "properties": {
19422
+ "sampledAt": {
19423
+ "type": "number"
19424
+ },
19425
+ "platform": {
19426
+ "type": "string"
19427
+ },
19428
+ "hostname": {
19429
+ "type": "string"
19430
+ },
19431
+ "disk": {
19432
+ "type": "object",
19433
+ "required": [
19434
+ "level",
19435
+ "volumes"
19436
+ ],
19437
+ "properties": {
19438
+ "level": {
19439
+ "enum": [
19440
+ "ok",
19441
+ "warning",
19442
+ "critical"
19443
+ ]
19444
+ },
19445
+ "volumes": {
19446
+ "type": "array",
19447
+ "items": {
19448
+ "type": "object",
19449
+ "required": [
19450
+ "path",
19451
+ "roles",
19452
+ "totalBytes",
19453
+ "freeBytes",
19454
+ "level"
19455
+ ],
19456
+ "properties": {
19457
+ "path": {
19458
+ "type": "string"
19459
+ },
19460
+ "roles": {
19461
+ "type": "array",
19462
+ "items": {
19463
+ "enum": [
19464
+ "pane-data",
19465
+ "worktrees",
19466
+ "temp"
19467
+ ]
19468
+ }
19469
+ },
19470
+ "totalBytes": {
19471
+ "type": "number"
19472
+ },
19473
+ "freeBytes": {
19474
+ "type": "number"
19475
+ },
19476
+ "level": {
19477
+ "enum": [
19478
+ "ok",
19479
+ "warning",
19480
+ "critical"
19481
+ ]
19482
+ }
19483
+ }
19484
+ }
19485
+ }
19486
+ }
19487
+ },
19488
+ "memory": {
19489
+ "type": "object",
19490
+ "required": [
19491
+ "level",
19492
+ "source",
19493
+ "detail",
19494
+ "totalBytes",
19495
+ "freeBytes",
19496
+ "swapUsedBytes"
19497
+ ],
19498
+ "properties": {
19499
+ "level": {
19500
+ "enum": [
19501
+ "ok",
19502
+ "warning",
19503
+ "critical"
19504
+ ]
19505
+ },
19506
+ "source": {
19507
+ "enum": [
19508
+ "macos-pressure",
19509
+ "psi",
19510
+ "available"
19511
+ ]
19512
+ },
19513
+ "detail": {
19514
+ "type": "string"
19515
+ },
19516
+ "totalBytes": {
19517
+ "type": "number"
19518
+ },
19519
+ "freeBytes": {
19520
+ "type": "number"
19521
+ },
19522
+ "swapUsedBytes": {
19523
+ "type": [
19524
+ "number",
19525
+ "null"
19526
+ ]
19527
+ }
19528
+ }
19529
+ },
19530
+ "cpuPercent": {
19531
+ "type": "number"
19532
+ },
19533
+ "app": {
19534
+ "type": "object",
19535
+ "required": [
19536
+ "rssMB",
19537
+ "cpuPercent"
19538
+ ],
19539
+ "properties": {
19540
+ "rssMB": {
19541
+ "type": "number"
19542
+ },
19543
+ "cpuPercent": {
19544
+ "type": "number"
19545
+ }
19546
+ }
19547
+ },
19548
+ "panes": {
19549
+ "type": "array",
19550
+ "items": {
19551
+ "type": "object",
19552
+ "required": [
19553
+ "sessionId",
19554
+ "name",
19555
+ "rssMB",
19556
+ "cpuPercent",
19557
+ "processes"
19558
+ ],
19559
+ "properties": {
19560
+ "sessionId": {
19561
+ "type": "string"
19562
+ },
19563
+ "name": {
19564
+ "type": "string"
19565
+ },
19566
+ "rssMB": {
19567
+ "type": "number"
19568
+ },
19569
+ "cpuPercent": {
19570
+ "type": "number"
19571
+ },
19572
+ "processes": {
19573
+ "type": "array",
19574
+ "items": {
19575
+ "type": "object"
19576
+ }
19577
+ }
19578
+ }
19579
+ }
19580
+ },
19581
+ "leaks": {
19582
+ "type": "array",
19583
+ "items": {
19584
+ "type": "object",
19585
+ "required": [
19586
+ "pid",
19587
+ "name",
19588
+ "sessionId",
19589
+ "memoryMB",
19590
+ "growthMB",
19591
+ "windowMs"
19592
+ ],
19593
+ "properties": {
19594
+ "pid": {
19595
+ "type": "number"
19596
+ },
19597
+ "started": {
19598
+ "type": "string"
19599
+ },
19600
+ "name": {
19601
+ "type": "string"
19602
+ },
19603
+ "sessionId": {
19604
+ "type": "string"
19605
+ },
19606
+ "panelId": {
19607
+ "type": [
19608
+ "string",
19609
+ "null"
19610
+ ]
19611
+ },
19612
+ "memoryMB": {
19613
+ "type": "number"
19614
+ },
19615
+ "growthMB": {
19616
+ "type": "number"
19617
+ },
19618
+ "windowMs": {
19619
+ "type": "number"
19620
+ },
19621
+ "series": {
19622
+ "type": "array",
19623
+ "items": {
19624
+ "type": "number"
19625
+ }
19626
+ }
19627
+ }
19628
+ }
19629
+ }
19630
+ }
19631
+ },
19632
+ "inventory": {
19633
+ "description": "Null until the first storage scan after Pane starts has finished.",
19634
+ "oneOf": [
19635
+ {
19636
+ "type": "object",
19637
+ "required": [
19638
+ "scannedAt",
19639
+ "durationMs",
19640
+ "items",
19641
+ "panes",
19642
+ "buckets"
19643
+ ],
19644
+ "properties": {
19645
+ "scannedAt": {
19646
+ "type": "number"
19647
+ },
19648
+ "durationMs": {
19649
+ "type": "number"
19650
+ },
19651
+ "items": {
19652
+ "type": "array",
19653
+ "items": {
19654
+ "$ref": "#/jsonSchemas/reclaimItem"
19655
+ }
19656
+ },
19657
+ "panes": {
19658
+ "type": "array",
19659
+ "items": {
19660
+ "type": "object"
19661
+ }
19662
+ },
19663
+ "buckets": {
19664
+ "type": "object"
19665
+ }
19666
+ }
19667
+ },
19668
+ {
19669
+ "type": "null"
19670
+ }
19671
+ ]
19672
+ }
19673
+ },
19674
+ "additionalProperties": false
19675
+ },
19676
+ "machineCleanupResult": {
19677
+ "oneOf": [
19678
+ {
19679
+ "type": "object",
19680
+ "required": [
19681
+ "ok",
19682
+ "dryRun",
19683
+ "kind",
19684
+ "items",
19685
+ "totalBytes"
19686
+ ],
19687
+ "properties": {
19688
+ "ok": {
19689
+ "const": true
19690
+ },
19691
+ "dryRun": {
19692
+ "const": true
19693
+ },
19694
+ "kind": {
19695
+ "enum": [
19696
+ "update-snapshot",
19697
+ "migration-backup",
19698
+ "archived-pane-folder",
19699
+ "agent-temp",
19700
+ "paused-scratch",
19701
+ "foreign-worktree",
19702
+ "foreign-pane-data",
19703
+ "other-tool-data"
19704
+ ]
19705
+ },
19706
+ "items": {
19707
+ "type": "array",
19708
+ "items": {
19709
+ "$ref": "#/jsonSchemas/reclaimItem"
19710
+ }
19711
+ },
19712
+ "totalBytes": {
19713
+ "type": "number"
19714
+ },
19715
+ "scanning": {
19716
+ "type": "boolean",
19717
+ "description": "True when Pane has not finished its first storage scan; items is empty. Run the dry run again in a few minutes."
19718
+ }
19719
+ },
19720
+ "additionalProperties": false
19721
+ },
19722
+ {
19723
+ "type": "object",
19724
+ "required": [
19725
+ "ok",
19726
+ "dryRun",
19727
+ "kind",
19728
+ "run"
19729
+ ],
19730
+ "properties": {
19731
+ "ok": {
19732
+ "const": true
19733
+ },
19734
+ "dryRun": {
19735
+ "const": false
19736
+ },
19737
+ "kind": {
19738
+ "enum": [
19739
+ "update-snapshot",
19740
+ "migration-backup",
19741
+ "archived-pane-folder",
19742
+ "agent-temp",
19743
+ "paused-scratch",
19744
+ "foreign-worktree",
19745
+ "foreign-pane-data",
19746
+ "other-tool-data"
19747
+ ]
19748
+ },
19749
+ "run": {
19750
+ "type": "object",
19751
+ "required": [
19752
+ "at",
19753
+ "source",
19754
+ "removed",
19755
+ "skipped",
19756
+ "freedBytes"
19757
+ ],
19758
+ "properties": {
19759
+ "at": {
19760
+ "type": "number"
19761
+ },
19762
+ "source": {
19763
+ "const": "cli"
19764
+ },
19765
+ "removed": {
19766
+ "type": "array",
19767
+ "items": {
19768
+ "type": "object",
19769
+ "required": [
19770
+ "id",
19771
+ "kind",
19772
+ "path",
19773
+ "sizeBytes"
19774
+ ],
19775
+ "properties": {
19776
+ "id": {
19777
+ "type": "string"
19778
+ },
19779
+ "kind": {
19780
+ "enum": [
19781
+ "update-snapshot",
19782
+ "migration-backup",
19783
+ "archived-pane-folder",
19784
+ "agent-temp",
19785
+ "paused-scratch",
19786
+ "foreign-worktree",
19787
+ "foreign-pane-data",
19788
+ "other-tool-data"
19789
+ ]
19790
+ },
19791
+ "path": {
19792
+ "type": "string"
19793
+ },
19794
+ "sizeBytes": {
19795
+ "type": "number"
19796
+ },
19797
+ "reason": {
19798
+ "type": "string"
19799
+ }
19800
+ }
19801
+ }
19802
+ },
19803
+ "skipped": {
19804
+ "type": "array",
19805
+ "items": {
19806
+ "type": "object",
19807
+ "required": [
19808
+ "id",
19809
+ "kind",
19810
+ "path",
19811
+ "sizeBytes"
19812
+ ],
19813
+ "properties": {
19814
+ "id": {
19815
+ "type": "string"
19816
+ },
19817
+ "kind": {
19818
+ "enum": [
19819
+ "update-snapshot",
19820
+ "migration-backup",
19821
+ "archived-pane-folder",
19822
+ "agent-temp",
19823
+ "paused-scratch",
19824
+ "foreign-worktree",
19825
+ "foreign-pane-data",
19826
+ "other-tool-data"
19827
+ ]
19828
+ },
19829
+ "path": {
19830
+ "type": "string"
19831
+ },
19832
+ "sizeBytes": {
19833
+ "type": "number"
19834
+ },
19835
+ "reason": {
19836
+ "type": "string"
19837
+ }
19838
+ }
19839
+ }
19840
+ },
19841
+ "freedBytes": {
19842
+ "type": "number"
19843
+ },
19844
+ "deleting": {
19845
+ "type": "boolean",
19846
+ "description": "True while removed items are still being deleted in the background; freedBytes is 0 until they are."
19847
+ }
19848
+ },
19849
+ "additionalProperties": false
19850
+ }
19851
+ },
19852
+ "additionalProperties": false
19853
+ }
19854
+ ]
19855
+ }
19856
+ },
19857
+ "agentContext": {
19858
+ "intro": {
19859
+ "humans": {
19860
+ "title": "For people",
19861
+ "sentences": [
19862
+ "Open a Session for each workstream and tell its agent what you want, in plain words.",
19863
+ "It plans the work, starts a Pane for each feature, and runs the builders, reviewers and QA as tabs inside them, so you don't have to.",
19864
+ "{approvals}",
19865
+ "When a feature is done, archiving its Pane cleans up its worktree and files for you."
19866
+ ],
19867
+ "approvals": {
19868
+ "on": "Anything that needs you, like a decision, an approval or a merge, waits for you in Approvals while everything else keeps moving.",
19869
+ "off": "When the agent needs you for a decision, an approval or a merge, it asks in its terminal while everything else keeps moving."
19870
+ }
19871
+ },
19872
+ "agents": {
19873
+ "title": "For agents",
19874
+ "sentences": [
19875
+ "In Pane, work flows from a Session to Panes to tabs.",
19876
+ "A Session is a workstream: the person or an orchestrator opens it, and every Pane created or adopted from inside it joins it. When you are in one ($PANE_SESSION_DIR is set: you orchestrate it or your Pane belongs to it), start new Panes from there (each result's `association` names the Session they joined); when you are in none, work with several parts starts a new Session.",
19877
+ "Each feature gets one Pane, a git worktree on its own branch, and everything for that feature (the agent that builds it, its reviews, QA and fixes) runs as tabs inside it.",
19878
+ "Scratch files go in $PANE_SCRATCH_DIR inside the Pane.",
19879
+ "When the feature is done, archive the Pane and Pane cleans up its worktree, tabs and scratch files.",
19880
+ "{approvals}"
19881
+ ],
19882
+ "approvals": {
19883
+ "on": "When you need the person, ask through Approvals (a Session worker reports blocked to its orchestrator instead).",
19884
+ "off": "When you need the person, ask in this terminal."
19885
+ }
19886
+ }
19887
+ },
19888
+ "workspaceRules": [
19889
+ "Session: where a workstream lives, and the default home for orchestrated work. Its folder ($PANE_SESSION_DIR) holds plans, notes and reports.",
19890
+ "Pane: one per feature (one worktree, one branch). Before creating one, find the feature's Pane (`runpane panes list --json`, match the branch) and create one only when none exists.",
19891
+ "Tab: reviews, review reruns, QA, fixes and follow-ups for a feature go in new tabs in its Pane (`runpane panels create --pane <id>`), never a new Pane or a plain `git worktree`.",
19892
+ "Scratch: in Pane, put temporary files, clones, captures, downloads, logs and test instances (an isolated PANE_DIR and HOME for QA) in `$PANE_SCRATCH_DIR`, not /tmp or your tool's own scratchpad. When the feature is done, archive the Pane and Pane cleans it up."
19893
+ ],
19894
+ "brief": {
19895
+ "title": "Pane agent context",
19896
+ "summary": "Pane runs coding agents in parallel git worktrees. A Pane is a visible workspace for one feature or PR, with its own Pane-managed git worktree and branch; a panel is a terminal tab in a Pane and shares its worktree; an agent is a CLI process running in a panel.",
19897
+ "rules": [
19898
+ "Start with `runpane doctor --json` to understand wrapper, platform, daemon reachability, and the next safe commands before mutating Pane state.",
19899
+ "In a Pane repository checkout, if `runpane` is not on PATH, build the local wrapper with `pnpm --filter runpane build` and run it with patched Node 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+ (26.x), for example `node packages/runpane/dist/cli.js doctor --json`.",
19900
+ "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, then route by the rule If the work's branch already has a Pane (find it with `runpane panes list --repo <repo> --json` by matching the PR's head branch against `git -C <worktreePath> branch --show-current`), open a new agent tab in it with `runpane panels create --pane <id> --agent <agent> --initial-input \"<task>\" --source agent --no-focus --wait-ready --yes --json`; only when the branch has no Pane yet, create one 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.",
19901
+ "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.",
19902
+ "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.",
19903
+ "Use `panes create` only when the work's branch has no Pane yet (new work, or an existing PR with no Pane), since each new Pane creates a worktree. Every later agent for that branch opens as a new tab in its Pane with `panels create --pane <id>`, never a new Pane. Tabs share one checkout: only the implementer changes the branch or HEAD, one writer at a time; review, audit and QA tabs never run `git checkout`, `reset` or `stash`.",
19904
+ "For private background decomposition, use your normal subagent/worktree mechanism instead of Pane.",
19905
+ "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`.",
19906
+ "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.",
19907
+ "Use `runpane agent-context --json` for the full agent-facing CLI context, or `runpane agent-context --command <command> --json` for one detailed command definition.",
19908
+ "For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.",
19909
+ "Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.",
19910
+ "Read and change a repo's Project Settings (build, run, and archive scripts, worktree folder, environment variables) with `runpane repos get` and `runpane repos update`; never edit Pane's database by hand.",
19911
+ "When a command needs a secret (an API key, a token), run it with `runpane secrets exec --project <project> -- <command>`. If the secret is missing, ask the person with `runpane secrets request`; never ask them to paste a secret into the chat, and never print one.",
19912
+ "If WSL cannot reach Pane, the user may be running Windows Pane; try `/mnt/c/Users/<you>/.pane/bin/runpane doctor --json`, or with an older Pane build `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane doctor --json'`.",
19913
+ "If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.",
19914
+ "Use `runpane agents doctor --agent <codex|claude|cursor|opencode|pi> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.",
19915
+ "Use `runpane panes create --wait-ready` to create Panes, wait for each agent's input box, and verify its starting message in one call.",
19916
+ "Use `runpane panels screen` for compact current state, including Claude and Codex composer state. Use `panels wait` for create-time readiness or text checks. Use `runpane watch --follow` to block on workspace transitions (READY, BLOCKED, IDLE, STUCK, EXIT) without polling, or `runpane watch --until-event` to exit on the first one. Use `panels submit` to send and submit a new turn. Use `panels submit-composer --strategy auto` only for a composer that was filled separately.",
19917
+ "Use `runpane panels input` only when exact bytes are required, such as Ctrl-C or handcrafted terminal input.",
19918
+ "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`.",
19919
+ "After creating Panes or sending terminal input, validate with `panels wait` or bounded `panels screen`. For a harness that consumes streaming output, use `runpane watch --follow` (with `--session <id>` for a Session); its named consumer applies settling and batching. Adding numeric --since leaves it unnamed and bypasses cadence; --as cannot be combined with --since. A harness that wakes only when a process exits uses `runpane watch --as <name> --until-event --json` and runs it again after each event. Single-event waits deliver immediately without follow cadence. Never pipe `--follow` into `grep -m1` or `head`.",
19920
+ "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.",
19921
+ "Loops (`runpane loops create`) run a task on a cron schedule, each run in a new Pane or, with `--session`, as a message to a Session's agent. They are for large recurring jobs, such as a nightly bug sweep, and run at most once an hour. For a short wait, use your agent harness's own sleep and wake instead."
19922
+ ],
19923
+ "detailCommand": "runpane agent-context --command <command> [--json]",
19924
+ "tools": [
19925
+ {
19926
+ "name": "doctor",
19927
+ "summary": "Report wrapper, platform, installed Pane, and daemon reachability before an agent mutates Pane state.",
19928
+ "arguments": [
19929
+ "--json",
19930
+ "--pane-dir <path>",
19931
+ "--pane-path <path>"
19932
+ ]
19933
+ },
19934
+ {
19935
+ "name": "agent-context",
19936
+ "summary": "Print token-efficient Pane command context for coding agents.",
19937
+ "arguments": [
19938
+ "--command <command>",
19939
+ "--json"
19940
+ ]
19941
+ },
19942
+ {
19943
+ "name": "agents doctor",
19944
+ "summary": "Check whether Codex or Claude is available in the repo environment Pane will use.",
19945
+ "arguments": [
19946
+ "--agent <codex|claude|cursor|opencode|pi>",
19947
+ "--repo <selector>",
19948
+ "--json"
19949
+ ]
19950
+ },
19951
+ {
19952
+ "name": "repos list",
19953
+ "summary": "List repositories saved in the running Pane app.",
19954
+ "arguments": [
19955
+ "--json",
19956
+ "--pane-dir <path>"
19957
+ ]
19958
+ },
19959
+ {
19960
+ "name": "repos add",
19961
+ "summary": "Register an existing git repository with the running Pane app.",
19962
+ "arguments": [
19963
+ "--path <path>",
19964
+ "--name <name>",
19965
+ "--yes",
19966
+ "--json",
19967
+ "--dry-run",
19968
+ "--pane-dir <path>"
19969
+ ]
19970
+ },
19971
+ {
19972
+ "name": "repos get",
19973
+ "summary": "Show a saved repository's Project Settings and the scripts Pane will run.",
19974
+ "arguments": [
19975
+ "--repo <selector>",
19976
+ "--json",
19977
+ "--pane-dir <path>"
19978
+ ]
19979
+ },
19980
+ {
19981
+ "name": "repos update",
19982
+ "summary": "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.",
19983
+ "arguments": [
19984
+ "--repo <selector>",
19985
+ "--build-script <script>",
19986
+ "--run-script <script>",
19987
+ "--archive-script <script>",
19988
+ "--worktree-folder <path>",
19989
+ "--env <json>",
19990
+ "--env-remove <name,...>",
19991
+ "--name <name>",
19992
+ "--clear <setting,...>",
19993
+ "--from-json <path|->",
19994
+ "--yes",
19995
+ "--dry-run",
19996
+ "--json"
19997
+ ]
19998
+ },
19999
+ {
20000
+ "name": "repos rename",
20001
+ "summary": "Rename a repository saved in the running Pane app.",
20002
+ "arguments": [
20003
+ "--repo <selector>",
20004
+ "--name <name>",
20005
+ "--yes",
20006
+ "--json",
20007
+ "--pane-dir <path>"
20008
+ ]
20009
+ },
20010
+ {
20011
+ "name": "secrets list",
20012
+ "summary": "List Pane secrets: project, name, time and machine. Never a value.",
20013
+ "arguments": [
20014
+ "--project <project>",
20015
+ "--json"
18523
20016
  ]
18524
20017
  },
18525
20018
  {
@@ -19115,7 +20608,7 @@ exports.RUNPANE_CONTRACT = {
19115
20608
  "name": "--toolsets",
19116
20609
  "value": "<name,...>",
19117
20610
  "required": false,
19118
- "description": "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, git, docs, links, admin."
20611
+ "description": "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, machine, git, docs, links, admin."
19119
20612
  },
19120
20613
  {
19121
20614
  "name": "--read-only",
@@ -19874,7 +21367,7 @@ exports.RUNPANE_CONTRACT = {
19874
21367
  "name": "--worktree-name",
19875
21368
  "value": "<name>",
19876
21369
  "required": false,
19877
- "description": "Worktree directory name; defaults to --name."
21370
+ "description": "Worktree directory name, cut to 100 characters at a word; defaults to --name."
19878
21371
  },
19879
21372
  {
19880
21373
  "name": "--prompt",
@@ -20588,7 +22081,7 @@ exports.RUNPANE_CONTRACT = {
20588
22081
  "panels output": {
20589
22082
  "name": "panels output",
20590
22083
  "summary": "Read recent terminal output from a panel.",
20591
- "details": "Use this to inspect recent terminal output from a terminal-backed panel without loading the full history by default. Live terminal scrollback is returned as bounded recent lines; persisted output fallback is returned as bounded records. Terminal control noise is stripped before returning text.",
22084
+ "details": "Use this to inspect recent terminal output from a terminal-backed panel without loading the full history by default. Live terminal scrollback is returned as bounded recent lines; persisted output fallback is returned as bounded records. Terminal control noise is stripped before returning text. When older output exists, hasMore is true and the text output says so on stderr.",
20592
22085
  "requiresPaneDaemon": true,
20593
22086
  "mutates": false,
20594
22087
  "arguments": [
@@ -20742,7 +22235,7 @@ exports.RUNPANE_CONTRACT = {
20742
22235
  "panels screen": {
20743
22236
  "name": "panels screen",
20744
22237
  "summary": "Read a compact current-screen view from a terminal panel.",
20745
- "details": "Use this for token-safe current terminal state. It prefers active alternate-screen/TUI output, then live scrollback, then persisted output. On a chat tab it returns the newest transcript lines with source acpTranscript. Default output is bounded to 80 lines.",
22238
+ "details": "Use this for token-safe current terminal state. It prefers active alternate-screen/TUI output, then live scrollback, then persisted output. On a chat tab it returns the newest transcript lines with source acpTranscript. Default output is bounded to 80 lines. When older lines exist, hasMore is true and the text output says so on stderr.",
20746
22239
  "requiresPaneDaemon": true,
20747
22240
  "mutates": false,
20748
22241
  "arguments": [
@@ -24551,13 +26044,264 @@ exports.RUNPANE_CONTRACT = {
24551
26044
  ],
24552
26045
  "helpIncludesNotes": true
24553
26046
  },
24554
- "autopilot status": {
24555
- "name": "autopilot status",
24556
- "summary": "Show Autopilot (experimental): whether it is on and running, whether Sentinel is on, its run, its stack, and what waits in each Session.",
24557
- "details": "Autopilot (experimental) is one always-running agent above every Session. It is not a Session: its run lives in <PANE_DIR>/autopilot/. Read this first to know whether it is on, entitled, and running.",
26047
+ "autopilot status": {
26048
+ "name": "autopilot status",
26049
+ "summary": "Show Autopilot (experimental): whether it is on and running, whether Sentinel is on, its run, its stack, and what waits in each Session.",
26050
+ "details": "Autopilot (experimental) is one always-running agent above every Session. It is not a Session: its run lives in <PANE_DIR>/autopilot/. Read this first to know whether it is on, entitled, and running.",
26051
+ "requiresPaneDaemon": true,
26052
+ "mutates": false,
26053
+ "arguments": [
26054
+ {
26055
+ "name": "--json",
26056
+ "required": false,
26057
+ "description": "Print machine-readable output."
26058
+ },
26059
+ {
26060
+ "name": "--pane-dir",
26061
+ "value": "<path>",
26062
+ "required": false,
26063
+ "description": "Connect to a specific Pane data directory."
26064
+ }
26065
+ ],
26066
+ "examples": [
26067
+ "runpane autopilot status --json"
26068
+ ],
26069
+ "jsonSchemas": [
26070
+ "autopilotStatusResult"
26071
+ ],
26072
+ "notes": [
26073
+ "Works while Autopilot is off (enabled: false), so a caller can tell off from broken."
26074
+ ]
26075
+ },
26076
+ "autopilot waiting": {
26077
+ "name": "autopilot waiting",
26078
+ "summary": "List every approval and question waiting on the person on every machine Autopilot can reach, grouped by Session, and the machines it can't reach. This is Autopilot's queue.",
26079
+ "details": "Autopilot's queue, read from each machine's table with no copy: every item waiting on the person on every machine it can reach, filed under its Session (or not in one), this machine's first, with who asked, how long it has waited, whether it is on the stack, and whether it is stale or quiet. `offline` names saved machines it can't reach, and `cantSee` names the person's Tailscale machines not saved here.",
26080
+ "requiresPaneDaemon": true,
26081
+ "mutates": false,
26082
+ "arguments": [
26083
+ {
26084
+ "name": "--json",
26085
+ "required": false,
26086
+ "description": "Print machine-readable output."
26087
+ },
26088
+ {
26089
+ "name": "--pane-dir",
26090
+ "value": "<path>",
26091
+ "required": false,
26092
+ "description": "Connect to a specific Pane data directory."
26093
+ }
26094
+ ],
26095
+ "examples": [
26096
+ "runpane autopilot waiting --json"
26097
+ ],
26098
+ "jsonSchemas": [
26099
+ "autopilotWaitingResult"
26100
+ ],
26101
+ "notes": [
26102
+ "Fails with AUTOPILOT_OFF while Autopilot is off.",
26103
+ "Its ids go straight to `runpane autopilot answer`, `close`, `rewrite` and `stack push --item`, whichever machine holds the item.",
26104
+ "A `quiet` item is a worker's question its orchestrator still has first call on; a `stale` one has waited 3 days and no longer rings.",
26105
+ "An older Pane leaves `offline` and `cantSee` out."
26106
+ ]
26107
+ },
26108
+ "autopilot stack": {
26109
+ "name": "autopilot stack",
26110
+ "summary": "List the entries on Autopilot's stack in order, and which one is on screen.",
26111
+ "details": "The stack holds entries in the order Autopilot put them; one is shown at a time and the next comes up when the person resolves it.",
26112
+ "requiresPaneDaemon": true,
26113
+ "mutates": false,
26114
+ "arguments": [
26115
+ {
26116
+ "name": "--json",
26117
+ "required": false,
26118
+ "description": "Print machine-readable output."
26119
+ },
26120
+ {
26121
+ "name": "--pane-dir",
26122
+ "value": "<path>",
26123
+ "required": false,
26124
+ "description": "Connect to a specific Pane data directory."
26125
+ }
26126
+ ],
26127
+ "examples": [
26128
+ "runpane autopilot stack --json"
26129
+ ],
26130
+ "jsonSchemas": [
26131
+ "autopilotStackResult"
26132
+ ],
26133
+ "notes": [
26134
+ "Fails with AUTOPILOT_OFF while Autopilot is off. A resolved entry carries doneAt."
26135
+ ]
26136
+ },
26137
+ "autopilot stack push": {
26138
+ "name": "autopilot stack push",
26139
+ "summary": "Put a waiting item, a document, a URL, or a Session on Autopilot's stack for the person to look at.",
26140
+ "details": "Give exactly one of --item, --file, --url, or --session. A new entry never replaces the one on screen; --next puts it right after it. runpane resolves relative file paths (the entry's and its tabs') against the caller's directory before sending.",
26141
+ "requiresPaneDaemon": true,
26142
+ "mutates": true,
26143
+ "arguments": [
26144
+ {
26145
+ "name": "--item",
26146
+ "value": "<id>",
26147
+ "required": false,
26148
+ "description": "A waiting item's id from `runpane autopilot waiting`."
26149
+ },
26150
+ {
26151
+ "name": "--file",
26152
+ "value": "<path>",
26153
+ "required": false,
26154
+ "description": "A document to show: HTML loads as a page, anything else as text."
26155
+ },
26156
+ {
26157
+ "name": "--url",
26158
+ "value": "<url>",
26159
+ "required": false,
26160
+ "description": "An http(s) page or running app to show."
26161
+ },
26162
+ {
26163
+ "name": "--session",
26164
+ "value": "<id|name>",
26165
+ "required": false,
26166
+ "description": "A Session whose overview to show."
26167
+ },
26168
+ {
26169
+ "name": "--title",
26170
+ "value": "<text>",
26171
+ "required": false,
26172
+ "description": "The entry's title; defaults to the item's, file's, or Session's own."
26173
+ },
26174
+ {
26175
+ "name": "--note",
26176
+ "value": "<text>",
26177
+ "required": false,
26178
+ "description": "Autopilot's one line about why it is here."
26179
+ },
26180
+ {
26181
+ "name": "--tab",
26182
+ "value": "<path-or-url>",
26183
+ "required": false,
26184
+ "description": "An extra tab: a file path, or an http(s) URL. Repeatable on the CLI."
26185
+ },
26186
+ {
26187
+ "name": "--next",
26188
+ "required": false,
26189
+ "description": "Put it right after the entry on screen, so it comes up next (jumping back up to a higher Session)."
26190
+ },
26191
+ {
26192
+ "name": "--json",
26193
+ "required": false,
26194
+ "description": "Print machine-readable output."
26195
+ },
26196
+ {
26197
+ "name": "--pane-dir",
26198
+ "value": "<path>",
26199
+ "required": false,
26200
+ "description": "Connect to a specific Pane data directory."
26201
+ }
26202
+ ],
26203
+ "examples": [
26204
+ "runpane autopilot stack push --item n-1a2b3c --note \"The release orchestrator wants a go\" --json",
26205
+ "runpane autopilot stack push --file docs/plan.html --tab https://localhost:5173 --next --json"
26206
+ ],
26207
+ "jsonSchemas": [
26208
+ "autopilotStackPushRequest",
26209
+ "autopilotStackPushResult"
26210
+ ],
26211
+ "notes": [
26212
+ "Errors: AUTOPILOT_OFF (off), AUTOPILOT_PAUSED (the person paused Autopilot; wait for Go on), AUTOPILOT_STACK_INVALID (no such item, file, URL, or Session).",
26213
+ "The result says where the entry went: position of total, and shown when it is on screen now."
26214
+ ]
26215
+ },
26216
+ "autopilot answer": {
26217
+ "name": "autopilot answer",
26218
+ "summary": "Answer a waiting item as Autopilot, with why; delivered at once and recorded \"by Autopilot\". Never a permission prompt.",
26219
+ "details": "Give exactly one of --choice, --approve, --deny or --text, and --because. The machine that holds the item delivers the answer at once and records \"Answered by Autopilot · because <why>\" on every device; the person can Override it. Skill behavior, not a setting: answer only when the way forward is clear and the item relates to your work with the person, or when the person told you to handle approvals.",
26220
+ "requiresPaneDaemon": true,
26221
+ "mutates": true,
26222
+ "arguments": [
26223
+ {
26224
+ "name": "<id>",
26225
+ "required": true,
26226
+ "description": "A waiting item's id from `runpane autopilot waiting`."
26227
+ },
26228
+ {
26229
+ "name": "--choice",
26230
+ "value": "<label>",
26231
+ "required": false,
26232
+ "description": "The chosen label of an options item."
26233
+ },
26234
+ {
26235
+ "name": "--approve",
26236
+ "required": false,
26237
+ "description": "Approve an approve item."
26238
+ },
26239
+ {
26240
+ "name": "--deny",
26241
+ "required": false,
26242
+ "description": "Deny an approve item."
26243
+ },
26244
+ {
26245
+ "name": "--text",
26246
+ "value": "<text>",
26247
+ "required": false,
26248
+ "description": "A typed answer."
26249
+ },
26250
+ {
26251
+ "name": "--note",
26252
+ "value": "<text>",
26253
+ "required": false,
26254
+ "description": "A note for the asker, with --choice, --approve or --deny."
26255
+ },
26256
+ {
26257
+ "name": "--because",
26258
+ "value": "<why>",
26259
+ "required": true,
26260
+ "description": "Why, recorded on the item: a D-n, a document or the person's words."
26261
+ },
26262
+ {
26263
+ "name": "--json",
26264
+ "required": false,
26265
+ "description": "Print machine-readable output."
26266
+ },
26267
+ {
26268
+ "name": "--pane-dir",
26269
+ "value": "<path>",
26270
+ "required": false,
26271
+ "description": "Connect to a specific Pane data directory."
26272
+ }
26273
+ ],
26274
+ "examples": [
26275
+ "runpane autopilot answer n-1a2b3c --choice \"Run it\" --because \"D-22\" --json",
26276
+ "runpane autopilot answer n-1a2b3c --approve --because \"The person said to ship it\" --json"
26277
+ ],
26278
+ "jsonSchemas": [
26279
+ "autopilotAnswerRequest",
26280
+ "autopilotAnswerResult"
26281
+ ],
26282
+ "notes": [
26283
+ "Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).",
26284
+ "An item already answered or closed is refused with who did it, and nothing changes: leave it."
26285
+ ]
26286
+ },
26287
+ "autopilot close": {
26288
+ "name": "autopilot close",
26289
+ "summary": "Close a waiting item as Autopilot, with why; its asker is told and the person can reopen it. Never a permission prompt.",
26290
+ "details": "The machine that holds the item closes it, tells its asker, and records \"Closed by Autopilot: <why>\" on every device. The person can reopen it.",
24558
26291
  "requiresPaneDaemon": true,
24559
- "mutates": false,
26292
+ "mutates": true,
24560
26293
  "arguments": [
26294
+ {
26295
+ "name": "<id>",
26296
+ "required": true,
26297
+ "description": "A waiting item's id from `runpane autopilot waiting`."
26298
+ },
26299
+ {
26300
+ "name": "--reason",
26301
+ "value": "<why>",
26302
+ "required": true,
26303
+ "description": "Why it no longer needs the person, recorded on the item."
26304
+ },
24561
26305
  {
24562
26306
  "name": "--json",
24563
26307
  "required": false,
@@ -24571,22 +26315,95 @@ exports.RUNPANE_CONTRACT = {
24571
26315
  }
24572
26316
  ],
24573
26317
  "examples": [
24574
- "runpane autopilot status --json"
26318
+ "runpane autopilot close n-1a2b3c --reason \"The PR it asks about merged yesterday\" --json"
24575
26319
  ],
24576
26320
  "jsonSchemas": [
24577
- "autopilotStatusResult"
26321
+ "autopilotCloseRequest",
26322
+ "autopilotCloseResult"
24578
26323
  ],
24579
26324
  "notes": [
24580
- "Works while Autopilot is off (enabled: false), so a caller can tell off from broken."
26325
+ "Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).",
26326
+ "An item already answered or closed is refused with who did it, and nothing changes: leave it."
24581
26327
  ]
24582
26328
  },
24583
- "autopilot waiting": {
24584
- "name": "autopilot waiting",
24585
- "summary": "List every approval and question waiting on the person on every machine Autopilot can reach, grouped by Session, and the machines it can't reach. This is Autopilot's queue.",
24586
- "details": "Autopilot's queue, read from each machine's table with no copy: every item waiting on the person on every machine it can reach, filed under its Session (or not in one), this machine's first, with who asked, how long it has waited, whether it is on the stack, and whether it is stale or quiet. `offline` names saved machines it can't reach, and `cantSee` names the person's Tailscale machines not saved here.",
26329
+ "autopilot rewrite": {
26330
+ "name": "autopilot rewrite",
26331
+ "summary": "Close an unclear waiting item and re-ask it rewritten; the answer goes to the original asker.",
26332
+ "details": "The old item reads \"Closed by Autopilot: rewritten as …\" and the new one \"Rewritten by Autopilot from Q-n\". The rewrite stays on the old item's machine, and its answer goes to the original asker. runpane resolves relative --links paths against the caller's directory; a file must exist on the item's machine.",
24587
26333
  "requiresPaneDaemon": true,
24588
- "mutates": false,
26334
+ "mutates": true,
24589
26335
  "arguments": [
26336
+ {
26337
+ "name": "<id>",
26338
+ "required": true,
26339
+ "description": "A waiting item's id from `runpane autopilot waiting`."
26340
+ },
26341
+ {
26342
+ "name": "--ui",
26343
+ "value": "<options|approve|ask>",
26344
+ "required": true,
26345
+ "description": "options: pick one of choices. approve: Approve or Deny. ask: a typed answer.",
26346
+ "schema": {
26347
+ "type": "string",
26348
+ "enum": [
26349
+ "options",
26350
+ "approve",
26351
+ "ask"
26352
+ ]
26353
+ }
26354
+ },
26355
+ {
26356
+ "name": "--title",
26357
+ "value": "<text>",
26358
+ "required": true,
26359
+ "description": "The question in one line."
26360
+ },
26361
+ {
26362
+ "name": "--context",
26363
+ "value": "<text>",
26364
+ "required": false,
26365
+ "description": "The card's subtitle: one or two sentences on why it matters, up to 240 characters."
26366
+ },
26367
+ {
26368
+ "name": "--choices",
26369
+ "value": "<json>",
26370
+ "required": false,
26371
+ "description": "ui options only, and required there: 1 to 9 choices. The answer is the chosen label. Mark at most the one you recommend.",
26372
+ "schema": {
26373
+ "type": "array",
26374
+ "minItems": 1,
26375
+ "maxItems": 9,
26376
+ "items": {
26377
+ "$ref": "#/jsonSchemas/notifyChoice"
26378
+ }
26379
+ }
26380
+ },
26381
+ {
26382
+ "name": "--suggestions",
26383
+ "value": "<json>",
26384
+ "required": false,
26385
+ "description": "ui ask only: suggested answers, shown as chips above the text field.",
26386
+ "schema": {
26387
+ "type": "array",
26388
+ "items": {
26389
+ "type": "string",
26390
+ "minLength": 1
26391
+ }
26392
+ }
26393
+ },
26394
+ {
26395
+ "name": "--links",
26396
+ "value": "<json>",
26397
+ "required": false,
26398
+ "description": "Any ui: up to 6 related files or pages, shown as chips on the card. A file is {label, path}, on this machine; a relative path resolves against the working directory. A page is {label, url}, http or https.",
26399
+ "schema": {
26400
+ "type": "array",
26401
+ "maxItems": 6,
26402
+ "items": {
26403
+ "$ref": "#/jsonSchemas/notifyLink"
26404
+ }
26405
+ }
26406
+ },
24590
26407
  {
24591
26408
  "name": "--json",
24592
26409
  "required": false,
@@ -24600,22 +26417,21 @@ exports.RUNPANE_CONTRACT = {
24600
26417
  }
24601
26418
  ],
24602
26419
  "examples": [
24603
- "runpane autopilot waiting --json"
26420
+ "runpane autopilot rewrite n-1a2b3c --ui options --title \"Q-39: Run the import on the copy first?\" --choices '[{\"label\":\"Copy first\",\"recommended\":true},{\"label\":\"Skip\"}]' --json"
24604
26421
  ],
24605
26422
  "jsonSchemas": [
24606
- "autopilotWaitingResult"
26423
+ "autopilotRewriteRequest",
26424
+ "autopilotRewriteResult"
24607
26425
  ],
24608
26426
  "notes": [
24609
- "Fails with AUTOPILOT_OFF while Autopilot is off.",
24610
- "Its ids go straight to `runpane autopilot answer`, `close`, `rewrite` and `stack push --item`, whichever machine holds the item.",
24611
- "A `quiet` item is a worker's question its orchestrator still has first call on; a `stale` one has waited 3 days and no longer rings.",
24612
- "An older Pane leaves `offline` and `cantSee` out."
26427
+ "Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).",
26428
+ "The result's id is the new item's. Put that one on the stack."
24613
26429
  ]
24614
26430
  },
24615
- "autopilot stack": {
24616
- "name": "autopilot stack",
24617
- "summary": "List the entries on Autopilot's stack in order, and which one is on screen.",
24618
- "details": "The stack holds entries in the order Autopilot put them; one is shown at a time and the next comes up when the person resolves it.",
26431
+ "theme read": {
26432
+ "name": "theme read",
26433
+ "summary": "Show Pane's own theme: what is selected, the Custom theme, every colour token with its current value, the stable selectors, and the guide for restyling Pane.",
26434
+ "details": "Run this before `runpane theme set`. tokens lists every colour token, with its value in the main window when Pane is open; parts lists the selectors custom CSS may target; guide says how to write a theme. ignoredBecause says why a hand-edited custom-theme.json was ignored.",
24619
26435
  "requiresPaneDaemon": true,
24620
26436
  "mutates": false,
24621
26437
  "arguments": [
@@ -24632,68 +26448,60 @@ exports.RUNPANE_CONTRACT = {
24632
26448
  }
24633
26449
  ],
24634
26450
  "examples": [
24635
- "runpane autopilot stack --json"
26451
+ "runpane theme read --json"
24636
26452
  ],
24637
26453
  "jsonSchemas": [
24638
- "autopilotStackResult"
26454
+ "themeReadResult"
24639
26455
  ],
24640
26456
  "notes": [
24641
- "Fails with AUTOPILOT_OFF while Autopilot is off. A resolved entry carries doneAt."
26457
+ "Use it only when the person asks to change how Pane itself looks, not their project's styles."
24642
26458
  ]
24643
26459
  },
24644
- "autopilot stack push": {
24645
- "name": "autopilot stack push",
24646
- "summary": "Put a waiting item, a document, a URL, or a Session on Autopilot's stack for the person to look at.",
24647
- "details": "Give exactly one of --item, --file, --url, or --session. A new entry never replaces the one on screen; --next puts it right after it. runpane resolves relative file paths (the entry's and its tabs') against the caller's directory before sending.",
26460
+ "theme set": {
26461
+ "name": "theme set",
26462
+ "summary": "Restyle Pane itself, only when the person asks to change Pane's look: write the Custom theme (a base theme, colour tokens and CSS) and select it, or switch to another theme. Pane restyles within a second.",
26463
+ "details": "Writes custom-theme.json in Pane's data folder and selects Custom where the person sees it now; every Pane window restyles within a second with no restart. Colours merge into the current Custom theme (null removes one), --css replaces its CSS, and the base defaults to the theme on screen. Nothing is written when a value is refused. --theme switches to another theme and leaves the Custom theme on disk. You cannot see the result: make small changes, then ask the person how it looks.",
24648
26464
  "requiresPaneDaemon": true,
24649
26465
  "mutates": true,
24650
26466
  "arguments": [
24651
26467
  {
24652
- "name": "--item",
24653
- "value": "<id>",
24654
- "required": false,
24655
- "description": "A waiting item's id from `runpane autopilot waiting`."
24656
- },
24657
- {
24658
- "name": "--file",
24659
- "value": "<path>",
24660
- "required": false,
24661
- "description": "A document to show: HTML loads as a page, anything else as text."
24662
- },
24663
- {
24664
- "name": "--url",
24665
- "value": "<url>",
26468
+ "name": "--base",
26469
+ "value": "<theme>",
24666
26470
  "required": false,
24667
- "description": "An http(s) page or running app to show."
26471
+ "description": "The shipped theme to build on; defaults to the Custom theme's base, or the theme on screen."
24668
26472
  },
24669
26473
  {
24670
- "name": "--session",
24671
- "value": "<id|name>",
26474
+ "name": "--colors",
26475
+ "value": "<json>",
24672
26476
  "required": false,
24673
- "description": "A Session whose overview to show."
26477
+ "description": "Colour token overrides, such as {\"--color-border-primary\": \"#30363d\"}. Values are hex, rgb() or rgba(); null removes an override.",
26478
+ "schema": {
26479
+ "type": "object",
26480
+ "additionalProperties": {
26481
+ "type": [
26482
+ "string",
26483
+ "null"
26484
+ ]
26485
+ }
26486
+ }
24674
26487
  },
24675
26488
  {
24676
- "name": "--title",
26489
+ "name": "--css",
24677
26490
  "value": "<text>",
24678
26491
  "required": false,
24679
- "description": "The entry's title; defaults to the item's, file's, or Session's own."
26492
+ "description": "CSS that targets the stable [data-pane-part] selectors, up to 20,000 characters. No @import, src(), image-set() or remote url(). Replaces the current CSS; empty text removes it."
24680
26493
  },
24681
26494
  {
24682
- "name": "--note",
26495
+ "name": "--name",
24683
26496
  "value": "<text>",
24684
26497
  "required": false,
24685
- "description": "Autopilot's one line about why it is here."
24686
- },
24687
- {
24688
- "name": "--tab",
24689
- "value": "<path-or-url>",
24690
- "required": false,
24691
- "description": "An extra tab: a file path, or an http(s) URL. Repeatable on the CLI."
26498
+ "description": "A name for the Custom theme, shown in Settings."
24692
26499
  },
24693
26500
  {
24694
- "name": "--next",
26501
+ "name": "--theme",
26502
+ "value": "<id>",
24695
26503
  "required": false,
24696
- "description": "Put it right after the entry on screen, so it comes up next (jumping back up to a higher Session)."
26504
+ "description": "Switch to this theme instead: custom or a shipped theme id. Use it alone."
24697
26505
  },
24698
26506
  {
24699
26507
  "name": "--json",
@@ -24708,64 +26516,120 @@ exports.RUNPANE_CONTRACT = {
24708
26516
  }
24709
26517
  ],
24710
26518
  "examples": [
24711
- "runpane autopilot stack push --item n-1a2b3c --note \"The release orchestrator wants a go\" --json",
24712
- "runpane autopilot stack push --file docs/plan.html --tab https://localhost:5173 --next --json"
26519
+ "runpane theme set --colors '{\"--color-border-primary\": \"#262b33\"}' --json",
26520
+ "runpane theme set --css '[data-pane-part=\"tab\"] { border-radius: 8px !important; }' --json",
26521
+ "runpane theme set --theme dusk --json"
24713
26522
  ],
24714
26523
  "jsonSchemas": [
24715
- "autopilotStackPushRequest",
24716
- "autopilotStackPushResult"
26524
+ "themeSetResult"
24717
26525
  ],
24718
26526
  "notes": [
24719
- "Errors: AUTOPILOT_OFF (off), AUTOPILOT_PAUSED (the person paused Autopilot; wait for Go on), AUTOPILOT_STACK_INVALID (no such item, file, URL, or Session).",
24720
- "The result says where the entry went: position of total, and shown when it is on screen now."
26527
+ "Restyle Pane only when the person asks to change Pane's look. Requests about their project's styles edit the project instead."
24721
26528
  ]
24722
26529
  },
24723
- "autopilot answer": {
24724
- "name": "autopilot answer",
24725
- "summary": "Answer a waiting item as Autopilot, with why; delivered at once and recorded \"by Autopilot\". Never a permission prompt.",
24726
- "details": "Give exactly one of --choice, --approve, --deny or --text, and --because. The machine that holds the item delivers the answer at once and records \"Answered by Autopilot · because <why>\" on every device; the person can Override it. Skill behavior, not a setting: answer only when the way forward is clear and the item relates to your work with the person, or when the person told you to handle approvals.",
26530
+ "theme reset": {
26531
+ "name": "theme reset",
26532
+ "summary": "Delete the Custom theme and go back to the theme it was built on.",
26533
+ "details": "Deletes custom-theme.json and selects its base theme. Works from any shell while Pane runs, even when a theme made Pane unreadable.",
24727
26534
  "requiresPaneDaemon": true,
24728
26535
  "mutates": true,
24729
26536
  "arguments": [
24730
26537
  {
24731
- "name": "<id>",
24732
- "required": true,
24733
- "description": "A waiting item's id from `runpane autopilot waiting`."
26538
+ "name": "--json",
26539
+ "required": false,
26540
+ "description": "Print machine-readable output."
24734
26541
  },
24735
26542
  {
24736
- "name": "--choice",
24737
- "value": "<label>",
26543
+ "name": "--pane-dir",
26544
+ "value": "<path>",
24738
26545
  "required": false,
24739
- "description": "The chosen label of an options item."
26546
+ "description": "Connect to a specific Pane data directory."
26547
+ }
26548
+ ],
26549
+ "examples": [
26550
+ "runpane theme reset"
26551
+ ],
26552
+ "notes": [
26553
+ "The person's way back from any Custom theme; an agent switches away with `runpane theme set --theme <id>` instead."
26554
+ ]
26555
+ },
26556
+ "devices list": {
26557
+ "name": "devices list",
26558
+ "summary": "List the phone simulators and emulators this Pane can open: platform, name, OS, machine, state, and which Pane holds each.",
26559
+ "details": "Lists this machine's iOS simulators and Android emulators, plus the iOS machine Pane uses when this one has no Xcode. paneMade marks the devices Pane created; device_open uses those unless you name another.",
26560
+ "requiresPaneDaemon": true,
26561
+ "mutates": false,
26562
+ "arguments": [
26563
+ {
26564
+ "name": "--json",
26565
+ "required": false,
26566
+ "description": "Print machine-readable output."
24740
26567
  },
24741
26568
  {
24742
- "name": "--approve",
24743
- "required": false,
24744
- "description": "Approve an approve item."
26569
+ "name": "--pane-dir",
26570
+ "value": "<path>",
26571
+ "required": false,
26572
+ "description": "Connect to a specific Pane data directory."
26573
+ }
26574
+ ],
26575
+ "examples": [
26576
+ "runpane devices list --json"
26577
+ ],
26578
+ "notes": [
26579
+ "Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."
26580
+ ],
26581
+ "jsonSchemas": [
26582
+ "devicesListResult"
26583
+ ]
26584
+ },
26585
+ "devices open": {
26586
+ "name": "devices open",
26587
+ "summary": "Boot a phone simulator or emulator for this Pane and show its live screen in a device tab beside the agent.",
26588
+ "details": "Leases a device to the calling tab's Pane and boots it. Without --device, Pane uses its own device (Pane iPhone or Pane_Android) and makes one from the newest installed runtime when needed. The first call on a machine installs Pane's device tools (agent-device and Expo's device hub), which takes a minute. When every device Pane may boot is held by another Pane, it waits up to 60 seconds, then fails with ERR_DEVICE_BUSY naming the holder. On a machine without Xcode, iOS opens on a linked Mac. Later device calls act on this device; you never pass it again.",
26589
+ "requiresPaneDaemon": true,
26590
+ "mutates": true,
26591
+ "arguments": [
26592
+ {
26593
+ "name": "--platform",
26594
+ "value": "<ios|android>",
26595
+ "required": true,
26596
+ "description": "ios for an iOS simulator, android for an Android emulator."
24745
26597
  },
24746
26598
  {
24747
- "name": "--deny",
26599
+ "name": "--device",
26600
+ "value": "<name-or-id>",
24748
26601
  "required": false,
24749
- "description": "Deny an approve item."
26602
+ "description": "One of the person's own devices by name or id, from device_list. Leave it out to use Pane's own device."
24750
26603
  },
24751
26604
  {
24752
- "name": "--text",
24753
- "value": "<text>",
26605
+ "name": "--json",
24754
26606
  "required": false,
24755
- "description": "A typed answer."
26607
+ "description": "Print machine-readable output."
24756
26608
  },
24757
26609
  {
24758
- "name": "--note",
24759
- "value": "<text>",
26610
+ "name": "--pane-dir",
26611
+ "value": "<path>",
24760
26612
  "required": false,
24761
- "description": "A note for the asker, with --choice, --approve or --deny."
24762
- },
24763
- {
24764
- "name": "--because",
24765
- "value": "<why>",
24766
- "required": true,
24767
- "description": "Why, recorded on the item: a D-n, a document or the person's words."
24768
- },
26613
+ "description": "Connect to a specific Pane data directory."
26614
+ }
26615
+ ],
26616
+ "examples": [
26617
+ "runpane devices open --platform ios --json"
26618
+ ],
26619
+ "notes": [
26620
+ "Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."
26621
+ ],
26622
+ "jsonSchemas": [
26623
+ "devicesOpenResult"
26624
+ ]
26625
+ },
26626
+ "devices screenshot": {
26627
+ "name": "devices screenshot",
26628
+ "summary": "Capture the screen of this Pane's open device as an image.",
26629
+ "details": "Returns the PNG's path; MCP clients also get the image itself.",
26630
+ "requiresPaneDaemon": true,
26631
+ "mutates": false,
26632
+ "arguments": [
24769
26633
  {
24770
26634
  "name": "--json",
24771
26635
  "required": false,
@@ -24779,35 +26643,26 @@ exports.RUNPANE_CONTRACT = {
24779
26643
  }
24780
26644
  ],
24781
26645
  "examples": [
24782
- "runpane autopilot answer n-1a2b3c --choice \"Run it\" --because \"D-22\" --json",
24783
- "runpane autopilot answer n-1a2b3c --approve --because \"The person said to ship it\" --json"
24784
- ],
24785
- "jsonSchemas": [
24786
- "autopilotAnswerRequest",
24787
- "autopilotAnswerResult"
26646
+ "runpane devices screenshot --json"
24788
26647
  ],
24789
26648
  "notes": [
24790
- "Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).",
24791
- "An item already answered or closed is refused with who did it, and nothing changes: leave it."
26649
+ "Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."
26650
+ ],
26651
+ "jsonSchemas": [
26652
+ "devicesScreenshotResult"
24792
26653
  ]
24793
26654
  },
24794
- "autopilot close": {
24795
- "name": "autopilot close",
24796
- "summary": "Close a waiting item as Autopilot, with why; its asker is told and the person can reopen it. Never a permission prompt.",
24797
- "details": "The machine that holds the item closes it, tells its asker, and records \"Closed by Autopilot: <why>\" on every device. The person can reopen it.",
26655
+ "devices act": {
26656
+ "name": "devices act",
26657
+ "summary": "Run an agent-device command on this Pane's open device: open an app, snapshot -i for element refs, press @e3, fill, swipe, install, logs.",
26658
+ "details": "Passes the command to agent-device, pinned to the device this Pane holds. Start with `open <app id>`, then `snapshot -i` for @refs, then `press @eN --settle`. agent-device's own help: `help workflow`. Flags that pick another device, session or daemon (--session, --device, --udid, --serial, --platform) are refused.",
24798
26659
  "requiresPaneDaemon": true,
24799
26660
  "mutates": true,
24800
26661
  "arguments": [
24801
26662
  {
24802
- "name": "<id>",
24803
- "required": true,
24804
- "description": "A waiting item's id from `runpane autopilot waiting`."
24805
- },
24806
- {
24807
- "name": "--reason",
24808
- "value": "<why>",
26663
+ "name": "-- <command>",
24809
26664
  "required": true,
24810
- "description": "Why it no longer needs the person, recorded on the item."
26665
+ "description": "The agent-device command and its arguments, such as `snapshot -i` or `press @e3 --settle`."
24811
26666
  },
24812
26667
  {
24813
26668
  "name": "--json",
@@ -24822,95 +26677,69 @@ exports.RUNPANE_CONTRACT = {
24822
26677
  }
24823
26678
  ],
24824
26679
  "examples": [
24825
- "runpane autopilot close n-1a2b3c --reason \"The PR it asks about merged yesterday\" --json"
24826
- ],
24827
- "jsonSchemas": [
24828
- "autopilotCloseRequest",
24829
- "autopilotCloseResult"
26680
+ "runpane devices act --json -- open com.apple.Preferences",
26681
+ "runpane devices act --json -- snapshot -i"
24830
26682
  ],
24831
26683
  "notes": [
24832
- "Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).",
24833
- "An item already answered or closed is refused with who did it, and nothing changes: leave it."
26684
+ "Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."
26685
+ ],
26686
+ "jsonSchemas": [
26687
+ "devicesActResult"
24834
26688
  ]
24835
26689
  },
24836
- "autopilot rewrite": {
24837
- "name": "autopilot rewrite",
24838
- "summary": "Close an unclear waiting item and re-ask it rewritten; the answer goes to the original asker.",
24839
- "details": "The old item reads \"Closed by Autopilot: rewritten as …\" and the new one \"Rewritten by Autopilot from Q-n\". The rewrite stays on the old item's machine, and its answer goes to the original asker. runpane resolves relative --links paths against the caller's directory; a file must exist on the item's machine.",
26690
+ "devices run": {
26691
+ "name": "devices run",
26692
+ "summary": "Run a command where this Pane's device runs, such as a build (npx expo run:ios) or Metro with --background.",
26693
+ "details": "On this machine it runs in the Pane's worktree. When the device runs on a linked Mac, Pane first syncs the worktree there (uncommitted changes included) and runs in Pane's checkout on the Mac. It waits up to --wait-ms (default 120000) and returns the exit code and log tail (the last 16 KB, starting with [earlier output cut] when output was dropped), or a jobId while it still runs. --background keeps a server such as Metro running until device_close. Pass an empty command to sync only.",
24840
26694
  "requiresPaneDaemon": true,
24841
26695
  "mutates": true,
24842
26696
  "arguments": [
24843
26697
  {
24844
- "name": "<id>",
24845
- "required": true,
24846
- "description": "A waiting item's id from `runpane autopilot waiting`."
24847
- },
24848
- {
24849
- "name": "--ui",
24850
- "value": "<options|approve|ask>",
24851
- "required": true,
24852
- "description": "options: pick one of choices. approve: Approve or Deny. ask: a typed answer.",
24853
- "schema": {
24854
- "type": "string",
24855
- "enum": [
24856
- "options",
24857
- "approve",
24858
- "ask"
24859
- ]
24860
- }
24861
- },
24862
- {
24863
- "name": "--title",
24864
- "value": "<text>",
24865
- "required": true,
24866
- "description": "The question in one line."
26698
+ "name": "--background",
26699
+ "required": false,
26700
+ "description": "Keep the command running after the call returns (Metro); it stops at device_close."
24867
26701
  },
24868
26702
  {
24869
- "name": "--context",
24870
- "value": "<text>",
26703
+ "name": "--wait-ms",
26704
+ "value": "<milliseconds>",
24871
26705
  "required": false,
24872
- "description": "The card's subtitle: one or two sentences on why it matters, up to 240 characters."
26706
+ "description": "How long to wait for the command to exit (default 120000)."
24873
26707
  },
24874
26708
  {
24875
- "name": "--choices",
24876
- "value": "<json>",
24877
- "required": false,
24878
- "description": "ui options only, and required there: 1 to 9 choices. The answer is the chosen label. Mark at most the one you recommend.",
24879
- "schema": {
24880
- "type": "array",
24881
- "minItems": 1,
24882
- "maxItems": 9,
24883
- "items": {
24884
- "$ref": "#/jsonSchemas/notifyChoice"
24885
- }
24886
- }
26709
+ "name": "-- <command>",
26710
+ "required": true,
26711
+ "description": "The command line to run, or empty to sync only."
24887
26712
  },
24888
26713
  {
24889
- "name": "--suggestions",
24890
- "value": "<json>",
26714
+ "name": "--json",
24891
26715
  "required": false,
24892
- "description": "ui ask only: suggested answers, shown as chips above the text field.",
24893
- "schema": {
24894
- "type": "array",
24895
- "items": {
24896
- "type": "string",
24897
- "minLength": 1
24898
- }
24899
- }
26716
+ "description": "Print machine-readable output."
24900
26717
  },
24901
26718
  {
24902
- "name": "--links",
24903
- "value": "<json>",
26719
+ "name": "--pane-dir",
26720
+ "value": "<path>",
24904
26721
  "required": false,
24905
- "description": "Any ui: up to 6 related files or pages, shown as chips on the card. A file is {label, path}, on this machine; a relative path resolves against the working directory. A page is {label, url}, http or https.",
24906
- "schema": {
24907
- "type": "array",
24908
- "maxItems": 6,
24909
- "items": {
24910
- "$ref": "#/jsonSchemas/notifyLink"
24911
- }
24912
- }
24913
- },
26722
+ "description": "Connect to a specific Pane data directory."
26723
+ }
26724
+ ],
26725
+ "examples": [
26726
+ "runpane devices run --json -- npx expo run:ios",
26727
+ "runpane devices run --background --json -- npx expo start"
26728
+ ],
26729
+ "notes": [
26730
+ "Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."
26731
+ ],
26732
+ "jsonSchemas": [
26733
+ "devicesRunResult"
26734
+ ]
26735
+ },
26736
+ "devices close": {
26737
+ "name": "devices close",
26738
+ "summary": "Release this Pane's device and stop the commands device_run started. The device stays warm for 10 minutes.",
26739
+ "details": "Ends the lease so another Pane can use the device. It shuts down 10 minutes later unless a Pane opens it again.",
26740
+ "requiresPaneDaemon": true,
26741
+ "mutates": true,
26742
+ "arguments": [
24914
26743
  {
24915
26744
  "name": "--json",
24916
26745
  "required": false,
@@ -24924,21 +26753,19 @@ exports.RUNPANE_CONTRACT = {
24924
26753
  }
24925
26754
  ],
24926
26755
  "examples": [
24927
- "runpane autopilot rewrite n-1a2b3c --ui options --title \"Q-39: Run the import on the copy first?\" --choices '[{\"label\":\"Copy first\",\"recommended\":true},{\"label\":\"Skip\"}]' --json"
24928
- ],
24929
- "jsonSchemas": [
24930
- "autopilotRewriteRequest",
24931
- "autopilotRewriteResult"
26756
+ "runpane devices close --json"
24932
26757
  ],
24933
26758
  "notes": [
24934
- "Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).",
24935
- "The result's id is the new item's. Put that one on the stack."
26759
+ "Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."
26760
+ ],
26761
+ "jsonSchemas": [
26762
+ "devicesCloseResult"
24936
26763
  ]
24937
26764
  },
24938
- "theme read": {
24939
- "name": "theme read",
24940
- "summary": "Show Pane's own theme: what is selected, the Custom theme, every colour token with its current value, the stable selectors, and the guide for restyling Pane.",
24941
- "details": "Run this before `runpane theme set`. tokens lists every colour token, with its value in the main window when Pane is open; parts lists the selectors custom CSS may target; guide says how to write a theme. ignoredBecause says why a hand-edited custom-theme.json was ignored.",
26765
+ "devices usage": {
26766
+ "name": "devices usage",
26767
+ "summary": "Report every simulator and emulator on this machine, and the memory and disk they, Pane's device tools and build checkouts use.",
26768
+ "details": "For machine health. Lists every simulator and emulator on this machine, including ones made outside Pane (paneMade false), with OS, disk and, when booted, memory (simslim measure when installed, otherwise the simulator's processes).",
24942
26769
  "requiresPaneDaemon": true,
24943
26770
  "mutates": false,
24944
26771
  "arguments": [
@@ -24955,61 +26782,66 @@ exports.RUNPANE_CONTRACT = {
24955
26782
  }
24956
26783
  ],
24957
26784
  "examples": [
24958
- "runpane theme read --json"
24959
- ],
24960
- "jsonSchemas": [
24961
- "themeReadResult"
26785
+ "runpane devices usage --json"
24962
26786
  ],
24963
26787
  "notes": [
24964
- "Use it only when the person asks to change how Pane itself looks, not their project's styles."
26788
+ "For machine health: answers only callers on this machine, and never touches the person's own devices or runtimes."
26789
+ ],
26790
+ "jsonSchemas": [
26791
+ "devicesUsageResult"
24965
26792
  ]
24966
26793
  },
24967
- "theme set": {
24968
- "name": "theme set",
24969
- "summary": "Restyle Pane itself, only when the person asks to change Pane's look: write the Custom theme (a base theme, colour tokens and CSS) and select it, or switch to another theme. Pane restyles within a second.",
24970
- "details": "Writes custom-theme.json in Pane's data folder and selects Custom where the person sees it now; every Pane window restyles within a second with no restart. Colours merge into the current Custom theme (null removes one), --css replaces its CSS, and the base defaults to the theme on screen. Nothing is written when a value is refused. --theme switches to another theme and leaves the Custom theme on disk. You cannot see the result: make small changes, then ask the person how it looks.",
26794
+ "devices free": {
26795
+ "name": "devices free",
26796
+ "summary": "Shut down unused devices (--idle), or also delete every unused device Pane made (--all).",
26797
+ "details": "Never touches the person's own devices or runtimes, or a device a Pane holds.",
24971
26798
  "requiresPaneDaemon": true,
24972
26799
  "mutates": true,
24973
26800
  "arguments": [
24974
26801
  {
24975
- "name": "--base",
24976
- "value": "<theme>",
26802
+ "name": "--idle",
24977
26803
  "required": false,
24978
- "description": "The shipped theme to build on; defaults to the Custom theme's base, or the theme on screen."
26804
+ "description": "Shut down Pane's devices no Pane holds."
24979
26805
  },
24980
26806
  {
24981
- "name": "--colors",
24982
- "value": "<json>",
26807
+ "name": "--all",
24983
26808
  "required": false,
24984
- "description": "Colour token overrides, such as {\"--color-border-primary\": \"#30363d\"}. Values are hex, rgb() or rgba(); null removes an override.",
24985
- "schema": {
24986
- "type": "object",
24987
- "additionalProperties": {
24988
- "type": [
24989
- "string",
24990
- "null"
24991
- ]
24992
- }
24993
- }
26809
+ "description": "Also erase and delete them."
24994
26810
  },
24995
26811
  {
24996
- "name": "--css",
24997
- "value": "<text>",
24998
- "required": false,
24999
- "description": "CSS that targets the stable [data-pane-part] selectors, up to 20,000 characters. No @import, src(), image-set() or remote url(). Replaces the current CSS; empty text removes it."
26812
+ "name": "--yes",
26813
+ "required": true,
26814
+ "description": "Confirm the change."
25000
26815
  },
25001
26816
  {
25002
- "name": "--name",
25003
- "value": "<text>",
26817
+ "name": "--json",
25004
26818
  "required": false,
25005
- "description": "A name for the Custom theme, shown in Settings."
26819
+ "description": "Print machine-readable output."
25006
26820
  },
25007
26821
  {
25008
- "name": "--theme",
25009
- "value": "<id>",
26822
+ "name": "--pane-dir",
26823
+ "value": "<path>",
25010
26824
  "required": false,
25011
- "description": "Switch to this theme instead: custom or a shipped theme id. Use it alone."
25012
- },
26825
+ "description": "Connect to a specific Pane data directory."
26826
+ }
26827
+ ],
26828
+ "examples": [
26829
+ "runpane devices free --idle --yes --json"
26830
+ ],
26831
+ "notes": [
26832
+ "For machine health: answers only callers on this machine, and never touches the person's own devices or runtimes."
26833
+ ],
26834
+ "jsonSchemas": [
26835
+ "devicesFreeResult"
26836
+ ]
26837
+ },
26838
+ "machine health": {
26839
+ "name": "machine health",
26840
+ "summary": "Show this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free, by tier.",
26841
+ "details": "Reads this machine's latest health snapshot and the last storage scan; it deletes nothing. disk lists each watched volume with free and total bytes; memory gives the level and the OS signal it came from; panes lists each Pane's processes and their memory; leaks lists processes whose memory keeps growing. inventory.items lists what can be freed, each with kind, tier, size and reason. Tier 1: Pane made it and nothing uses it now (replaced update snapshots, old migration backups); Pane also removes these by itself. Tier 2: may still be wanted, so Pane asks first (archived Pane folders, scratch of paused Panes, agent temp folders). Tier 3: not Pane's (other tools' data, database copies Pane did not write, worktrees Pane did not create); Pane never deletes these, and each item's howToFree says how to free it.",
26842
+ "requiresPaneDaemon": true,
26843
+ "mutates": false,
26844
+ "arguments": [
25013
26845
  {
25014
26846
  "name": "--json",
25015
26847
  "required": false,
@@ -25023,24 +26855,46 @@ exports.RUNPANE_CONTRACT = {
25023
26855
  }
25024
26856
  ],
25025
26857
  "examples": [
25026
- "runpane theme set --colors '{\"--color-border-primary\": \"#262b33\"}' --json",
25027
- "runpane theme set --css '[data-pane-part=\"tab\"] { border-radius: 8px !important; }' --json",
25028
- "runpane theme set --theme dusk --json"
26858
+ "runpane machine health --json",
26859
+ "runpane workspace <machine> machine health --json"
25029
26860
  ],
25030
26861
  "jsonSchemas": [
25031
- "themeSetResult"
26862
+ "machineHealthResult"
25032
26863
  ],
25033
26864
  "notes": [
25034
- "Restyle Pane only when the person asks to change Pane's look. Requests about their project's styles edit the project instead."
26865
+ "Free disk on any machine only through `runpane machine cleanup`, never with rm: cleanup re-checks each item, skips Panes in use, and moves each item to a trash folder before deleting it."
25035
26866
  ]
25036
26867
  },
25037
- "theme reset": {
25038
- "name": "theme reset",
25039
- "summary": "Delete the Custom theme and go back to the theme it was built on.",
25040
- "details": "Deletes custom-theme.json and selects its base theme. Works from any shell while Pane runs, even when a theme made Pane unreadable.",
26868
+ "machine cleanup": {
26869
+ "name": "machine cleanup",
26870
+ "summary": "Free disk space that Pane made: list one kind of tier 1 or 2 item with its size (a dry run), or delete them with --yes.",
26871
+ "details": "Without --yes it is a dry run: it lists the tier 1 and 2 items of --kind from the last scan and their total size, and deletes nothing. With --yes, Pane re-checks each item (it may be gone, in use, or protected because its Pane is pinned, focused, busy or has uncommitted changes), deletes the rest, and returns what it removed, what it skipped and why, and the bytes freed. A tier 3 kind is refused with ERR_MACHINE_CLEANUP_NOT_PANES, and `next` says how to free it with the tool that owns it. Tier 1: Pane made it and nothing uses it now (replaced update snapshots, old migration backups); Pane also removes these by itself. Tier 2: may still be wanted, so Pane asks first (archived Pane folders, scratch of paused Panes, agent temp folders). Tier 3: not Pane's (other tools' data, database copies Pane did not write, worktrees Pane did not create); Pane never deletes these, and each item's howToFree says how to free it.",
25041
26872
  "requiresPaneDaemon": true,
25042
26873
  "mutates": true,
25043
26874
  "arguments": [
26875
+ {
26876
+ "name": "--kind",
26877
+ "value": "<kind>",
26878
+ "required": true,
26879
+ "description": "Kind of item to delete: update-snapshot, migration-backup, archived-pane-folder, agent-temp, paused-scratch. Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused.",
26880
+ "schema": {
26881
+ "enum": [
26882
+ "update-snapshot",
26883
+ "migration-backup",
26884
+ "archived-pane-folder",
26885
+ "agent-temp",
26886
+ "paused-scratch",
26887
+ "foreign-worktree",
26888
+ "foreign-pane-data",
26889
+ "other-tool-data"
26890
+ ]
26891
+ }
26892
+ },
26893
+ {
26894
+ "name": "--yes",
26895
+ "required": false,
26896
+ "description": "Delete the items. Without it, list them and delete nothing."
26897
+ },
25044
26898
  {
25045
26899
  "name": "--json",
25046
26900
  "required": false,
@@ -25054,10 +26908,16 @@ exports.RUNPANE_CONTRACT = {
25054
26908
  }
25055
26909
  ],
25056
26910
  "examples": [
25057
- "runpane theme reset"
26911
+ "runpane machine cleanup --kind update-snapshot --json",
26912
+ "runpane machine cleanup --kind update-snapshot --yes --json",
26913
+ "runpane workspace <machine> machine cleanup --kind update-snapshot --yes --json"
26914
+ ],
26915
+ "jsonSchemas": [
26916
+ "machineCleanupResult"
25058
26917
  ],
25059
26918
  "notes": [
25060
- "The person's way back from any Custom theme; an agent switches away with `runpane theme set --theme <id>` instead."
26919
+ "Clean machines only through this command, never with rm or another raw delete.",
26920
+ "Run it without --yes first. Add --yes yourself only for a tier 1 kind; for a tier 2 kind, show the person the list and total size and wait for their OK."
25061
26921
  ]
25062
26922
  }
25063
26923
  },
@@ -25070,8 +26930,12 @@ exports.RUNPANE_CONTRACT = {
25070
26930
  "",
25071
26931
  "When you need the person (a choice, an approval, a short answer), call the `notify` MCP tool (or `runpane notify`) instead of asking in the terminal. If it returns `waiting`, call it again with `resume`; if it returns `unavailable`, ask in the terminal. Claude's own card (AskUserQuestion) is only for a quick question in the chat the person is typing in, about their latest message, that steers only this turn; everything else is an approval card, and Codex and other agents always use one. A worker in a Pane Session (`PANE_SESSION_DIR` set, `PANE_ORCHESTRATION_SESSION_ID` unset) doesn't call `notify`: it reports blocked to its orchestrator with `runpane report --state blocked --question \"<question>\"`. Its orchestrator relays that card with `runpane notify --relays <item> ...`, the answer goes straight to the worker's tab, and the orchestrator records it with `runpane inbox ack <item> --decision <D-n>`. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.",
25072
26932
  "",
26933
+ "To free disk or memory, run `runpane machine health` and delete only with `runpane machine cleanup` (a dry run until `--yes`), never `rm`. Put QA roots and test instances in the Pane's scratch folder (`$PANE_SCRATCH_DIR`).",
26934
+ "",
25073
26935
  "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.",
25074
26936
  "",
26937
+ "Devices: the `device_*` MCP tools (or `runpane devices`) open an iOS simulator or Android emulator as a tab in the calling Pane, then drive it. `runpane docs read --doc docs/DEVICES.md` has the rest.",
26938
+ "",
25075
26939
  "MCP: packaged Pane registers a stdio server named `pane` with Claude Code, Codex, and Cursor. Check the connection with `claude mcp list`, `codex mcp list`, or `agent mcp list`. Cursor may ask you to enable `pane` with `agent mcp enable pane`. If tools are missing, add it in the agent's MCP settings: Claude Code `claude mcp add --scope user pane -- npx --yes runpane@latest mcp`; Codex (`~/.codex/config.toml`) table `[mcp_servers.pane]` with `command = \"npx\"` and `args = [\"--yes\", \"runpane@latest\", \"mcp\"]`; Cursor (`~/.cursor/mcp.json`) uses `mcpServers.pane` with the same `npx` command and args; any other stdio client uses them too."
25076
26940
  ],
25077
26941
  "notifyGuidance": {