[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C1ZTEV9NFKRB0BCR8SX06M":3,"skill-same:01M6C1ZTEV9NFKRB0BCR8SX06M":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":13,"ownerHtmlUrl":60,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":61,"install":62,"resources":75},"01M6C1ZTEV9NFKRB0BCR8SX06M","cmux-cli-restore","cmux CLI 重启恢复","Exit a stuck CLI inside a cmux terminal surface and restart it with the resume wrapper (`codexc` = `codex resume --last`, `claudec` = `claude --continue`, `claudewac`, `codexdc`). Use when a lane is wedged on a usage-limit wall, a model-capacity refusal, a 429 retry exhaustion, a stalled model turn, a malformed prompt, or an abandoned background-terminal wait, and the operator says 'restart that lane', 'exit and resume it', 'ctrl-c it and start it again'. Also use when a TUI left the shell holding `9;5u` \u002F `17;5u` CSI-u keystroke garbage after the app quit, when a Claude lane is walled and should continue on Gemini (agy), when a Codex lane is blocked by a usage limit and should continue on Claude, or when cmux lost surfaces\u002Fworkspaces (shells killed) and they must be recreated from the session snapshot.","退出 cmux 终端界面内卡住的 CLI，并用恢复包装器重启它（`codexc` = `codex resume --last`、`claudec` = `claude --continue`、`claudewac`、`codexdc`）。当某个通道（lane）因使用量限制壁垒、模型容量拒绝、429 重试耗尽、模型回合停滞、提示格式错误或被放弃的后台终端等待而卡死，且操作员说'重启那个通道'、'退出并恢复它'、'ctrl-c 然后重新开始'时使用。也适用于以下情况：TUI 退出后 shell 残留 `9;5u` \u002F `17;5u` CSI-u 按键乱码；Claude 通道受限应在 Gemini (agy) 上继续；Codex 通道因使用量限制被阻断应在 Claude 上继续；或 cmux 丢失界面\u002F工作区（shell 被杀），需要从会话快照重建。","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX",null,"01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcmux-cli-restore\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"cmux cli restore","cli","cmux","restore","usage","restart","Wrapper","wait","malformed","CTRL","surfaces","when","workspaces","retry","app","operator","start","snapshot","terminal","model","2026-11-10 10:12:30",false,"---\nname: cmux-cli-restore\ndescription: \"Exit a stuck CLI inside a cmux terminal surface and restart it with the resume wrapper (`codexc` = `codex resume --last`, `claudec` = `claude --continue`, `claudewac`, `codexdc`). Use when a lane is wedged on a usage-limit wall, a model-capacity refusal, a 429 retry exhaustion, a stalled model turn, a malformed prompt, or an abandoned background-terminal wait, and the operator says 'restart that lane', 'exit and resume it', 'ctrl-c it and start it again'. Also use when a TUI left the shell holding `9;5u` \u002F `17;5u` CSI-u keystroke garbage after the app quit, when a Claude lane is walled and should continue on Gemini (agy), when a Codex lane is blocked by a usage limit and should continue on Claude, or when cmux lost surfaces\u002Fworkspaces (shells killed) and they must be recreated from the session snapshot.\"\n---\n\n# cmux-cli-restore — exit the CLI, restart it with the resume wrapper\n\nThe whole procedure in one line: **exit the app cleanly, sanitize the shell line, restart with\n`codexc` \u002F `claudec`, verify at the process level.**\n\nThat is all this skill does. It is not a session-recovery framework, it does not restore work, and it\ndoes not pretend a restart clears a wall the wall itself has not cleared.\n\n## What \"restart\" means here (say it precisely)\n\n`codexc` is `codex resume --last` and `claudec` is `claude --continue`. So a \"restart\" is:\n\n- a **new CLI process** on the surface's tty, and\n- the **same conversation**, resumed from its own session file.\n\nNothing is lost and nothing starts over. Verified on 9 Codex lanes at once: each tty showed a fresh\n`\u002Fusr\u002Fbin\u002Fcommand codex resume \u003Cuuid>` while the long-lived session stayed intact.\n\n## Procedure\n\n1. **Resolve the surface and its CLI.** Never guess from the title.\n   ```bash\n   cmux top --workspace \u003Cws> --processes | grep \"surface surface:\u003Csf>\"   # gives tty=ttysNNN\n   ps -Ao pid,tty,etime,command | awk '$2==\"ttysNNN\"'\n   ```\n   | process on the tty | CLI | restart with |\n   |---|---|---|\n   | `\u002Fusr\u002Fbin\u002Fcommand codex resume …` or `node …\u002F@openai\u002Fcodex` | Codex | `codexc` |\n   | `claude` (with `CLAUDE_CONFIG_DIR=~\u002F.claude-wa` in its env) | claudewa | `claudewac` |\n   | `claude` | Claude Code | `claudec` |\n   | `agy.real --conversation …` | Antigravity | no resume alias — relaunch `agy --model gemini-3.8-flash-high` and recover context with `\u002Fhr` (see § Swap a usage-limited Claude lane to Gemini) |\n   | `pi` | pi | no wrapper — relaunch `pi` |\n   | only a shell | nothing to restore | stop; it is a `SHELL` surface |\n\n2. **Exit it.** First confirm the limit\u002Fwedge text is the lane's current state: full scrollback plus two captures 20-30 s apart, no live spinner or subagent growth; a stale banner above active work means leave it. Then `cmux send-key --workspace \u003Cws> --surface \u003Csf> ctrl+c`, wait ~3 s, then check for the\n   shell prompt. Codex sometimes needs a second `ctrl+c`. Do not proceed until you can see the prompt.\n\n3. **Sanitize the shell line — this step is not optional.** A TUI that enabled the enhanced keyboard\n   protocol can leave CSI-u fragments (`9;5u`, `17;5u`, `5u`) sitting on the shell line after the app\n   quits. Typing on top of that produces `bash: 5ucodexc: command not found`. Send `ctrl+c` (bash\n   cancels the line) and confirm the prompt is clean *before* typing anything.\n\n4. **Restart with the wrapper — aimed at THIS conversation.** `codexc` is `codex resume --last`, and\n   \"last\" is not \"this one\": a newer conversation in the same directory wins. So resolve the lane's\n   session id from the pre-restart process listing and resume it explicitly. If the id cannot be\n   resolved, stop — do not fall back to `--last`. `claudec`\u002F`claudewac` cannot be identity-verified this\n   way, so a Claude lane is refused rather than resumed blind.\n   ```bash\n   cmux send --force --workspace \u003Cws> --surface \u003Csf> \"codex resume \u003Cuuid>\"\n   cmux send-key --force --workspace \u003Cws> --surface \u003Csf> enter\n   ```\n   **Do not accept a goal dialog here.** A Codex resume can open `1. Resume goal` \u002F `2. Leave paused`,\n   and pressing Enter lets the lane start work immediately. Acceptance happens only in step 5, after the\n   resumed conversation has been proven to be the right one.\n\n5. **Verify from the process, not the screen — and require a NEW pid.**\n   ```bash\n   ps -Ao tty,pid,etime,command | awk '$1==\"ttysNNN\" && \u002Fcodex resume|claude\u002F'\n   ```\n   Snapshot the pids before the restart and require one that was not there, **and** require the resumed\n   conversation to be the same id (a `--last` resume into a different session exits 10). **Only after\n   that check passes** may a `Resume goal` dialog be accepted — a wrong or unknown session must never\n   reach the point where the lane begins work: an old process that\n   survived is **not** a restart, and `bash: 5ucodexc: command not found` leaves exactly that\n   situation (the old TUI still running while your command never ran). Check the `send` and `Enter`\n   exit codes too; a swallowed send failure must not be reported as success.\n   Then confirm the *session* is live from its transcript or session record. A fresh mtime alone, a timer, spinner,\n   banner, or changed screen does not prove progress; require a new non-timer transcript\u002Fsession event. If that\n   evidence is unavailable, report the resume as unverified.\n   Codex: newest `~\u002F.codex\u002Fsessions\u002F**\u002Frollout-*\u003Cuuid>*.jsonl`. pi: `~\u002F.pi\u002Fagent\u002Fsessions\u002F*\u002F*.jsonl`.\n\n## What a restart does NOT fix\n\nReport these instead of restarting, because a restart only re-hits the same wall:\n\n| Wall | How it reads | Real unblock |\n|---|---|---|\n| Usage allowance spent | `You've hit your usage limit … try again at \u003Cdate>` | wait for the reset, or **swap the lane**: Codex lane to Claude, Claude lane to Gemini (next two sections) |\n| Model at capacity | `Selected model is at capacity. Please try a different model.` | different model, or wait |\n| 429 retry exhaustion | `exceeded retry limit, last status: 429 Too Many Requests` | wait; a restart burns another retry |\n| 8-hour autonomy box | `autonomy rule requires a live human renewal` \u002F `eight-hour authorization expired` | a live human renewal, not a restart |\n| Human gate | `Goal remains blocked pending human merge approval` | `MERGE APPROVED` |\n\n## Swap a usage-limited Codex lane to Claude (verified 2026-10-27, 9 lanes)\n\nA restart re-hits the Codex wall, so continue the work on Claude instead. Per surface:\n\n0. **Confirm the wall is current before touching the lane.** Follow `cmux-steer`'s full-buffer rule and use independent process\u002Fsession evidence; never decide from a tail or grep. If the lane shows active work, a dialog, or the evidence is inconclusive, leave it. Record the Codex session id so the lane can return to Codex after the reset.\n1. `ctrl+c` twice (`--force` if a dialog is open); capture and require a shell prompt (`[$%] ?$`). If not at a shell, stop and report.\n2. `cmux send ... \"ANTHROPIC_MODEL=claude-sonnet-5-5 claude --permission-mode bypassPermissions\"` then `send-key enter` (match the old lane's mode: that flag is for a lane that ran full-permission, e.g. `--yolo`; if the Codex lane was approval-gated, launch `claude` with no permission flag).\n3. Poll `capture-pane` until `bypass permissions` or `? for shortcuts` appears (≤36 s); a folder-trust prompt means stop and report.\n4. `cmux send ... \"\u002Fhr resume the work Codex session \u003Cid from step 0> was doing in this worktree; it stopped at the usage limit; continue until done.\"` then `send-key enter`. Where `\u002Fhr` is not installed, brief the new lane to read the worktree's `nextsteps`\u002Fbead state and the git log instead.\n5. Verify a spinner line (`✻ Thinking… (12s`) within ~60 s, via two captures. A Claude lane that ends its first turn with a recap and \"needs MERGE APPROVED\" is not stuck: send once, \"do not stop at a recap; continue every step that does not need a user-only gate (merge approval, credentials, spend)\".\n\nOther Codex traps seen in the same run: a `Hooks need review` menu (`1. Review hooks \u002F 2. Trust all \u002F 3. Continue without trusting`) — pick **3** (`cmux send ... \"3\"` selects immediately); never choose \"Trust all\" for the user. A `Resume goal \u002F Leave paused` menu: Enter resumes (only after the session id check in Procedure step 5).\n\n## Swap a usage-limited Claude lane to Gemini (agy) — verified 2026-10-27, 20 lanes\n\nWhen Claude is walled (`You've hit your session limit · resets \u003Ctime>`) the lane is stuck until the reset, and\na restart re-hits the same account-level wall. Gemini is a different provider and keeps working — `agy models`\ncurrently offers `gemini-4-argon-*` and `gemini-3.8-flash-*`; use only `gemini-3.8-flash-high` (or `-medium`) per the Gemini model invariant, and never fall back to Gemini 3.1 Pro\nor older Pro models. Per surface:\n\n0. **Confirm the wall is current before touching the lane.** Follow `cmux-steer`'s full-buffer rule and use independent process\u002Fsession evidence; never decide from a tail or grep. If the lane shows active work, a dialog, or the evidence is inconclusive, leave it.\n1. **`escape` first — always.** A walled lane re-arms itself (`Continuing automatically at 4:20pm · esc to\n   cancel`). Until that wait is cancelled, `\u002Fexit` is swallowed and the lane looks unexitable. Require the\n   confirmation `Automatic continue cancelled`.\n2. `cmux send --force … \"\u002Fexit\"` then `send-key --force … enter`. The three-option menu (`1. Exit and stop\n   tasks \u002F 2. Move to background and exit \u002F 3. Stay`) defaults to **1**; Enter accepts it. Prefer **2** only when\n   live subagents are worth keeping — on a dead provider quota they are normally already dead.\n3. Require a real shell prompt. The pane prints `Resume this session with: claude --resume \u003Cuuid>` just above it;\n   keep that uuid — it is the only route back to Claude after the reset.\n4. `cmux send --force … \"agy --model gemini-3.8-flash-high --dangerously-skip-permissions\"` (match the old lane's mode: pass `--dangerously-skip-permissions` only if the Claude lane ran full-permission, otherwise omit it) then `send-key --force … enter`.\n5. Wait for a frame containing `Gemini 3.8 Flash` **and** the composer `>` (≈3 s, poll ≤36 s). Do not type into the\n   model splash — see trap 9.\n6. Send the resume brief in ONE line: cwd, branch, PR number, why the previous session died, and the literal words\n   `Run the \u002Fhr history-resume workflow`. `agy` has no session-resume alias, so `\u002Fhr` (or the worktree's own\n   `nextsteps`\u002Fbead state) *is* the recovery mechanism.\n7. Verify the model AND a turn: `Gemini 3.8 Flash · high` in the footer, plus `● Ran …` \u002F `● Explored …` \u002F\n   `Thought for …`, plus a second capture that shows the screen changed.\n\n### What this actually buys you (measured across 20 lanes)\n\n`\u002Fhr` is read-heavy by design, so the first turn yields a briefing, not code. After switching 20 lanes: 8 were\nrunning a command or delegating subagents, 12 finished the one step they were given and parked at the composer,\nand **0 had edited a file** — no `● Edited`\u002F`● Created`, and every recent worktree mtime was `__pycache__\u002F*.pyc`.\nIf you want code, make it standing: \"work autonomously to the PR's next gate — green CI plus the evidence its\nstage needs — take multiple steps without stopping to report; stop only at an operator-only gate\". Sending that\nto the 12 parked lanes moved 10 of them to `esc to cancel`\u002F`task(s)` within 25 s. The other two were parked\nlegitimately (an `APPROVED` PR with nothing left but `MERGE APPROVED`; a lane holding on an explicit operator\nhold) — read the tail before assuming a parked lane is broken.\n\n## Surfaces lost, not wedged (shells killed, workspace closed)\n\nDifferent problem: the process is gone, so there is nothing to ctrl-c. Recreate from the autosaved snapshot, never from memory.\n\n- Snapshots: `~\u002FLibrary\u002FApplication Support\u002Fcmux\u002Fsession-history\u002F*.json` (newest before the incident); each terminal panel carries `terminal.resumeBinding.command`, `kind`, `checkpointId`. Events (`~\u002F.cmuxterm\u002Fevents.jsonl`) rotate within hours; `closed-item-history-*.json` holds only individually closed panels.\n- Diff **panel ids**, not just workspace ids. Workspaces that survive on their browser tabs lose all their terminals (a workspace-level diff misses them). After a first restore the ids change, so match by title or a state file or a retry duplicates the workspace.\n- Recreate: `cmux workspace create --name=\u003Ctitle> --cwd \u003Cdir> --focus false` (write `--name=`; a title starting with `-----` is parsed as a flag), extra terminals `cmux new-surface --workspace \u003Cref> --working-directory \u003Cdir> --focus false`, browser tabs `new-surface --type browser --workspace \u003Cref> --focus false --url \u003CurlString>`, then `workspace-action --workspace \u003Cref> --action pin` and `reorder-workspace --workspace \u003Cref> --index \u003Cn>` to snapshot order. Always pass the restored workspace ref explicitly: `new-surface` and `workspace-action` default to the current workspace, which would modify the operator's live one. Recreate shells only: never pass a snapshot's recorded `resumeBinding.command` (or any recorded text) as `--command`. Never `select`\u002Ffocus. Skip a panel whose cwd no longer exists; cloud (VNC) workspaces reject `new-surface`.\n- Resuming an agent in a restored shell: only by explicit id, never `codexc`\u002F`claudec` (they take the newest conversation in that directory, which in a shared worktree may belong to another lane). Read the conversation uuid from the snapshot panel (`checkpointId`, or the uuid inside `resumeBinding.command`, read as data and never executed), run `codex resume \u003Cuuid>` \u002F `claude --resume \u003Cuuid>`, and apply Procedure step 5's checks (new pid, same session id). No uuid, or another writer on the worktree: leave the shell bare and report it.\n- Closing a duplicate you created: pinned workspaces refuse `close-workspace` until unpinned.\n- Optional local helpers (machine-local, not shipped; reimplement from the recipe above elsewhere): `~\u002F.cmux-backups\u002Fcmux_restore_round2.py` (workspaces) and `cmux_restore_round3_surfaces.py` (surfaces in survivors). Record the order, pins and surfaces in `~\u002Froadmap\u002Fcmux-workspace-layout-\u003Cdate>.md` for the next incident.\n- Restore authorization: a clear live user request is enough (relaxed 2026-10-27); never close or replace live workspaces to make it fit.\n\n## Submitting text to a resumed lane\n\n`cmux send` refuses when the agent prompt already holds unsent text (\"holds text someone is typing\"); the following `send-key enter` then submits the **old** text. Read the composer first; send the message, then Enter, then confirm the composer cleared.\n\n## Traps that have burned this exact procedure\n\n0. **A stale footer is not lane state.** Follow `cmux-steer`'s full-buffer rule and confirm current activity from\n   independent process\u002Fsession evidence. Never classify a lane from its footer, tail, or grep result.\n1. **An open Codex dialog swallows everything.** If the surface rests on a Codex menu\n   (`Press enter to confirm or esc to cancel`, `Enter to select`), plain keystrokes are dropped and\n   `cmux send` refuses without `--force` — so your exit *and* your `codexc` both vanish with no error.\n   Send `esc --force` first, then use `--force` on the exit and restart keys. Verified live: without it,\n   a lane sat on its interrupt menu through three ctrl+c attempts and a codexc.\n2. **Stale banners are history, not state — and a pane banner is NOT a quota reading.** A lane can display\n   `You've hit your usage limit ... try again at \u003Cdate>` while working perfectly. Never accept the banner,\n   and never accept the *date in the banner*, as the fleet's quota state: on 2026-11-04 six panes still read\n   \"try again Nov 9th \u002F Nov 10th\" while quota had already reset.\n   **Decide quota from the account, not from the pane.** Run three cheap non-interactive probes, recording each\n   command's exit status and exact final reply in its own temporary file:\n   ```bash\n   for i in 1 2 3; do\n     reply_file=$(mktemp) || exit 1\n     if codex exec --skip-git-repo-check --output-last-message \"$reply_file\" \"reply P$i\"; then\n       status=0\n     else\n       status=$?\n     fi\n     printf 'P%s exit=%s final reply:\\n' \"$i\" \"$status\"\n     cat \"$reply_file\"\n     printf '\\n'\n     if [ \"$status\" -eq 0 ] && cmp -s \"$reply_file\" \u003C(printf %s \"P$i\"); then\n       printf 'P%s: clean\\n' \"$i\"\n     fi\n     rm -f -- \"$reply_file\"\n   done\n   ```\n   Count a probe clean only when its exit status is 0 and its exact final reply is `P1`, `P2`, or `P3` as\n   requested. Count a failure toward a genuine wall only when its nonzero exit and saved final reply confirm an\n   account usage limit; other failures or missing replies are inconclusive. Three clean replies mean quota is\n   available and future-dated pane banners are stale. Three confirmed limit failures mean a genuine account\n   wall; stop and report the reset time. Any other result is inconclusive, so do not infer quota state from it.\n   Do not dispatch one `codex exec` fan-out per lane to test this; one probe answers it fleet-wide.\n3. **CSI-u garbage.** See step 3. Symptom: `bash: 9: command not found`, `bash: 5ucodexc: command not\n   found`. The cause is the terminal still encoding keys as `ESC [ code ; mods u`; `ctrl+c` on the\n   shell line is the cheap fix, `printf '\\x1b[\u003Cu'` pops the mode, and `reset` is the sledgehammer.\n4. **A live step timer is not progress.** `(1h 38m • esc to interrupt)` can mean \"waiting on a\n   background terminal that no longer exists\". Confirm progress from a new non-timer event in the session\n   transcript\u002Frecord; an mtime change alone is insufficient.\n5. **Do not restart a lane that is waiting on a human.** `Goal remains blocked pending human merge\n   approval` is not a wedged CLI.\n6. **One lane, one writer.** Never restart a lane mid-push, and never restart two surfaces that share\n   a worktree concurrently.\n7. **Never kill by pattern.** Do not clear a stuck lane with `pkill`\u002F`killall`: macOS `pkill -f x -u me` matches `\u002Fusr\u002Fbin\u002Flogin` and closed 20-21 cmux workspaces twice (2026-10-26, 2026-10-27). Use `ctrl+c` on the surface, or `pgrep -f -- '\u003Canchored>'` then `kill \u003CPID>`.\n8. **The dialog flag latches after the dialog is gone.** Once a surface has shown a dialog, `cmux send` and\n   `send-key` keep refusing with `surface:\u003Cid> is waiting on a question or dialog` **while a live shell prompt is\n   on screen**. Every write to that surface then needs `--force`. Verified on 20 lanes in one pass.\n9. **A parenthesised first prompt lands in bash, not the agent.** If the resume brief reaches the shell (agy still\n   on its splash), bash answers `syntax error near unexpected token '('` — the tell that your text never reached\n   the agent. Send a paren-free brief, only after the composer appears, and read that error as \"check the CLI is\n   up\", not \"the shell is broken\".\n10. **Delegation may be invisible from a short capture.** Follow `cmux-steer`'s full-buffer rule before assessing\n    a lane; a footer or grep result cannot establish that it is idle.\n11. **`codexc` \u002F `claudec` are shell ALIASES, not executables — they do not exist in a script.** Both are\n    defined in `~\u002F.bashrc` (`alias codexc='codex resume --last'`), so a Bash tool call, a cron job, or any\n    non-interactive shell reports \"command not found\" (or silently does nothing). Inside `cmux send` the target\n    is an interactive login shell so the alias resolves, but never rely on it from a script: dispatch\n    `codex resume \u003Cuuid>` \u002F `claude --resume \u003Cuuid>` explicitly. This is also why the explicit-id rule above\n    matters — the alias additionally hardcodes `--last`, which is the wrong conversation wherever lanes share a\n    directory.\n12. **Enumerate workspaces fresh every session; do not reuse refs.** cmux workspace and surface refs are\n    session-scoped and are **re-numbered** on restart. After one restart the same lane moved from\n    `workspace:1000250001` to `workspace:1000260001`. Re-run `cmux list-workspaces` and `cmux tree --all` and\n    re-derive the surface list, or a steer lands on an unrelated lane. Record the batch in a scratch dir so the\n    capture, the decision and the verification all reference the same generation.\n\n## Automation\n\n`scripts\u002Fcmux-cli-restore.sh` does steps 2-5 for one surface, and supports `--dry-run` (report the CLI\nand the plan, touch nothing) and `--list-above-p1` (enumerate in-scope terminal surfaces with their CLI\nand last session-write age, so you can pick the wedged ones instead of restarting everything).\n\n```bash\nscripts\u002Fcmux-cli-restore.sh --dry-run --workspace workspace:1000120002 --surface surface:1000120005\nscripts\u002Fcmux-cli-restore.sh --list-above-p1\nscripts\u002Fcmux-cli-restore.sh --workspace workspace:1000120002 --surface surface:1000120005\n```\n\nThe script does not do step 2's live-state check (full scrollback plus two captures 20-30 s apart): run that preflight yourself before any non-`--dry-run` invocation, and never run it on a surface you have not confirmed is wedged.\n\nThe script refuses to type into a surface whose prompt line still contains CSI-u residue, and it\nverifies the restart at the process level before reporting success.\n\n### Fleet recovery (many wedged lanes at once) — measured on 14 lanes, 2026-11-04\n\nRecover lanes on distinct worktrees in parallel; serialize lanes that share a worktree (trap 6). Settle quota\nonce for the fleet and verify each resumed session from its transcript, not a screen diff or timer.\n\n1. **Settle quota first** (trap 2): three probes. Do not touch 14 lanes on a wall a restart cannot clear.\n2. **Enumerate generations fresh** (trap 12) and identify each lane by its own full capture and process\u002Fsession\n   evidence. Do not use a tail, grep, footer, or banner alone to select a lane; if activity is ambiguous, leave it.\n3. **Per lane, in worktree order:** capture the pre-restart process\u002Fsession identity; `ctrl+c` x2; confirm the\n   shell prompt; cancel any CSI-u residue with `ctrl+c` and confirm a clean prompt before typing. Read that pane's\n   own `codex resume \u003Cuuid>` hint; dispatch that exact id (never `codexc`), checking both `cmux send` and Enter\n   exit codes. Before sending `continue` or accepting a goal dialog, verify a new PID and the same session id.\n   On a failed, missing, or mismatched check, send nothing further and report unverified.\n4. After sending `continue`, require a new non-timer transcript\u002Fsession event to report progress. Take the\n   two-sample full-buffer captures required by `cmux-steer`; a changed screen alone is not proof of recovery.\n5. Report each lane's UUID, process\u002Fsession verification, transcript progress evidence, and any remaining wall\n   as unverified unless independently confirmed at the account level.\n\nA resumed lane that immediately re-prints the wall on its next long turn is a genuine wall, not a bad resume:\nstop that lane and report the reset time rather than looping the restart.\n","# cmux-cli-restore — exit the CLI, restart it with the resume wrapper\n\nThe whole procedure in one line: **exit the app cleanly, sanitize the shell line, restart with\n`codexc` \u002F `claudec`, verify at the process level.**\n\nThat is all this skill does. It is not a session-recovery framework, it does not restore work, and it\ndoes not pretend a restart clears a wall the wall itself has not cleared.\n\n## What \"restart\" means here (say it precisely)\n\n`codexc` is `codex resume --last` and `claudec` is `claude --continue`. So a \"restart\" is:\n\n- a **new CLI process** on the surface's tty, and\n- the **same conversation**, resumed from its own session file.\n\nNothing is lost and nothing starts over. Verified on 9 Codex lanes at once: each tty showed a fresh\n`\u002Fusr\u002Fbin\u002Fcommand codex resume \u003Cuuid>` while the long-lived session stayed intact.\n\n## Procedure\n\n1. **Resolve the surface and its CLI.** Never guess from the title.\n   ```bash\n   cmux top --workspace \u003Cws> --processes | grep \"surface surface:\u003Csf>\"   # gives tty=ttysNNN\n   ps -Ao pid,tty,etime,command | awk '$2==\"ttysNNN\"'\n   ```\n   | process on the tty | CLI | restart with |\n   |---|---|---|\n   | `\u002Fusr\u002Fbin\u002Fcommand codex resume …` or `node …\u002F@openai\u002Fcodex` | Codex | `codexc` |\n   | `claude` (with `CLAUDE_CONFIG_DIR=~\u002F.claude-wa` in its env) | claudewa | `claudewac` |\n   | `claude` | Claude Code | `claudec` |\n   | `agy.real --conversation …` | Antigravity | no resume alias — relaunch `agy --model gemini-3.8-flash-high` and recover context with `\u002Fhr` (see § Swap a usage-limited Claude lane to Gemini) |\n   | `pi` | pi | no wrapper — relaunch `pi` |\n   | only a shell | nothing to restore | stop; it is a `SHELL` surface |\n\n2. **Exit it.** First confirm the limit\u002Fwedge text is the lane's current state: full scrollback plus two captures 20-30 s apart, no live spinner or subagent growth; a stale banner above active work means leave it. Then `cmux send-key --workspace \u003Cws> --surface \u003Csf> ctrl+c`, wait ~3 s, then check for the\n   shell prompt. Codex sometimes needs a second `ctrl+c`. Do not proceed until you can see the prompt.\n\n3. **Sanitize the shell line — this step is not optional.** A TUI that enabled the enhanced keyboard\n   protocol can leave CSI-u fragments (`9;5u`, `17;5u`, `5u`) sitting on the shell line after the app\n   quits. Typing on top of that produces `bash: 5ucodexc: command not found`. Send `ctrl+c` (bash\n   cancels the line) and confirm the prompt is clean *before* typing anything.\n\n4. **Restart with the wrapper — aimed at THIS conversation.** `codexc` is `codex resume --last`, and\n   \"last\" is not \"this one\": a newer conversation in the same directory wins. So resolve the lane's\n   session id from the pre-restart process listing and resume it explicitly. If the id cannot be\n   resolved, stop — do not fall back to `--last`. `claudec`\u002F`claudewac` cannot be identity-verified this\n   way, so a Claude lane is refused rather than resumed blind.\n   ```bash\n   cmux send --force --workspace \u003Cws> --surface \u003Csf> \"codex resume \u003Cuuid>\"\n   cmux send-key --force --workspace \u003Cws> --surface \u003Csf> enter\n   ```\n   **Do not accept a goal dialog here.** A Codex resume can open `1. Resume goal` \u002F `2. Leave paused`,\n   and pressing Enter lets the lane start work immediately. Acceptance happens only in step 5, after the\n   resumed conversation has been proven to be the right one.\n\n5. **Verify from the process, not the screen — and require a NEW pid.**\n   ```bash\n   ps -Ao tty,pid,etime,command | awk '$1==\"ttysNNN\" && \u002Fcodex resume|claude\u002F'\n   ```\n   Snapshot the pids before the restart and require one that was not there, **and** require the resumed\n   conversation to be the same id (a `--last` resume into a different session exits 10). **Only after\n   that check passes** may a `Resume goal` dialog be accepted — a wrong or unknown session must never\n   reach the point where the lane begins work: an old process that\n   survived is **not** a restart, and `bash: 5ucodexc: command not found` leaves exactly that\n   situation (the old TUI still running while your command never ran). Check the `send` and `Enter`\n   exit codes too; a swallowed send failure must not be reported as success.\n   Then confirm the *session* is live from its transcript or session record. A fresh mtime alone, a timer, spinner,\n   banner, or changed screen does not prove progress; require a new non-timer transcript\u002Fsession event. If that\n   evidence is unavailable, report the resume as unverified.\n   Codex: newest `~\u002F.codex\u002Fsessions\u002F**\u002Frollout-*\u003Cuuid>*.jsonl`. pi: `~\u002F.pi\u002Fagent\u002Fsessions\u002F*\u002F*.jsonl`.\n\n## What a restart does NOT fix\n\nReport these instead of restarting, because a restart only re-hits the same wall:\n\n| Wall | How it reads | Real unblock |\n|---|---|---|\n| Usage allowance spent | `You've hit your usage limit … try again at \u003Cdate>` | wait for the reset, or **swap the lane**: Codex lane to Claude, Claude lane to Gemini (next two sections) |\n| Model at capacity | `Selected model is at capacity. Please try a different model.` | different model, or wait |\n| 429 retry exhaustion | `exceeded retry limit, last status: 429 Too Many Requests` | wait; a restart burns another retry |\n| 8-hour autonomy box | `autonomy rule requires a live human renewal` \u002F `eight-hour authorization expired` | a live human renewal, not a restart |\n| Human gate | `Goal remains blocked pending human merge approval` | `MERGE APPROVED` |\n\n## Swap a usage-limited Codex lane to Claude (verified 2026-10-27, 9 lanes)\n\nA restart re-hits the Codex wall, so continue the work on Claude instead. Per surface:\n\n0. **Confirm the wall is current before touching the lane.** Follow `cmux-steer`'s full-buffer rule and use independent process\u002Fsession evidence; never decide from a tail or grep. If the lane shows active work, a dialog, or the evidence is inconclusive, leave it. Record the Codex session id so the lane can return to Codex after the reset.\n1. `ctrl+c` twice (`--force` if a dialog is open); capture and require a shell prompt (`[$%] ?$`). If not at a shell, stop and report.\n2. `cmux send ... \"ANTHROPIC_MODEL=claude-sonnet-5-5 claude --permission-mode bypassPermissions\"` then `send-key enter` (match the old lane's mode: that flag is for a lane that ran full-permission, e.g. `--yolo`; if the Codex lane was approval-gated, launch `claude` with no permission flag).\n3. Poll `capture-pane` until `bypass permissions` or `? for shortcuts` appears (≤36 s); a folder-trust prompt means stop and report.\n4. `cmux send ... \"\u002Fhr resume the work Codex session \u003Cid from step 0> was doing in this worktree; it stopped at the usage limit; continue until done.\"` then `send-key enter`. Where `\u002Fhr` is not installed, brief the new lane to read the worktree's `nextsteps`\u002Fbead state and the git log instead.\n5. Verify a spinner line (`✻ Thinking… (12s`) within ~60 s, via two captures. A Claude lane that ends its first turn with a recap and \"needs MERGE APPROVED\" is not stuck: send once, \"do not stop at a recap; continue every step that does not need a user-only gate (merge approval, credentials, spend)\".\n\nOther Codex traps seen in the same run: a `Hooks need review` menu (`1. Review hooks \u002F 2. Trust all \u002F 3. Continue without trusting`) — pick **3** (`cmux send ... \"3\"` selects immediately); never choose \"Trust all\" for the user. A `Resume goal \u002F Leave paused` menu: Enter resumes (only after the session id check in Procedure step 5).\n\n## Swap a usage-limited Claude lane to Gemini (agy) — verified 2026-10-27, 20 lanes\n\nWhen Claude is walled (`You've hit your session limit · resets \u003Ctime>`) the lane is stuck until the reset, and\na restart re-hits the same account-level wall. Gemini is a different provider and keeps working — `agy models`\ncurrently offers `gemini-4-argon-*` and `gemini-3.8-flash-*`; use only `gemini-3.8-flash-high` (or `-medium`) per the Gemini model invariant, and never fall back to Gemini 3.1 Pro\nor older Pro models. Per surface:\n\n0. **Confirm the wall is current before touching the lane.** Follow `cmux-steer`'s full-buffer rule and use independent process\u002Fsession evidence; never decide from a tail or grep. If the lane shows active work, a dialog, or the evidence is inconclusive, leave it.\n1. **`escape` first — always.** A walled lane re-arms itself (`Continuing automatically at 4:20pm · esc to\n   cancel`). Until that wait is cancelled, `\u002Fexit` is swallowed and the lane looks unexitable. Require the\n   confirmation `Automatic continue cancelled`.\n2. `cmux send --force … \"\u002Fexit\"` then `send-key --force … enter`. The three-option menu (`1. Exit and stop\n   tasks \u002F 2. Move to background and exit \u002F 3. Stay`) defaults to **1**; Enter accepts it. Prefer **2** only when\n   live subagents are worth keeping — on a dead provider quota they are normally already dead.\n3. Require a real shell prompt. The pane prints `Resume this session with: claude --resume \u003Cuuid>` just above it;\n   keep that uuid — it is the only route back to Claude after the reset.\n4. `cmux send --force … \"agy --model gemini-3.8-flash-high --dangerously-skip-permissions\"` (match the old lane's mode: pass `--dangerously-skip-permissions` only if the Claude lane ran full-permission, otherwise omit it) then `send-key --force … enter`.\n5. Wait for a frame containing `Gemini 3.8 Flash` **and** the composer `>` (≈3 s, poll ≤36 s). Do not type into the\n   model splash — see trap 9.\n6. Send the resume brief in ONE line: cwd, branch, PR number, why the previous session died, and the literal words\n   `Run the \u002Fhr history-resume workflow`. `agy` has no session-resume alias, so `\u002Fhr` (or the worktree's own\n   `nextsteps`\u002Fbead state) *is* the recovery mechanism.\n7. Verify the model AND a turn: `Gemini 3.8 Flash · high` in the footer, plus `● Ran …` \u002F `● Explored …` \u002F\n   `Thought for …`, plus a second capture that shows the screen changed.\n\n### What this actually buys you (measured across 20 lanes)\n\n`\u002Fhr` is read-heavy by design, so the first turn yields a briefing, not code. After switching 20 lanes: 8 were\nrunning a command or delegating subagents, 12 finished the one step they were given and parked at the composer,\nand **0 had edited a file** — no `● Edited`\u002F`● Created`, and every recent worktree mtime was `__pycache__\u002F*.pyc`.\nIf you want code, make it standing: \"work autonomously to the PR's next gate — green CI plus the evidence its\nstage needs — take multiple steps without stopping to report; stop only at an operator-only gate\". Sending that\nto the 12 parked lanes moved 10 of them to `esc to cancel`\u002F`task(s)` within 25 s. The other two were parked\nlegitimately (an `APPROVED` PR with nothing left but `MERGE APPROVED`; a lane holding on an explicit operator\nhold) — read the tail before assuming a parked lane is broken.\n\n## Surfaces lost, not wedged (shells killed, workspace closed)\n\nDifferent problem: the process is gone, so there is nothing to ctrl-c. Recreate from the autosaved snapshot, never from memory.\n\n- Snapshots: `~\u002FLibrary\u002FApplication Support\u002Fcmux\u002Fsession-history\u002F*.json` (newest before the incident); each terminal panel carries `terminal.resumeBinding.command`, `kind`, `checkpointId`. Events (`~\u002F.cmuxterm\u002Fevents.jsonl`) rotate within hours; `closed-item-history-*.json` holds only individually closed panels.\n- Diff **panel ids**, not just workspace ids. Workspaces that survive on their browser tabs lose all their terminals (a workspace-level diff misses them). After a first restore the ids change, so match by title or a state file or a retry duplicates the workspace.\n- Recreate: `cmux workspace create --name=\u003Ctitle> --cwd \u003Cdir> --focus false` (write `--name=`; a title starting with `-----` is parsed as a flag), extra terminals `cmux new-surface --workspace \u003Cref> --working-directory \u003Cdir> --focus false`, browser tabs `new-surface --type browser --workspace \u003Cref> --focus false --url \u003CurlString>`, then `workspace-action --workspace \u003Cref> --action pin` and `reorder-workspace --workspace \u003Cref> --index \u003Cn>` to snapshot order. Always pass the restored workspace ref explicitly: `new-surface` and `workspace-action` default to the current workspace, which would modify the operator's live one. Recreate shells only: never pass a snapshot's recorded `resumeBinding.command` (or any recorded text) as `--command`. Never `select`\u002Ffocus. Skip a panel whose cwd no longer exists; cloud (VNC) workspaces reject `new-surface`.\n- Resuming an agent in a restored shell: only by explicit id, never `codexc`\u002F`claudec` (they take the newest conversation in that directory, which in a shared worktree may belong to another lane). Read the conversation uuid from the snapshot panel (`checkpointId`, or the uuid inside `resumeBinding.command`, read as data and never executed), run `codex resume \u003Cuuid>` \u002F `claude --resume \u003Cuuid>`, and apply Procedure step 5's checks (new pid, same session id). No uuid, or another writer on the worktree: leave the shell bare and report it.\n- Closing a duplicate you created: pinned workspaces refuse `close-workspace` until unpinned.\n- Optional local helpers (machine-local, not shipped; reimplement from the recipe above elsewhere): `~\u002F.cmux-backups\u002Fcmux_restore_round2.py` (workspaces) and `cmux_restore_round3_surfaces.py` (surfaces in survivors). Record the order, pins and surfaces in `~\u002Froadmap\u002Fcmux-workspace-layout-\u003Cdate>.md` for the next incident.\n- Restore authorization: a clear live user request is enough (relaxed 2026-10-27); never close or replace live workspaces to make it fit.\n\n## Submitting text to a resumed lane\n\n`cmux send` refuses when the agent prompt already holds unsent text (\"holds text someone is typing\"); the following `send-key enter` then submits the **old** text. Read the composer first; send the message, then Enter, then confirm the composer cleared.\n\n## Traps that have burned this exact procedure\n\n0. **A stale footer is not lane state.** Follow `cmux-steer`'s full-buffer rule and confirm current activity from\n   independent process\u002Fsession evidence. Never classify a lane from its footer, tail, or grep result.\n1. **An open Codex dialog swallows everything.** If the surface rests on a Codex menu\n   (`Press enter to confirm or esc to cancel`, `Enter to select`), plain keystrokes are dropped and\n   `cmux send` refuses without `--force` — so your exit *and* your `codexc` both vanish with no error.\n   Send `esc --force` first, then use `--force` on the exit and restart keys. Verified live: without it,\n   a lane sat on its interrupt menu through three ctrl+c attempts and a codexc.\n2. **Stale banners are history, not state — and a pane banner is NOT a quota reading.** A lane can display\n   `You've hit your usage limit ... try again at \u003Cdate>` while working perfectly. Never accept the banner,\n   and never accept the *date in the banner*, as the fleet's quota state: on 2026-11-04 six panes still read\n   \"try again Nov 9th \u002F Nov 10th\" while quota had already reset.\n   **Decide quota from the account, not from the pane.** Run three cheap non-interactive probes, recording each\n   command's exit status and exact final reply in its own temporary file:\n   ```bash\n   for i in 1 2 3; do\n     reply_file=$(mktemp) || exit 1\n     if codex exec --skip-git-repo-check --output-last-message \"$reply_file\" \"reply P$i\"; then\n       status=0\n     else\n       status=$?\n     fi\n     printf 'P%s exit=%s final reply:\\n' \"$i\" \"$status\"\n     cat \"$reply_file\"\n     printf '\\n'\n     if [ \"$status\" -eq 0 ] && cmp -s \"$reply_file\" \u003C(printf %s \"P$i\"); then\n       printf 'P%s: clean\\n' \"$i\"\n     fi\n     rm -f -- \"$reply_file\"\n   done\n   ```\n   Count a probe clean only when its exit status is 0 and its exact final reply is `P1`, `P2`, or `P3` as\n   requested. Count a failure toward a genuine wall only when its nonzero exit and saved final reply confirm an\n   account usage limit; other failures or missing replies are inconclusive. Three clean replies mean quota is\n   available and future-dated pane banners are stale. Three confirmed limit failures mean a genuine account\n   wall; stop and report the reset time. Any other result is inconclusive, so do not infer quota state from it.\n   Do not dispatch one `codex exec` fan-out per lane to test this; one probe answers it fleet-wide.\n3. **CSI-u garbage.** See step 3. Symptom: `bash: 9: command not found`, `bash: 5ucodexc: command not\n   found`. The cause is the terminal still encoding keys as `ESC [ code ; mods u`; `ctrl+c` on the\n   shell line is the cheap fix, `printf '\\x1b[\u003Cu'` pops the mode, and `reset` is the sledgehammer.\n4. **A live step timer is not progress.** `(1h 38m • esc to interrupt)` can mean \"waiting on a\n   background terminal that no longer exists\". Confirm progress from a new non-timer event in the session\n   transcript\u002Frecord; an mtime change alone is insufficient.\n5. **Do not restart a lane that is waiting on a human.** `Goal remains blocked pending human merge\n   approval` is not a wedged CLI.\n6. **One lane, one writer.** Never restart a lane mid-push, and never restart two surfaces that share\n   a worktree concurrently.\n7. **Never kill by pattern.** Do not clear a stuck lane with `pkill`\u002F`killall`: macOS `pkill -f x -u me` matches `\u002Fusr\u002Fbin\u002Flogin` and closed 20-21 cmux workspaces twice (2026-10-26, 2026-10-27). Use `ctrl+c` on the surface, or `pgrep -f -- '\u003Canchored>'` then `kill \u003CPID>`.\n8. **The dialog flag latches after the dialog is gone.** Once a surface has shown a dialog, `cmux send` and\n   `send-key` keep refusing with `surface:\u003Cid> is waiting on a question or dialog` **while a live shell prompt is\n   on screen**. Every write to that surface then needs `--force`. Verified on 20 lanes in one pass.\n9. **A parenthesised first prompt lands in bash, not the agent.** If the resume brief reaches the shell (agy still\n   on its splash), bash answers `syntax error near unexpected token '('` — the tell that your text never reached\n   the agent. Send a paren-free brief, only after the composer appears, and read that error as \"check the CLI is\n   up\", not \"the shell is broken\".\n10. **Delegation may be invisible from a short capture.** Follow `cmux-steer`'s full-buffer rule before assessing\n    a lane; a footer or grep result cannot establish that it is idle.\n11. **`codexc` \u002F `claudec` are shell ALIASES, not executables — they do not exist in a script.** Both are\n    defined in `~\u002F.bashrc` (`alias codexc='codex resume --last'`), so a Bash tool call, a cron job, or any\n    non-interactive shell reports \"command not found\" (or silently does nothing). Inside `cmux send` the target\n    is an interactive login shell so the alias resolves, but never rely on it from a script: dispatch\n    `codex resume \u003Cuuid>` \u002F `claude --resume \u003Cuuid>` explicitly. This is also why the explicit-id rule above\n    matters — the alias additionally hardcodes `--last`, which is the wrong conversation wherever lanes share a\n    directory.\n12. **Enumerate workspaces fresh every session; do not reuse refs.** cmux workspace and surface refs are\n    session-scoped and are **re-numbered** on restart. After one restart the same lane moved from\n    `workspace:1000250001` to `workspace:1000260001`. Re-run `cmux list-workspaces` and `cmux tree --all` and\n    re-derive the surface list, or a steer lands on an unrelated lane. Record the batch in a scratch dir so the\n    capture, the decision and the verification all reference the same generation.\n\n## Automation\n\n`scripts\u002Fcmux-cli-restore.sh` does steps 2-5 for one surface, and supports `--dry-run` (report the CLI\nand the plan, touch nothing) and `--list-above-p1` (enumerate in-scope terminal surfaces with their CLI\nand last session-write age, so you can pick the wedged ones instead of restarting everything).\n\n```bash\nscripts\u002Fcmux-cli-restore.sh --dry-run --workspace workspace:1000120002 --surface surface:1000120005\nscripts\u002Fcmux-cli-restore.sh --list-above-p1\nscripts\u002Fcmux-cli-restore.sh --workspace workspace:1000120002 --surface surface:1000120005\n```\n\nThe script does not do step 2's live-state check (full scrollback plus two captures 20-30 s apart): run that preflight yourself before any non-`--dry-run` invocation, and never run it on a surface you have not confirmed is wedged.\n\nThe script refuses to type into a surface whose prompt line still contains CSI-u residue, and it\nverifies the restart at the process level before reporting success.\n\n### Fleet recovery (many wedged lanes at once) — measured on 14 lanes, 2026-11-04\n\nRecover lanes on distinct worktrees in parallel; serialize lanes that share a worktree (trap 6). Settle quota\nonce for the fleet and verify each resumed session from its transcript, not a screen diff or timer.\n\n1. **Settle quota first** (trap 2): three probes. Do not touch 14 lanes on a wall a restart cannot clear.\n2. **Enumerate generations fresh** (trap 12) and identify each lane by its own full capture and process\u002Fsession\n   evidence. Do not use a tail, grep, footer, or banner alone to select a lane; if activity is ambiguous, leave it.\n3. **Per lane, in worktree order:** capture the pre-restart process\u002Fsession identity; `ctrl+c` x2; confirm the\n   shell prompt; cancel any CSI-u residue with `ctrl+c` and confirm a clean prompt before typing. Read that pane's\n   own `codex resume \u003Cuuid>` hint; dispatch that exact id (never `codexc`), checking both `cmux send` and Enter\n   exit codes. Before sending `continue` or accepting a goal dialog, verify a new PID and the same session id.\n   On a failed, missing, or mismatched check, send nothing further and report unverified.\n4. After sending `continue`, require a new non-timer transcript\u002Fsession event to report progress. Take the\n   two-sample full-buffer captures required by `cmux-steer`; a changed screen alone is not proof of recovery.\n5. Report each lane's UUID, process\u002Fsession verification, transcript progress evidence, and any remaining wall\n   as unverified unless independently confirmed at the account level.\n\nA resumed lane that immediately re-prints the wall on its next long turn is a genuine wall, not a bad resume:\nstop that lane and report the reset time rather than looping the restart.\n",{"name":5,"description":7},"main","8144f00ebafc4306264c63239e4b9fa42e48a90e",".claude\u002Fskills\u002Fcmux-cli-restore",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":9,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill cmux-cli-restore",{"tool":68,"command":69},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill cmux-cli-restore",{"tool":71,"command":72},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill cmux-cli-restore","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcmux-cli-restore\u002FSKILL.md",true,[76,82],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fcmux-cli-restore.sh","SCRIPT","脚本",15213,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcmux-cli-restore\u002Fscripts\u002Fcmux-cli-restore.sh",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Ftest_cmux_cli_restore.py",19669,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcmux-cli-restore\u002Fscripts\u002Ftest_cmux_cli_restore.py",[87,95,102,110,118,127],{"skillNo":88,"name":89,"nameZh":13,"description":90,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":94},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":96,"name":97,"nameZh":13,"description":98,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":94},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":13,"description":105,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":109},"01M7622KQJ32AV4K5BXEMVSSEB","pr","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":111,"name":112,"nameZh":13,"description":113,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":117},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":119,"name":120,"nameZh":13,"description":121,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":122,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":117},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":13,"description":130,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":117},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]