GitHub

Your Claude Code sessions, at home in Ghostty

You run a dozen Claude Code sessions in Ghostty, one per tab, one per repository, all at work at once. cc-ghostty lists them under your prompt, a dot each in its state’s color, and takes you to the one that needs you in one key. Each session stays on its repository, tabs and dev servers open from one prompt, and when Ghostty crashes, they all come back.

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

Type it in Claude Code. Free and open source, MIT licensed.

One prompt opens every tab; a task goes to its repository’s session; Ctrl and the arrows walk the sessions, follow those at work and answer the one that asks.

Walk your sessions

As soon as a second Claude session is open in Ghostty, a band at the right end of the line under the prompt lists them all, in the order of Ghostty’s tabs. Each dot is a session: orange asks you something, green finished its turn, red is at work. It names the sessions before and after yours, the questions waiting, and from two sessions at work, how many.

Hold a key to run along the list: the tab comes to the front once you let go. Plugin options pick other keys (Shift or Alt with the arrows, or the numeric keypad), the sessions waiting for you first, or a band of its own above the prompt, with buttons to click. Every key and option.

At the prompt, a draft in it or not

Ctrl ← →
the session before or after, round the list
Ctrl ↑
the questions waiting: answer them all, one after the other, then back where you were
Ctrl ↓
the next session at work, to keep an eye on your agents

Know which one needs you

A session that finishes its turn, asks you a question or needs a permission rings its Ghostty tab: a 🔔 shows in the tab’s title until you visit it, and the window asks for attention.

Turn on auto_switch and, once you stop typing for a few seconds, the band counts down to the next session waiting for you, then takes you there; once none is left, back where you were. Any key calls it off, a draft in the prompt keeps you where you are, and it never leaves a session that asks you something.

One repository, one session

Ask for work in another repository and cc-ghostty steps in before anything is touched. Send the task to the Claude tab already open there and it comes to the front, or start a fresh session in a new tab. Either way it reports back to the session that sent it, at each important step and once done.

Keep working here and it stops asking about that repository for the hour. New sessions are named after their repository as they start, api, then api2, so the band, tabs and /resume tell them apart.

Tabs, panes and dev servers from one prompt

Claude writes the plan, cc-ghostty carries it out one tab at a time, in the window of the session that asked: 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, so a crash takes none of them away, dev servers included.

When Claude is about to start something that keeps running or needs you, such as a dev server, tail -f or a login, it asks where first. The run_commands plugin option answers for you, and saying where in your request wins over both. Stop a dev server and its pane stays, the command in its shell history: ↑ runs it again.

Pick up where you left off

One command reopens every session you had open, in its window and 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 is back in seconds. The next morning or after the weekend, the same command brings back yesterday’s tabs and tells you where each session stopped: your last prompt, Claude’s last answer.

Sessions you closed on purpose stay closed, and sessions still running elsewhere are left alone. Closed a tab by mistake? --closed reopens it.

All your sessions, one command away

List every running session with its account and repository, jump to one, close it, or split a pane beside you. Or just ask Claude: “go to the api tab”, “run the tests below”, “close the dev server”.

Work and personal Claude accounts side by side? Each session is restored, listed and opened under its own account.

# every session: name, account, state, repository
cc-ghostty ps
# the session waiting for you, or no switch for an hour
cc-ghostty next
cc-ghostty waiting pause 1h
# jump to its tab, or close it for good
cc-ghostty focus api
cc-ghostty close api2
# a session, or any command, in a pane
cc-ghostty split right ~/api
cc-ghostty split down --run "npm run dev"

Install

In Claude Code

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

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.

Everywhere
Claude Code 2.1.332 or later, and Python 3.9 or later as python3. On macOS, the one from the Xcode Command Line Tools is enough.
Linux
Ghostty 1.4 or later (GTK) and gdbus. To restore tabs in their windows and order, the accessibility bus and PyGObject, already there on GNOME.
macOS
Ghostty 1.3 or later, driven through AppleScript: macOS asks once to let your terminal control Ghostty.

Everything stays on your machine: cc-ghostty makes no network request and sends nothing anywhere. See what it runs, reads and stores.