Codex 校核(2026-10-10) Herdr 官方说明区分关闭客户端/SSH 时后台服务器继续工作,与服务器或机器重启后恢复保存布局、重新启动并恢复受支持 agent 会话。后者不是原操作系统进程跨机器重启存活。persist/resume 依赖客户端类型,不能视为所有任意程序都有恢复语义。
herdr: Agent 多路复用器 —— 终端里的智能体编队管理
来源: https://github.com/ogulcancelik/herdr (★13k, Rust, AGPL-3.0) 发现时间: 2026-07-07 (GitHub Trending Weekly #1) 标签: agent-orchestration, multiplexer, terminal, claude-code, codex, hermes-agent, rust
核心定位
herdr 是一个终端里的 agent 多路复用器——单一 ~10MB Rust 二进制,在 terminal 中运行所有 coding agent,一眼看清谁 blocked/working/done。
“run all your coding agents in one terminal. see who’s blocked, working, or done at a glance.”
架构亮点
与传统 tmux 或 GUI agent manager 不同,herdr 坚持”活在 terminal 里”的设计哲学:
| 维度 | herdr | tmux | GUI managers (Conductor/cmux) |
|---|---|---|---|
| 持久会话 | ✅ | ✅ | ❌ |
| detach/reattach | ✅ | ✅ | ❌ |
| 通过 SSH 运行 | ✅ | ✅ | ❌ |
| Agent 状态感知 | ✅ | ❌ | ✅ |
| 真实终端视图 | ✅ | ✅ | ❌ |
| 鼠标原生 | ✅ | ❌ | ✅ |
| 轻量二进制 | ✅ | ✅ | ❌ |
| Agent 可编排 | ✅ | ? | ? |
Agent 感知
支持自动检测以下 agent 的状态(🟢 idle / 🟡 working / 🔴 blocked / 🔵 done):
- Hermes Agent ✅(官方列为 first-class 支持)
- Claude Code ✅
- Codex ✅
- OpenCode ✅
- Copilot CLI ✅
- Devin CLI ✅
- Cursor Agent ✅
- Grok CLI ✅
- Kimi Code CLI ✅
- 以及更多
官方集成提供原生 session restore + 语义状态上报。安装:herdr integration install <agent>
设计要点
- 真实终端:每个 agent 用自己的真正终端 (不是模拟),全屏 TUI 正常渲染
- Workspace/Tab/Pane:按 repo 或文件夹组织,点击拖拽分割,鼠标原生
- 持久化:detach 后 agent 继续运行;从另一终端甚至手机 SSH 可重连
- 跨平台:Linux / macOS,Windows beta;无依赖,无 Electron,无遥测
- 可脚本化:本地 Unix socket API,agent 可以创建 pane/订阅状态/驱动 herdr
- 无 App 化:不是 GUI 应用,就是 terminal 本身——
curl -fsSL https://herdr.dev/install.sh | sh
Agent 也能用 herdr
herdr 提供 Unix socket API,允许 agent 创建 workspace、分割或放大 pane、生成 helper、读取输出、订阅状态变更。安装 reusable skill:
npx skills add ogulcancelik/herdr --skill herdr -g与 Hermes 生态的关系
- herdr 明确将 Hermes Agent 列为官方支持的一级 agent
- 可作为 Hermes WSL 端 + Mano Windows 端的统一 terminal 前台
- 其 socket API 可让 Hermes 直接编排其他 agent 的 pane 生命周期
一句话
Tmux built for the agent era —— 不退出 terminal,管理整个 agent 编队。