Herding Agents in herdr

herdragentic-developmentworkflowterminaltools

For years my setup was nvim, a pile of key bindings and a row of tabs in iTerm2. I used tmux, but I was always in and out of it. It never stuck. I’d start a session, forget about it, open a new tab instead and end up with both.

That was fine when the thing in each tab was me. It stopped being fine when the thing in each tab was an agent.

What herdr is

herdr is a terminal workspace built for running lots of coding agents at once. You get workspaces, which it calls Spaces, and inside them tabs and panes like any multiplexer. The difference is that herdr knows which panes have an agent in them and what each one is doing: working, idle or blocked waiting on me.

A herdr window: Spaces with icons down the left, the agents and their state below them, a Claude pane and a dev server in the middle and the status line along the bottom

All the screenshots in this post use made-up data, so no real to-dos or meetings were harmed.

That last part is the whole reason I moved. tmux will happily show me twelve panes. It has no idea that three of them have been sitting on a question for twenty minutes.

A normal day

On a normal work day I’ve eight or nine agents going across several repos. Some of them are planning and some of them are doing.

If I were writing this for LinkedIn I’d say I operate a portfolio of concurrent workstreams, deliberately staggered across the planning and execution horizon, so that the only thing ever on the critical path is my own judgement. Which sounds like something a distinguished engineer would put on a slide.

In English: some of them are thinking, some of them are typing and I’m the bit in the middle trying to keep up. The planning ones need me to read and push back. The doing ones need me when they get stuck or finish. If I get the mix right, there’s always something worth my attention and never too much of it at once. If I get it wrong, I come back from a coffee to five agents all waiting on me and no idea which one asked first.

When I counted this morning I had 19 Spaces open, one per project, with 16 Claude Code agents across them and 5 of those waiting for input. So I’m not exactly getting the mix right today.

The config I’ve bolted on

Before I wrote any plugins I spent a fair while in herdr’s config. Most of it is in my agentic-development repo. A few bits earn their keep every day.

Layouts. Every project gets the same four tabs, laid out by herdr-spreader: an agent tab with Claude Code on the left and Codex on the right, lazygit, a shell for Obsidian and a plain shell for everything else. prefix+t scaffolds that layout for a new project. Same shape everywhere means my hands know where things are before my head does.

A status line. Down the bottom, vim style, beside the tabs: the branch, my next meeting, how many to-dos I have, what’s on Spotify, wifi, battery and the time. All small shell scripts on a timer. None of it is clever. All of it is stuff I used to go and check.

The status line: tabs, then the branch, the next meeting, to-dos, Spotify, wifi, battery and the time

Jira without leaving the terminal. prefix+j, type a ticket, and the body, status, people, links and comments come up rendered in a popup. I first tried this by having an agent look the ticket up. It took 20 to 30 seconds. That’s fine for a slash command and useless for a keypress, so now it talks to the API directly and answers before I’ve finished blinking. prefix+shift+t goes a step further and opens a ticket in a pane of its own, on its own worktree.

My calendar. prefix+i and my week is there. More on that below.

Why plugins

At some point the config ran out and I started writing plugins. herdr’s plugin model for the terminal version is lovely and simple: a small manifest and any executable you like. The whole herdr CLI is the API. There’s a marketplace that picks up any public GitHub repo tagged herdr-plugin.

Looking back over what I’ve built, they all do the same thing: make herdr show me what I’d otherwise have to go and look for. Every one of them started with me leaving the terminal, or squinting at it, to find something out.

There’s a technical write-up of all five on the projects page if you want the how. This is the why.

I use them all about equally. None of them is the main one. They’re more like the drawers in a desk.

herdr-spaces: where am I, and how do I get there?

The herdr sidebar with an icon beside each Space

With 19 Spaces, the sidebar was a wall of names. herdr-spaces puts a Nerd Font icon in front of each one, picked from the project’s files (a gem for a Rails app, a notebook for an Obsidian vault and so on) or set by hand. It sounds like decoration. It isn’t. I find things by shape now rather than by reading.

