agterm-restart
Restart every Claude Code running in agterm in place: Ctrl+C each one, read the "claude --resume <id>" line it prints on exit, and resume it in the same pane with its original launch flags. Picks up a new claude binary, settings.json env or MCP config without losing a conversation. Also wires a "Restart claude sessions" palette entry.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agterm-restart
- description
- Restart every Claude Code running in agterm in place: Ctrl+C each one, read the "claude --resume <id>" line it prints on exit, and resume it in the same pane with its original launch flags. Picks up a new claude binary, settings.json env or MCP config without losing a conversation. Also wires a "Restart claude sessions" palette entry.
- when_to_use
- Trigger on: agterm-restart, /agterm-restart, "restart all claude sessions", "перезапусти все клоды", "relaunch claude everywhere", after changing settings.json env / OTel endpoint / MCP servers that running sessions read only at startup, after a claude update that running sessions should pick up.
- allowed-tools
- [ "Bash" ]
02 资源文件 2
- 其他agterm-restart12.5 KB
- 脚本test_agterm_restart.py2.7 KB
03 SKILL.md 正文
agterm-restart
Only inside agterm.
agterm-restart --dry-run # list the panes it would restart, change nothing
agterm-restart # restart them
agterm-restart --match review # only panes whose "workspace / session" contains "review"
agterm-restart --busy # also panes whose status is active (interrupts the turn)
agterm-restart install # "Restart claude sessions" in the palette, chord cmd+ctrl+a>c
agterm-restart uninstall
What a run does, pane by pane (primary and split panes, every open window):
- Finds claude in
agtermctl tree: aclaude …foreground, a versioned binary path, or azsh -lc 'claude …; exec zsh -l'launcher. - Skips a pane whose status is
active(mid-turn) unless--busy, and — when run from a claude's Bash tool (CLAUDECODEset) — the pane it runs in, since it would kill itself. - Sends Ctrl+C pairs until the pane's foreground is no longer claude.
- Takes the session id from the
claude --resume <id>line claude prints on exit (falls back to a--resumein the old argv). No id → the pane is left at the shell and reported. - Types
claude --resume <id> <flags>: the original flags, minus the old--resume, duplicates and the positional prompt (a launch prompt must not be replayed as a new message). - Answers claude's "resume full session as-is / from summary" question with 2
(
--answer-choice 1|noneto change).
The palette entry runs the same thing in an overlay on the session it fired from, held open until a key is pressed so the report stays readable. The session under the overlay restarts too — typing goes under an overlay.
Flag/argv parsing is shared with agterm-fork (loaded from the sibling skill directory).
Tests: python3 -m pytest -q test_agterm_restart.py.
04 同仓库更多 Skills
yt-dub
Give a YouTube video Yandex's Russian voice-over (the Yandex Browser / voice-over-translation one) at any length — including past Yandex's 4-hour limit — and mux it into the best video YouTube serves, with the original sound kept as a second track; optionally drop the result into Plex on SugarDaddy. Also when only the translated audio is wanted.
codex-proxy
Run an OpenAI-compatible Chat Completions endpoint on localhost that spends the user's ChatGPT/Codex subscription instead of an API key — for apps that take a Base URL, API key and model id (dictation post-processing, editors, scripts). Install it as an always-on LaunchAgent, check its status, print the key, try a request, or debug a failing app.
revdiff-ru
Review a diff in revdiff with everything except the code translated into Russian, line numbering preserved 1:1 so annotations map back to the real files. One command does the translation; then /revdiff:revdiff opens the result.
peer-chat
A prompt starting with "Chat from Codex:" is a peer message: answer it only through peer-chat.py, never in your own output. Also use when the user says "chat with codex", "talk to codex", "work with codex", "do this with codex", "build this with codex", "discuss this with codex" (the agent in the other pane of this agterm split). Not for a one-shot task handed off, and not for a read-only second opinion.
memory-review
Use when an agent memory directory has grown large enough that nobody remembers what is in it, when memories look stale or contradictory, when the same fact seems to live in both memory and a CLAUDE.md, or when the user asks to review, prune, audit or clean up their memories. Also use before retiring a project whose memories should move somewhere else.
decomment
Strip the noise comments an AI agent left behind on a branch — the ones that restate the code line by line or narrate the change as a story ("was X, now Y", "added a guard here"). Git holds the history and the code holds the present; only genuinely non-obvious comments survive.