runpane 2.4.235 → 2.4.236

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.
@@ -1149,7 +1149,7 @@ export declare const RUNPANE_CONTRACT: {
1149
1149
  }, {
1150
1150
  readonly name: "notify";
1151
1151
  readonly summary: "Ask the person a question, or tell them something, wherever they are, and get their answer back.";
1152
- readonly usage: readonly ["runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", "runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", "runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]", "runpane notify --resume <id> [--json] [--pane-dir <path>]"];
1152
+ readonly usage: readonly ["runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", "runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", "runpane notify --update <id|Q-n> [--asked <text>] --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]", "runpane notify --resume <id> [--json] [--pane-dir <path>]"];
1153
1153
  readonly mutates: true;
1154
1154
  readonly additive: true;
1155
1155
  readonly toolsets: readonly ["core", "plugin"];
@@ -1925,7 +1925,7 @@ export declare const RUNPANE_CONTRACT: {
1925
1925
  }, {
1926
1926
  readonly name: "--asked";
1927
1927
  readonly value: "<text>";
1928
- readonly description: "notify --update: the person's question, as they typed it.";
1928
+ readonly description: "notify --update: the person's question, as they typed it. Needed when the update answers their typed question; leave it out for your own update, such as a loop's next run.";
1929
1929
  }, {
1930
1930
  readonly name: "--what-changed";
1931
1931
  readonly value: "<text>";
@@ -2186,7 +2186,7 @@ export declare const RUNPANE_CONTRACT: {
2186
2186
  readonly "agents send": readonly ["Usage:", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> [--as-file-pointer] [--no-expect-report] --yes [--json] [--pane-dir <path>]", "", "Send a follow-up message to an agent and confirm it was submitted.", "", "Options:", " --pane <pane-id> Pane id; its agent panel is used.", " --panel <panel-id> Panel id.", " --text <message> The message to submit.", " --as-file-pointer Write the message to a prompt file and send `Read and follow <path>`.", " --no-expect-report Send a reply (an answer or an addition to current work): it reaches a worker that still owes a report.", " --yes Confirm this change; required in non-interactive shells.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2187
2187
  readonly sessions: readonly ["Usage:", " runpane sessions <list|create|get|update|set-agent|associate|detach|overview|pause|resume> [options]", "", "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."];
2188
2188
  readonly report: readonly ["Usage:", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text>] [--pane <pane-id> --panel <panel-id>] [--json] [--pane-dir <path>]", "", "Hands back a worker's structured report for its panel: the orchestrator receives it as an", "agent.report watch event and reads it in `agents status` and `sessions overview`.", "Inside a Pane terminal the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "It prints how many watches were waiting and received it (\"Delivered to 1 waiting watcher.\"). With no Session and", "nobody waiting, the report is still stored: a named-cursor watch receives it when it next waits.", "", "Options:", " --state <state> ready, blocked, failed, or done", " --pr <number> Pull request number", " --head <sha> Head commit, 7-40 hex characters", " --summary <text> Summary text; up to 16,000 characters are kept", " --summary-file <path|-> Read the summary from a file or stdin", " --question <text> What you need answered; required with --state blocked", " --pane <pane-id> Pane id when not running inside a Pane terminal", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md"];
2189
- readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", " runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", " runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]", " runpane notify --resume <id> [--json] [--pane-dir <path>]", "", "Asks the person a question, or tells them something, on screen wherever they are, and", "prints their answer. The call waits until they answer; --ui info returns at once.", "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.", "When Pane is not running it prints an unavailable result: ask in the terminal instead.", "A typed reply comes back as a reply result (or a `reply:` line in your tab): it may answer", "the question or ask one. Say which with --took; for a question, find out, then --update.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line, about 80 characters", " --context <text> Subtitle: why it matters, one or two sentences", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --questions <json> options, instead of --choices: 2 to 4 of [{\"title\":\"...\",\"choices\":[...]}], one pick each", " --detail <text> approve: the command or SQL to approve", " --detail-label <text> approve: label of the disclosure for --detail (default Show details)", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}", " --links <json> Any ui: up to 6 related files, pages or approvals, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " or [{\"label\":\"Q-19\",\"approval\":\"Q-19\"}]", " --relays <item> Session orchestrator: improve this worker's waiting card (an id from runpane inbox)", " instead of posting a second one; the call waits on it, and the answer goes to the worker's tab", " --about-session <id|name> Autopilot's own item: the Session it is about", " --took <id|Q-n> <answer|question>", " Say how you took the person's reply: answer records it as the answer;", " question shows that you are getting more context", " --status <text> With --took question: what you are doing (default Getting more context…)", " --update <id|Q-n> Save a new version of the approval after the person's question, and wait on it;", " pass only what changed, and mark a reworded choice with \"was\" (its old label)", " --asked <text> With --update: the person's question, as they typed it", " --what-changed <text> With --update: one line per change", " --resume <id> Keep waiting on a question an earlier call returned waiting for", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'", " runpane notify --took Q-20 answer", " runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: it can be undone from Settings\" --context \"...\""];
2189
+ readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", " runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", " runpane notify --update <id|Q-n> [--asked <text>] --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]", " runpane notify --resume <id> [--json] [--pane-dir <path>]", "", "Asks the person a question, or tells them something, on screen wherever they are, and", "prints their answer. The call waits until they answer; --ui info returns at once.", "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.", "When Pane is not running it prints an unavailable result: ask in the terminal instead.", "A typed reply comes back as a reply result (or a `reply:` line in your tab), recorded as the", "answer. If it asks something instead, run --took question, find out, then --update.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line, about 80 characters", " --context <text> Subtitle: why it matters, one or two sentences", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --questions <json> options, instead of --choices: 2 to 4 of [{\"title\":\"...\",\"choices\":[...]}], one pick each", " --detail <text> approve: the command or SQL to approve", " --detail-label <text> approve: label of the disclosure for --detail (default Show details)", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}", " --links <json> Any ui: up to 6 related files, pages or approvals, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " or [{\"label\":\"Q-19\",\"approval\":\"Q-19\"}]", " --relays <item> Session orchestrator: improve this worker's waiting card (an id from runpane inbox)", " instead of posting a second one; the call waits on it, and the answer goes to the worker's tab", " --about-session <id|name> Autopilot's own item: the Session it is about", " --took <id|Q-n> <answer|question>", " The person's reply was a question: question reopens the approval and shows", " you are getting more context. answer only confirms the recorded answer", " --status <text> With --took question: what you are doing (default Getting more context…)", " --update <id|Q-n> Save a new version of the approval after the person's question, and wait on it;", " pass only what changed, and mark a reworded choice with \"was\" (its old label)", " --asked <text> With --update: the person's question, as they typed it; leave out", " for your own update, such as a loop's next run", " --what-changed <text> With --update: one line per change", " --resume <id> Keep waiting on a question an earlier call returned waiting for", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'", " runpane notify --took Q-20 question", " runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: it can be undone from Settings\" --context \"...\""];
2190
2190
  readonly "panels resume": readonly ["Usage:", " runpane panels resume --panel <panel-id> [--wait-ready] [--ready-timeout-ms <ms>] --yes [--json] [--pane-dir <path>]", " runpane panels resume (--session <id|name>|--all-stopped) [--wait-ready] [--ready-timeout-ms <ms>] [--concurrency <count>] --yes [--json] [--pane-dir <path>]", "", "Restarts a stopped terminal panel in the same panel, keeping its panel id. An agent panel", "relaunches with its resume command (Claude --resume <session>, codex resume <session>, Cursor", "--resume), the same restart the app runs when it shows the panel. Nothing takes focus. A panel", "whose agent exited back to its shell counts as stopped: its saved command runs again in that", "shell. A panel that is already running is left alone and reported as already-running.", "A paused panel resumes and loses its paused mark.", "", "With --session or --all-stopped it resumes every stopped agent panel in that scope (a", "Session's associated Panes, or every Pane), --concurrency at a time, skips running and paused ones,", "and returns one result per panel. With --wait-ready the resumed panels then wait together,", "and each result carries its own readiness and blocker. One panel failing does not stop the others.", "", "Options:", " --panel <panel-id> Terminal panel id", " --session <id|name> Resume the stopped agent panels of this Session's associated Panes", " --all-stopped Resume the stopped agent panels of every Pane", " --concurrency <count> Panels restarted at once for --session or --all-stopped; defaults to 3, at most 10", " --wait-ready Wait until the resumed agent is ready; startup prompts come back as readiness.blocked", " --ready-timeout-ms <ms> Readiness wait timeout; resumed panels wait together; defaults to 30000", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane panels resume --panel <panel-id> --wait-ready --yes --json", " runpane panels resume --session <id|name> --wait-ready --yes --json"];
2191
2191
  readonly "panels last-message": readonly ["Usage:", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]", "", "Reads a Claude or Codex agent's last reply from its transcript. It never scrapes the screen:", "without a transcript it reports transcript-unavailable and exits non-zero.", "", "Options:", " --panel <panel-id> Agent panel id", " --limit <count> Maximum characters to return; defaults to 20000 (the end is kept)", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
2192
2192
  readonly "panels conversation": readonly ["Usage:", " runpane panels conversation --conversation <id> [--source startup|resume|clear|compact] [--panel <panel-id>] [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane panels conversation --hook [--pane-dir <path>]", "", "Records which conversation a terminal panel's agent is on. Switch to chat, and every restart", "of the panel, open the conversation recorded since its agent started. Inside a Pane terminal", "the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "", "--hook is for a Claude Code SessionStart command hook: it reads the hook's JSON from stdin", "(session_id, source; at most 64 KiB, for at most 2 seconds) and reports it for PANE_PANEL_ID.", "It prints nothing and always exits 0, so it never shows in Claude's context or blocks Claude:", "outside Pane, with bad input, when Pane is not running, or with an older Pane.", "", "Options:", " --conversation <id> Conversation (agent session) id", " --source <source> What started it: startup, resume, clear, or compact", " --hook Read a SessionStart hook's JSON from stdin, silently", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane <pane-id> Pane id, with --panel", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane panels conversation --conversation 0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44 --source resume"];
@@ -2196,8 +2196,8 @@ export declare const RUNPANE_CONTRACT: {
2196
2196
  readonly "lock list": readonly ["Usage:", "runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
2197
2197
  readonly loops: readonly ["Usage:", " runpane loops <list|create|update|run|pause|resume|delete> [options]", "", "Loops (scheduled tasks) start a new Pane in a fresh worktree on a cron schedule.", "A Session loop instead sends its prompt to a Session's agent each run.", "Loops are for large recurring jobs and run at most once an hour.", "For short waits, use your agent harness's own sleep and wake.", "Runs start only while Pane is running, in this machine's local time zone.", "", "Commands:", " runpane loops list [--json] [--pane-dir <path>]", " runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--paused] [--dry-run] --yes [--json] [--pane-dir <path>]", " runpane loops update --loop <id> [--repo <selector>|--session <id|name|new>] [--name <name>] [--cron <expr>] [--agent <claude|codex|cursor>|--tool-command <command>] [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--dry-run] --yes [--json] [--pane-dir <path>]", " runpane loops run --loop <id> --yes [--json] [--pane-dir <path>]", " runpane loops pause --loop <id> --yes [--json] [--pane-dir <path>]", " runpane loops resume --loop <id> --yes [--json] [--pane-dir <path>]", " runpane loops delete --loop <id> --yes [--json] [--pane-dir <path>]"];
2198
2198
  readonly "loops list": readonly ["Usage:", "runpane loops list [--json] [--pane-dir <path>]", "", "List loops (scheduled tasks) with their schedule, next run, and recent runs.", "", "Options:", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2199
- readonly "loops create": readonly ["Usage:", "runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--paused] [--dry-run] --yes [--json] [--pane-dir <path>]", "", "Create a loop: 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, use your agent harness's own sleep and wake.", "With --repo, each run is a new Pane in a fresh worktree from the repo's default base branch.", "A Session loop sends its prompt to that Session's agent each run instead of creating a new Pane.", "", "Options:", " --repo <selector> Repository: active, id, exact path, or saved name.", " --session <id|name|new> Session whose agent gets the prompt each run, instead of", " a new Pane; `new` creates a Session named after the loop.", " That agent then skips permission prompts for every message", " it gets, not only loop runs.", " --name <name> Loop name.", " --cron <expr> Five-field cron in local time, such as \"0 3 * * *\"; at least 1 hour apart.", " --agent <claude|codex|cursor> Agent each run starts; for a Session loop, the Session's agent.", " Runs skip permission prompts.", " --tool-command <command> Command each run starts instead of an agent, such as", " ./scripts/nightly-report.sh. Project loops only. On Windows it runs", " in Pane's terminal shell, Git Bash by default, so write bash or", " `cmd //c`: \"cmd //c echo hi > loop.txt\" works, \"cmd /c ...\" hangs.", " --prompt <text> Text typed into the agent or command after it starts; for a", " Session loop, the message sent to the Session's agent each run.", " --prompt-file <path|-> Read the prompt from a file or stdin.", " --worktree-name <template> Worktree and branch name; defaults to loop-<name>. Project loops only.", " --paused Create the loop paused.", " --dry-run Check the schedule and print what would be saved.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2200
- readonly "loops update": readonly ["Usage:", "runpane loops update --loop <id> [--repo <selector>|--session <id|name|new>] [--name <name>] [--cron <expr>] [--agent <claude|codex|cursor>|--tool-command <command>] [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--dry-run] --yes [--json] [--pane-dir <path>]", "", "Change a loop's repo or Session, name, schedule, agent or command, prompt, or worktree template. Loops are for large recurring jobs and run at most once an hour; for short waits, use your agent harness's own sleep and wake.", "With --repo, each run is a new Pane in a fresh worktree from the repo's default base branch.", "A Session loop sends its prompt to that Session's agent each run instead of creating a new Pane.", "", "Options:", " --loop <id> Loop to change; other flags replace its values.", " --repo <selector> Repository: active, id, exact path, or saved name.", " --session <id|name|new> Session whose agent gets the prompt each run, instead of", " a new Pane; `new` creates a Session named after the loop.", " That agent then skips permission prompts for every message", " it gets, not only loop runs.", " --name <name> Loop name.", " --cron <expr> Five-field cron in local time, such as \"0 3 * * *\"; at least 1 hour apart.", " --agent <claude|codex|cursor> Agent each run starts; for a Session loop, the Session's agent.", " Runs skip permission prompts.", " --tool-command <command> Command each run starts instead of an agent, such as", " ./scripts/nightly-report.sh. Project loops only. On Windows it runs", " in Pane's terminal shell, Git Bash by default, so write bash or", " `cmd //c`: \"cmd //c echo hi > loop.txt\" works, \"cmd /c ...\" hangs.", " --prompt <text> Text typed into the agent or command after it starts; for a", " Session loop, the message sent to the Session's agent each run.", " --prompt-file <path|-> Read the prompt from a file or stdin.", " --worktree-name <template> Worktree and branch name; defaults to loop-<name>. Project loops only.", " --dry-run Check the schedule and print what would be saved.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2199
+ readonly "loops create": readonly ["Usage:", "runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--paused] [--dry-run] --yes [--json] [--pane-dir <path>]", "", "Create a loop: 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, use your agent harness's own sleep and wake.", "With --repo, each run is a new Pane in a fresh worktree from the repo's default base branch.", "A Session loop sends its prompt to that Session's agent each run instead of creating a new Pane.", "", "Writing a good loop (the person is away while it runs):", " 1. Reach the person only through cards and artifacts; they never open the loop's Pane,", " Session or terminal. Each finding, question or error (a source unreachable, a sign-in", " expired) is a `runpane notify` card that stands on its own: what was tried, the one thing", " they can do, and every artifact in --links. Act on their answers on the card.", " 2. Remember across runs. Keep a ledger file of the items found, what each run covered, what", " was surfaced and the id of each card posted. Start each run by reading it, the last one or", " two outputs, and the card answers since the last run. Scan only what is new, and re-check", " open items.", " 3. Never repeat. Surface an item only when it is new, newly urgent or overdue, matched by", " meaning, not wording, and record when it was last surfaced. While a card is unanswered,", " update it instead of posting another: `runpane notify --update <id> --what-changed <line>`,", " with the id from the ledger. Any later run of the same loop may update it.", " 4. Post one card per run, or none when nothing qualifies.", " 5. Publish each run's output to one place: the person's document destination, one folder", " per loop, named by date and slot, linking the previous output. Keep a copy by the ledger.", " 6. Ask before acting outward. Propose anything that messages or changes something for", " someone else on an approve card, act only on approval, and limit how often one reminder", " is proposed.", " 7. Start with a small window. Set the default look-ahead or look-back, widen it when the", " evidence calls for it, and record the window each run used.", " 8. Keep the prompt in a file. After each edit, run `loops update --prompt-file` and read the", " saved loop back with `loops list`.", " 9. Use cards that wait: --ui options or approve (such as \"Got it\" / \"Not interested\").", " An --ui info card disappears before the person is back.", "`runpane docs read --doc docs/LOOPS.md` has a worked prompt.", "", "Options:", " --repo <selector> Repository: active, id, exact path, or saved name.", " --session <id|name|new> Session whose agent gets the prompt each run, instead of", " a new Pane; `new` creates a Session named after the loop.", " That agent then skips permission prompts for every message", " it gets, not only loop runs.", " --name <name> Loop name.", " --cron <expr> Five-field cron in local time, such as \"0 3 * * *\"; at least 1 hour apart.", " --agent <claude|codex|cursor> Agent each run starts; for a Session loop, the Session's agent.", " Runs skip permission prompts.", " --tool-command <command> Command each run starts instead of an agent, such as", " ./scripts/nightly-report.sh. Project loops only. On Windows it runs", " in Pane's terminal shell, Git Bash by default, so write bash or", " `cmd //c`: \"cmd //c echo hi > loop.txt\" works, \"cmd /c ...\" hangs.", " --prompt <text> Text typed into the agent or command after it starts; for a", " Session loop, the message sent to the Session's agent each run.", " --prompt-file <path|-> Read the prompt from a file or stdin.", " --worktree-name <template> Worktree and branch name; defaults to loop-<name>. Project loops only.", " --paused Create the loop paused.", " --dry-run Check the schedule and print what would be saved.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2200
+ readonly "loops update": readonly ["Usage:", "runpane loops update --loop <id> [--repo <selector>|--session <id|name|new>] [--name <name>] [--cron <expr>] [--agent <claude|codex|cursor>|--tool-command <command>] [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--dry-run] --yes [--json] [--pane-dir <path>]", "", "Change a loop's repo or Session, name, schedule, agent or command, prompt, or worktree template. Loops are for large recurring jobs and run at most once an hour; for short waits, use your agent harness's own sleep and wake.", "With --repo, each run is a new Pane in a fresh worktree from the repo's default base branch.", "A Session loop sends its prompt to that Session's agent each run instead of creating a new Pane.", "", "Writing a good loop (the person is away while it runs):", " 1. Reach the person only through cards and artifacts; they never open the loop's Pane,", " Session or terminal. Each finding, question or error (a source unreachable, a sign-in", " expired) is a `runpane notify` card that stands on its own: what was tried, the one thing", " they can do, and every artifact in --links. Act on their answers on the card.", " 2. Remember across runs. Keep a ledger file of the items found, what each run covered, what", " was surfaced and the id of each card posted. Start each run by reading it, the last one or", " two outputs, and the card answers since the last run. Scan only what is new, and re-check", " open items.", " 3. Never repeat. Surface an item only when it is new, newly urgent or overdue, matched by", " meaning, not wording, and record when it was last surfaced. While a card is unanswered,", " update it instead of posting another: `runpane notify --update <id> --what-changed <line>`,", " with the id from the ledger. Any later run of the same loop may update it.", " 4. Post one card per run, or none when nothing qualifies.", " 5. Publish each run's output to one place: the person's document destination, one folder", " per loop, named by date and slot, linking the previous output. Keep a copy by the ledger.", " 6. Ask before acting outward. Propose anything that messages or changes something for", " someone else on an approve card, act only on approval, and limit how often one reminder", " is proposed.", " 7. Start with a small window. Set the default look-ahead or look-back, widen it when the", " evidence calls for it, and record the window each run used.", " 8. Keep the prompt in a file. After each edit, run `loops update --prompt-file` and read the", " saved loop back with `loops list`.", " 9. Use cards that wait: --ui options or approve (such as \"Got it\" / \"Not interested\").", " An --ui info card disappears before the person is back.", "`runpane docs read --doc docs/LOOPS.md` has a worked prompt.", "", "Options:", " --loop <id> Loop to change; other flags replace its values.", " --repo <selector> Repository: active, id, exact path, or saved name.", " --session <id|name|new> Session whose agent gets the prompt each run, instead of", " a new Pane; `new` creates a Session named after the loop.", " That agent then skips permission prompts for every message", " it gets, not only loop runs.", " --name <name> Loop name.", " --cron <expr> Five-field cron in local time, such as \"0 3 * * *\"; at least 1 hour apart.", " --agent <claude|codex|cursor> Agent each run starts; for a Session loop, the Session's agent.", " Runs skip permission prompts.", " --tool-command <command> Command each run starts instead of an agent, such as", " ./scripts/nightly-report.sh. Project loops only. On Windows it runs", " in Pane's terminal shell, Git Bash by default, so write bash or", " `cmd //c`: \"cmd //c echo hi > loop.txt\" works, \"cmd /c ...\" hangs.", " --prompt <text> Text typed into the agent or command after it starts; for a", " Session loop, the message sent to the Session's agent each run.", " --prompt-file <path|-> Read the prompt from a file or stdin.", " --worktree-name <template> Worktree and branch name; defaults to loop-<name>. Project loops only.", " --dry-run Check the schedule and print what would be saved.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2201
2201
  readonly "loops run": readonly ["Usage:", "runpane loops run --loop <id> --yes [--json] [--pane-dir <path>]", "", "Start a run of a loop now. The schedule stays the same.", "", "Options:", " --loop <id> Loop id, from runpane loops list.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2202
2202
  readonly "loops pause": readonly ["Usage:", "runpane loops pause --loop <id> --yes [--json] [--pane-dir <path>]", "", "Pause a loop: it starts no scheduled runs until resumed.", "", "Options:", " --loop <id> Loop id, from runpane loops list.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2203
2203
  readonly "loops resume": readonly ["Usage:", "runpane loops resume --loop <id> --yes [--json] [--pane-dir <path>]", "", "Resume a paused loop from its next scheduled time.", "", "Options:", " --loop <id> Loop id, from runpane loops list.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
@@ -2329,7 +2329,7 @@ export declare const RUNPANE_CONTRACT: {
2329
2329
  readonly "agents send": readonly ["Usage:", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> [--as-file-pointer] [--no-expect-report] --yes [--json] [--pane-dir <path>]", "", "`runpane agents send` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest agents send"];
2330
2330
  readonly sessions: readonly ["Usage:", " runpane sessions <list|create|get|update|set-agent|associate|detach|overview|pause|resume> [options]", "", "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."];
2331
2331
  readonly report: readonly ["Usage:", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text>] [--pane <pane-id> --panel <panel-id>] [--json] [--pane-dir <path>]", "", "Hands back a worker's structured report for its panel: the orchestrator receives it as an", "agent.report watch event and reads it in `agents status` and `sessions overview`.", "Inside a Pane terminal the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "It prints how many watches were waiting and received it (\"Delivered to 1 waiting watcher.\"). With no Session and", "nobody waiting, the report is still stored: a named-cursor watch receives it when it next waits.", "", "Options:", " --state <state> ready, blocked, failed, or done", " --pr <number> Pull request number", " --head <sha> Head commit, 7-40 hex characters", " --summary <text> Summary text; up to 16,000 characters are kept", " --summary-file <path|-> Read the summary from a file or stdin", " --question <text> What you need answered; required with --state blocked", " --pane <pane-id> Pane id when not running inside a Pane terminal", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md"];
2332
- readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", " runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", " runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]", " runpane notify --resume <id> [--json] [--pane-dir <path>]", "", "Asks the person a question, or tells them something, on screen wherever they are, and", "prints their answer. The call waits until they answer; --ui info returns at once.", "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.", "When Pane is not running it prints an unavailable result: ask in the terminal instead.", "A typed reply comes back as a reply result (or a `reply:` line in your tab): it may answer", "the question or ask one. Say which with --took; for a question, find out, then --update.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line, about 80 characters", " --context <text> Subtitle: why it matters, one or two sentences", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --questions <json> options, instead of --choices: 2 to 4 of [{\"title\":\"...\",\"choices\":[...]}], one pick each", " --detail <text> approve: the command or SQL to approve", " --detail-label <text> approve: label of the disclosure for --detail (default Show details)", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}", " --links <json> Any ui: up to 6 related files, pages or approvals, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " or [{\"label\":\"Q-19\",\"approval\":\"Q-19\"}]", " --relays <item> Session orchestrator: improve this worker's waiting card (an id from runpane inbox)", " instead of posting a second one; the call waits on it, and the answer goes to the worker's tab", " --about-session <id|name> Autopilot's own item: the Session it is about", " --took <id|Q-n> <answer|question>", " Say how you took the person's reply: answer records it as the answer;", " question shows that you are getting more context", " --status <text> With --took question: what you are doing (default Getting more context…)", " --update <id|Q-n> Save a new version of the approval after the person's question, and wait on it;", " pass only what changed, and mark a reworded choice with \"was\" (its old label)", " --asked <text> With --update: the person's question, as they typed it", " --what-changed <text> With --update: one line per change", " --resume <id> Keep waiting on a question an earlier call returned waiting for", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'", " runpane notify --took Q-20 answer", " runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: it can be undone from Settings\" --context \"...\""];
2332
+ readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", " runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", " runpane notify --update <id|Q-n> [--asked <text>] --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]", " runpane notify --resume <id> [--json] [--pane-dir <path>]", "", "Asks the person a question, or tells them something, on screen wherever they are, and", "prints their answer. The call waits until they answer; --ui info returns at once.", "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.", "When Pane is not running it prints an unavailable result: ask in the terminal instead.", "A typed reply comes back as a reply result (or a `reply:` line in your tab), recorded as the", "answer. If it asks something instead, run --took question, find out, then --update.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line, about 80 characters", " --context <text> Subtitle: why it matters, one or two sentences", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --questions <json> options, instead of --choices: 2 to 4 of [{\"title\":\"...\",\"choices\":[...]}], one pick each", " --detail <text> approve: the command or SQL to approve", " --detail-label <text> approve: label of the disclosure for --detail (default Show details)", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}", " --links <json> Any ui: up to 6 related files, pages or approvals, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " or [{\"label\":\"Q-19\",\"approval\":\"Q-19\"}]", " --relays <item> Session orchestrator: improve this worker's waiting card (an id from runpane inbox)", " instead of posting a second one; the call waits on it, and the answer goes to the worker's tab", " --about-session <id|name> Autopilot's own item: the Session it is about", " --took <id|Q-n> <answer|question>", " The person's reply was a question: question reopens the approval and shows", " you are getting more context. answer only confirms the recorded answer", " --status <text> With --took question: what you are doing (default Getting more context…)", " --update <id|Q-n> Save a new version of the approval after the person's question, and wait on it;", " pass only what changed, and mark a reworded choice with \"was\" (its old label)", " --asked <text> With --update: the person's question, as they typed it; leave out", " for your own update, such as a loop's next run", " --what-changed <text> With --update: one line per change", " --resume <id> Keep waiting on a question an earlier call returned waiting for", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'", " runpane notify --took Q-20 question", " runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: it can be undone from Settings\" --context \"...\""];
2333
2333
  readonly "panels resume": readonly ["Usage:", " runpane panels resume --panel <panel-id> [--wait-ready] [--ready-timeout-ms <ms>] --yes [--json] [--pane-dir <path>]", " runpane panels resume (--session <id|name>|--all-stopped) [--wait-ready] [--ready-timeout-ms <ms>] [--concurrency <count>] --yes [--json] [--pane-dir <path>]", "", "Restarts a stopped terminal panel in the same panel, keeping its panel id. An agent panel", "relaunches with its resume command (Claude --resume <session>, codex resume <session>, Cursor", "--resume), the same restart the app runs when it shows the panel. Nothing takes focus. A panel", "whose agent exited back to its shell counts as stopped: its saved command runs again in that", "shell. A panel that is already running is left alone and reported as already-running.", "A paused panel resumes and loses its paused mark.", "", "With --session or --all-stopped it resumes every stopped agent panel in that scope (a", "Session's associated Panes, or every Pane), --concurrency at a time, skips running and paused ones,", "and returns one result per panel. With --wait-ready the resumed panels then wait together,", "and each result carries its own readiness and blocker. One panel failing does not stop the others.", "", "Options:", " --panel <panel-id> Terminal panel id", " --session <id|name> Resume the stopped agent panels of this Session's associated Panes", " --all-stopped Resume the stopped agent panels of every Pane", " --concurrency <count> Panels restarted at once for --session or --all-stopped; defaults to 3, at most 10", " --wait-ready Wait until the resumed agent is ready; startup prompts come back as readiness.blocked", " --ready-timeout-ms <ms> Readiness wait timeout; resumed panels wait together; defaults to 30000", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane panels resume --panel <panel-id> --wait-ready --yes --json", " runpane panels resume --session <id|name> --wait-ready --yes --json"];
2334
2334
  readonly "panels last-message": readonly ["Usage:", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]", "", "Reads a Claude or Codex agent's last reply from its transcript. It never scrapes the screen:", "without a transcript it reports transcript-unavailable and exits non-zero.", "", "Options:", " --panel <panel-id> Agent panel id", " --limit <count> Maximum characters to return; defaults to 20000 (the end is kept)", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
2335
2335
  readonly "panels conversation": readonly ["Usage:", " runpane panels conversation --conversation <id> [--source startup|resume|clear|compact] [--panel <panel-id>] [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane panels conversation --hook [--pane-dir <path>]", "", "Records which conversation a terminal panel's agent is on. Switch to chat, and every restart", "of the panel, open the conversation recorded since its agent started. Inside a Pane terminal", "the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "", "--hook is for a Claude Code SessionStart command hook: it reads the hook's JSON from stdin", "(session_id, source; at most 64 KiB, for at most 2 seconds) and reports it for PANE_PANEL_ID.", "It prints nothing and always exits 0, so it never shows in Claude's context or blocks Claude:", "outside Pane, with bad input, when Pane is not running, or with an older Pane.", "", "Options:", " --conversation <id> Conversation (agent session) id", " --source <source> What started it: startup, resume, clear, or compact", " --hook Read a SessionStart hook's JSON from stdin, silently", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane <pane-id> Pane id, with --panel", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane panels conversation --conversation 0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44 --source resume"];
@@ -2339,8 +2339,8 @@ export declare const RUNPANE_CONTRACT: {
2339
2339
  readonly "lock list": readonly ["Usage:", "python -m runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
2340
2340
  readonly loops: readonly ["Usage:", " python -m runpane loops <list|create|update|run|pause|resume|delete> [options]", "", "Loops (scheduled tasks) start a new Pane in a fresh worktree on a cron schedule.", "A Session loop instead sends its prompt to a Session's agent each run.", "Loops are for large recurring jobs and run at most once an hour.", "For short waits, use your agent harness's own sleep and wake.", "Runs start only while Pane is running, in this machine's local time zone.", "", "Commands:", " python -m runpane loops list [--json] [--pane-dir <path>]", " python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--paused] [--dry-run] --yes [--json] [--pane-dir <path>]", " python -m runpane loops update --loop <id> [--repo <selector>|--session <id|name|new>] [--name <name>] [--cron <expr>] [--agent <claude|codex|cursor>|--tool-command <command>] [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--dry-run] --yes [--json] [--pane-dir <path>]", " python -m runpane loops run --loop <id> --yes [--json] [--pane-dir <path>]", " python -m runpane loops pause --loop <id> --yes [--json] [--pane-dir <path>]", " python -m runpane loops resume --loop <id> --yes [--json] [--pane-dir <path>]", " python -m runpane loops delete --loop <id> --yes [--json] [--pane-dir <path>]"];
2341
2341
  readonly "loops list": readonly ["Usage:", "python -m runpane loops list [--json] [--pane-dir <path>]", "", "List loops (scheduled tasks) with their schedule, next run, and recent runs.", "", "Options:", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2342
- readonly "loops create": readonly ["Usage:", "python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--paused] [--dry-run] --yes [--json] [--pane-dir <path>]", "", "Create a loop: 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, use your agent harness's own sleep and wake.", "With --repo, each run is a new Pane in a fresh worktree from the repo's default base branch.", "A Session loop sends its prompt to that Session's agent each run instead of creating a new Pane.", "", "Options:", " --repo <selector> Repository: active, id, exact path, or saved name.", " --session <id|name|new> Session whose agent gets the prompt each run, instead of", " a new Pane; `new` creates a Session named after the loop.", " That agent then skips permission prompts for every message", " it gets, not only loop runs.", " --name <name> Loop name.", " --cron <expr> Five-field cron in local time, such as \"0 3 * * *\"; at least 1 hour apart.", " --agent <claude|codex|cursor> Agent each run starts; for a Session loop, the Session's agent.", " Runs skip permission prompts.", " --tool-command <command> Command each run starts instead of an agent, such as", " ./scripts/nightly-report.sh. Project loops only. On Windows it runs", " in Pane's terminal shell, Git Bash by default, so write bash or", " `cmd //c`: \"cmd //c echo hi > loop.txt\" works, \"cmd /c ...\" hangs.", " --prompt <text> Text typed into the agent or command after it starts; for a", " Session loop, the message sent to the Session's agent each run.", " --prompt-file <path|-> Read the prompt from a file or stdin.", " --worktree-name <template> Worktree and branch name; defaults to loop-<name>. Project loops only.", " --paused Create the loop paused.", " --dry-run Check the schedule and print what would be saved.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2343
- readonly "loops update": readonly ["Usage:", "python -m runpane loops update --loop <id> [--repo <selector>|--session <id|name|new>] [--name <name>] [--cron <expr>] [--agent <claude|codex|cursor>|--tool-command <command>] [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--dry-run] --yes [--json] [--pane-dir <path>]", "", "Change a loop's repo or Session, name, schedule, agent or command, prompt, or worktree template. Loops are for large recurring jobs and run at most once an hour; for short waits, use your agent harness's own sleep and wake.", "With --repo, each run is a new Pane in a fresh worktree from the repo's default base branch.", "A Session loop sends its prompt to that Session's agent each run instead of creating a new Pane.", "", "Options:", " --loop <id> Loop to change; other flags replace its values.", " --repo <selector> Repository: active, id, exact path, or saved name.", " --session <id|name|new> Session whose agent gets the prompt each run, instead of", " a new Pane; `new` creates a Session named after the loop.", " That agent then skips permission prompts for every message", " it gets, not only loop runs.", " --name <name> Loop name.", " --cron <expr> Five-field cron in local time, such as \"0 3 * * *\"; at least 1 hour apart.", " --agent <claude|codex|cursor> Agent each run starts; for a Session loop, the Session's agent.", " Runs skip permission prompts.", " --tool-command <command> Command each run starts instead of an agent, such as", " ./scripts/nightly-report.sh. Project loops only. On Windows it runs", " in Pane's terminal shell, Git Bash by default, so write bash or", " `cmd //c`: \"cmd //c echo hi > loop.txt\" works, \"cmd /c ...\" hangs.", " --prompt <text> Text typed into the agent or command after it starts; for a", " Session loop, the message sent to the Session's agent each run.", " --prompt-file <path|-> Read the prompt from a file or stdin.", " --worktree-name <template> Worktree and branch name; defaults to loop-<name>. Project loops only.", " --dry-run Check the schedule and print what would be saved.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2342
+ readonly "loops create": readonly ["Usage:", "python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--paused] [--dry-run] --yes [--json] [--pane-dir <path>]", "", "Create a loop: 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, use your agent harness's own sleep and wake.", "With --repo, each run is a new Pane in a fresh worktree from the repo's default base branch.", "A Session loop sends its prompt to that Session's agent each run instead of creating a new Pane.", "", "Writing a good loop (the person is away while it runs):", " 1. Reach the person only through cards and artifacts; they never open the loop's Pane,", " Session or terminal. Each finding, question or error (a source unreachable, a sign-in", " expired) is a `runpane notify` card that stands on its own: what was tried, the one thing", " they can do, and every artifact in --links. Act on their answers on the card.", " 2. Remember across runs. Keep a ledger file of the items found, what each run covered, what", " was surfaced and the id of each card posted. Start each run by reading it, the last one or", " two outputs, and the card answers since the last run. Scan only what is new, and re-check", " open items.", " 3. Never repeat. Surface an item only when it is new, newly urgent or overdue, matched by", " meaning, not wording, and record when it was last surfaced. While a card is unanswered,", " update it instead of posting another: `runpane notify --update <id> --what-changed <line>`,", " with the id from the ledger. Any later run of the same loop may update it.", " 4. Post one card per run, or none when nothing qualifies.", " 5. Publish each run's output to one place: the person's document destination, one folder", " per loop, named by date and slot, linking the previous output. Keep a copy by the ledger.", " 6. Ask before acting outward. Propose anything that messages or changes something for", " someone else on an approve card, act only on approval, and limit how often one reminder", " is proposed.", " 7. Start with a small window. Set the default look-ahead or look-back, widen it when the", " evidence calls for it, and record the window each run used.", " 8. Keep the prompt in a file. After each edit, run `loops update --prompt-file` and read the", " saved loop back with `loops list`.", " 9. Use cards that wait: --ui options or approve (such as \"Got it\" / \"Not interested\").", " An --ui info card disappears before the person is back.", "`runpane docs read --doc docs/LOOPS.md` has a worked prompt.", "", "Options:", " --repo <selector> Repository: active, id, exact path, or saved name.", " --session <id|name|new> Session whose agent gets the prompt each run, instead of", " a new Pane; `new` creates a Session named after the loop.", " That agent then skips permission prompts for every message", " it gets, not only loop runs.", " --name <name> Loop name.", " --cron <expr> Five-field cron in local time, such as \"0 3 * * *\"; at least 1 hour apart.", " --agent <claude|codex|cursor> Agent each run starts; for a Session loop, the Session's agent.", " Runs skip permission prompts.", " --tool-command <command> Command each run starts instead of an agent, such as", " ./scripts/nightly-report.sh. Project loops only. On Windows it runs", " in Pane's terminal shell, Git Bash by default, so write bash or", " `cmd //c`: \"cmd //c echo hi > loop.txt\" works, \"cmd /c ...\" hangs.", " --prompt <text> Text typed into the agent or command after it starts; for a", " Session loop, the message sent to the Session's agent each run.", " --prompt-file <path|-> Read the prompt from a file or stdin.", " --worktree-name <template> Worktree and branch name; defaults to loop-<name>. Project loops only.", " --paused Create the loop paused.", " --dry-run Check the schedule and print what would be saved.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2343
+ readonly "loops update": readonly ["Usage:", "python -m runpane loops update --loop <id> [--repo <selector>|--session <id|name|new>] [--name <name>] [--cron <expr>] [--agent <claude|codex|cursor>|--tool-command <command>] [--prompt <text>|--prompt-file <path|->] [--worktree-name <template>] [--dry-run] --yes [--json] [--pane-dir <path>]", "", "Change a loop's repo or Session, name, schedule, agent or command, prompt, or worktree template. Loops are for large recurring jobs and run at most once an hour; for short waits, use your agent harness's own sleep and wake.", "With --repo, each run is a new Pane in a fresh worktree from the repo's default base branch.", "A Session loop sends its prompt to that Session's agent each run instead of creating a new Pane.", "", "Writing a good loop (the person is away while it runs):", " 1. Reach the person only through cards and artifacts; they never open the loop's Pane,", " Session or terminal. Each finding, question or error (a source unreachable, a sign-in", " expired) is a `runpane notify` card that stands on its own: what was tried, the one thing", " they can do, and every artifact in --links. Act on their answers on the card.", " 2. Remember across runs. Keep a ledger file of the items found, what each run covered, what", " was surfaced and the id of each card posted. Start each run by reading it, the last one or", " two outputs, and the card answers since the last run. Scan only what is new, and re-check", " open items.", " 3. Never repeat. Surface an item only when it is new, newly urgent or overdue, matched by", " meaning, not wording, and record when it was last surfaced. While a card is unanswered,", " update it instead of posting another: `runpane notify --update <id> --what-changed <line>`,", " with the id from the ledger. Any later run of the same loop may update it.", " 4. Post one card per run, or none when nothing qualifies.", " 5. Publish each run's output to one place: the person's document destination, one folder", " per loop, named by date and slot, linking the previous output. Keep a copy by the ledger.", " 6. Ask before acting outward. Propose anything that messages or changes something for", " someone else on an approve card, act only on approval, and limit how often one reminder", " is proposed.", " 7. Start with a small window. Set the default look-ahead or look-back, widen it when the", " evidence calls for it, and record the window each run used.", " 8. Keep the prompt in a file. After each edit, run `loops update --prompt-file` and read the", " saved loop back with `loops list`.", " 9. Use cards that wait: --ui options or approve (such as \"Got it\" / \"Not interested\").", " An --ui info card disappears before the person is back.", "`runpane docs read --doc docs/LOOPS.md` has a worked prompt.", "", "Options:", " --loop <id> Loop to change; other flags replace its values.", " --repo <selector> Repository: active, id, exact path, or saved name.", " --session <id|name|new> Session whose agent gets the prompt each run, instead of", " a new Pane; `new` creates a Session named after the loop.", " That agent then skips permission prompts for every message", " it gets, not only loop runs.", " --name <name> Loop name.", " --cron <expr> Five-field cron in local time, such as \"0 3 * * *\"; at least 1 hour apart.", " --agent <claude|codex|cursor> Agent each run starts; for a Session loop, the Session's agent.", " Runs skip permission prompts.", " --tool-command <command> Command each run starts instead of an agent, such as", " ./scripts/nightly-report.sh. Project loops only. On Windows it runs", " in Pane's terminal shell, Git Bash by default, so write bash or", " `cmd //c`: \"cmd //c echo hi > loop.txt\" works, \"cmd /c ...\" hangs.", " --prompt <text> Text typed into the agent or command after it starts; for a", " Session loop, the message sent to the Session's agent each run.", " --prompt-file <path|-> Read the prompt from a file or stdin.", " --worktree-name <template> Worktree and branch name; defaults to loop-<name>. Project loops only.", " --dry-run Check the schedule and print what would be saved.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2344
2344
  readonly "loops run": readonly ["Usage:", "python -m runpane loops run --loop <id> --yes [--json] [--pane-dir <path>]", "", "Start a run of a loop now. The schedule stays the same.", "", "Options:", " --loop <id> Loop id, from runpane loops list.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2345
2345
  readonly "loops pause": readonly ["Usage:", "python -m runpane loops pause --loop <id> --yes [--json] [--pane-dir <path>]", "", "Pause a loop: it starts no scheduled runs until resumed.", "", "Options:", " --loop <id> Loop id, from runpane loops list.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
2346
2346
  readonly "loops resume": readonly ["Usage:", "python -m runpane loops resume --loop <id> --yes [--json] [--pane-dir <path>]", "", "Resume a paused loop from its next scheduled time.", "", "Options:", " --loop <id> Loop id, from runpane loops list.", " --yes Confirm the change.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
@@ -2395,7 +2395,7 @@ export declare const RUNPANE_CONTRACT: {
2395
2395
  readonly pythonCommands: readonly ["pipx run runpane", "pipx run runpane setup", "python -m pip install runpane", "runpane", "runpane setup", "python -m runpane setup", "runpane install daemon --label \"My Server\"", "pipx install runpane", "runpane", "runpane setup", "pipx run runpane install daemon --label \"My Server\"", "uvx runpane@latest", "uvx runpane@latest setup", "uvx runpane@latest install daemon --label \"My Server\"", "python -m runpane install daemon --label \"My Server\""];
2396
2396
  readonly packageManagerNotes: readonly ["Use `pnpm dlx` for one-shot pnpm execution and `pnpm add -g` for persistent CLI installation.", "Do not document `pnpm install runpane` as the public CLI install path."];
2397
2397
  readonly commandUsages: readonly ["runpane", "runpane setup", "runpane install", "runpane install client", "runpane install daemon", "runpane update", "runpane version", "runpane doctor", "runpane doctor --json", "runpane daemon repair --pane-dir ~/.pane_remote --yes --json", "runpane agent-context", "runpane agent-context --command \"panes create\" --json", "runpane mcp", "runpane repos list --json", "runpane repos add --path /path/to/repo --name Pane --yes --json", "runpane repos get --repo Pane --json", "runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --worktree-folder ../pane-worktrees --yes --json", "runpane repos update --repo Pane --clear run-script --yes --json", "runpane repos update --repo Pane --env '[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"https://api.test\"},{\"key\":\"STRIPE_KEY\",\"source\":\"secret\",\"project\":\"stripe\",\"name\":\"STRIPE_SECRET_KEY\"}]' --env-remove OLD_TOKEN --yes --json", "runpane repos rename --repo 3 --name Lev --yes --json", "runpane secrets list --json", "printf %s \"$VALUE\" | runpane secrets set --project stripe --name STRIPE_SECRET_KEY --yes", "runpane secrets delete --project stripe --name STRIPE_SECRET_KEY --yes --json", "runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks", "runpane secrets request --project stripe --name STRIPE_SECRET_KEY --title \"Stripe test secret key\" --reason \"Run the webhook tests against Stripe test mode.\" --json", "runpane panes list --repo active --json", "runpane panes cost --pane <pane-id> --json", "runpane panes create --repo active --name issue-252 --agent <agent> --prompt \"Kick off the discussion skill for issue 252\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --from-json panes.json --yes --json", "runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes rename --pane <pane-id> --name issue-393 --yes --json", "runpane panels list --pane <pane-id> --json", "runpane panels output --panel <panel-id> --limit 200 --json", "printf 'Continue\\n' | runpane panels input --panel <panel-id> --input-file - --yes --json", "runpane sessions list [--json] [--pane-dir <path>]", "runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]", "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", "runpane lock acquire --name testing-account --ttl 30m --wait 1800000 --note \"call QA\" --json", "runpane lock release --name testing-account --json", "runpane lock list --json", "runpane machine health --json", "runpane machine cleanup --kind update-snapshot --json", "runpane machine cleanup --kind update-snapshot --yes --json", "runpane loops create --repo active --name nightly-bug-sweep --cron \"0 3 * * *\" --agent claude --prompt \"Fix one bug from yesterday's issues\" --yes --json", "runpane loops list --json", "runpane loops run --loop <loop-id> --yes --json", "runpane agents start --repo active --name fix-login --agent claude --prompt \"Fix the login redirect\" --yes --json", "runpane agents start --pane <pane-id> --agent codex --prompt \"Review the PR from this branch and report findings\" --yes --json", "runpane agents status --pane <pane-id> --json", "runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json", "runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json", "runpane panels last-message --panel <panel-id> --json", "runpane panels conversation --conversation <id> --source resume --json", "runpane panels close --panel <panel-id> --yes --json", "runpane panels resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json", "runpane panes pause --pane <pane-id> --yes --json", "runpane panes resume --pane <pane-id> --yes --json", "runpane docs search --query \"archive a pane\" --json", "runpane links create --pane <pane-id> --json", "runpane panes git-status --pane <pane-id> --json", "runpane help", "runpane <command> --help", "runpane watch --until-event", "runpane watch --follow", "runpane watch --session <id|name> --follow", "runpane watch --session <id|name> --follow --ready-settle 1m --blocked-settle 15s --min-interval 2m", "runpane pr watch [--pane <id>] --url <PR URL> [--head <full-sha>] [--json] [--pane-dir <path>]", "runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "runpane pr list [--pane <id>] [--json] [--pane-dir <path>]"];
2398
- readonly commandDescriptions: readonly ["`runpane` with no arguments and `runpane setup` open an interactive wizard when stdin and stdout are TTYs. The remote-host wizard asks only for a name, then runs interactive Tailscale setup with automatic port selection; explicit install daemon flags remain available for SSH and manual URLs. In non-interactive shells or CI, both forms must print help, common commands, and agent discovery hints, then exit successfully instead of waiting for input.", "`runpane install` is an alias for `runpane install client`.", "`runpane install client` downloads the selected Pane desktop artifact and installs, opens, or launches it for the current platform.", "`runpane install daemon` downloads or installs Pane, resolves a stable Pane executable path, and spawns `<pane executable> --remote-setup <forwarded remote setup args>`.", "The wrapper must stream Pane stdout/stderr without reformatting because `pane --remote-setup` prints the one-time `pane-remote://...` connection code.", "`runpane update` defaults to both app and active supported CLI, with independent supervision, staging, durable status, and explicit restoration outcomes. Prerequisites, status fields/exit codes, draft handling and manual recovery are documented in [Update recovery](UPDATE_RECOVERY.md).", "`runpane version` prints only wrapper package metadata and does not contact, launch, or focus the Pane app or daemon.", "`runpane doctor` opens with Pane's intro (\"For people\" and \"For agents\", the sentence about reaching the person following the Approvals setting) and the working rules (Session, Pane, Tab, Scratch), also in `--json` as `intro` and `workspaceRules`. It then checks platform support, release metadata reachability, download URL selection, installed Pane detection, daemon reachability, every `runpane` on `PATH` against the Pane-managed CLI, and remote-daemon hints. `--fix` updates npm installs of `runpane` older than the Pane-managed CLI to its version and never removes a file. Add `--json` for a machine-readable report that agents should run before mutating Pane state. Installed app version detection must be best-effort and must not launch, focus, or configure Pane; macOS wrappers read app bundle metadata instead of executing `Pane --version`.", "`runpane daemon repair` rewrites and restarts only the managed remote-daemon launcher/service. It never creates pairing credentials, changes tunnels, or downloads Pane; doctor only recommends it and never runs it automatically.", "`runpane agent-context` prints a brief, token-efficient command schema for coding agents without connecting to the Pane daemon.", "`runpane agent-context --command \"panes create\"` prints the detailed definition for one command. Add `--json` for machine-readable output. An unknown command exits 2 and lists the closest command names; with `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout.", "`runpane mcp` runs a stdio MCP server whose tools are generated from this contract: every command with result `jsonSchemas` becomes a tool that runs `runpane <command> --json` and returns its output. Only the npm package and the Pane app include it; the Python wrapper prints how to run it with Node and exits non-zero.", "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.", "`runpane repos add` registers an existing git repository with the running local Pane daemon. It does not create directories or initialize git repositories by default.", "`runpane repos get` prints a saved repository's Project Settings. Each script shows its saved value, the fallback from the repository's config file, and the one Pane will run.", "`runpane repos update` changes a saved repository's Project Settings through the same save as the Project Settings dialog. It requires `--yes`, supports `--dry-run`, clears settings with `--clear`, and adds, replaces or removes project environment variables with `--env` and `--env-remove`.", "`runpane repos rename` trims and sets a saved repository's display name, the same rename as the repository settings in the app, and returns the updated repository record.", "`runpane secrets` manages Pane secrets: named values, addressed as `<project>/<NAME>`, that every machine saved in Pane keeps a copy of. `list` shows names, times and machines only. `set` reads the value from stdin. `delete` removes one everywhere. `exec` runs a command with secrets in its environment and returns its exit code. `request` asks the person on a masked Notify card and returns only `saved` or `declined`. No command prints a value, and the MCP server has no tool that sets or reads one. These commands run on the machine itself, so `runpane workspace <machine> secrets ...` is refused; use `runpane workspace <machine> exec -- runpane secrets ...`.", "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.", "`runpane panes cost` reports estimated token costs per Pane for the last 30 days, including per-model breakdowns and cache efficiency; unscoped output includes an Unattributed bucket that reconciles against workspace totals.", "`runpane panes create` connects to the running local Pane daemon, resolves the requested saved base repository, creates user-visible Pane sessions backed by Pane-managed worktrees/branches, opens terminal-backed tool tabs, and optionally sends initial input to the started tool. Built-in agent panes and `--source agent` default to background/no-focus unless `--focus` is passed. New Panes are pinned into the UI's favorite/pin set by default, except when the CLI runs inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID`), where child worktrees default to unpinned. Explicit `--pinned` / `--no-pinned` override creation defaults. First Session association clears an existing pin, including an explicit creation pin; use `panes pin` after association to pin a child. This avoids duplicating Session children in the global pinned list. Manual pins applied afterward are preserved. Panes created interactively in the Pane UI are unaffected. New Panes join the caller's Session automatically: the orchestrator's Session (`PANE_ORCHESTRATION_SESSION_ID`), or the open Session the calling tab's Pane belongs to; `--no-associate` opts out. A failed association is reported on the item and never undoes the Pane.", "For `panes create --wait-ready` (and `panels create`, `panes adopt --launch`), ready means an identified agent at its own input box: declared with `--agent`, or detected from the command, its foreground process or its screen. A `--tool-command` that never shows a supported agent is not ready: `readiness.ok` is false with `readiness.reason.code` `no-agent-detected` after the timeout, or `command-exited` as soon as the command exits back to the shell, and nothing is typed into it. `agent-not-ready` means the agent was detected but its input box was not ready in time. CLI readiness is confirmed on consecutive polls. Codex also requires a recognized configured model or context footer below its live composer; its provisional startup composer is not ready. Hidden or unrecognized Codex status lines conservatively time out rather than prove readiness. Startup prompts return blocked with the prompt's own text in blocked.message and a suggestedCommand, and Pane never answers them, apart from Claude's folder trust for a Session's own folder: first-run trust and daemon dialogs and Agent Farm's `Trust this repository workspace? [y/N]` as blocked.kind=first-run-dialog; Codex's security setup banner and any other prompt, including a wrapper's or shell's `[y/N]` before the agent appears, as agent-prompt. A starting message blocked this way is held and sent once the prompt is answered and the agent's input box is ready. Every create with a starting message returns `initialInput`. Pane stages the text in the composer, presses the agent's submit key separately (Ctrl+Enter for Codex, declared or detected), and checks where it went: `initialInput.delivery` is `taken` or `queued` (from the agent's transcript or its screen), `in-composer`, or `unknown` (`argv` means a prompt was routed at launch; Pane gives the transcript up to 10 seconds before settling on unknown). `initialInput.verifiedSubmitted` is true exactly when it is `taken` or `queued`, and the create's `ok` is false unless a Claude or Codex starting message is verified. Cursor, OpenCode and Pi have no acceptance probe: their delivery stays `unknown` with a delivery.message saying so, `verification: unverifiable`, and `ok` follows readiness. Without `--wait-ready` the create returns at once with `initialInput.verifiedSubmitted: false`, a delivery.message saying the call did not wait, and a `panels wait` nextCommand; Pane still sends the message once the agent is identified and at its input box, and gives up without typing it if no supported agent appears within 30 seconds.", "`runpane panes archive` refreshes the configured upstream, reports exact unpushed commit evidence, and refuses unsafe archive operations unless `--force` is used. A branch whose upstream is gone counts as pushed when a merged GitHub pull request has HEAD as its head (`safetyCheck.mergedViaPr`). Add `--dry-run` to inspect the same evidence without archiving. `--remove-worktree` applies the same check and removal to an adopted worktree; local branches are always kept. Successful archives report `worktreeCleanup: completed` once the worktree is gone from its path and from git; `trashDeletion: pending` means its files are still being deleted in the background. `runpane panes archive --session <id|name> --merged` archives every Session Pane that is clean and pushed or merged, and reports a reason for each skipped Pane. Archive refuses a Pane with an agent mid-turn or waiting for an answer (`agent-busy`, listed in `safetyCheck.busyAgents`), or with a tab holding unsent composer text or unsaved editor edits (`unsent-input`, listed in `safetyCheck.unsentInput`), unless `--force` is used, and the Session sweep skips it. Add `--closed` to the sweep to also archive Panes whose PR closed without merging.", "`runpane panes rename` trims and updates a Pane's display name without changing its worktree, branch, panels, or focus, and returns the updated pane summary.", "`runpane panes focus` raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Because it steals the user's window focus, run it only on an explicit user request to open, focus, show, or switch to a Pane; never focus a Pane proactively, the same doctrine that keeps `panes create` background/no-focus for `--source agent`.", "`runpane panels open` opens a URL or a file from the Pane worktree as a tab in an existing Pane (default: the calling panel's Pane from `PANE_SESSION_ID`), in split view beside the agent unless `--tab` is passed. Files open in an editor tab with read-only previews for supported formats, and HTML opens as editable source; an existing tab showing the same target is reused. It brings the tab forward for clients already showing that Pane, and never raises or focuses the Pane window or switches anyone's Pane.", "`runpane panels close --panel <panel-id>` closes a tab exactly like closing it in Pane (a terminal tab's process stops) and never archives the Pane or touches its worktree. Only a tab an agent opened with `--source agent` can close; Pane records that opener, and `panels list` shows it as `openedBy`. It refuses, without closing, the person's tabs and every tab from before Pane recorded openers (`opened-by-user`), permanent tabs (`permanent`), an agent mid-turn or waiting for an answer (`agent-busy`), unsent composer text or unsaved editor edits (`unsent-input`), and a live tab whose input Pane cannot read, such as agents other than Claude and Codex or chat tabs (`input-unknown`). A refusal prints `{ ok: false, closed: false, refused: { code, message, next } }` and exits 1. A tab id that no longer exists returns `alreadyClosed: true`. `--dry-run` reports `wouldClose` and any refusal without closing. `--force` closes the tab anyway, as its close button does, for a stuck tab or one the person asked to close (`forced: true`); only a permanent tab still stays.", "`runpane panels list` lists tool panels inside one Pane session. Each panel with a saved agent session ID reports it as `resumeId`, with `resumeSource` (`agent-farm`, `configured`, or `agent`) naming the rule that reopens the conversation.", "`runpane panels output` reads bounded recent terminal output from one panel and strips common terminal control noise for agent use.", "`runpane panels input` sends exact input bytes to one terminal panel. Prefer `--input-file` for newlines, Ctrl-C, quotes, or shell-sensitive text.", "`runpane panes create --prompt` is an alias for `--initial-input`; request JSON and daemon payloads should use the canonical `initialInput` field.", "`runpane panes create --branch <name>` creates the Pane's worktree on exactly that new branch, slashes included (for example `agents/w5a`). The name is checked with `git check-ref-format --branch`, creation fails if the branch already exists, and Pane never renames it to make it unique. `--worktree-name` still names the directory and defaults to `--name`. `--base` is an alias for `--base-branch`, and `--prompt-file` for `--initial-input-file`. `panes create --base <ref> --branch <name> --prompt-file <file>` replaces `git worktree add` plus `panes adopt`. When the base is a remote-tracking branch (the default `origin/main`, or one named with `--base`), Pane fetches it first, waiting at most about 10 seconds, so the Pane starts at the remote's current tip. Each created item reports `base` (`ref`, `commit`, `refresh`); if the fetch fails the Pane still starts, from the local ref, and `base.notice` says so and how to catch up.", "`runpane panes adopt --launch` accepts `--prompt`, `--prompt-file`, `--wait-ready`, and `--ready-timeout-ms`, and reports `readiness`, `initialInput`, and `nextCommand` like `panes create`. A prompt without `--launch` is an error rather than being dropped.", "If composer submission cannot be verified without risking a duplicate, the create item is unsuccessful with `initialInput.staged`, `initialInput.attempts`, `initialInput.blocked.kind: submission_unverified`, and an actionable `nextCommand`. The CLI-facing `--prompt` alias maps to this canonical `initialInput` result.", "When running from WSL while Pane is installed on Windows, a Linux-installed runpane cannot reach Pane: it looks for a missing `/tmp/pane-daemon.../daemon.sock`. Pane's own `runpane` (on PATH in Pane's WSL terminals, or `/mnt/c/Users/<you>/.pane/bin/runpane` from any WSL shell) runs the Windows CLI through WSL interop and converts path arguments. With a Pane build older than that shim, invoke the Windows wrapper through PowerShell from a Windows cwd, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.", "`runpane watch` waits for agent, Pane, panel, and PR events from the daemon journal without polling. `--follow` keeps watching with defaults tuned for an agent watching unattended (quiet, batched, and it ends itself after 3 hours with nothing happening); individual duration flags override these defaults. Cadence requires a named follow consumer; `--follow --since <generation>` has no consumer name and bypasses settling and batching. `--until-event` waits for one event worth waking for, prints it immediately without follow settling or batching, and exits 0. The defaults are listed in the contract under defaults.watch.", "A watch releases its pending slot when its client socket or named pipe disconnects. Re-arming the same named cursor takes over the previous request; the superseded watcher exits with a WATCH ERROR instead of competing for the cursor. Anonymous concurrent watchers retain the eight-wait limit. Each request also has a 125-second lease (slightly longer than the maximum 120-second long poll), so an abandoned request is reclaimed even if no disconnect arrives.", "The desktop app treats one consumer name specially: while a `runpane watch --as dictate` request is in flight, and for 30 seconds after the last one ends, Pane skips its own \"needs your input\" and \"finished\" desktop notifications, because [Dictate](https://github.com/parsakhaz/open-dictate) shows those events on its pill. When that watcher stops, Pane's notifications come back. The CLI's flags and output are unchanged.", "`sessions list` list durable named orchestration Sessions.", "`sessions create` create a durable named orchestration Session and its hidden terminal owner.", "`sessions get` read one durable named orchestration Session.", "`sessions update` update a Session overview from structured JSON.", "`sessions pin` and `sessions unpin` set the Session pin star through the existing UI update path. Create JSON accepts `isPinned` (default false); update JSON preserves the pin when the field is omitted.", "`sessions set-agent` switch the durable terminal agent for a named Session.", "`sessions associate` associate a user-visible Pane with a named Session.", "`sessions detach` detach a Pane from a named Session.", "`sessions overview` read a live status, activity, git, and pull request overview for a named Session. 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.", "`runpane lock acquire|release|list` coordinate a resource shared between agents, such as one test account. The caller's Pane and panel own the lock; it is scoped to the owner's Session (or global outside one), renews for the same owner, and is released on TTL expiry, owner panel exit, or owner Pane archive. `--wait` blocks in the daemon until the lock comes free.", "`runpane 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.", "`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).", "`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.", "`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.", "`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), or with 2 to 4 `--questions` (`[{title, choices}]`) one pick each, as `{answer, answers}`, `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}`, `{label, url}` or `{label, approval}` for another approval), shown as chips on the card. When the person types a reply it returns `{reply, picks?, id, next}` (or, with no open call, types a `reply:` line into the asking tab): the reply may answer the question or ask one. `runpane notify --took <id|Q-n> answer` records it as the answer; `--took <id|Q-n> question [--status <text>]` shows that the agent is getting more context, and `runpane notify --update <id|Q-n> --asked <text> --what-changed <text>` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` saves a new version and waits on it. `--took` prints `{took, id, next?}`. Only the reply's reader (the asker, the orchestrator that relayed it, or Autopilot) may run them. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.", "Work sent to an agent through `runpane panels create`, `panes create` (with a prompt), or `panels submit` records that the sender waits for a `runpane report`, unless the request says `--source user` (Pane's own UI does) or `--no-expect-report`; `--expect-report` asks for one anyway. Typing into a tab never does. If the agent then goes ready or its panel exits without a report, Pane journals one opt-in `agent.report.missing` entry (`MISSING REPORT <pane-name> pane <pane-id> panel <panel-id> ready|exited`) whose `lastOutput` is the agent's last transcript reply or last screen lines; it skips the `--min-interval` batch and reaches only watchers that list it in `--kinds`. While the agent's screen shows background work (Claude's `· 1 shell` footer or a running background subagent row, Codex's `background terminal running` line), Pane waits and looks again every 10 seconds instead. `agent.blocked` entries carry `screenLines`, the prompt the agent waits on, and are journalled once a panel has stayed blocked for 2 seconds.", "The orchestrator guide prescribes submit without `--wait`, followed by its named watch; use one completion consumer. As an optional CLI route, `--wait` on `runpane panels submit`, `panels create`, and `panes create` turns the expected report on and blocks on that panel until the first `agent.report`, `agent.report.missing`, `agent.blocked`, `panel.exited`, or `pane.gone`, then prints one line of JSON (`dispatchWaitResult`): the outcome, ids, the report's state, summary, `summaryPath`, PR and head, `screenLines` for a prompt, or `lastOutput` for a missing report, never the transcript. It exits 0 for a report, 3 missing, 4 blocked, 5 exited or gone, and 124 when `--timeout <duration>` passes. It follows the journal from the position the daemon took before delivering the work, so nothing that happens right after delivery is missed. It reuses watch --until-event and returns indeterminate (exit 6) if the journal epoch changes or retained history is lost; inspect the panel and inbox before retrying. Report-expected dispatches are serialized per panel and refused before writing while a result or missing-output collection is outstanding. A send with --no-expect-report is a reply (an answer, or an addition to the current work): it is delivered while a report is outstanding and leaves that expectation in place. Then watch for the original result.", "`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on), plus `answers`, what its workers were told, kept 7 days; an answer with no `decision` still needs its D-n. `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items, and `runpane inbox ack <item-id>... --decision <D-n>` records the D-n, even on an item already cleared. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.", "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope and skips paused ones, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.", "`runpane panels pause --panel <panel-id>`, `panes pause --pane <pane-id>` and `sessions pause --session <id|name>` pause a tab, a Pane, or a Session's chat and Panes: Pane stops each terminal tab the way quitting does, without asking, keeps its agent's conversation, and marks it paused. Pause leaves a chat tab running: `panels pause --panel` on one fails with `ERR_RUNPANE_CHAT_NOT_PAUSABLE`, and `panes pause` and `sessions pause` leave its agent running and count it in `chatTabsNotPaused`. A paused terminal tab stays stopped through clicks, app restarts and updates until `panels resume --panel`, `panes resume` or `sessions resume` restarts it in its saved conversation. Each returns `{ action, scope, panelIds, unchanged, failed, chatTabsNotPaused, message, nextCommand }`. `panes list` reports a Pane's `paused` mark (`{ at, by: \"manual\" | \"auto\", idleHours? }`) and `inactiveSince`, the latest terminal output or input or chat agent activity in its tabs, or the last time the person selected it; `panels list` reports each tab's `paused`. Auto-pause also stops the agent of a chat tab idle for `chatIdleReleaseMinutes` (30 by default); opening the tab or sending it a message resumes it, and it reports no `panel.paused`. `runpane watch` reports `panel.paused` (`PAUSED ...`) and `panel.unpaused` (`UNPAUSED ...`) under `--follow`, to a Session-scoped watch, or when `--kinds` lists them.", "`runpane panels last-message --panel <panel-id>` reads a Claude or Codex agent's last reply from its transcript (up to `--limit` characters, default 20,000, keeping the end and reporting `truncated`). It never scrapes the screen: without a transcript it prints `{ ok: false, reason: \"transcript-unavailable\" }` and exits 1.", "`runpane panels conversation --conversation <id> [--source startup|resume|clear|compact]` records which conversation a terminal panel's agent is on (daemon action `runpane:panels:conversation`, request `{ panelId, paneId?, conversationId, source? }`, result `{ ok: true, paneId, panelId, conversationId, source?, sure }`; `sure` is true when the report came since the panel's agent started). It is not an `agent.report` event. The panel comes from `--panel` (with an optional `--pane`), else `PANE_PANEL_ID` and `PANE_SESSION_ID`, as for `runpane report`. `runpane panels conversation --hook` is the command for a Claude Code `SessionStart` hook: it reads the hook's JSON from stdin (`session_id`, `source`; at most 64 KiB, for at most 2 seconds), reports it for `PANE_PANEL_ID`, prints nothing on stdout or stderr, and always exits 0: outside Pane, on bad input, when Pane is not running, and with a Pane that predates the action. Without `--hook` it prints `Recorded conversation <id> for panel <panel-id>.` and fails like any other command.", "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.", "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.", "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only.", "`runpane handoff` hands a task to another agent on this or another of your machines. The sending agent writes the note from `runpane handoff --template` (goal, current state, done and verified, in progress, next steps, decisions and constraints, open questions, how to verify, git state); `runpane handoff \"claude opus on parsas-macbook-pro\" --note-file ~/handoff.md` checks every section is filled in, requires the branch to be pushed (or pushes it with `--push`, never forcing), writes the note to that machine's `~/.pane/handoffs/` and starts the agent in a new Pane branched from the sender's branch. When the sender is a Pane tab running a Claude, Codex, Cursor or OpenCode session and the receiver is the same agent, the handoff carries that session: on another machine its files are copied into that machine's agent store and the receiver resumes the same id; on this machine the receiver resumes a fork, because two agents never resume one session on one machine. The receiver starts with no prompt, and the CLI runs the continuity check and reports JSON `continuity.result` `continued`, `inconclusive` (exit 0; `next` gives a probe question) or `not-continued` (exit 1; the receiver is kept and `next` gives the `--note-only` command). `--note-only`, a different agent, or a tab with no carried session starts a fresh agent with the note (`fresh-agent`). JSON `continuity` is `{ carried, result, agent, sessionId, resumedId, fork, files, bytes, checks: { resumedById, restartResumes, historyLoaded, originalUntouched?, originalAppended? }, reason, next }`: `sessionId` is the sender's session, `resumedId` the id the receiver resumes (the fork's on this machine), `checks` are the continuity checks (`historyLoaded` is null when there was nothing to compare; `originalUntouched` is set for forks), and a dry run sets `carried`, `sessionId`, `fork`, `files` and `bytes` with no `result`. After `continued` or `inconclusive` the sending agent ends its turn and makes no more changes on the branch. An OpenCode session travels as its export: `opencode export` on this machine, then `opencode import` inside the receiving repository there, and an OpenCode receiver is accepted only to continue an OpenCode session. A Cursor session is carried only to another machine, best effort since Cursor's store is undocumented: Cursor has no fork, and a copied chat still writes to the original, so on this machine the result is `not-continued` and nothing is started. A destination's agent store is assumed at its default location (`~/.claude`, `~/.codex`, `~/.cursor`); a copy already there is replaced only when the sender's holds all of it and no agent there runs it, otherwise nothing is copied and the result is `not-continued`. A destination Pane too old to resume a carried session is refused before anything is sent (`ERR_HANDOFF_RESUME_UNSUPPORTED`). From a Session's terminal it skips git and creates a Session with the same name, goal and agent on the other machine instead; a same-agent Session resumes the sender's conversation when first opened. The receiver reports back to the sender's panel.", "`runpane ask --agent <agent> --prompt \"<question>\"` asks one agent one read-only question and prints its answer, with no tab left behind: the agent's own headless mode runs once, on this machine or another one (`--machine`), in a saved repository (`--repo`, a WSL repository runs in WSL) or a Pane's worktree (`--pane`), with any model it accepts (`--model`). It can read files but not edit them or run shell commands; an agent with no such mode is refused (`ERR_ASK_UNSUPPORTED`). A missing agent, a sign-in error, an unknown model and a timeout each fail with the agent's own words and the next step. Use it for a second opinion or a question to another model; work that edits files goes to a tab.", "`runpane models` lists the models each installed agent offers, read from the agent's own list on every call, with its sign-in as the agent reports it. `--all` covers this machine, every saved machine and their WSL; `--agent` and `--search` narrow the rows. A machine that does not answer is one `unreachable` row; a list that can't be read is `list unavailable`.", "`runpane pr watch`: Register durable GitHub PR monitoring for a Pane.", "`runpane pr unwatch`: Remove a Pane’s explicit PR registration.", "`runpane pr list`: List PR registrations and stopped watches.", "`runpane autopilot status|waiting|stack` read Autopilot (experimental): its switch, run and stack, and its queue: every approval or question waiting on the person on every machine it can reach, grouped by Session, plus `offline` and `cantSee` machines. `runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--title <text>] [--note <text>] [--tab <path-or-url>]... [--next]` puts one entry on its stack; relative paths resolve against the caller's directory, and a new entry never replaces the one on screen. `runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) [--note <text>] --because <why>`, `runpane autopilot close <id> --reason <why>` and `runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--context <text>] [--choices <json>] [--suggestions <json>] [--links <json>]` act on an item, on the machine that holds it, recorded \"by Autopilot\" on every device; the person can Override an answer and reopen a close. Only Autopilot may run them (`AUTOPILOT_ONLY`), and they refuse a permission prompt with `AUTOPILOT_CANNOT_ANSWER`. An item someone else already answered is refused with who did."];
2398
+ readonly commandDescriptions: readonly ["`runpane` with no arguments and `runpane setup` open an interactive wizard when stdin and stdout are TTYs. The remote-host wizard asks only for a name, then runs interactive Tailscale setup with automatic port selection; explicit install daemon flags remain available for SSH and manual URLs. In non-interactive shells or CI, both forms must print help, common commands, and agent discovery hints, then exit successfully instead of waiting for input.", "`runpane install` is an alias for `runpane install client`.", "`runpane install client` downloads the selected Pane desktop artifact and installs, opens, or launches it for the current platform.", "`runpane install daemon` downloads or installs Pane, resolves a stable Pane executable path, and spawns `<pane executable> --remote-setup <forwarded remote setup args>`.", "The wrapper must stream Pane stdout/stderr without reformatting because `pane --remote-setup` prints the one-time `pane-remote://...` connection code.", "`runpane update` defaults to both app and active supported CLI, with independent supervision, staging, durable status, and explicit restoration outcomes. Prerequisites, status fields/exit codes, draft handling and manual recovery are documented in [Update recovery](UPDATE_RECOVERY.md).", "`runpane version` prints only wrapper package metadata and does not contact, launch, or focus the Pane app or daemon.", "`runpane doctor` opens with Pane's intro (\"For people\" and \"For agents\", the sentence about reaching the person following the Approvals setting) and the working rules (Session, Pane, Tab, Scratch), also in `--json` as `intro` and `workspaceRules`. It then checks platform support, release metadata reachability, download URL selection, installed Pane detection, daemon reachability, every `runpane` on `PATH` against the Pane-managed CLI, and remote-daemon hints. `--fix` updates npm installs of `runpane` older than the Pane-managed CLI to its version and never removes a file. Add `--json` for a machine-readable report that agents should run before mutating Pane state. Installed app version detection must be best-effort and must not launch, focus, or configure Pane; macOS wrappers read app bundle metadata instead of executing `Pane --version`.", "`runpane daemon repair` rewrites and restarts only the managed remote-daemon launcher/service. It never creates pairing credentials, changes tunnels, or downloads Pane; doctor only recommends it and never runs it automatically.", "`runpane agent-context` prints a brief, token-efficient command schema for coding agents without connecting to the Pane daemon.", "`runpane agent-context --command \"panes create\"` prints the detailed definition for one command. Add `--json` for machine-readable output. An unknown command exits 2 and lists the closest command names; with `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout.", "`runpane mcp` runs a stdio MCP server whose tools are generated from this contract: every command with result `jsonSchemas` becomes a tool that runs `runpane <command> --json` and returns its output. Only the npm package and the Pane app include it; the Python wrapper prints how to run it with Node and exits non-zero.", "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.", "`runpane repos add` registers an existing git repository with the running local Pane daemon. It does not create directories or initialize git repositories by default.", "`runpane repos get` prints a saved repository's Project Settings. Each script shows its saved value, the fallback from the repository's config file, and the one Pane will run.", "`runpane repos update` changes a saved repository's Project Settings through the same save as the Project Settings dialog. It requires `--yes`, supports `--dry-run`, clears settings with `--clear`, and adds, replaces or removes project environment variables with `--env` and `--env-remove`.", "`runpane repos rename` trims and sets a saved repository's display name, the same rename as the repository settings in the app, and returns the updated repository record.", "`runpane secrets` manages Pane secrets: named values, addressed as `<project>/<NAME>`, that every machine saved in Pane keeps a copy of. `list` shows names, times and machines only. `set` reads the value from stdin. `delete` removes one everywhere. `exec` runs a command with secrets in its environment and returns its exit code. `request` asks the person on a masked Notify card and returns only `saved` or `declined`. No command prints a value, and the MCP server has no tool that sets or reads one. These commands run on the machine itself, so `runpane workspace <machine> secrets ...` is refused; use `runpane workspace <machine> exec -- runpane secrets ...`.", "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.", "`runpane panes cost` reports estimated token costs per Pane for the last 30 days, including per-model breakdowns and cache efficiency; unscoped output includes an Unattributed bucket that reconciles against workspace totals.", "`runpane panes create` connects to the running local Pane daemon, resolves the requested saved base repository, creates user-visible Pane sessions backed by Pane-managed worktrees/branches, opens terminal-backed tool tabs, and optionally sends initial input to the started tool. Built-in agent panes and `--source agent` default to background/no-focus unless `--focus` is passed. New Panes are pinned into the UI's favorite/pin set by default, except when the CLI runs inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID`), where child worktrees default to unpinned. Explicit `--pinned` / `--no-pinned` override creation defaults. First Session association clears an existing pin, including an explicit creation pin; use `panes pin` after association to pin a child. This avoids duplicating Session children in the global pinned list. Manual pins applied afterward are preserved. Panes created interactively in the Pane UI are unaffected. New Panes join the caller's Session automatically: the orchestrator's Session (`PANE_ORCHESTRATION_SESSION_ID`), or the open Session the calling tab's Pane belongs to; `--no-associate` opts out. A failed association is reported on the item and never undoes the Pane.", "For `panes create --wait-ready` (and `panels create`, `panes adopt --launch`), ready means an identified agent at its own input box: declared with `--agent`, or detected from the command, its foreground process or its screen. A `--tool-command` that never shows a supported agent is not ready: `readiness.ok` is false with `readiness.reason.code` `no-agent-detected` after the timeout, or `command-exited` as soon as the command exits back to the shell, and nothing is typed into it. `agent-not-ready` means the agent was detected but its input box was not ready in time. CLI readiness is confirmed on consecutive polls. Codex also requires a recognized configured model or context footer below its live composer; its provisional startup composer is not ready. Hidden or unrecognized Codex status lines conservatively time out rather than prove readiness. Startup prompts return blocked with the prompt's own text in blocked.message and a suggestedCommand, and Pane never answers them, apart from Claude's folder trust for a Session's own folder: first-run trust and daemon dialogs and Agent Farm's `Trust this repository workspace? [y/N]` as blocked.kind=first-run-dialog; Codex's security setup banner and any other prompt, including a wrapper's or shell's `[y/N]` before the agent appears, as agent-prompt. A starting message blocked this way is held and sent once the prompt is answered and the agent's input box is ready. Every create with a starting message returns `initialInput`. Pane stages the text in the composer, presses the agent's submit key separately (Ctrl+Enter for Codex, declared or detected), and checks where it went: `initialInput.delivery` is `taken` or `queued` (from the agent's transcript or its screen), `in-composer`, or `unknown` (`argv` means a prompt was routed at launch; Pane gives the transcript up to 10 seconds before settling on unknown). `initialInput.verifiedSubmitted` is true exactly when it is `taken` or `queued`, and the create's `ok` is false unless a Claude or Codex starting message is verified. Cursor, OpenCode and Pi have no acceptance probe: their delivery stays `unknown` with a delivery.message saying so, `verification: unverifiable`, and `ok` follows readiness. Without `--wait-ready` the create returns at once with `initialInput.verifiedSubmitted: false`, a delivery.message saying the call did not wait, and a `panels wait` nextCommand; Pane still sends the message once the agent is identified and at its input box, and gives up without typing it if no supported agent appears within 30 seconds.", "`runpane panes archive` refreshes the configured upstream, reports exact unpushed commit evidence, and refuses unsafe archive operations unless `--force` is used. A branch whose upstream is gone counts as pushed when a merged GitHub pull request has HEAD as its head (`safetyCheck.mergedViaPr`). Add `--dry-run` to inspect the same evidence without archiving. `--remove-worktree` applies the same check and removal to an adopted worktree; local branches are always kept. Successful archives report `worktreeCleanup: completed` once the worktree is gone from its path and from git; `trashDeletion: pending` means its files are still being deleted in the background. `runpane panes archive --session <id|name> --merged` archives every Session Pane that is clean and pushed or merged, and reports a reason for each skipped Pane. Archive refuses a Pane with an agent mid-turn or waiting for an answer (`agent-busy`, listed in `safetyCheck.busyAgents`), or with a tab holding unsent composer text or unsaved editor edits (`unsent-input`, listed in `safetyCheck.unsentInput`), unless `--force` is used, and the Session sweep skips it. Add `--closed` to the sweep to also archive Panes whose PR closed without merging.", "`runpane panes rename` trims and updates a Pane's display name without changing its worktree, branch, panels, or focus, and returns the updated pane summary.", "`runpane panes focus` raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Because it steals the user's window focus, run it only on an explicit user request to open, focus, show, or switch to a Pane; never focus a Pane proactively, the same doctrine that keeps `panes create` background/no-focus for `--source agent`.", "`runpane panels open` opens a URL or a file from the Pane worktree as a tab in an existing Pane (default: the calling panel's Pane from `PANE_SESSION_ID`), in split view beside the agent unless `--tab` is passed. Files open in an editor tab with read-only previews for supported formats, and HTML opens as editable source; an existing tab showing the same target is reused. It brings the tab forward for clients already showing that Pane, and never raises or focuses the Pane window or switches anyone's Pane.", "`runpane panels close --panel <panel-id>` closes a tab exactly like closing it in Pane (a terminal tab's process stops) and never archives the Pane or touches its worktree. Only a tab an agent opened with `--source agent` can close; Pane records that opener, and `panels list` shows it as `openedBy`. It refuses, without closing, the person's tabs and every tab from before Pane recorded openers (`opened-by-user`), permanent tabs (`permanent`), an agent mid-turn or waiting for an answer (`agent-busy`), unsent composer text or unsaved editor edits (`unsent-input`), and a live tab whose input Pane cannot read, such as agents other than Claude and Codex or chat tabs (`input-unknown`). A refusal prints `{ ok: false, closed: false, refused: { code, message, next } }` and exits 1. A tab id that no longer exists returns `alreadyClosed: true`. `--dry-run` reports `wouldClose` and any refusal without closing. `--force` closes the tab anyway, as its close button does, for a stuck tab or one the person asked to close (`forced: true`); only a permanent tab still stays.", "`runpane panels list` lists tool panels inside one Pane session. Each panel with a saved agent session ID reports it as `resumeId`, with `resumeSource` (`agent-farm`, `configured`, or `agent`) naming the rule that reopens the conversation.", "`runpane panels output` reads bounded recent terminal output from one panel and strips common terminal control noise for agent use.", "`runpane panels input` sends exact input bytes to one terminal panel. Prefer `--input-file` for newlines, Ctrl-C, quotes, or shell-sensitive text.", "`runpane panes create --prompt` is an alias for `--initial-input`; request JSON and daemon payloads should use the canonical `initialInput` field.", "`runpane panes create --branch <name>` creates the Pane's worktree on exactly that new branch, slashes included (for example `agents/w5a`). The name is checked with `git check-ref-format --branch`, creation fails if the branch already exists, and Pane never renames it to make it unique. `--worktree-name` still names the directory and defaults to `--name`. `--base` is an alias for `--base-branch`, and `--prompt-file` for `--initial-input-file`. `panes create --base <ref> --branch <name> --prompt-file <file>` replaces `git worktree add` plus `panes adopt`. When the base is a remote-tracking branch (the default `origin/main`, or one named with `--base`), Pane fetches it first, waiting at most about 10 seconds, so the Pane starts at the remote's current tip. Each created item reports `base` (`ref`, `commit`, `refresh`); if the fetch fails the Pane still starts, from the local ref, and `base.notice` says so and how to catch up.", "`runpane panes adopt --launch` accepts `--prompt`, `--prompt-file`, `--wait-ready`, and `--ready-timeout-ms`, and reports `readiness`, `initialInput`, and `nextCommand` like `panes create`. A prompt without `--launch` is an error rather than being dropped.", "If composer submission cannot be verified without risking a duplicate, the create item is unsuccessful with `initialInput.staged`, `initialInput.attempts`, `initialInput.blocked.kind: submission_unverified`, and an actionable `nextCommand`. The CLI-facing `--prompt` alias maps to this canonical `initialInput` result.", "When running from WSL while Pane is installed on Windows, a Linux-installed runpane cannot reach Pane: it looks for a missing `/tmp/pane-daemon.../daemon.sock`. Pane's own `runpane` (on PATH in Pane's WSL terminals, or `/mnt/c/Users/<you>/.pane/bin/runpane` from any WSL shell) runs the Windows CLI through WSL interop and converts path arguments. With a Pane build older than that shim, invoke the Windows wrapper through PowerShell from a Windows cwd, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.", "`runpane watch` waits for agent, Pane, panel, and PR events from the daemon journal without polling. `--follow` keeps watching with defaults tuned for an agent watching unattended (quiet, batched, and it ends itself after 3 hours with nothing happening); individual duration flags override these defaults. Cadence requires a named follow consumer; `--follow --since <generation>` has no consumer name and bypasses settling and batching. `--until-event` waits for one event worth waking for, prints it immediately without follow settling or batching, and exits 0. The defaults are listed in the contract under defaults.watch.", "A watch releases its pending slot when its client socket or named pipe disconnects. Re-arming the same named cursor takes over the previous request; the superseded watcher exits with a WATCH ERROR instead of competing for the cursor. Anonymous concurrent watchers retain the eight-wait limit. Each request also has a 125-second lease (slightly longer than the maximum 120-second long poll), so an abandoned request is reclaimed even if no disconnect arrives.", "The desktop app treats one consumer name specially: while a `runpane watch --as dictate` request is in flight, and for 30 seconds after the last one ends, Pane skips its own \"needs your input\" and \"finished\" desktop notifications, because [Dictate](https://github.com/parsakhaz/open-dictate) shows those events on its pill. When that watcher stops, Pane's notifications come back. The CLI's flags and output are unchanged.", "`sessions list` list durable named orchestration Sessions.", "`sessions create` create a durable named orchestration Session and its hidden terminal owner.", "`sessions get` read one durable named orchestration Session.", "`sessions update` update a Session overview from structured JSON.", "`sessions pin` and `sessions unpin` set the Session pin star through the existing UI update path. Create JSON accepts `isPinned` (default false); update JSON preserves the pin when the field is omitted.", "`sessions set-agent` switch the durable terminal agent for a named Session.", "`sessions associate` associate a user-visible Pane with a named Session.", "`sessions detach` detach a Pane from a named Session.", "`sessions overview` read a live status, activity, git, and pull request overview for a named Session. 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.", "`runpane lock acquire|release|list` coordinate a resource shared between agents, such as one test account. The caller's Pane and panel own the lock; it is scoped to the owner's Session (or global outside one), renews for the same owner, and is released on TTL expiry, owner panel exit, or owner Pane archive. `--wait` blocks in the daemon until the lock comes free.", "`runpane 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.", "`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).", "`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.", "`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.", "`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), or with 2 to 4 `--questions` (`[{title, choices}]`) one pick each, as `{answer, answers}`, `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}`, `{label, url}` or `{label, approval}` for another approval), shown as chips on the card. When the person types a reply it returns `{reply, picks?, id, next}` (or, with no open call, types a `reply:` line into the asking tab), and Pane records the reply as the answer once it is delivered. If the reply asks something instead, `--took <id|Q-n> question [--status <text>]` reopens the approval and shows that the agent is getting more context (`--took <id|Q-n> answer` confirms it, and changes nothing), and `runpane notify --update <id|Q-n> [--asked <text>] --what-changed <text>` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` saves a new version and waits on it. `--took` prints `{took, id, next?}`. Only the reply's reader (the asker, the orchestrator that relayed it, or Autopilot) may run them. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.", "Work sent to an agent through `runpane panels create`, `panes create` (with a prompt), or `panels submit` records that the sender waits for a `runpane report`, unless the request says `--source user` (Pane's own UI does) or `--no-expect-report`; `--expect-report` asks for one anyway. Typing into a tab never does. If the agent then goes ready or its panel exits without a report, Pane journals one opt-in `agent.report.missing` entry (`MISSING REPORT <pane-name> pane <pane-id> panel <panel-id> ready|exited`) whose `lastOutput` is the agent's last transcript reply or last screen lines; it skips the `--min-interval` batch and reaches only watchers that list it in `--kinds`. While the agent's screen shows background work (Claude's `· 1 shell` footer or a running background subagent row, Codex's `background terminal running` line), Pane waits and looks again every 10 seconds instead. `agent.blocked` entries carry `screenLines`, the prompt the agent waits on, and are journalled once a panel has stayed blocked for 2 seconds.", "The orchestrator guide prescribes submit without `--wait`, followed by its named watch; use one completion consumer. As an optional CLI route, `--wait` on `runpane panels submit`, `panels create`, and `panes create` turns the expected report on and blocks on that panel until the first `agent.report`, `agent.report.missing`, `agent.blocked`, `panel.exited`, or `pane.gone`, then prints one line of JSON (`dispatchWaitResult`): the outcome, ids, the report's state, summary, `summaryPath`, PR and head, `screenLines` for a prompt, or `lastOutput` for a missing report, never the transcript. It exits 0 for a report, 3 missing, 4 blocked, 5 exited or gone, and 124 when `--timeout <duration>` passes. It follows the journal from the position the daemon took before delivering the work, so nothing that happens right after delivery is missed. It reuses watch --until-event and returns indeterminate (exit 6) if the journal epoch changes or retained history is lost; inspect the panel and inbox before retrying. Report-expected dispatches are serialized per panel and refused before writing while a result or missing-output collection is outstanding. A send with --no-expect-report is a reply (an answer, or an addition to the current work): it is delivered while a report is outstanding and leaves that expectation in place. Then watch for the original result.", "`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on), plus `answers`, what its workers were told, kept 7 days; an answer with no `decision` still needs its D-n. `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items, and `runpane inbox ack <item-id>... --decision <D-n>` records the D-n, even on an item already cleared. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.", "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope and skips paused ones, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.", "`runpane panels pause --panel <panel-id>`, `panes pause --pane <pane-id>` and `sessions pause --session <id|name>` pause a tab, a Pane, or a Session's chat and Panes: Pane stops each terminal tab the way quitting does, without asking, keeps its agent's conversation, and marks it paused. Pause leaves a chat tab running: `panels pause --panel` on one fails with `ERR_RUNPANE_CHAT_NOT_PAUSABLE`, and `panes pause` and `sessions pause` leave its agent running and count it in `chatTabsNotPaused`. A paused terminal tab stays stopped through clicks, app restarts and updates until `panels resume --panel`, `panes resume` or `sessions resume` restarts it in its saved conversation. Each returns `{ action, scope, panelIds, unchanged, failed, chatTabsNotPaused, message, nextCommand }`. `panes list` reports a Pane's `paused` mark (`{ at, by: \"manual\" | \"auto\", idleHours? }`) and `inactiveSince`, the latest terminal output or input or chat agent activity in its tabs, or the last time the person selected it; `panels list` reports each tab's `paused`. Auto-pause also stops the agent of a chat tab idle for `chatIdleReleaseMinutes` (30 by default); opening the tab or sending it a message resumes it, and it reports no `panel.paused`. `runpane watch` reports `panel.paused` (`PAUSED ...`) and `panel.unpaused` (`UNPAUSED ...`) under `--follow`, to a Session-scoped watch, or when `--kinds` lists them.", "`runpane panels last-message --panel <panel-id>` reads a Claude or Codex agent's last reply from its transcript (up to `--limit` characters, default 20,000, keeping the end and reporting `truncated`). It never scrapes the screen: without a transcript it prints `{ ok: false, reason: \"transcript-unavailable\" }` and exits 1.", "`runpane panels conversation --conversation <id> [--source startup|resume|clear|compact]` records which conversation a terminal panel's agent is on (daemon action `runpane:panels:conversation`, request `{ panelId, paneId?, conversationId, source? }`, result `{ ok: true, paneId, panelId, conversationId, source?, sure }`; `sure` is true when the report came since the panel's agent started). It is not an `agent.report` event. The panel comes from `--panel` (with an optional `--pane`), else `PANE_PANEL_ID` and `PANE_SESSION_ID`, as for `runpane report`. `runpane panels conversation --hook` is the command for a Claude Code `SessionStart` hook: it reads the hook's JSON from stdin (`session_id`, `source`; at most 64 KiB, for at most 2 seconds), reports it for `PANE_PANEL_ID`, prints nothing on stdout or stderr, and always exits 0: outside Pane, on bad input, when Pane is not running, and with a Pane that predates the action. Without `--hook` it prints `Recorded conversation <id> for panel <panel-id>.` and fails like any other command.", "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.", "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.", "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only.", "`runpane handoff` hands a task to another agent on this or another of your machines. The sending agent writes the note from `runpane handoff --template` (goal, current state, done and verified, in progress, next steps, decisions and constraints, open questions, how to verify, git state); `runpane handoff \"claude opus on parsas-macbook-pro\" --note-file ~/handoff.md` checks every section is filled in, requires the branch to be pushed (or pushes it with `--push`, never forcing), writes the note to that machine's `~/.pane/handoffs/` and starts the agent in a new Pane branched from the sender's branch. When the sender is a Pane tab running a Claude, Codex, Cursor or OpenCode session and the receiver is the same agent, the handoff carries that session: on another machine its files are copied into that machine's agent store and the receiver resumes the same id; on this machine the receiver resumes a fork, because two agents never resume one session on one machine. The receiver starts with no prompt, and the CLI runs the continuity check and reports JSON `continuity.result` `continued`, `inconclusive` (exit 0; `next` gives a probe question) or `not-continued` (exit 1; the receiver is kept and `next` gives the `--note-only` command). `--note-only`, a different agent, or a tab with no carried session starts a fresh agent with the note (`fresh-agent`). JSON `continuity` is `{ carried, result, agent, sessionId, resumedId, fork, files, bytes, checks: { resumedById, restartResumes, historyLoaded, originalUntouched?, originalAppended? }, reason, next }`: `sessionId` is the sender's session, `resumedId` the id the receiver resumes (the fork's on this machine), `checks` are the continuity checks (`historyLoaded` is null when there was nothing to compare; `originalUntouched` is set for forks), and a dry run sets `carried`, `sessionId`, `fork`, `files` and `bytes` with no `result`. After `continued` or `inconclusive` the sending agent ends its turn and makes no more changes on the branch. An OpenCode session travels as its export: `opencode export` on this machine, then `opencode import` inside the receiving repository there, and an OpenCode receiver is accepted only to continue an OpenCode session. A Cursor session is carried only to another machine, best effort since Cursor's store is undocumented: Cursor has no fork, and a copied chat still writes to the original, so on this machine the result is `not-continued` and nothing is started. A destination's agent store is assumed at its default location (`~/.claude`, `~/.codex`, `~/.cursor`); a copy already there is replaced only when the sender's holds all of it and no agent there runs it, otherwise nothing is copied and the result is `not-continued`. A destination Pane too old to resume a carried session is refused before anything is sent (`ERR_HANDOFF_RESUME_UNSUPPORTED`). From a Session's terminal it skips git and creates a Session with the same name, goal and agent on the other machine instead; a same-agent Session resumes the sender's conversation when first opened. The receiver reports back to the sender's panel.", "`runpane ask --agent <agent> --prompt \"<question>\"` asks one agent one read-only question and prints its answer, with no tab left behind: the agent's own headless mode runs once, on this machine or another one (`--machine`), in a saved repository (`--repo`, a WSL repository runs in WSL) or a Pane's worktree (`--pane`), with any model it accepts (`--model`). It can read files but not edit them or run shell commands; an agent with no such mode is refused (`ERR_ASK_UNSUPPORTED`). A missing agent, a sign-in error, an unknown model and a timeout each fail with the agent's own words and the next step. Use it for a second opinion or a question to another model; work that edits files goes to a tab.", "`runpane models` lists the models each installed agent offers, read from the agent's own list on every call, with its sign-in as the agent reports it. `--all` covers this machine, every saved machine and their WSL; `--agent` and `--search` narrow the rows. A machine that does not answer is one `unreachable` row; a list that can't be read is `list unavailable`.", "`runpane pr watch`: Register durable GitHub PR monitoring for a Pane.", "`runpane pr unwatch`: Remove a Pane’s explicit PR registration.", "`runpane pr list`: List PR registrations and stopped watches.", "`runpane autopilot status|waiting|stack` read Autopilot (experimental): its switch, run and stack, and its queue: every approval or question waiting on the person on every machine it can reach, grouped by Session, plus `offline` and `cantSee` machines. `runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--title <text>] [--note <text>] [--tab <path-or-url>]... [--next]` puts one entry on its stack; relative paths resolve against the caller's directory, and a new entry never replaces the one on screen. `runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) [--note <text>] --because <why>`, `runpane autopilot close <id> --reason <why>` and `runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--context <text>] [--choices <json>] [--suggestions <json>] [--links <json>]` act on an item, on the machine that holds it, recorded \"by Autopilot\" on every device; the person can Override an answer and reopen a close. Only Autopilot may run them (`AUTOPILOT_ONLY`), and they refuse a permission prompt with `AUTOPILOT_CANNOT_ANSWER`. An item someone else already answered is refused with who did."];
2399
2399
  readonly wrapperFlagNote: "The top-level `runpane --version` form prints the wrapper version. The install subcommand form `runpane install --version vX.Y.Z` selects a Pane release.";
2400
2400
  readonly localControlFlagNote: "`runpane doctor --json`, `runpane repos list`, `runpane panes ...`, and `runpane panels ...` commands use or describe the local framed daemon socket/pipe for a running Pane app. `--pane-dir` points the wrapper at a non-default Pane data directory, such as `PANE_DIR=~/.pane_test` in development. `runpane agent-context` is local/offline and can be used before Pane is running. `agent-context` and `version` accept and ignore `--pane-dir`, so one `--pane-dir` can be passed to every runpane command. In a Pane repository checkout, if `runpane` is not on PATH, 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`. From WSL, if the user runs Windows Pane, use Pane's own `runpane` (on PATH in Pane's WSL terminals, or `/mnt/c/Users/<you>/.pane/bin/runpane`), which reaches the Windows named-pipe daemon through WSL interop; older Pane builds need `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane ...'`.";
2401
2401
  readonly daemonFlagNote: "Unknown daemon flags should be forwarded rather than dropped so newer Pane versions can extend `--remote-setup` without requiring an immediate wrapper release. Unknown flags for non-daemon commands should fail clearly.";
@@ -8010,7 +8010,7 @@ export declare const RUNPANE_CONTRACT: {
8010
8010
  readonly additionalProperties: false;
8011
8011
  };
8012
8012
  readonly notifyRequest: {
8013
- readonly description: "What `runpane notify` and `runpane secrets request` send on the runpane:notify daemon channel: the question fields, with relays or aboutSession when they apply; resume alone; took with tookAs (and status); or update with asked, whatChanged and the changed fields. Only `secrets request` sends ui secret.";
8013
+ readonly description: "What `runpane notify` and `runpane secrets request` send on the runpane:notify daemon channel: the question fields, with relays or aboutSession when they apply; resume alone; took with tookAs (and status); or update with whatChanged, asked when it answers the person's typed question, and the changed fields. Only `secrets request` sends ui secret.";
8014
8014
  readonly type: "object";
8015
8015
  readonly required: readonly ["caller"];
8016
8016
  readonly properties: {
@@ -8092,7 +8092,7 @@ export declare const RUNPANE_CONTRACT: {
8092
8092
  };
8093
8093
  readonly tookAs: {
8094
8094
  readonly enum: readonly ["answer", "question"];
8095
- readonly description: "answer records the reply as the answer; question shows the reader is getting more context.";
8095
+ readonly description: "question reopens the approval and shows the reader is getting more context; answer confirms the reply, already recorded as the answer.";
8096
8096
  };
8097
8097
  readonly status: {
8098
8098
  readonly type: "string";
@@ -8173,7 +8173,7 @@ export declare const RUNPANE_CONTRACT: {
8173
8173
  readonly additionalProperties: false;
8174
8174
  }, {
8175
8175
  readonly type: "object";
8176
- readonly description: "The person typed a reply: it may answer the question or ask one. The approval keeps waiting; say which with `runpane notify --took <replyId> answer|question` (see next).";
8176
+ readonly description: "The person typed a reply, and Pane recorded it as the answer. If it asks something instead, run `runpane notify --took <replyId> question` (see next).";
8177
8177
  readonly required: readonly ["reply", "id", "replyId", "next"];
8178
8178
  readonly properties: {
8179
8179
  readonly reply: {
@@ -14156,7 +14156,7 @@ export declare const RUNPANE_CONTRACT: {
14156
14156
  }];
14157
14157
  readonly examples: readonly ["runpane loops create --repo active --name nightly-bug-sweep --cron \"0 3 * * *\" --agent claude --prompt \"Fix one bug from yesterday's issues\" --yes --json", "runpane loops create --repo <repo> --name dependency-check --cron \"0 9 * * 1\" --tool-command \"pnpm test\" --yes --json", "runpane loops create --session new --name morning-triage --cron \"0 9 * * 1-5\" --agent claude --prompt \"Triage the new issues\" --yes --json"];
14158
14158
  readonly jsonSchemas: readonly ["loopInput", "loopResult", "loopDryRunResult"];
14159
- readonly notes: readonly ["Saving rejects a cron whose runs fall less than 60 minutes apart. Check one first with --dry-run."];
14159
+ readonly notes: readonly ["Saving rejects a cron whose runs fall less than 60 minutes apart. Check one first with --dry-run.", "Writing a good loop: a loop runs while the person is away. Reach them only through `runpane notify` cards that wait (`--ui options` or `approve`, never `info`), each standing on its own with what was tried, the one thing they can do and every artifact in `--links`; act on their answers on the card.", "Keep a ledger file of items found, what each run covered, what was surfaced and the id of each card posted. Start each run by reading it, the last one or two outputs and the card answers since the last run; scan only what is new and re-check open items.", "Surface an item only when it is new, newly urgent or overdue, matched by meaning, not wording. Post one card per run, or none; while a card is unanswered, update it with `runpane notify --update <id> --what-changed <line>` (the id from the ledger) instead of posting another. Any later run of the same loop may update it.", "Publish each run's output to the person's document destination, one folder per loop, named by date and slot and linking the previous output; keep a local copy by the ledger.", "Propose anything that messages or changes something for someone else on an approve card and act only on approval; limit how often one reminder is proposed.", "Start with a small look-ahead or look-back window, widen it when the evidence calls for it, and record the window each run used.", "Keep the prompt in a file: after each edit run `runpane loops update --loop <id> --prompt-file <path> --yes` and read the saved loop back with `runpane loops list --json`. `runpane docs read --doc docs/LOOPS.md` has a worked prompt."];
14160
14160
  };
14161
14161
  readonly "loops update": {
14162
14162
  readonly name: "loops update";
@@ -14234,7 +14234,7 @@ export declare const RUNPANE_CONTRACT: {
14234
14234
  }];
14235
14235
  readonly examples: readonly ["runpane loops update --loop <loop-id> --cron \"0 4 * * *\" --yes --json"];
14236
14236
  readonly jsonSchemas: readonly ["loopInput", "loopResult", "loopDryRunResult"];
14237
- readonly notes: readonly [];
14237
+ readonly notes: readonly ["Writing a good loop: a loop runs while the person is away. Reach them only through `runpane notify` cards that wait (`--ui options` or `approve`, never `info`), each standing on its own with what was tried, the one thing they can do and every artifact in `--links`; act on their answers on the card.", "Keep a ledger file of items found, what each run covered, what was surfaced and the id of each card posted. Start each run by reading it, the last one or two outputs and the card answers since the last run; scan only what is new and re-check open items.", "Surface an item only when it is new, newly urgent or overdue, matched by meaning, not wording. Post one card per run, or none; while a card is unanswered, update it with `runpane notify --update <id> --what-changed <line>` (the id from the ledger) instead of posting another. Any later run of the same loop may update it.", "Publish each run's output to the person's document destination, one folder per loop, named by date and slot and linking the previous output; keep a local copy by the ledger.", "Propose anything that messages or changes something for someone else on an approve card and act only on approval; limit how often one reminder is proposed.", "Start with a small look-ahead or look-back window, widen it when the evidence calls for it, and record the window each run used.", "Keep the prompt in a file: after each edit run `runpane loops update --loop <id> --prompt-file <path> --yes` and read the saved loop back with `runpane loops list --json`. `runpane docs read --doc docs/LOOPS.md` has a worked prompt."];
14238
14238
  };
14239
14239
  readonly "loops run": {
14240
14240
  readonly name: "loops run";
@@ -14463,12 +14463,12 @@ export declare const RUNPANE_CONTRACT: {
14463
14463
  readonly name: "--took";
14464
14464
  readonly value: "<id|Q-n>";
14465
14465
  readonly required: false;
14466
- readonly description: "After a reply result or a `reply:` line: the approval's id or Q-n, with tookAs answer (record the reply as the answer) or question (it asked something; find out, then call update). Pass no question fields.";
14466
+ readonly description: "After a reply result or a `reply:` line: the approval's id or Q-n, with tookAs question when the reply asked something (it reopens the approval; find out, then call update). The reply is already recorded as the answer, so tookAs answer changes nothing. Pass no question fields.";
14467
14467
  }, {
14468
14468
  readonly name: "--took-as";
14469
14469
  readonly value: "<answer|question>";
14470
14470
  readonly required: false;
14471
- readonly description: "With took: answer or question. On the command line it can follow the id instead (`--took Q-20 answer`).";
14471
+ readonly description: "With took: answer or question. On the command line it can follow the id instead (`--took Q-20 question`).";
14472
14472
  readonly schema: {
14473
14473
  readonly type: "string";
14474
14474
  readonly enum: readonly ["answer", "question"];
@@ -14482,12 +14482,12 @@ export declare const RUNPANE_CONTRACT: {
14482
14482
  readonly name: "--update";
14483
14483
  readonly value: "<id|Q-n>";
14484
14484
  readonly required: false;
14485
- readonly description: "After you took a reply as a question and found out: the approval's id or Q-n. Saves a new version with any of title, context, choices, questions and links you pass (the rest stay), shows it as updated, and waits on it like any notify call. Needs asked and whatChanged; takes no ui.";
14485
+ readonly description: "After you took a reply as a question and found out: the approval's id or Q-n. Saves a new version with any of title, context, choices, questions and links you pass (the rest stay), shows it as updated, and waits on it like any notify call. Needs whatChanged, and asked when it answers the person's typed question; takes no ui.";
14486
14486
  }, {
14487
14487
  readonly name: "--asked";
14488
14488
  readonly value: "<text>";
14489
14489
  readonly required: false;
14490
- readonly description: "With update: the person's question, as they typed it.";
14490
+ readonly description: "With update: the person's question, as they typed it. Required when the update answers their typed question; leave it out for your own update, such as a loop's next run.";
14491
14491
  }, {
14492
14492
  readonly name: "--what-changed";
14493
14493
  readonly value: "<text>";
@@ -14508,9 +14508,9 @@ export declare const RUNPANE_CONTRACT: {
14508
14508
  readonly required: false;
14509
14509
  readonly description: "Connect to a specific Pane data directory.";
14510
14510
  }];
14511
- readonly examples: readonly ["runpane notify --ui options --title \"Which database for the cache?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]' --json", "runpane notify --ui approve --title \"Drop the legacy_users table?\" --detail \"DROP TABLE legacy_users;\" --detail-label \"Show the SQL\" --json", "runpane notify --ui ask --title \"Which branch should I base this on?\" --suggestions '[\"main\",\"release\"]' --json", "runpane notify --ui info --title \"PR #812 is ready for review\" --action '{\"label\":\"Open PR\",\"url\":\"https://github.com/org/repo/pull/812\"}' --json", "runpane notify --ui approve --title \"Ship the release notes?\" --links '[{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"},{\"label\":\"PR #812\",\"url\":\"https://github.com/org/repo/pull/812\"}]' --json", "runpane notify --relays in-1a2b3c4d --ui options --title \"Q-39: Run the script?\" --choices '[{\"label\":\"Run it\",\"recommended\":true},{\"label\":\"Hold\"}]' --json", "runpane notify --ui options --title \"Ship 2.5 today: which parts go out?\" --questions '[{\"title\":\"Release notes\",\"choices\":[{\"label\":\"Ship as written\",\"recommended\":true},{\"label\":\"Hold\"}]},{\"title\":\"Intel Mac build\",\"choices\":[{\"label\":\"Include it\"},{\"label\":\"Skip it\"}]}]' --json", "runpane notify --took Q-20 answer --json", "runpane notify --took Q-20 question --status \"Checking whether it can be undone\" --json", "runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: Settings > Search turns it off again\" --context \"Search takes 4 s; the index brings it under 100 ms. It can be undone from Settings.\" --json", "runpane notify --resume n-4f2a --json"];
14511
+ readonly examples: readonly ["runpane notify --ui options --title \"Which database for the cache?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]' --json", "runpane notify --ui approve --title \"Drop the legacy_users table?\" --detail \"DROP TABLE legacy_users;\" --detail-label \"Show the SQL\" --json", "runpane notify --ui ask --title \"Which branch should I base this on?\" --suggestions '[\"main\",\"release\"]' --json", "runpane notify --ui info --title \"PR #812 is ready for review\" --action '{\"label\":\"Open PR\",\"url\":\"https://github.com/org/repo/pull/812\"}' --json", "runpane notify --ui approve --title \"Ship the release notes?\" --links '[{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"},{\"label\":\"PR #812\",\"url\":\"https://github.com/org/repo/pull/812\"}]' --json", "runpane notify --relays in-1a2b3c4d --ui options --title \"Q-39: Run the script?\" --choices '[{\"label\":\"Run it\",\"recommended\":true},{\"label\":\"Hold\"}]' --json", "runpane notify --ui options --title \"Ship 2.5 today: which parts go out?\" --questions '[{\"title\":\"Release notes\",\"choices\":[{\"label\":\"Ship as written\",\"recommended\":true},{\"label\":\"Hold\"}]},{\"title\":\"Intel Mac build\",\"choices\":[{\"label\":\"Include it\"},{\"label\":\"Skip it\"}]}]' --json", "runpane notify --took Q-20 question --status \"Checking whether it can be undone\" --json", "runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: Settings > Search turns it off again\" --context \"Search takes 4 s; the index brings it under 100 ms. It can be undone from Settings.\" --json", "runpane notify --resume n-4f2a --json"];
14512
14512
  readonly jsonSchemas: readonly ["notifyRequest", "notifyResult"];
14513
- readonly notes: readonly ["Ask only what you can't find out yourself, and put related questions in one card. Send `info` rarely, only for what the person must know now.", "Write the card as its Summary: a title of about 80 to 100 characters on one line; context as a subtitle of one or two sentences saying why it matters; 2 to 4 choices, each saying what it does, with exactly one recommended; links to every file, page or approval it mentions. Pane refuses a title over 160 characters or with a line break, and two recommended choices.", "The person is juggling many tasks and has lost the thread. In plain words, say what the work is for (the outcome, not the file), what just happened, and what you need. For a decision, give the options and what each one means. Pane already shows which Pane and agent sent it.", "Results: options returns {answer: <chosen label>, note?}, with questions also answers (one label per question); approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.", "A result of {reply, picks?, id, replyId, next} means the person typed a reply instead of only picking: it may answer the question or ask one. Read it, then call `runpane notify --took <replyId> answer` to record it as the answer, or `runpane notify --took <replyId> question` and find out, then `runpane notify --update <replyId> --asked \"<their question>\" --what-changed \"<one line per change>\"` with whatever changed, instead of asking again. With no open call the reply reaches your tab as a `reply:` line; `correction:` lines fix how it was taken. --took returns {took, id, next?}. Use its replyId rather than the Q-n: only this call was given it, so it works from outside a Pane tab too.", "Only the reply's reader may run took and update: the asker, the orchestrator that relayed it, or Autopilot. Anyone else gets ERR_NOTIFY_NOT_READER.", "A result of {waiting: true, id} means the question is still on screen and your client would otherwise time out: call `runpane notify --resume <id>` right away to keep waiting. After 15 minutes on this loop Pane gives up and returns unavailable.", "A result of {unavailable, next} means nobody can answer through Pane right now (Pane is not running, Notify is off, or the wait ended): ask in the terminal instead. It is a result, not an error.", "Inside a Pane terminal the question names its Pane and panel (PANE_SESSION_ID and PANE_PANEL_ID); elsewhere it names the working directory.", "An older Pane ignores links and shows the card without them.", "With relays the call waits on the worker's card as on any notify, and the answer also goes straight to the worker's tab as `answer: Q-n → <answer> (by you)`. Then record it: `runpane inbox ack <item> --decision <D-n>`.", "Invalid input, such as choices with ui ask, 10 choices, or ui with took or update, fails with a message naming the field, and nothing is shown.", "Examples of a good title and context. Needs a decision (ui approve): \"Speed up slow search: run the database change?\" with \"Search takes 4 s and an index brings it under 100 ms. It changes the live database and can't easily be undone.\", not \"Approve the migration?\" Blocked (ui options): \"The 2.5 release is stuck on a GitHub hiccup\" with \"The fixes pass everywhere except one Mac build machine, which errored. That's GitHub's machine, not our code.\", not \"Blocked\". Just so you know (ui info): \"Questions from agents now wait until you answer\", not \"Done\"."];
14513
+ readonly notes: readonly ["Ask only what you can't find out yourself, and put related questions in one card. Send `info` rarely, only for what the person must know now.", "Write the card as its Summary: a title of about 80 to 100 characters on one line; context as a subtitle of one or two sentences saying why it matters; 2 to 4 choices, each saying what it does, with exactly one recommended; links to every file, page or approval it mentions. Pane refuses a title over 160 characters or with a line break, and two recommended choices.", "The person is juggling many tasks and has lost the thread. In plain words, say what the work is for (the outcome, not the file), what just happened, and what you need. For a decision, give the options and what each one means. Pane already shows which Pane and agent sent it.", "Results: options returns {answer: <chosen label>, note?}, with questions also answers (one label per question); approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.", "A result of {reply, picks?, id, replyId, next} means the person typed a reply instead of only picking: Pane records it as the answer, so the approval is done. If it asks something instead, call `runpane notify --took <replyId> question` and find out, then `runpane notify --update <replyId> --asked \"<their question>\" --what-changed \"<one line per change>\"` with whatever changed, instead of asking again. With no open call the reply reaches your tab as a `reply:` line, recorded the same way; `correction:` lines fix how it was taken. --took returns {took, id, next?}. Use its replyId rather than the Q-n: only this call was given it, so it works from outside a Pane tab too.", "Only the reply's reader may run took and update: the asker, the orchestrator that relayed it, or Autopilot. Anyone else gets ERR_NOTIFY_NOT_READER.", "A result of {waiting: true, id} means the question is still on screen and your client would otherwise time out: call `runpane notify --resume <id>` right away to keep waiting. After 15 minutes on this loop Pane gives up and returns unavailable.", "A result of {unavailable, next} means nobody can answer through Pane right now (Pane is not running, Notify is off, or the wait ended): ask in the terminal instead. It is a result, not an error.", "Inside a Pane terminal the question names its Pane and panel (PANE_SESSION_ID and PANE_PANEL_ID); elsewhere it names the working directory.", "An older Pane ignores links and shows the card without them.", "With relays the call waits on the worker's card as on any notify, and the answer also goes straight to the worker's tab as `answer: Q-n → <answer> (by you)`. Then record it: `runpane inbox ack <item> --decision <D-n>`. If the worker takes a typed reply as a question, you get `reopened: Q-n → … (by <worker>)` instead, and the answer to the new version comes as `correction: Q-n → <answer> (by you)`.", "Invalid input, such as choices with ui ask, 10 choices, or ui with took or update, fails with a message naming the field, and nothing is shown.", "Examples of a good title and context. Needs a decision (ui approve): \"Speed up slow search: run the database change?\" with \"Search takes 4 s and an index brings it under 100 ms. It changes the live database and can't easily be undone.\", not \"Approve the migration?\" Blocked (ui options): \"The 2.5 release is stuck on a GitHub hiccup\" with \"The fixes pass everywhere except one Mac build machine, which errored. That's GitHub's machine, not our code.\", not \"Blocked\". Just so you know (ui info): \"Questions from agents now wait until you answer\", not \"Done\"."];
14514
14514
  readonly helpIncludesNotes: true;
14515
14515
  };
14516
14516
  readonly "autopilot status": {
@@ -15135,7 +15135,7 @@ export declare const RUNPANE_CONTRACT: {
15135
15135
  readonly notes: readonly ["Clean machines only through this command, never with rm or another raw delete.", "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."];
15136
15136
  };
15137
15137
  };
15138
- readonly managedBlock: readonly ["## Pane", "", "This repository is used with [Pane](https://runpane.com). Drive it with the CLI or the `pane` MCP server.", "", "{{paneAndTabRules}} With the MCP tools, open a tab with `panels_create`, or `agents_start` with `pane`.", "", "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.", "", "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`).", "", "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.", "", "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.", "", "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."];
15138
+ readonly managedBlock: readonly ["## Pane", "", "This repository is used with [Pane](https://runpane.com). Drive it with the CLI or the `pane` MCP server.", "", "{{paneAndTabRules}} With the MCP tools, open a tab with `panels_create`, or `agents_start` with `pane`.", "", "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.", "", "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`).", "", "Loops: before `runpane loops create` or `loops update`, read its `--help`. A loop runs while the person is away, so it reaches them only through cards that wait, keeps a ledger so it never repeats itself, and keeps its prompt in a file.", "", "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.", "", "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.", "", "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."];
15139
15139
  readonly notifyGuidance: {
15140
15140
  readonly rules: readonly ["Claude's own card (AskUserQuestion) only for a quick question about the person's latest message, in the chat they are typing in, that steers only this turn. Anything else (it waits, blocks other work, is recorded as a decision or approves an ask-first action) is an approval card (`notify`). Unsure? Use an approval card. Codex and other agents always do.", "In a Session, only its orchestrator asks the person. A worker (`PANE_SESSION_DIR` is set and `PANE_ORCHESTRATION_SESSION_ID` isn't, or your brief names an orchestrator or a parent status file) doesn't call `notify`: it reports blocked with `runpane report --state blocked --question \"<question>\"`. `answer:`, `closed:` and `correction:` lines ending `(by you)` in its tab are the person's word.", "For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`."];
15141
15141
  };