Skip to content

hivemux quick start for Claude Code sessions

After installing hivemux, open Ghostty, run hm ~/code/api to start a project with Claude in window 1, and press Option+0 whenever a session is waiting for you. prefix then Shift+C adds another named Claude to the same project; prefix is Ctrl+A with the recommended keys.

Install hivemux first: see Install. The examples use two folders, ~/code/api and ~/code/web; use your own. On Linux, read Alt for Option throughout (Alt+0, Alt+1). On a Linux server with no desktop, run tmux there instead of opening Ghostty, or connect to it from another computer with hivemux connect.

  1. Open Ghostty. You are inside tmux: a status line at the top and the sidebar on the left. Right after the install, hivemux setup opens Ghostty for you, and a folder picker asks for your first project: Enter goes into a folder, and Tab starts Claude in the folder you are in.
  2. Open a project. hm ~/code/api (or right-click → New project) opens project api with Claude running in window 1.
  3. Open a second project. hm ~/code/web opens another. The first keeps working in the background.
  4. Watch the sidebar. Option+0 takes you to whatever is waiting for you.
  5. Add a Claude. prefix then Shift+C adds another named Claude to the current project.
  6. Close Ghostty whenever you like. Open it again and you are back where you were.
Terminal window
hm ~/code/api
hm ~/code/web

hivemux maps tmux concepts to your work:

  • Project = tmux session. hm <dir> creates one session per folder, named after the folder, or switches to it if it already exists. Inside the folder, plain hm is enough.
  • Window = tab. A new project has 1:claude, which runs Claude as claude -n <name>, and 2:shell for git, dev servers and other commands. Tabs live in tmux’s status line, not in Ghostty.
  • Sidebar. Every window has the same board on its left, showing every Claude in every project.

prefix s shows the session list; prefix then a window number switches windows. All keys are on the Keys page.

hivemux sidebar with project tiles: api running for 4 minutes, docs done, wayfinder idle, and two web tasks that need input

Each project is a grey tile under its name (with the Prism theme in Settings, in the project’s own colour), with how many of its Claudes wait (•1) and work (⋯3); each Claude is one line with a small mark, its name and a time. The project you are in has a blue ⬢ before its name. The sidebar’s top row counts all Claudes and how many need input, work and just finished (Claude 12 ● 2 need input ⋯ 3 running ✓ 4 done); the far left of the status line shows ⬡ hivemux.

Mark Meaning What to do
● needs input Waiting for an approval or an answer. The line is amber, with why under it: approve · <what Claude runs or edits>, question · <the question>, plan, input or error; the time is how long it has waited Look at it first: Option+0
✓ done Finished, not seen yet; the time is how long ago. After an hour it rests like idle Check the result; it turns idle once you look
⋯ running Working (a spinner turns in its place); the time is how long it has run Let it work
◦ idle Waiting for your next request; you have seen the result. The number on the right (142K) is how much context it carries Go there to give a new task

The task you are looking at is the lighter line. Option+1 to Option+9 go to the first nine Claudes, in project order. When a Claude account other than the default one is in use, the status line shows ◉ <account> (Claude accounts).

The task name shows above Claude’s input box, in the /resume list, in the Claude phone app and in the terminal title. hm uses the folder name, and prefix Shift+C uses the name you type in its popup. To rename a running task, double-click its line (or right-click → Rename); hivemux sends /rename to that Claude, waiting if it is busy.

When you start Claude yourself in a tmux pane, name it:

Terminal window
claude -n login-bug

Right-click the sidebar → New project opens a folder browser. Enter (or →) goes into the selected folder and ← back out, Tab starts the folder you are in like hm (as does Enter on ▶ Start here at the top), typing filters, and Ctrl+N makes a new folder and goes into it.

hivemux New project folder browser popup listing folders, with projects already open marked open

Just close Ghostty. Running Claudes keep working inside tmux. After a reboot, tmux-resurrect restores the layout and hivemux resumes each pane’s conversation with claude --resume <id>. Sessions you ended with /exit are not resumed. Read more in Resume Claude Code sessions.