Grok on Herdr: A Runtime for Coding Agents
An agent-aware terminal runtime, a Mac-to-Linux workflow, and the distinction between where coding agents live and where their work gets reviewed.
Topics: AI Agents & Orchestration · Models, Tools & Evaluation
Grok on Herdr: A Runtime for Coding Agents
Grok’s assessment of Herdr, Zellij, and T3 Code, adapted from my notes for a Mac-to-Linux agent workflow.
What interests me about Herdr is the category jump. It is not just a prettier Zellij. The question is no longer only “where are my terminals?” It is “which of my agents needs me?”
The core distinction: terminal multiplexers preserve a workspace; an agent-aware runtime also tells you which agents need attention.
Terminal, control surface, or runtime?
These tools overlap, but they solve different problems:
- Zellij and tmux persist terminals. They organize programs into sessions, tabs, and panes.
- T3 Code is a control surface. It puts a GUI around coding-agent workflows, with threads, diffs, and worktrees.
- Herdr is an agent-aware terminal runtime. A background server owns real pseudo-terminals (PTYs). The terminal client is disposable, and agents in panes get semantic state:
working,blocked,done,idle, orunknown.
That last distinction is the interesting part. A pane is not just a rectangle with output. It can tell me whether an agent is working or waiting for input. That state is an attention signal, not proof that the agent’s work is correct.
Why it fits a Mac-to-Linux workflow
The practical topology is simple: work lives on the Linux host; the Mac is the client.
1. Keep the work on the host
Agents, credentials, code, and long-running jobs stay on Linux. Quit the terminal on the Mac, drop Wi-Fi, or reboot the laptop, and the server can keep its PTYs running—as long as the Linux host stays up.
2. Choose how to attach
The classic approach uses familiar SSH muscle memory:
ssh linuxbox
herdr
For a daily-driver Mac, Herdr also offers a local client connected to the remote host:
herdr --remote linuxbox
The client stays local while the panes stay remote. That separation matters for the local terminal experience, including theme, mouse interaction, and clipboard handling. Herdr’s multi-machine support also lets saved SSH hosts appear alongside the local machine in one TUI.
3. Keep the agent CLI as the agent CLI
The coding harness still runs in a real terminal. Herdr owns the terminal beneath it and recognizes supported agents; it does not need to replace the harness with a second coding product.
That is the fit I care about: detachable terminals on a headless host, with an agent-aware view of what is happening inside them.
What changes compared with Zellij?
| Capability | Zellij | Herdr |
|---|---|---|
| Persistence | Sessions and resurrection | Server-owned live PTYs; layout restoration after a server restart |
| Pane awareness | A running program | A recognized agent with lifecycle state |
| Attention | Inspect tabs and panes | Agent-state visibility and notifications |
| Agent coordination | General-purpose scripting | Agent-aware CLI and socket interface |
| Multiple hosts | Typically a session per SSH connection | Saved machines in a combined interface |
| Interaction style | Modes and visible keybinding hints | A Ctrl+B prefix and mouse-oriented interaction |
Persistence has a boundary. Keeping a terminal server alive through a client disconnect is different from keeping a process alive through a host reboot. Restoring a layout does not resurrect the original running processes.
Zellij remains compelling as a general human workspace: layouts, floating panes, plugins, and discoverable controls. Herdr’s appeal is more specific: managing attention across a herd of coding agents.
The important gain is not another way to split a terminal. It is a better answer to “which of these eight agents is waiting on me?”
Where a review surface still helps
A terminal runtime and a review interface do different jobs.
If the priority is inspecting diffs, organizing worktrees, or following review threads, a dedicated coding control surface may be the better fit. If the priority is real terminals that survive a disconnected laptop, the runtime layer matters more.
A phone SSH client can provide access to a remote TUI. That is useful, but it is a different experience from a purpose-built mobile review app.
The clean split is:
Herdr is where the herd lives. A review surface is where I inspect its work.
Those layers can complement each other.
What about a local-only Mac?
A local Herdr server can separate the workspace from the terminal app. Quit the terminal client, reopen it, and attach to the same running workspace.
But a server process does not defeat laptop sleep. Closing a Mac’s lid normally puts the host to sleep; local agents stop making progress while it sleeps. For continuous execution, keep the Mac awake or put the agents on an always-on host.
That distinction is one reason the Mac-client/Linux-host arrangement is attractive.
A practical starting layout
On the Linux host, start Herdr from the project directory:
herdr
Then launch the coding harnesses in its panes—for example, Claude Code or OpenCode. The default prefix is Ctrl+B; Ctrl+B, then Q, detaches the client.
From the Mac, attach directly:
herdr --remote linuxbox
Or save the host as a machine profile:
herdr machine add linuxbox --label box
Here, linuxbox stands for an SSH host configured on the client.
Keep the terminal-emulator choice separate. Ghostty, Warp, or WezTerm is still the client-facing layer. Herdr does not replace it.
Configuration lives at ~/.config/herdr/config.toml. Choose a prefix that does not conflict with the rest of the terminal setup, and avoid nesting multiplexers unless there is a concrete reason to keep both layers.
The sleeper feature: agent-aware coordination
The CLI and socket interface may be more interesting than the TUI.
An orchestration workflow can inspect recognized agent state and wait for a relevant transition, rather than relying only on fixed sleeps and repeated terminal-output polling. That opens the door to a coordinator that can see which worker is active and which needs intervention.
It still needs judgment. An agent marked blocked is asking for attention; an agent marked done has not necessarily delivered an accepted result. Runtime awareness complements supervision—it does not replace it.
My takeaway
The compelling idea is separating where agents run, how I reach them, and how I review their work.
For a Mac controlling long-running agents on Linux, Herdr’s server-owned terminals and agent-state visibility are an appealing combination. Zellij remains a strong general workspace. A dedicated review surface remains useful for inspecting the output.
Choose the layer that solves the actual problem. For a herd of agents, attention is part of that problem.
Adapted from Grok’s analysis supplied for this post. Edited and formatted with OpenAI GPT-6.1 Sol at my direction.