herdr Plugins
The why is in Herding Agents in herdr. This is the how.
| Plugin | What it does | Language | Platforms |
|---|---|---|---|
| herdr-graph | Live graph of every agent, and who needs me | Go | macOS, Linux |
| Sightline | Catches pane errors and hands them to an agent | Go | macOS, Linux |
| herdr-spaces | Space icons, warp and bookmarks | Shell | macOS, Linux |
| herdr-todo | My to-do list in a popup | Shell | macOS, Linux |
| herdr-calendar | macOS Calendar in a popup, plus meeting reminders | Shell | macOS |
All MIT, all for the terminal version of herdr (0.9.1 or later), all installable with herdr plugin install swmcc/<repo>.
The plugin model
A terminal herdr plugin is a herdr-plugin.toml and any executable. The manifest declares:
- actions, which show up in the command palette and can be bound to keys
- panes, which open as popups or real panes and run your command
- events, like
workspace.created, that run a command when something happens - startup commands, run when the herdr server starts
There’s no SDK. The herdr CLI is the API: herdr agent list, herdr plugin pane open, herdr workspace ... and so on. A plugin is just a program that shells out to it.
The one constraint that shapes everything below: plugins can’t run background daemons. Anything that needs to keep going has to either live inside a pane that’s open, start itself on demand and tidy up after, or hand the job to the OS.
herdr-graph

My agents as a live graph in the browser. Projects are hubs, agents orbit them coloured by state and topics link agents across projects when their task titles share a word.
Shape. A small Go server, standard library only, and a single page. The herdr action runs herdr-graph open, which starts the server on 127.0.0.1:7777 (or a free port) if one isn’t running and opens the browser.
Data. The server polls herdr agent list once a second, diffs it and streams changes to the page. No LLM calls, so nothing to pay for.
Working around the daemon rule. The server keeps track of open pages and exits by itself ten minutes after the last one closes. Open the page and it’s there, walk away and it’s gone.
Finished is inferred. herdr reports working, idle and blocked. It doesn’t report finished. The graph works that out: an agent that went from working to idle and that I haven’t focused since. “Last viewed” comes from herdr’s focus reports, so it only counts from when the server started.
Topics. Words shared by two or more task titles become topic nodes, after a stoplist. Stuck claude --resume sessions cluster on #resumed-session. The honest limit is that topics are only as good as terminal titles, and plenty of mine just say “Claude Code”.
Icons. Projects are drawn with the same Nerd Font icons herdr-spaces puts in the sidebar, because it reads the same Space metadata. The page bundles its fonts and loads nothing from the internet.
Security. It can focus panes, so it’s careful about who can ask it to. It listens on localhost only, refuses any request whose Host isn’t localhost (DNS rebinding) and refuses cross-site writes, so another tab can’t drive my agents.
Release. Prebuilt binaries for macOS and Linux on Intel and ARM. The install downloads the right one and checks it against the release checksums, falling back to building from source if Go 1.25+ is there. make demo runs it with made-up agents, which is where the screenshot came from. make check runs the tests, vet, staticcheck and govulncheck.
Sightline

Watches the panes I choose, catches errors and hands one to an agent with a keypress, then checks whether the fix held.
Engine and adapter. The error engine knows nothing about herdr. It takes lines in and gives entries out, which keeps it testable with real fixtures. A separate client talks to the herdr socket and subscribes to pane output.
Catching errors. Built-in patterns for stack traces, failed builds, failing tests and crashes, with your own on top from sightline.toml. Scroll events catch output that a plain pane diff misses. Repeats are grouped, so a crash loop printing the same trace forty times is one entry, and the engine caps how many entries it keeps.
Sending safely. The error goes to the agent with the lines around it. Pane output is untrusted input being typed into an agent, so there are prompt injection tests on that path.
Checking the fix. After sending, Sightline keeps watching. When the agent finishes and the pane stays clean, the entry is marked fixed. If the error comes back, I’m told. If the agent exits, the wait ends.
Pressing v shows exactly what will be sent:

Next. Queue mode (send when the agent goes idle, so I don’t have to time it), project presets checked into the repo with a trust prompt and Windows.
herdr-spaces

Icons. bin/space-icons looks at each Space’s directory for files like Gemfile, mix.exs, go.mod, Cargo.toml, package.json or an .obsidian folder and picks a Nerd Font icon, with overrides from icons.conf (globs allowed, so herdr-* covers every plugin). The icon goes into the Space’s display metadata as $label, which the sidebar renders. Space names are never touched, so nothing that scripts against them breaks.
Surviving restarts. herdr forgets display metadata when its server restarts. The manifest runs space-icons as a startup command and again on workspace.created and workspace.renamed.
Warp and bookmarks. fzf over Spaces only, with ctrl-b to bookmark up to nine. The bookmarks popup takes a number and jumps. Needs jq and fzf.
herdr-todo

My to-do list is the open issues on a GitHub repo. herdr-todo is a set of shell scripts and fzf over my own todo CLI, drawn in a 90% popup.
Fast to open. It shows the cached list instantly, fetches a fresh one in the background and refreshes every 60 seconds while it’s open.
Ordering and colour. Urgent, in progress, high, normal, waiting, then low. Labels are drawn as pills in their own GitHub colours.
Keys as commands. The popup opens with search off, so single letters are commands: / for titles, l for labels, v to swap between a list and a 3×3 grid of cards, n to add with a searchable label picker, x to close. It reflows when I move between the laptop and a monitor.
herdr-calendar
The macOS Calendar, Google calendars included, in a popup with month, week, day and agenda views.

No OAuth. It reads Calendar.app through icalBuddy, so there’s no Google Cloud project, client or token to look after. Add the account in System Settings and it shows up.
One script. bin/agenda is a single POSIX sh script with awk doing the drawing. Dates are whole days since 1970 using Howard Hinnant’s civil-date algorithms, so moving around the calendar is plain arithmetic. icalBuddy only fetches the days the current view needs. Call links for Meet, Zoom and Teams are picked out of the event notes, so j joins.
Refreshing without a daemon. The popup refreshes itself on a one-second key timeout.
Reminders without a daemon. Plugins can’t run in the background, so launchd does. bin/remind runs every minute and sends a herdr notification ten minutes before a meeting and again when it starts, to whichever workspace I’m in. Each fires once, and if the Mac was asleep at the ten-minute mark I get “in 4 min” when it wakes rather than nothing.
Patterns that came out of it
- Start on demand, die on idle. The answer to “no daemons” for anything that serves something: herdr-graph’s server.
- Hand it to the OS. For anything that has to fire when nothing’s open: herdr-calendar’s reminders under launchd.
- Re-apply on startup and on events. For anything herdr forgets: herdr-spaces’ icons.
- Cache first, fetch behind. For anything that talks to a network from a keypress: herdr-todo. A popup that makes you wait is a popup you stop opening.
- Keep the core free of herdr. Sightline’s error engine doesn’t know herdr exists, so it’s tested against real fixtures without one running. herdr-graph gets the same from
make demo.
Where to find them
herdr’s plugin marketplace lists any public repo tagged herdr-plugin with a valid manifest, so all five should be there. The community awesome-herdr list now only takes projects for herdr-core and the desktop app, so terminal plugins aren’t on it.