When three or four console AI agents run at the same time, an ordinary terminal quickly stops coping: tabs in Windows Terminal lose their readable titles, it is unclear which agent is still writing code and which has been waiting for command confirmation for ten minutes, and closing the window kills every process. The open project Herdr 2, built on Rust and GPUI, solves the problem: a background core, herdr-core, and a native client, herdr-app, under the Apache-2.0 license. Drawing on the Habr materials, we break down how it is built, what already works and how to install it.
Why an ordinary terminal cannot cope
The classic pairing of Windows Terminal plus PowerShell is designed for one person at one tab. As soon as the agents number three or four, tab titles turn into identical strings, the agent’s status is invisible, and a command confirmation can be missed. Worst of all is shutdown: closing the terminal window kills all child processes together with the half-written code. Until recently, the author of the material assembled the workplace from improvised means: the OmpLauncher launcher on Delphi 13 VCL, the tabs.ps1 and focus.ps1 scripts on UI Automation for Windows Terminal, and the browser dashboard omp-usage-dashboard on Node.js 24.
Architecture: the core and the client
Herdr 2 is split into two parts. The background core, herdr-core on GitHub, is the hc command: it draws nothing, raises a daemon, owns local and remote PTYs, parses terminal state and stores the tree of spaces, tabs and panels.
The client, herdr-app on GitHub, is a native desktop application on Rust and the GPUI GPU framework, without Electron or WebView. The window is just one of the core’s clients: when the window closes, the agents keep working. The original herdr project is a console TUI multiplexer with a built-in server; it has more than 50,000 stars, but its sessions do not carry over into herdr-app. The license for the whole family is Apache-2.0. The author’s versions on Windows 11: hc 0.1.22 and herdr-app 0.1.18; it is the 0.1.x series, and the mod API is unstable.
Space, Tab, Pane and SSH machines
The interface is built on a hierarchy: a Space is a project or folder, with the default name taken from the repository; inside are Tab tabs and Pane panels — a terminal or a mod. Panels split horizontally and vertically, can be dragged and expanded into a zoom.
SSH machines are added in the Settings → Machines section or with the hc machine add command, and all machines land in a single Agents list. Subagents launched via hc run attach to the parent’s tab, and Ctrl+Click on an identifier (for example t7 or workpc/t7) opens a peek preview with a Keep button.
Agent statuses: OSC 7501 and OSC 7577
The key mechanism is the OSC 7501 escape sequence (Program Status): the process reports its state through the state field with the values idle, working, done, blocked, error and clear; after the colon come kind=permission, kind=question or kind=auth, the application name and a base64 message, with a limit of 4096 bytes. The indicator in the interface sets priorities: blocked ranks above done, then working and idle.
The second sequence, OSC 7577 (Program Resume), handles automatic resumption of the agent process after the machine reboots — pi supports it. omp 19.2.1 and agy 1.5.18 do not send it yet: after a reboot, fresh shells open in the previous directories.
The tested agents
The author tested two pairings. omp (oh-my-pi) 19.2.1 sends OSC 7501 by itself inside Herdr — via the HERDR_ENV and HERDR_PANE_ID variables — and switches to blocked on confirmation dialogs. agy (antigravity-cli) 1.5.18 has built-in ]7501; support and the AGY_CLI_OSC7501 variable: trusting a directory moves it to blocked, generation — working, a question — blocked, completion — done. Claude Code, PowerShell and SSH sessions are also mentioned.
A CLI over the socket
The core can also be driven without a window — commands over the socket:
hc ls hc run --bg claude hc wait t7 hc read t7 hc send t7 "npm test" hc machine ls
This set makes it possible to script waiting for an agent and feeding it commands from external processes.
Mods: JavaScript in QuickJS
The profile lives in %USERPROFILE%\.config\herdr-app (overridden by the HERDR_APP_HOME variable): a layouts folder with json layouts, a mods folder for mods, plus keys.json, settings.json and programs.json. Mods are JavaScript in the QuickJS engine on top of the gpui-kit library: div(), v_flex(), h_flex() and .on_click() are available; there is no HTML, CSS, DOM, WebView or Node API, and instead of setTimeout there are cx.timer.every and cx.timer.after.
On startup the application overwrites the stock files and refreshes AGENTS.md, herdr.d.ts and gpui-kit.d.ts — you can hand the interface redesign to an AI agent. Editing the stock files is pointless: for your own versions there are layout.clone and mod.clone. Hot reload takes about a second, and on an error a file with the .error extension is written. Useful commands are herdr-app check (checks a mod folder) and herdr-app shot (a png snapshot of the window). The emergency reset is ctrl-alt-shift-escape. The package ships with a win98 demo layout called “Herdr 98”.
The APSam mod: an example in practice
The author built the APSam mod — the APSam mod repository, Apache-2.0. The first working version took a couple of days: one mod folder, the main.js entry point and three views — the Recent panel (view-panel.js), quotas (view-quota.js) and the launch dialog (view-launch.js); the logic is spread across ES modules in the lib folder, and the link to the application is a thin adapter.js.
QuotaView calls omp usage –json once every 60 seconds: the quota bars turn yellow at 70% and red at 90%, and on an error a stale mark appears. Limitations of version 0.1.18: writeTextFile works only inside ~/.config/herdr-app, there is no access to SQLite, run() returns null instead of the panel identifier (you have to compare the panes() list), and local and remote spaces clash over names.
Security: telemetry and exec
Telemetry is on by default: once a day, a random identifier, versions, OS details and uptime are sent to the telemetry.herdr.dev server. It is disabled in Settings → Privacy, with the “telemetry”: false key in the settings, or via the DO_NOT_TRACK=1 and HERDR_TELEMETRY=0 variables.
The file-write restriction is not a sandbox: any mod can call exec() with user rights on the local machine and connected servers, so third-party mods should be vetted like ordinary scripts. Auto-update verifies SHA-256 against a manifest from the same server, with no independent signature; on Windows, SmartScreen warnings are possible.
How to install
# Windows 10/11 (x64, PowerShell) irm https://releases.herdr.dev/app/install.ps1 | iex # macOS (Apple Silicon) brew install --cask herdr-app # Linux (x86-64 / ARM64, Vulkan required) curl -fsSL https://releases.herdr.dev/app/install.sh | sh
The APSam mod is installed from the repository:
git clone https://github.com/OleksiyPenkov/APSam.git
cd APSam
powershell -NoProfile -File tools\install.ps1
herdr-app do layout.switch '{"name":"apsam"}'To return to the stock layout, use the same command with the name main.
What stayed out of frame
The material has no screenshots in the page text, no performance measurements, no comparison with the capabilities of Windows Terminal 2.0 and no tests of other agents beyond omp and agy; there is no detailed documentation for the mod API either. The author notes that detailed reviews of Herdr on Windows have been scarce so far.
What this means for the reader
Herdr 2 addresses a specific pain of running several console agents: processes survive window closing because the daemon owns the PTY; statuses are visible without switching tabs thanks to OSC 7501; the hc CLI lets you script waiting for the agent and feeding it commands. At the same time, the project lives in the 0.1.x series with an unstable mod API, telemetry is on by default, and mods are not isolated. If you have few agentic scenarios so far, it is wiser to escalate gradually: how to start working with AI agents, and bring Herdr 2 in when the agents really do multiply.
Short and to the essence. Herdr 2 is a pairing of the background core herdr-core (the hc command, a daemon with local and remote PTYs) and the native client herdr-app on Rust and GPUI without Electron or WebView; the license is Apache-2.0, and the author runs hc 0.1.22 and herdr-app 0.1.18 on Windows 11. Closing the window does not kill the agents: the window is just one of the core’s clients. Statuses arrive via OSC 7501 (idle, working, done, blocked, error, clear; blocked outranks done) — omp 19.2.1 and agy 1.5.18 have been tested; OSC 7577 resumes processes after a reboot, but only pi supports it so far. Control without a window goes through the CLI over the socket: hc ls, hc run –bg claude, hc wait t7, hc send t7 “npm test”. Mods are JavaScript in QuickJS on top of gpui-kit; a living example is APSam with quotas once every 60 seconds (yellow bars at 70%, red at 90%). Things to keep in mind: telemetry is on by default and is disabled with the “telemetry”: false key, and mods can call exec() with user rights — there is no sandbox.

