Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jongwonyv0.3.3MITIn 1 marketplace
Opens the other side of /branch and /fork in a Ghostty split: the original on the left after /branch, the background session on the right after /fork.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; reads environment variables (TERM, TERM_PROGRAM).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code mod that opens the other side of /branch and /fork in a new
Ghostty split beside the session that ran the command. The built-in commands run
unchanged, and nothing extra is added to the conversation.
The original conversation always ends up on the left:
| Command | New pane | The pane you typed in |
|---|---|---|
/branch | on the left: claude --resume <original session id>, the conversation as it was before the branch | on the right, moved onto the new branch (built-in behaviour) |
/fork | on the right: claude attach <id>, the new background session /fork started | on the left, still the original conversation |
/branch returns focus to the pane you typed in when Ghostty is frontmost at the
moment of the split. After /fork focus follows Ghostty's default for a new split.
new surface configuration, split, focus, and a terminal's
pid), with AppleScript enabled (macos-applescript, on by default); with it
off the mod cannot open panes.osascript on PATH, and claude on the PATH of the shell a new Ghostty pane starts.claude command into it.The marketplace's install-all script leaves this plugin out, since it drives a macOS-only facility. Install it deliberately:
claude plugin marketplace add jongwony/cc-plugin
claude plugin install ghostty-split@cc-plugin
Then /reload-plugins in a running session.
The first time the mod opens a split, macOS asks whether the terminal may control
Ghostty (System Settings → Privacy & Security → Automation). Allow it; until then
no split opens and a toast shows the osascript error.
A candidate session runs on macOS with TERM_PROGRAM=ghostty, or
TERM=xterm-ghostty, while Ghostty is running. The second form admits a
background session (one /fork or --bg started) whose Claude daemon was
launched from Ghostty: the daemon's environment keeps TERM but not
TERM_PROGRAM.
The domain is a candidate where one of two terminals is found, and the split is made from it:
Its own terminal: the Ghostty terminal whose reported pid is this Claude's. This rests on Claude being launched directly in the pane, not through a launcher that forks it, so it leads the pane's foreground process group.
The terminal viewing it: a background session has no terminal of its own;
it runs under the daemon, and the pane showing it runs a claude client. When
no terminal has this Claude's pid, the split is made from the focused terminal
of Ghostty's front window, only while Ghostty is frontmost and that terminal's
foreground process is claude. That is the pane the command was just typed
in. Viewed from the mobile app, Ghostty is not frontmost, so nothing opens.
The mod API names no attached client's pid or tty, so focus is the signal: a
focus moved to another claude pane in the moment before the hook fires puts
the split beside that pane.
A session that is not a candidate is untouched: both commands run as built.
Inside a candidate, any osascript failure, before or after membership is
decided, shows as a toast: a denied Automation permission, a call that times
out, or an older Ghostty without the AppleScript dictionary. Until Automation
access to Ghostty is allowed, membership cannot be decided, so such a toast can
appear in any candidate.
/fork detection relies on the format of /fork's confirmation line; a Claude
Code that prints it differently opens no pane. The signal is that confirmation line exactly as /fork produced it: the mod
reads the row before other plugins' hooks on the stored row may rewrite it, so a
rewrite elsewhere does not change what the mod sees. It also presumes that no
other command in the session prints a line in that format; if one does, a
claude attach pane opens for it.
After /cd or a worktree move, /branch's left pane can show Claude's own hint,
cd … && claude --resume …; follow it there.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub jongwony/cc-plugin --plugin ghostty-splitPlugins from other owners that cover similar ground