Skip to main content

cc-ghostty

Your Claude Code sessions, at home in Ghostty.

PyPI Python CI License: MIT

One prompt: each project in its own tab, its dev server in a pane on the right

One prompt opens each project in its own tab, its dev server in a pane beside it (MP4).

You run a dozen Claude Code sessions, one per tab, one per repository. Then Ghostty crashes, the laptop reboots, or you simply call it a day, and they are all gone. cc-ghostty brings them back in seconds, after a crash, the next morning or on Monday, and keeps every session on the repository it belongs to.

Features

🔁 Pick up where you left off: after a crash, the next morning, on Monday

One command reopens every session you had open in its window, in its tab's place, resumed where it stopped: same conversation, same directory, same Claude account.

  • After a crash or a reboot: everything Ghostty took down with it, back in seconds.
  • The next morning, or after the weekend: quit Ghostty or shut the laptop down in the evening, and the next day the same command brings back yesterday's tabs, telling you where each session stopped (your last prompt, Claude's last answer) so you know what was next.

Sessions you closed on purpose stay closed, closing a tab or a window included, and sessions still running elsewhere are left alone. Closed one by mistake? --closed reopens the last tab or window you closed.

"My PC crashed, bring back everything I had open."

"Good morning! Reopen yesterday's sessions."

"Back from the weekend: where was I?"

🪟 Tabs, panes and dev servers from one prompt

"Open each project in its own tab, with its dev server in a pane on the right."

Claude writes the plan, cc-ghostty carries it out one tab at a time: the tab, then its panes, then the next tab, and brings you back to the tab you asked from. Every tab and pane it opens is remembered: a crash takes none of them away, dev servers included.

And when Claude is about to start something that keeps running, that you will want to watch, or that needs you (a dev server, tail -f, a login, an interactive tool), it asks first:

Where should this command run? Pane on the right · Pane below · New tab · Run it here

🧭 One repository, one session

Ask Claude for work in another repository and cc-ghostty steps in before anything is touched:

This is work on api, outside web. Where should it run? Send to an open tab · Open a new tab · Keep working here

Send the task to the Claude tab already open on that repository and it comes to the front, or start a fresh session in a new tab. Your sessions stay focused, and so do their contexts.

Every session is named after its repository as it starts (api, then api2…), so tabs, /resume and cc-ghostty ps tell them apart at a glance.

🗂️ All your sessions, one command away

cc-ghostty ps                 # every running session: name, account, repository
cc-ghostty focus api          # jump to its tab
cc-ghostty close api2         # close its tab for good
cc-ghostty split right ~/api  # a new session in a pane on the right
cc-ghostty split down --run "npm run dev"   # or any command: a dev server, logs…

Or just ask Claude: "open <project> in a new tab", "run the app in a pane on the right", "run the tests below", "go to the api tab", "close the dev server". The plugin's skills know the commands, so Claude never has to read their help.

👥 Multi-account aware

Work and personal Claude accounts side by side (several CLAUDE_CONFIG_DIR)? Each session is restored, listed and opened under its own account. A new Claude tab starts on the account claude picks in a new terminal or, with the same_account plugin option, on the account of the session opening it.

Install

In Claude Code:

/plugin marketplace add Toilal/cc-ghostty
/plugin install ghostty@cc-ghostty

That's it: sessions started from now on are remembered (sessions already running can still be found after a crash: "restore my sessions" falls back to scanning transcripts). Then run /ghostty:doctor once: it checks your setup and, on Linux, offers the one-line Ghostty config panes need.

For the shell commands too:

uv tool install cc-ghostty    # or: pipx install cc-ghostty

Requirements: a recent Claude Code (2.1.332+, for the mod that names sessions and hands work over), Python 3.11+ as python3 (standard library only; on macOS, Apple's python3 is too old: brew install python), and

  • Linux: Ghostty 1.4+ (GTK) and gdbus; for restoring tabs in their windows and order, the accessibility bus and PyGObject (python3-gi, gir1.2-atspi-2.0, already there on GNOME desktops);
  • macOS: Ghostty 1.3+, driven through its AppleScript support: macOS asks once to let your terminal control Ghostty.

Updates come with releases: /plugin marketplace update cc-ghostty, then /plugin update ghostty@cc-ghostty.

Outside Ghostty, restore prints the commands to run instead of opening tabs.

Learn more

Status: early. Daily-driven on Linux; macOS support is new: issues and ideas are welcome.

License

MIT

Metadata

Release files for cc-ghostty 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cc-ghostty 0.1.0
File Size Uploaded Provenance Actions
cc_ghostty-0.1.0.tar.gz 185.8 kB Without provenance Details for cc_ghostty-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cc-ghostty 0.1.0
File Interpreter ABI Platform Actions
cc_ghostty-0.1.0-py3-none-any.whl Python 3 none any Details for cc_ghostty-0.1.0-py3-none-any.whl

Total release size: 239.8 kB

Release files / cc_ghostty-0.1.0.tar.gz

Download URL cc_ghostty-0.1.0.tar.gz
Size 185.8 kB
Tags Source
SHA-256 checksum
How to use checksums
10cd4708e0bd94ab28ee2ed99ae136eec58e18628d39fa7df4620e34f6fc713f
BLAKE2b-256 checksum
How to use checksums
d3e16086786c2e8807bf0fcd196a71f955f0c2d7699e15f67ff1191c5aa9d111
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cc_ghostty-0.1.0-py3-none-any.whl

Download URL cc_ghostty-0.1.0-py3-none-any.whl
Size 54.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
948e096b3496e11c31e947f81567ddd3efac695dbd9b3b8ed21237f3167cf9c0
BLAKE2b-256 checksum
How to use checksums
bed69475ddb4403da6b9ed6a02129c6310a629219766a2b03234bd216f136e1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for cc-ghostty 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page