Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
Dev.to AI · 2026/8/1 09:04:10
Herdr and the throughput argument for coding agents
AI 中文解读
Herdr这个工具把AI编程从“单打独斗”变成了“团队协作”。它的核心亮点是,你可以在同一台服务器上同时跑好几个AI助手,各自负责不同的任务,还能随时查看它们的工作状态,就像给AI员工装了一个调度中心。以前用AI写代码,一次只能干一件事,干完一个再看下一个;现在可以同时让一个修bug、一个写文档、一个查测试,而且就算你关掉电脑或断网,它们也不会停摆,回来接着看结果就行。最厉害的是,它还提供接口,让另一个AI来统一协调这些AI的工作,人只需要在关键时候插手一下。对普通人来说,你可能不会直接用到它,但这意味着程序员开发软件的速度会变快,修复错误更及时,以后用到的App和网站功能更新会更频繁、质量也更稳定。这感觉就像从手动挡换成了自动驾驶,虽然司机还是人,但整个车队的运力完全不一样了。
<p>Most conversations about coding agents are still trapped in a one-agent mental model.</p>
<p>You give the agent a task. It edits files. You review the diff. Maybe it works, maybe it does not. Useful, but still serial work.</p>
<p>The interesting question is throughput.</p>
<p>What happens when you can run several agents at once, keep their sessions alive, know which one needs attention, and let another agent coordinate the whole thing?</p>
<p>That is the angle where <a href="https://herdr.dev/" rel="noopener noreferrer">Herdr</a> is worth looking at. Herdr is not trying to be another coding app. It is an agent multiplexer. The closest mental model is tmux for coding agents, with enough agent awareness that it becomes more than a pile of terminal panes.</p>
<h2>
it runs where the work happens
</h2>
<p>Herdr is a binary, not a desktop app. You run it on the machine where the actual work lives: a dev server, a Mac Mini, a sandbox VM, or your laptop if that is where the repo and credentials are.</p>
<p>If the work is on a server, Herdr runs on the server. If your laptop closes, the panes keep running. If your SSH connection drops, the agents do not disappear with it. You reattach later from a normal terminal, from another machine, or even from a phone SSH client.<br>
</p>
<div class="highlight js-code-highlight">
<pre class="highlight shell"><code>ssh you@workbox
herdr
</code></pre>
</div>
<p>This is the old tmux promise, applied to AI coding work: detach, reattach, keep the process alive. The difference is that Herdr knows more about what is happening inside those panes: real PTYs, persistent sessions, blocked, working, done, and idle state, plus CLI and socket APIs.</p>
<p>That combination is the product.</p>
<h2>
the multiplier is not magic, it is queueing
</h2>
<p>The performance argument for Herdr is simple: parallelism plus zero context loss.</p>
<p>If I have one agent fixing a backend bug, one updating docs, and one investigating a flaky test, I do not want three fragile terminal windows. I want three durable workers with visible state.</p>
<p>Herdr gives each agent a real terminal pane. It is not rebuilding the agent UI into a web dashboard. Your shell, keybindings, terminal, and command-line agents stay in play. On top of that, Herdr tracks semantic state, so the human does not need to poll every pane.</p>
<p>The operational loop changes from:</p>
<ol>
<li>stare at terminal A</li>
<li>alt-tab to terminal B</li>
<li>wonder if terminal C is blocked</li>
<li>lose the whole run when a session dies</li>
</ol>
<p>to:</p>
<ol>
<li>start independent work</li>
<li>watch for blocked or done states</li>
<li>review only the pane that needs intervention</li>
<li>detach when life happens, reattach when ready</li>
</ol>
<p>That is basic throughput. The human supervisor becomes less of a babysitter and more of a scheduler.</p>
<h2>
the API is where it compounds
</h2>
<p>Herdr has a CLI and a JSON socket API. The docs split the integration layers sensibly: use the agent skill to teach coding agents how to operate Herdr from inside a pane, use CLI wrappers for scripts and debugging, and use the raw socket API for custom tools or event subscribers.</p>
<p>The socket API covers workspaces, tabs, panes, agents, events, reads, prompts, waits, and state changes. The CLI prints the schema that matches the installed binary:<br>
</p>
<div class="highlight js-code-highlight">
<pre class="highlight shell"><code>herdr api schema <span class="nt">--json</span>
</code></pre>
</div>
<p>The docs show:<br>
</p>
<div class="highlight js-code-highlight">
<pre class="highlight shell"><code>herdr workspace create <span class="nt">--cwd</span> ~/src/payments <span class="nt">--label</span> payments
herdr pane <span class="nb">split </span>w1:p1 <span class="nt">--direction</span> right
herdr pane run w1:p2 <span class="s2">"npm test"</span>
herdr agent <span class="nb">wait </span>w1:p1 <span class="nt"
分享
阅读原文 ↗