ops-resume

Solid

Reopen recently-closed Claude Code sessions, one per Ghostty tab. Finds recent session transcripts in ~/.claude/projects and resumes each in its own new tab via `claude --resume`, from the directory it was running in. macOS + Ghostty only.

AI & Automation 20 stars 6 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
44
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ops-resume Reopen recently-closed Claude Code sessions — **one session per Ghostty tab**. For every recent session transcript under `~/.claude/projects`, the helper opens a new Ghostty tab (`cmd+t`) and types `cd <cwd> && claude --resume <sessionId>`, so each session resumes in its own tab from whatever directory or repo it was running in. **Default:** every session touched in the **last 60 minutes**, from **any directory**. Platform: macOS + [Ghostty](https://ghostty.org) only. Tabs are driven via AppleScript System Events, so Accessibility permission must be granted to the terminal running this. ## How it works 1. Scans `~/.claude/projects/**/*.jsonl` and keeps files whose mtime is inside the lookback window (default 60 min) but older than `OPS_RESUME_MIN_AGE_SEC` (default 45s — so the session you are _currently_ in is not reopened). 2. Keeps only real interactive sessions (UUID filenames); skips subagent transcripts (`agent-*`), workflow journals, and empty/junk sessions. 3. Reads each session's original `cwd` from the transcript. 4. For each, opens a fresh Ghostty tab and resumes the session there. ## Usage Run the bundled helper. Pass through any flags the user gave (`$ARGUMENTS`). Always preview first with `--dry-run`, show the user the list, and — unless they clearly asked to "just open them" — confirm before opening real tabs (opening many tabs is hard to undo). ```bash # Preview what would be resumed ${CLAUDE_PLUGIN_ROOT}/bin/ops-resume --dry-run...

Details

Author
Lifecycle-Innovations-Limited
Repository
Lifecycle-Innovations-Limited/claude-ops
Created
3 months ago
Last Updated
yesterday
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

recap

Show recent Claude Code sessions across all projects, so the user can re-enter work after a reboot or context switch. Lists per session the absolute project path, a short summary, last activity, turn count, git branch, model, and a ready-to-paste resume command, and can re-open all of them at once in new terminal tabs. Use when the user asks "what was I working on", "which projects did I touch recently", "where did I leave off", "list my recent sessions", "how do I get back into that session", "open all my sessions again", or invokes /recap. Reads only local files; the default run is instant and offline.

29 Updated 5 days ago
noluyorAbi
AI & Automation Listed

recover-session

Triggered by /recover-session [name-or-keyword]. Recovers a dead or closed Claude session — an orca agent pane, the orca orchestrator, or a solo session — by finding its resume UUID + cwd and producing the exact `claude --resume` command. Use when a cmux pane died mid-run, a terminal was closed accidentally, or the user says "recover session", "resurrect <agent>", "bring back <task>", or "find the transcript for X".

1 Updated 1 weeks ago
orassayag
AI & Automation Listed

resume

Bring back a closed/dead executor tab — OR a crashed lead — WITH its full context. Reopens the same conversation via `claude --resume`, staged work intact. Invoke with /relay:resume, or when asked "bring back X", "reopen X", "X's tab closed, restore it", "resume that executor", "restore the crashed lead".

0 Updated 4 days ago
spacegrowth