It also gives me warp, a fuzzy finder over Spaces and only Spaces, and bookmarks, Harpoon-style, so the handful of projects I live in are two keys away.

Warp finding a Space by typing a few letters, then bookmarks jumping between them

prefix+space to warp, prefix+a and a number to jump to a bookmark. These are the keys I hit most in a day.

herdr-todo: what else do I need to do?

herdr-todo opens my to-do list in a big popup beside the agents. The list is just open issues on a GitHub repo. Urgent first, search, a list or a grid of cards, add and tick off without leaving. prefix+d to look, prefix+shift+a to add.

herdr-todo: my to-do list in a popup over the agents, urgent first, with the details of the selected task below

The point isn’t the list. It’s that the list is there in the same place as the work, so the “oh I must remember to” thought gets written down before an agent pulls me back in.

herdr-calendar: when do I have to stop?

herdr-calendar is the macOS Calendar in a popup, Google calendars included: month, week, day and agenda. Pick a meeting and join its call from there. It also nudges me ten minutes before a meeting and again when it starts, wherever I am in herdr.

herdr-calendar: a week of meetings in a popup, with a red line for now

That second part matters more than I thought. When you’re deep in a few agents at once, time just goes.

Sightline: what broke?

This is the one that started as a proper itch. An agent works in one pane while the dev server or test watcher runs in another. The agent breaks something, the error appears in the pane next door and the agent can’t see it. So I copy the stack trace and paste it back. Several times a session. I was the clipboard between two panes.

Sightline watches the panes I point it at, catches errors, groups the repeats, shows them in a feed and sends one to the agent with a keypress. Then it keeps watching to see if the fix actually worked. Sightline: Claude adds a photo credit, the dev server throws a 500 in the pane below and the Sightline feed beside it has caught the error, ready to send back to Claude

That’s the whole loop in one picture. The agent changed a template, the dev server fell over and Sightline caught it before I’d even noticed. One press of enter and it goes back to the agent that broke it. It’s still early and the README is still catching up with the code, but it already saves me the copy and paste.

herdr-graph: who needs me?

herdr-graph: projects as hubs, agents around them coloured by state, topics linking them

Taken in demo mode, so the projects are made up.

This is the newest one, and the one I’m most pleased with. herdr-graph draws my agents as a live graph in the browser. Projects are hubs, drawn with the same icons as the sidebar. Agents sit around them, coloured by what they’re doing. Topics link agents across projects when their task titles share a word, so I can see three agents all poking at the same thing in different repos.

The useful bit is who needs me: one glance at every agent waiting on me, longest first, plus the ones that finished since I last looked. Double-click one and herdr jumps to that pane.

herdr has an agents view of its own. I’ve never found it that handy. Possibly that’s because I’m using it wrong, possibly. Either way, what I’d really like is for the graph to make it redundant for me, and I think it’s most of the way there.

It went through a fair few looks before it got here. It started as “the agents as an office”. Then a radar, a mixing desk and a JARVIS-style HUD, which looked childish. Then a plain instrument console. Then the graph, because “second brain” was the idea that stuck. There are a good fifteen agent visualisers out there already and nearly all of them are little characters in a place. I wanted the opposite: less charm, more “who do I unblock next”.

How it all fits on a desk

At work, if I’ve a second screen, it usually has the Mr Sweep and Drover pages on it. Those are the logbooks for the agents that review other people’s merge requests and chase my own ones home. Different post, another day.

But at work and at home, the one thing that’s always up is herdr-graph. It’s the closest I’ve got to a single answer to “what are my agents doing, what are they working on and which of them needs me”. The rest of the plugins live behind keys. That one lives on a screen.

Staying in the terminal

herdr has grown a desktop app since I started using it, built on a headless runtime called herdr-core. I’m not moving. I want the terminal version, and herdr have said it’s staying first-class. Keeping everything inside one terminal is most of what makes this work for me. The moment I’m alt-tabbing between apps to find out what an agent is up to, I’ve lost.

That’s the real reason I keep writing plugins. Not because herdr is missing much, but because every time I catch myself going to look for something, that’s a plugin waiting to be written.

← Back to writing