Terminal mode
Open Code with g then c. Select a session to attach to its tmux windows.
Requirements
Hive needs tmux 3.2 or newer for Code, Chats, and quick terminals.
brew install tmux
Hive searches your login shell's PATH and common package manager locations. Set paths.tmux in Settings if the binary is elsewhere.
The local HTTP server must also be enabled. It is on by default.
Hive CLI compatibility
Code uses the same session records, isolated checkouts, and tmux sessions as the hive CLI when both use the same Hive data root. This is the default. Create, start, recycle, or delete a session from either interface and the other sees the same result.
Use the hive CLI config, commonly ~/.config/hive/config.yaml, to configure the shared session engine:
- repository search paths and agent profiles;
- repository rules, clone strategies, and recycled checkouts;
- setup commands and the tmux windows or panes created for a new session.
Hive Desktop reads that file when it starts, so restart the app after changing it. Desktop-only settings such as terminal appearance, shortcuts, quick terminals, Inbox flows, and Chats workspaces remain under the Desktop config root, commonly ~/.config/hive/desktop/.
See the hive CLI documentation for sessions, the configuration reference, and repository rules.
Sessions
Code lists active Hive sessions and their tmux windows. Closing Hive leaves those sessions running. You can attach to the same session from another terminal with tmux attach.
If a session has no running terminal, select Start session. Hive creates its configured windows and starts the agent. This starts a new agent process and does not resume the previous terminal process.
Startup failures stay in a copyable report with the failed command and available terminal output. If tmux terminates later, Hive keeps a termination notice even when exit details are unavailable. Restart starts a new process. It also recovers a session whose launch did not finish, for example after Hive quit during a start. Reconnect restores a lost connection to a session that may still be running. Reports survive switching sessions within the app, but not an app restart.
A setup command that exits successfully does not stop healthy panes. If every configured command finishes successfully and no terminal remains, the panel shows Session completed.
Stop session stops the tmux session and its processes while keeping the checkout and Hive session record. Recycle and Delete also change or remove the checkout.
For repository sessions, the optional status bar shows the branch, changes against the default branch including uncommitted work, whether there is uncommitted work, and unpushed commits. Select the line counts to review the changes. Connected GitHub, Gitea, and Forgejo repositories also show pull request, review, and check state. Use the status bar to open the checkout in your editor or file manager. Actions that target statusbar add buttons of their own; see Where actions run.
Tags
Tags are short words you put on a session, such as auto or backend. A session row with tags shows a tag icon; hover it to read them. The status bar above the terminal lists the attached session's tags. Edit session… in the session menu or the command palette changes a session's name and tags in one dialog; clicking the tags in the status bar opens it on the tags. Press Enter or type a comma to add a tag, and Backspace to remove the last one. Tags already used on other sessions are suggested.
Tags ignore case, so Auto and auto are the same tag, and a tag cannot contain a comma. The sidebar filter matches tags as well as names. The hive CLI reads and writes the same tags; see Sessions.
Views
A view is a saved filter over your sessions. Pick one from the … menu at the top of the sidebar. All sessions and Running are built in. Running replaces the old Only running sessions toggle. If you had that toggle on, Code opens on Running. Reload sessions is in the same menu.
The filter button beside the search box adds a condition on a tag, a repository, the run status, or the session's age. While a filter is active, a bar under the toolbar shows each condition as a chip, written like a GitHub search qualifier: status:running, tag:bug,ui, age:>7d. A leading - means "not", as in -repo:acme/site. Hover a chip to read it in words. The … menu marks the active view. Click a chip to change it, and click its × to remove it. Removing the last chip goes back to All sessions. With two or more chips, and between them keeps a session only when every chip matches it. Click it to switch to or. The × at the end of the bar goes back to All sessions.
The bottom of the filter menu says how many sessions the view hides. When you change a view's chips, a dot appears on the filter button and the menu offers Save and Reset. On a built-in view, Save as new view… asks for a name and makes a new view. Manage views… in the … menu opens a drawer where you rename, reorder, and delete the views you made. Pinned chats and scratch terminals always stay visible. The search box searches within the current view.
Saved views live in settings.yaml under views.code, so they follow your config to other machines. Which view is showing stays per machine.
Scratch terminals
The Terminals section holds a scratch tmux session for shells that are not tied to a repository. Use its + button or ⌘T to add tabs.
Scratch tabs can be selected, renamed, reordered, and closed. The session keeps running when Hive closes. Stop terminal stops every scratch tab.
Pop-up terminal
Press ⌘</kbd> on macOS or <kbd>Ctrl+ on Linux to open a shell over any area. In Code, it starts in the active pane's directory. Elsewhere, it starts in your home directory.
Hide the panel to keep its shell running, or use End this terminal to stop it. Quick terminal launchers use the same panel for tools such as lazygit, test watchers, and process monitors. See Actions.
Working in Code
Image input
Drag image files onto the terminal pane, or paste a screenshot from your clipboard with ⌘V on macOS. This works in Code, Chats, and pop-up terminals. Hive inserts an image reference; add your instructions and submit the prompt yourself. The agent must support image input and run on the same filesystem as Hive.
PNG, JPEG, GIF, and WebP files are supported, up to 20 MiB and 64 megapixels each. A gesture can include up to 10 images totaling 64 MiB. Unsupported or oversized images show an error. Switching away during preparation cancels insertion; a paste already sent can finish in its original pane.
Clipboard images are saved under desktop/assets/terminal-images/ inside the
data directory shown in Settings ▸ System. They survive restarts so resumed
conversations can still read them. Storage is limited to 1 GiB. Remove files
you no longer need from that directory to free space; conversations that still
reference removed files cannot read them again. Dragged files stay at their
original location.
Images in output
Images that Pi draws with the Kitty graphics protocol show in Chats, Code
panes, and pop-up terminals. Hive Desktop sets PI_IMAGE_PROTOCOL=kitty on the
chats, sessions, agent windows, and pop-ups it starts. A session started from
the hive CLI does not get it: set PI_IMAGE_PROTOCOL=kitty in that session's environment
yourself.
When you reopen a session or the terminal resyncs, Hive narrows the window by one column for a moment so Pi redraws its images. A program that does not redraw on a resize shows its text without the image.
Navigation
- Select a window from the sidebar to attach to it.
- Use ⌘1 through ⌘9 to switch tabs.
- Use ⌘← to focus the sidebar and ⌘→ to return to the terminal.
- Use ⌘B (Windows/Linux: Ctrl+B) to show or hide the left sidebar, including while a terminal has focus.
- Press / while the sidebar is focused to filter sessions.
- Press ⌘F in a terminal to search its recent scrollback.
- Drag windows and views in the sidebar to reorder them.
Press ? for the current shortcut list. Shortcuts can be changed under Settings ▸ Keyboard.
Actions can add commands to session and window menus. Quick terminals can open tools such as lazygit in the active checkout. See Actions.
Panes
A window shows every tmux pane where tmux lays it out, including panes split from another tmux client. The pane with the keyboard is tmux's active pane, so a click in a pane also selects it in tmux.
- ⌘D splits the active pane to the right and ⌘⇧D splits it downward. The new pane opens in the active pane's directory.
- ⌘⌥←, ⌘⌥→, ⌘⌥↑, and ⌘⌥↓ move between panes.
- Drag the border between two panes to resize them.
- ⌘⇧↩ zooms the active pane to fill the window, and again to restore the layout. A
zoomedbadge shows while a pane is zoomed. - ⌘⇧W closes the active pane. Closing the last pane closes the window. Hive asks first when the pane is running something.
On Linux, Ctrl+Shift+D splits right, Ctrl+Shift+O splits down, Ctrl+Alt with the arrow keys moves between panes, Ctrl+Shift+M zooms, and Ctrl+Shift+Q closes the pane.
Tabs and splits
A session's windows show as tabs above the terminal, in the order the sidebar lists them. The + on the tab row, like the one on the session's row, adds a terminal, an agent, or one of the session's views: Drive, Diff, and Tasks. A view opens once per session, so asking for it again brings its tab forward. It also lists any applets that list a tab.
The two buttons at the right of the tab row split the panel to the right or downward. The new panel asks what goes in it: a window that is behind another tab, a new terminal or agent, or a view. Splits nest, and each one can go either way.
- Drag a tab to reorder it or to move it into another panel. Moving a window's tab moves the window in tmux too. ⌘1 to ⌘9 count the tabs in the order they appear, a Drive, Diff, or Tasks tab included.
- Drag the divider between two panels to resize them. Double-click it to size them evenly, or press the arrow keys while it has focus. The button on the divider turns a side-by-side split into a stacked one, and back.
- Close this panel merges its tabs into the panel beside it. ⌘W closes the tab in front of you: a window's tab asks tmux first, and a view's tab closes at once.
The sidebar lists every tab of a session in the same order, windows and views alike. Select a view's row to bring it forward, and drag rows to reorder them. Hive remembers each session's tabs and splits across restarts, and forgets them when you close the session.
An agent in the session can arrange these tabs too, from MCP or from hive dt. See Agents and the layout.
Tasks
Open the Tasks page from the title bar's + menu, the command palette, or its configured shortcut, or add a Tasks tab to a session with its + button. Opening it from a Code session picks that session's repository. The shortcut brings the page forward, and pressed again returns to where you were. It reads the same hive hc task tree used by coding agents and the CLI. See the hive CLI task tracking guide for the shared task model.
Switch between two layouts at the top of the view:
- List shows epics with their subtasks nested under them. Filter it by status with the tabs on the right of the toolbar.
- Board shows a column for every status (Open, In Progress, Done, Cancelled). Drag a card to another column to change its status. Click a card to open its details in a drawer over the columns. Press Esc or click outside the drawer to go back to the board.
Search by title or ID, pick a repository (type in the picker to find one), and inspect epics, subtasks, blockers, comments, checkpoints, and linked sessions. You can change task status, follow blocker links, and prune completed work from the Tasks toolbar. Cancelling a task, or closing an epic that still has open subtasks, asks you to confirm first.
Each list row has its own actions. Click the status icon to pick a status, or hover the row for Mark done (Reopen on a closed task) and a menu with every status, Copy ID, and Delete. Right-clicking a row opens the same menu.
Use J and K (or the arrow keys) to move the selection. On the board, H and L move between columns. In the list, they fold and unfold epics. D marks the selected task done, or reopens it if it is closed. Y copies the selected task's ID.
Changes
Changes shows what an agent changed in the session on screen, without leaving Hive. It needs a repository session on this machine on screen, so scratch terminals, pinned chats, and sessions on a server don't offer it. To open it, add a Diff tab with the session's + button, or select the line counts beside the branch in the status bar.
Every changed file's diff sits in one scroll, with the files listed beside it. The picker in the header chooses what to review:
- Branch changes compares the working tree with the point where the branch left another branch, so it shows everything the agent did, committed or not. against beside it picks that other branch, local or remote, and Hive remembers your pick for the session. Without a pick it uses the default branch. Branch changes isn't offered on the default branch, or when Hive can't find a merge base, as in a shallow clone.
- Uncommitted compares the working tree with
HEAD. - Staged compares the index with
HEAD. - Unstaged compares the working tree with the index.
- Last commit, or any commit listed under Commits, shows that one commit against its parent. Use the arrows beside the picker, or [ and ], to step to an older or newer commit.
Branch changes, Uncommitted, and Unstaged include untracked files.
| Key | Action |
|---|---|
| j / k | Next or previous file |
| n / N | Next or previous hunk |
| v | Mark the file viewed, which folds it |
| o | Fold or unfold the file |
| s | Switch between unified and side by side |
| f | Show one file or every file |
| / or ⌘F (Windows/Linux: Ctrl+F) | Search the diffs |
| [ ] | Step to an older or newer commit |
| b | Show or hide the file list |
| c | Comment on the current file as a whole |
| C | Send with a note |
| r | Show or hide the comments panel |
| w | Walk through the agent comments |
| ⌘↵ (Windows/Linux: Ctrl+Enter) | Send your comments to the agent |
Selecting a file in the list shows that file on its own. Select it again, or press f, to see every file again. Select the bar between two hunks to show the unchanged lines around them, 20 at a time.
The view refreshes every 5 seconds while it's open and the window has focus. A viewed file comes back unviewed when it changes again. Viewed marks last until you quit Hive.
Drag either divider to resize the file list or the comments panel. Hive remembers the widths, and whether the file list is open. The comments panel starts closed each time. Buttons above the file list collapse or expand every folder and hide the files you've marked viewed.
Search
Press / or ⌘F (Windows/Linux: Ctrl+F) to search. Enter and Shift+Enter step through the matches, and a match in a folded file unfolds it. Search ignores case and covers the diffs Hive has read so far, up to 200 files around the one on screen. When it hasn't read them all, the bar shows how many it covered. It stops counting at 2,000 matches.
Comments
To comment, drag across line numbers, click the + beside a line, or select code with the mouse. Type in the box that opens and press ⌘↵ (Windows/Linux: Ctrl+Enter). A label button saves that label as the comment. Comments appear under their lines and as rows in the comments panel, which the comment button in the header or r opens. To comment on a whole file, use the comment button on its header or press c. A comment on a whole file shows only in the panel.
The send button in the header, which shows how many comments will go, pastes them into the session's agent and submits them, then clears them. Its arrow opens Send and Send with a note…: the note, which you can also start with C, says what the comments don't, and the agent reads it first. A note is sent once and not kept. If the session has one agent, it goes straight there, even mid-turn. With several agents, a dialog asks which one. An agent waiting on a prompt can't receive comments, because the Enter would answer the prompt. If a send fails, or no agent is running, your comments stay and an error offers Copy comments, which copies them as the text the agent would have received.
The panel keeps the last three reviews you sent from each session under Sent, in case the agent never acted on one. Copy one, or restore it to edit and send again.
Deleting a session deletes its comments and sent reviews, so the confirmation warns about any unsent comments, and a message afterward offers to copy them. Recycling warns too, but a recycled session keeps its comments unless the recycle deletes it.
Comments are kept on this machine, per session, until you send or delete them, and they survive quitting Hive. They point at line numbers, so a comment shows an amber dot when the agent edits the file after you commented. If the line has left the diff, or the comment was made under another comparison, the comment shows only in the panel. A comment made on a commit, or on the staged version, tells the agent which version its line numbers belong to. Select its line label to jump to it, which also switches the comparison back and unfolds the file. If the line has left the diff, this goes to the file instead.
Agent reviews
An agent can review the session's changes and leave comments for you. Its comments show under their lines in the Branch comparison against the default branch, with the agent's mark and name, and a bar for how much each one matters: red for an issue, blue for a suggestion, gray for a note. A comment on a whole file shows at the top of the file.
Overview, at the top of the file list, shows each review the way a pull request page does: the agent's summary, how many issues, suggestions and notes it raised, and its comments, each of which jumps to its lines. The count beside Overview says how many agent comments are waiting. Press Esc or select a file to go back to the diffs.
Agent comments go to the session's agent with your own when you press send, each marked with the agent that wrote it, and the send button's count includes them. Dismiss the ones you disagree with, from the comment or with Dismiss on the Overview for a whole review. To give the agent context on a comment, reply in the field at the bottom of its card. A comment's replies form a thread, and you can add, edit or delete as many as you need. The thread goes out with its comment when you send, each reply after the agent's text in order, and it goes when you dismiss the comment.
Press w or select Walk through on the Overview to step through every agent comment in file order. The diff scrolls to each one, and these keys act on it:
| Key | Action |
|---|---|
| r | Reply |
| d | Dismiss |
| n p | Next or previous comment |
| Esc | Stop |
A comment shows an amber dot when the lines under it changed after the agent wrote it. Agent reviews are kept in hive's database, so they survive quitting Hive and go when the session is deleted. A second review from the same agent replaces its first. A sent or dismissed comment is gone for good.
To ask for a review, tell an agent to review the session. An agent in the session or in a chat uses the diff_review_put tool on the hive-drive MCP server; any other agent runs hive review diff put.
Changes never writes to the checkout, so it's safe to use while an agent works in it. It can't stage or commit. These limits apply:
- A diff over 20,000 changed lines shows Open in editor instead. So does a very large file, and the list stops at 1,000 files.
- A changed image shows both versions side by side or with a swipe, with each version's dimensions and file size. An SVG also keeps its text diff. An image over 8 MiB shows a note.
- Other binary files, symlinks, pipes, and nested repositories show a note instead of a diff.
- An unstaged
mvshows as a delete plus an untracked file. - Untracked files have no line counts, so the totals match the status bar.
- A repository with no commits shows git's error.
Drive
An agent in a Code session can publish documents to Drive the same way a chat does. Hive does not change your agent's configuration on its own, so add the server from Settings ▸ MCP servers, or by hand. With the hive command installed, the entry needs no port:
claude mcp add --scope user hive-drive -- hive mcp serve --toolset drive,layout
Without it, use the address that Settings ▸ MCP servers shows:
claude mcp add --scope user --transport http hive-drive http://127.0.0.1:<port>/mcp/drive
The address stays the same across restarts. See Agents and the layout for hive mcp serve. The server needs the local HTTP server, which is enabled by default. An empty Drive tab in Code links to the same settings page.
Open a session's Drive tab with the + button on its tab row or its row in the sidebar. A document an agent opens arrives as a Drive tab behind the one you are reading, with a dot until you look at it. A session's documents belong to its repository, so every session of that repository shows the same ones, and they remain after the session is deleted. They are in <root>/<owner>/<repo>/ under the hive context directory, which hive drive init links into a checkout as .hive, so a file you write to .hive/plans/ shows in the tab within a second.
The tab, the Drive page, search, reorganizing, and the document tools work as they do in Chats. In a narrow tab the file tree starts hidden; the button in the header brings it back. A scratch terminal has no Drive tab.
An agent outside any chat or Code session, such as one you start in a plain terminal, can still write documents: it passes global as its session, and every such agent shares the Shared space. It has no tab. Read it on the Drive page under Shared, or find a document by name in the command palette's Drive tab.
Appearance
Settings ▸ Terminal controls the terminal font, size, weight, line height, letter spacing, visible windows, status bar, and session age badges. Age badges are on by default with a five-day threshold and appear once a Hive session reaches the configured number of whole days since creation. Scratch terminals and pinned chats do not get one.
⌘+ and ⌘- step the terminal text size from a focused terminal without opening Settings, and ⌘0 puts it back to 100% (13px). On Linux, use Ctrl+Shift with the same keys.
Turn on Monochrome agent icons in Settings ▸ Terminal for a subtler look: agent icons in the session tree and tabs then take the color of the icons around them.
Enable Show scrollbars in Settings ▸ Terminal to drag through scrollback in single-pane and zoomed Code terminals. It is off by default and applies to open terminals immediately. Scrollbars stay hidden while split panes are visible; wheel scrolling and Scroll to bottom remain available. Programs using an alternate screen may have no scrollback.
Shared tmux sizing
All clients attached to a tmux session share one grid size. If the terminal does not fill the available pane, another attached client may be setting the size.
Detach or resize the other client, or add this to tmux.conf:
set -g window-size largest
Current limits
- Hive loads up to 2,000 lines of scrollback.
- A large output burst can skip intermediate lines while the view resynchronizes.