Connect Tmux
Connect Heeler to a Tmux server you already run on a Mac or Linux Host over SSH, alongside Herdr TUI and Herdr Core. Each Tmux socket is a Server of its Host in Heeler, with your sessions, windows, and coding Agents in the Console and native Chat.
Before you start
- Heeler installed on your iPhone or iPad.
- Remote Login turned on for the Mac and its SSH fingerprint noted: Prepare the Host. On Linux, run OpenSSH. Native Windows is not supported for Tmux Hosts.
- Tmux 3.3 or newer (
tmux -V) on your login shell'sPATH. Ubuntu 22.04 and AlmaLinux or Rocky Linux 9 ship Tmux 3.2a, so install a newer build there first. - A running Tmux server on the Mac (
tmuxortmux -L <name>). On Linux, you can start Tmux ahead of time, tap Start Tmux on the Server's page, or let New Workspace start it later. - A way for your iPhone or iPad to reach the Host: directly on the same network, over an overlay network, or through a Jump Host. A Host can have multiple routes.
Add a Host
Heeler never starts a Tmux server when connecting or checking.
1. Connect
- In Hosts, tap +, or Add Manually when empty. You can scan a Pairing Code instead, which skips this step and goes straight to choosing the Servers.
- Enter the Address and your SSH User. More Options has the port, a Jump Host and an overlay network.
- Pick Device Key, RSA Key, or Password. For Device Key, copy the public-key line into the Host's
~/.ssh/authorized_keys. - Tap Connect, check the Host's key fingerprint, and tap Trust and Continue.
2. Choose the Servers
Heeler looks once through your login shell without starting anything and lists what the machine runs:
| Heeler found | What to do |
|---|---|
| One Tmux server | Leave Tmux checked and tap Add Host with 1 Server. |
| More than one Tmux server | Each socket is listed by name, such as Tmux · work for tmux -L work. Check the ones you want. |
| Tmux alongside Herdr TUI or Herdr Core | Check each one you want in Heeler. They are all Servers of this one Host. |
| No running server | Add the Host anyway. Start Tmux, open the Host, tap Scan Again, and turn on Tmux. |
Each Server has a switch on the Host's page. Tap a Server that is on to open its own page, with its checks and Host Helper. The connection is the Host's, under Routes. To turn on a socket before its server runs, tap Add by Name… on the Host's page, choose Tmux, type the -L <name> socket name (blank for default), and tap Turn On. Custom socket file paths (tmux -S <path>) cannot be typed.
It worked if the Host's row shows a green Tmux tag, the Host's page lists Tmux as Running with its version, and the Server's page shows Tmux server running passing.
When it does not connect
While the Tmux server is stopped, Heeler rechecks on its own, or you can tap Run Checks Again:
| Host reads | What to do |
|---|---|
| No Tmux server running | Start tmux (or tmux -L <name>) on the Host, or on Linux tap Start Tmux on the Server's page or use New Workspace in New Agent or New Terminal. |
| Start Tmux on the Mac first | Shown on macOS when New Workspace runs with no server, because a server started over SSH would lack your Mac login session and keychain. Start tmux in Terminal on the Mac. |
| Tmux is not installed | Install Tmux 3.3 or newer on your login shell's PATH, then tap Run Checks Again. |
| Update required | Upgrade Tmux on the Host to 3.3 or newer, then tap Run Checks Again. |
On Linux when no Tmux server is running, tap Start Tmux under the checks on the Server's page and confirm Start, or choose New Workspace in New Agent or New Terminal to start the server through your interactive login shell so new windows inherit your shell setup.
Note
The Server's page warns if variables from an agent session leaked into Tmux and shows how to clear them.
The Console
Heeler maps your Tmux layout directly into the Console without changing your existing options or key bindings:
- Workspaces, Tabs, and Panes: Each Tmux session is a Workspace, each window is a Tab, and each pane is a Pane, in Tmux's order. A window linked into more than one session appears once.
- Agents and Terminals: Heeler lists recognized foreground harnesses in Agents, including Droid and Devin. Shells and other programs appear in Terminals.
- Titles: Agent and Terminal rows show the terminal title a pane's program sets, without its leading status symbols, and search finds it. A change to the title alone can take up to five seconds to show. A pane whose title is still Tmux's default, the host name, counts as untitled: its Agent row shows the program's name, and its Terminal row the command. A window you named, with Rename Tab, a Tab Name when creating it, or in Tmux, leads its Terminal rows with its name instead, as a named Tab does on Herdr TUI. A window Tmux names after its running command doesn't.
| Status | What it means |
|---|---|
| Working | Running a turn. |
| Idle | Waiting at its prompt. |
| Blocked | Waiting for your answer, or running an approved tool in Claude Code. |
| Error | Reported an error and sorts with Blocked. |
| Done | Finished a turn while closed here. Opening the Agent clears Done on this device only. |
| Unknown | No status reported yet. Tap Unknown to see what this program needs on Tmux. |
When Grok Build shows Unknown, tap Unknown, then Turn On Grok Build's Status and Apply This Change to set program_status = "on" in $GROK_HOME/config.toml or ~/.grok/config.toml, and install the Host Helper so Heeler can read its reports. Revert the file change anytime with Undo or under Harness Edits on the Server's page.
Starting things
- New Agent: Tap New Agent, choose a Workspace (Tmux session) and directory, and pick an Agent from your login shell's
PATHor a Preset from Settings > Agents & Accounts. Heeler opens a new window in the background without switching your desktop client's active window, passes--no-daemonto Codex unless your arguments set a session, and passes Heeler's status hooks to Claude Code for that launch automatically. - New Terminal: Opens a new window running your login shell in the chosen Workspace.
- New Workspace: Creates a new Tmux session with the name you type, or Tmux's numbered default when left blank.
- Rename Workspace: In an Agent's or Terminal's More menu, tap Rename Workspace to rename the Tmux session.
- Move to Workspace: Choose an existing Workspace or New Workspace from the Pane menu. In a split window, the selected Pane becomes a detached window in the destination. The other panes stay in the original window, including its other session links. A window containing just this Pane moves with it. If another user session also holds that single-pane window, Heeler leaves its links intact and explains the conflict.
- Rename Agent: Set or clear the management name shown in the Console. Heeler associates it with the foreground Agent process. The program can continue updating its terminal title and its conversation title independently.
- Rename Tab: Set the window name from the Pane menu. All links to that window show its new name. Tmux turns off automatic naming for an explicitly named window. Leave Tab Name blank when creating a window to use the Host's naming policy.
- Worktrees: Turn on Start in a new worktree in New Agent (leaving Branch empty generates a
worktree/branch, and Base (optional) picks a starting ref offHEADby default) to check out~/.heeler/worktrees/<repository>/<branch>in its own Tmux session. To remove it, tap More > Worktree Details > Remove Worktree; Heeler closes that worktree session's panes first, then removes the checkout.
Working with an Agent
Live terminals open on the Pane itself, even when a Tmux window is split across several panes, and any viewer can type without a Take Over step:
- Window sizing: While you view a Pane on iPhone or iPad, Heeler sizes that window to fit your screen and stays within an open desktop terminal on the same window. Leaving the Pane hands window sizing back to your other clients, and other windows in the session are not resized.
- Scrolling and taps: In a program that tracks the mouse, dragging scrolls it, the Earlier message and Newer message buttons step through it, and taps reach it as clicks, whatever Tmux's
mousesetting. While the pane is in Tmux copy mode or another Tmux mode, none of these reach it; leave that mode on the desktop first. - Send and Stop: Send pastes your draft and presses Enter once it checks that the same Agent still leads the pane, is not Blocked, and accepts a paste. While Working or Blocked with an empty draft, Send becomes Stop for every supported Agent, Grok Build included.
- Add: Tap Add in the Composer, or Add Image, Paste Image, or Add File under More in Direct Input, to upload an image or file over SFTP and insert its path.
- Changes and Skills: Open Changes from an Agent's header or More menu to inspect uncommitted Git changes in its directory, and use
/or Skills in the Composer, Direct Input, or Chat to browse and insert skills from the Host. - Close: Closing an Agent or Terminal closes its pane or window.
Newline keys in Direct Input
Under Tmux's default extended-keys off, Tmux does not pass modified Return keys such as Shift-Return through as distinct keys, and Heeler withholds keys Tmux has not enabled so their names are never typed as text:
| Key | Behavior in Tmux |
|---|---|
| Control-J | Inserts a new line in Claude Code, Codex, Grok Build, OpenCode, Pi, and Oh My Pi without changing Tmux settings. |
| Option-Return | Inserts a new line in Claude Code, Codex, Grok Build, OpenCode, and Oh My Pi; submits in Pi. |
| Shift-Return | Inserts a new line in Claude Code, OpenCode, Pi, and Oh My Pi on Tmux 3.5 or newer when ~/.tmux.conf sets set -g extended-keys on. In Codex and Grok Build, Shift-Return does nothing from Heeler; use Control-J or Option-Return instead. |
When Send or Stop in the Composer cannot finish cleanly, it keeps your draft and shows the same recovery notices as Herdr Core.
Claude Code hooks
Claude Code Agents you launch from New Agent report Working, Blocked, Done, Error, and their session automatically without changing ~/.claude/settings.json.
To get the same status and Chat session hint for Claude Code Agents you start yourself in a Tmux terminal:
- Connect the Host, open it in Hosts, tap its Tmux Server, and find Claude Code Hooks.
- On Default (
~/.claude/settings.json), or on any added Claude Code Account, tap Add Hooks. - Review the exact settings diff and script files Heeler will write, then tap Apply This Change.
It worked if that root's row in Claude Code Hooks reads On.
- The hooks work even without the Host Helper, and do nothing when Claude Code runs outside Tmux (including under Herdr TUI or Herdr Core).
- In a folder you have not trusted yet, Claude Code runs no hooks until you accept its trust prompt, so the Agent reads Unknown until then.
- After you approve a permission prompt in Claude Code, the Agent can stay Blocked while a long tool finishes; Stop remains available in the Composer. If you interrupt Claude Code with Esc at a desktop terminal while it waits on its model, it can stay Working until its next event.
- To remove the hooks later, return to Claude Code Hooks, tap Remove Hooks, and tap Apply This Change.
Chat
In Chat, you can read conversations, Send messages, Stop a turn, and tap buttons on Blocked prompts without resizing your Tmux window:
| Program | Session notes |
|---|---|
| Claude Code | Follows /clear and /resume when launched from New Agent or with Claude Code hooks; otherwise use Choose a Conversation. |
| Devin CLI | On macOS and Linux, open a local Devin session with a foreground ACP writer. The Host needs Python 3. |
| Droid | On macOS and Linux, New Agent supplies the Droid hook. Chat follows the conversation in this terminal. |
| Codex | Binds on the first message when started with --no-daemon (why --no-daemon is needed). |
| Grok Build | Binds while Grok Build lists one conversation; after /new, restart or use Choose a Conversation. |
| Pi | Binds when started from New Agent or with the Host Helper; otherwise use Choose a Conversation. |
| Oh My Pi | Binds with the Host Helper, or after its first message opens its session file; otherwise use Choose a Conversation. |
| Antigravity CLI | Chat follows a verified local Agent session. |
| Amp | On macOS and Linux, install Heeler's Amp plugin from Chat and reload plugins in Amp (Ctrl+O → plugins › reload). Chat reads and sends in the active thread; use the terminal for attachments, commands, and approvals. |
| OpenCode | Opens on macOS and Linux. Binds when Heeler started it or with Heeler's OpenCode plugin (offered from Chat). Otherwise use Choose a Conversation. |
When Chat cannot prove which conversation a Pane is showing, it displays Can't Tell the Conversation with Check Again and Choose a Conversation. Picking a conversation and tapping Use This Conversation remembers that choice for the Pane until the Agent or Tmux server ends.
While Chat shows the Agent's turn, Stop first checks that the same turn is still running in that conversation, including one you chose. A Codex conversation you chose is the exception, because Codex can run a side chat's turn in the same Pane, so stop it in the terminal. If the Pane has moved to another conversation or the turn has ended, Stop presses nothing and says it couldn't verify the active turn. Check the conversation, or stop the Agent in its terminal.
After Heeler connects, it reads each Agent's conversation in the background, so Chat opens with the history already read and the Agent keeps a saved Chat. It reads a conversation only when it can tell which one the Pane is in, or you chose one, and reads OpenCode, Amp, and Devin CLI only while their Chat is open.
Host Helper
Everyday terminal and Chat use do not require the Host Helper. Install it on macOS or Linux (Node.js 20 or newer) to add:
- Agent Notifications (Blocked, Error, and Done), in-app banners, and Live Activity;
- Usage (Token Usage, Usage Limits, and Home Screen and Lock Screen widgets);
- Codex, Grok Build, OpenCode, Oh My Pi, and Antigravity CLI status: reports OSC 7501 status for panes running those programs (Grok Build also needs Turn On Grok Build's Status);
- Pi and Oh My Pi status and Chat: installs Heeler's extension so panes you start yourself report Idle, Working, Done, Error, and their active Chat conversation;
- Desktop Esc cleanup for Claude Code: clears Blocked when you decline a permission prompt with Esc on the desktop.
Open the Host in Hosts, tap its Tmux Server, tap Host Helper, review Files This Writes, tap Install, and turn on the Host under Settings > Notifications, following the same steps and status table as Connect Herdr Core. Removing the Host Helper leaves any Claude Code hooks you added working.
Known limits
- macOS and Linux with Tmux 3.3 or newer: Native Windows is not supported, and Tmux servers are chosen by
-Lsocket name rather than a custom-Ssocket path. - Tmux older than 3.5: Shift-Return never reaches the Agent; use Control-J (or Option-Return outside Pi).
- Desktop terminal shrinking under
window-size largest: Tmux sends no notice when another terminal resizes on its own, so underwindow-size largesta desktop terminal that shrinks without detaching or changing windows is re-capped on the next window or client change rather than right away, and if reading client sizes fails Heeler leaves the window size alone. - Concurrent viewers: Open the same Pane on the desktop and in Heeler. Both can type. Templates and pane zoom are unavailable.
- No Connection slow… yet: Herdr TUI, Herdr Core, and Rex Hosts show Connection slow… in an open Agent's title while a connection check waits on a slow link. Tmux Hosts don't show it yet.
- Pi and Oh My Pi extensions: They report Idle, Working, Done, and Error, not Blocked, and starting Pi via
npxdoes not load the extension. - Panes already redirecting output: If you already redirect a pane's output in Tmux, Heeler leaves it alone and Codex, Grok Build, OpenCode, Oh My Pi, or Antigravity CLI in that pane stays Unknown.
- Wrapper scripts: A script that starts an Agent as a child process stays in Terminals; end the script with
exec, such asexec claude "$@", so the Agent leads the pane. - What has been tested so far: Tmux Hosts have been exercised in the iOS Simulator against macOS (Tmux 3.3 and 3.7b) and Debian 12 (Tmux 3.3, 3.3a, and 3.7b) Hosts, including starting a stopped Linux server from New Workspace, with live Agents, Chat, Claude Code hooks, and the Host Helper. They have not been tried on a physical iPhone or iPad.
Last checked on 2026-11-27 against macOS and Debian 12 Hosts with Tmux 3.3, 3.3a, and 3.7b.





