ghostty-use
Skill1.4k starsChanged 8 months agoMITView on GitHub
Snapshots, restores and reconciles Claude Code / Codex sessions inside Ghostty tabs across reboots. Use when quitting the Mac for an update (保存终端会话 / 重启前备份终端), after restart to reopen tabs with their original session IDs (恢复之前的窗口 / restore my ghostty tabs), or to audit which sessions survived. Not for resuming one conversation via its own --resume, terminal screenshots, or tmux state.
Trending
Less talk lately.thin dataabout the whole repository
Who's talking about daymade/claude-code-skills
- Ven0m0/claude-config“Add a structured external integration plan to the root TODO backlog”GitHub · Mar 18, 2026 · 4 reactions
- Ven0m0/claude-config“TODO list”GitHub · Jan 31, 2026 · 1 reactions
- sudosubin/agents.nix“claude-code-plugins.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Sep 26, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub (14 times).
On GitHub · 14
- Mar 18, 2026Add a structured external integration plan to the root TODO backlog — Ven0m0/claude-config4 reactions · 4 comments
- Jan 31, 2026TODO list — Ven0m0/claude-config1 reaction · 18 comments
- Oct 4, 2026claude-code-plugins.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
9 more on GitHub
- Aug 28, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Aug 24, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Aug 23, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Jul 5, 2026[Skills Review Weekly] 2026-07-06 — nozomiishii/dotfiles0 reactions
- May 30, 2026Add daymade-skills plugin marketplace to project settings — fmassonmips/mips-platform0 reactions
- Apr 11, 2026Mac 磁盘撑爆了怎么办? — vv13/blog0 reactions
- Mar 19, 2026feat: prompt manager — gohypergiant/agent-skills0 reactions · 3 comments
- Feb 6, 2026🟢 Importar skills de pesquisa, otimização e verificação (claude-code-skills) — arbgjr/sdlc_agentico0 reactions
- Nov 23, 2025Explore github-ops skill — PaulRBerg/dot-claude0 reactions · 1 comment
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- daymade-skill/CLAUDE.mdCLAUDE.md
- auto-repo-setupSkill
- bilibili-sourceSkill
- cli-demo-generatorSkill
- cloudflare-troubleshootingSkill
- competitors-analysisSkill
- data-visualization-disciplineSkill
- debugging-network-issuesSkill
- deep-researchSkill
- douban-skillSkill
- download-gemini-imagesSkill
- excalidraw-useSkill
- fact-checkerSkill
- feishu-doc-scraperSkill
- frontend-visual-qaSkill
- gemini-history-analyzerSkill
- github-contributorSkill
- github-opsSkill
- github-review-prSkill
- github-sensitive-data-cleanupSkill
- git-safety-netSkill
- i18n-expertSkill
- ima-copilotSkill
- kimi-useSkill
- llm-eval-harnessSkill
- llm-icon-finderSkill
- llm-wiki-setupSkill
- marketplace-health-checkSkill
- meme-creatorSkill
- notify-wecomSkill
- openclaw-model-switchSkill
- openclawSkill
- peer-messageSkill
- product-analysisSkill
- promptfoo-evaluationSkill
- prompt-optimizerSkill
- qa-expertSkill
- repomix-safe-mixerSkill
- repomix-unmixerSkill
- report-with-htmlSkill
- scrapling-skillSkill
- setup-notifications-via-wecomSkill
- slides-creatorSkill
- teams-channel-post-writerSkill
- terraform-skillSkill
- tibo-reset-codexSkill
- tunnel-doctorSkill
- twitter-readerSkill
- ui-designerSkill
- video-comparerSkill
- windows-remote-desktop-connection-doctorSkill
- wps-doc-scraperSkill
- youtube-downloaderSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 77
If your Claude profiles inject config via environment (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ghostty-use
Seamlessly carry Claude Code and Codex terminal sessions across a reboot: capture every live session with a liveness grade before shutdown, reopen all worthwhile tabs with their original session IDs after restart, and prove nothing was silently dropped.
Ghostty on macOS has no session-restoration CLI or AppleScript tab dictionary (verified
on Ghostty 1.3.1, 2026-10-04), so this skill walks a practical loop around that limit:
ps-derived session inventory → liveness-graded snapshot → keystroke-paste restore →
automatic reconciliation that makes every paste failure visible.
Entry decision tree
| You just said / want | Run |
| Quitting for an update / reboot ("重启前保存会话") | snapshot |
| Rebooted, want tabs back ("恢复之前的窗口") | restore (then read its auto-check) |
| "Was anything lost?" / suspicion after restore | check |
| One specific session to bring back | restore --only <id-prefix> |
Quick start
# Before quitting (from any directory):
python3 <skill-dir>/scripts/ghostty_session.py snapshot
# After restart (from any directory; needs Accessibility permission for keystrokes):
python3 <skill-dir>/scripts/ghostty_session.py restore # active sessions only
python3 <skill-dir>/scripts/ghostty_session.py restore --all # include stale onesThe snapshot lands in ~/.ghostty-session/snapshots/ (home-relative, survives reboot).
restore finishes with an auto-check that prints N/M present plus a manual reopen
command for anything missing — read it before declaring success.
What snapshot records per session
- Anchor: the session UUID from the process command line (never match on process
names — argv[0] flips between bare
claudeand/usr/local/bin/claude, and name matching produced two false "all sessions gone" reports on 2026-10-04). - Liveness: last real interaction time read from the content of the session file — not the file mtime (idle TUIs keep touching files; on 2026-10-04 an "active this afternoon" read was contradicted by in-file timestamps showing death at 03:21).
- Channel health:
dead-channelwhen a Claude transcript's tail carries a structuredisApiErrorMessagewith "Login expired" — restoring such a tab reopens history but the session stops at/login; the snapshot marks it so you can skip it. Prose inside a conversation that merely discusses an error never counts (a healthy session that once talked about "Login expired" was misclassified before this rule). - Profile: parsed from
--settings .../settings/<name>.jsonwhen present, elsedirect.
Restore mechanics and limits
- Reopen = activate Ghostty → Cmd+T → clipboard-paste the reopen command → Return, one tab per session, followed by mandatory auto-reconciliation. Keystroke paste is timing-sensitive: an interruption between Cmd+T and the paste leaves an empty tab whose command was silently lost (measured 2026-10-04). The auto-check exists to make that visible; never skip it, and never declare success from paste return codes alone.
- Requires Accessibility permission for
osascriptkeystrokes (System Events). - Window grouping is not restorable — Ghostty's macOS accessibility surface exposes no tab→window mapping. All tabs reopen into one window; reorder manually if needed.
- Rollout files that codex itself cannot find anymore print
no-artifact; restoring them replays the samecodex resume <id>and stays a best effort.
Profile environment mapping (optional)
If your Claude profiles inject config via environment (e.g. CLAUDE_CONFIG_DIR), record
prefixes in ~/.ghostty-session/profile-env.json so restored tabs boot the same profile
context:
{"research": "CLAUDE_CONFIG_DIR=~/.claude-profiles/research", "family": "HTTP_PROXY=http://127.0.0.1:7890"}Without it, restores replay the captured --settings flag only. The mapping is
user-local data outside the skill bundle; no default mapping ships.
Troubleshooting
| Symptom | Cause / fix |
restore reports STILL MISSING | paste raced an interruption; run the printed reopen command by hand in a new tab |
no-artifact on a codex session | its rollout file is gone from ~/.codex/sessions; codex resume <id> is best-effort |
dead-channel sessions restored anyway | expected: history reopens, session stops at /login; re-auth or switch provider |
check says present but tab looks empty | another live process already claimed that session id (e.g. resumed in another tab) |
| osascript refuses keystrokes | grant Accessibility (System Events) permission; verify with osascript -e 'tell application "System Events" to get UI elements enabled' |
| session list empty right after opening tabs | TUIs take a few seconds to write their argv UUID; re-run after a pause |
Deeper details
- references/session_liveness.md — storage layouts (Claude projects / Codex sessions), transcript structures, resume-fork naming, liveness rules and the misclassification cases behind them. Read when a liveness result looks wrong or layouts changed after an app update.
- references/restore_mechanics.md — why Ghostty offers no CLI/AX restore path, the keystroke-paste protocol, reconciliation design, and the window-grouping boundary. Read before modifying the restore path.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

