Part 2 Paseo and Part 3 Orca were both desktop apps.
But if you do most of your work in a single terminal window, launching one more app is already a hassle.
Herdr is a tool for people like that.
It runs as a TUI inside the terminal, and it creates a separate git worktree for each agent.
In this post, I give a small Node CLI repository one documentation task and one testing task, and go through everything from installation to merging and cleanup.
Herdr is an open-source tool built by the herdrdev GitHub organization.
The output of herdr --help describes it as
a terminal workspace manager for AI coding agents
.
Other projects with similar names, such as Herder and herd, exist, so check the spelling when you search.
According to the READMEโ, it can manage terminal agents such as Claude Code, Codex, Cursor, and OpenCode.
Running herdr agent start --help shows more than twenty agent types you can attach.
In this trial, I only used Claude Code.
The license is Apache-2.0, and the FAQ says it is free.
The same organization also released a desktop app called herdr-app, but this post covers only the terminal herdr.
The version I tested is 0.9.5 from Homebrew.
It only downloads and unpacks a prebuilt package, so it finished in
about 5 seconds
.
zsh completion is installed too.
Terminal screen showing the brew install herdr log with version 0.9.5 installed in 5.3 seconds, followed by the herdr --version output
The screen above reopens the log I saved during installation.
The first run got stuck twice.
First, Herdr must run in
a real terminal window
.
If you run it with its output piped elsewhere, you get a zero-sized grid error.
I opened a window in the Terminal app and ran it there, and it started without a problem.
Second, on the first-run setup screen, claude showed not found.
Claude Code was installed, but ~/.local/bin was missing from the PATH in the Herdr session.
Adding ~/.local/bin to the PATH inside the session fixed it.
๐
I installed a different tool with a similar name by mistake and removed it with brew uninstall --cask, but Homebrew also removed Go while cleaning up dependencies. Check what Homebrew will remove along with it before you delete anything.
Move to the repository folder, then run Herdr with a session name.
herdr --session lab
The TUI opens, and the repository in the current folder is registered as one
space
.
A space is the unit that holds one task in Herdr.
Spaces appear in the list on the left, and the shell for that space opens on the right.
You can see the same list with herdr workspace list.
Herdr main screen showing the demo repository and tasks in the spaces list on the left, with a shell open on the right
I took the screenshots from this screen through the agent run screen while running the same steps with different task names.
herdr worktree create --branch herdr/docs-usage --base main --label docs-usage --no-focusherdr worktree create --branch herdr/test-mul-neg --base main --label test-mul-neg --no-focus
One command creates
a worktree, a branch, a space, and a shell window
all at once.
The worktree was created outside the repository, under ~/.herdr/worktrees/<์ ์ฅ์>/.
With --no-focus, the screen you are looking at stays as it is, and the worktree is created in the background.
Spaces list on the left with two task spaces under main in demo, with the shell of one of them open
herdr agent start docs-usage --kind claude --pane <pane ID>
But the first attempt failed with an agent_not_ready error.
When Claude Code runs in a folder it has not seen before, it shows a screen asking
whether you trust this folder
.
The new worktree was a folder Claude Code had never seen, so it stopped at this confirmation screen.
Herdr does not skip this confirmation for you.
Go to that window and choose Yes, I trust this folder yourself, or approve it by sending key input as shown below.
herdr pane send-keys <pane ID> Down Enter
This choice gives permission to run that repository's settings and commands.
Approve only repositories whose contents you know.
๐
Claude Code's folder trust prompt appears for every new worktree. The agent does not start until you approve it, so if you plan to queue several tasks with a script, consider this step first.
If you start both commands at the same time, the two agents each work in their own worktree.
A yellow dot in the list on the left means the agent is working, and the status changes to done when it finishes.
Both tasks finished in about a minute.
Sidebar on the left showing two tasks with yellow dots, and the agent editing a document on the right
Herdr has no separate screen for showing diffs.
So I review with git.
git --no-pager diff main herdr/docs-usage
The documentation task added seven lines of usage to the README, and the test task added one line for a negative multiplication test.
I checked the content here and decided whether to merge.
Terminal screen where git diff shows the seven usage lines added to README.md in green
There is no merge command either.
The worktree commands are only four: list, create, open, and remove.
I went back to main and merged with git directly.
The two tasks edited different files, so there were no conflicts.
If two agents had edited the same file, you would have to resolve the git conflict yourself during the merge.
Herdr does not prevent such conflicts in advance, so it is better to
split the work so that the files do not overlap
.
Terminal screen where the git log graph shows the merge commits of the two task branches, and npm test passes all five tests
The worktree folder and space are gone, and ~/.herdr/worktrees/<์ ์ฅ์> is empty.
But the branches remained.
As the screen below shows, after running a few tasks, branches starting with herdr/ keep piling up.
Terminal screen where git worktree list shows only main and the worktree folders are empty, but several branches starting with herdr/ remain
After removing a worktree with Herdr, you must delete the branch separately with git branch -d.
Among the three tools, Herdr was the lightest.
I could create worktrees, attach agents, and clean up without leaving the terminal I was already using.
Instead, the scope Herdr covers is
worktree and agent management
.
Checking diffs, merging, and cleaning up branches must be done directly with git, and you must also click through Claude Code's trust prompt for each new worktree yourself.
If you are comfortable with git commands, this setup may actually feel convenient.
In Part 5, I will put Paseo, Orca, and Herdr, which I tried in Parts 2 through 4, side by side and sort out which tool suits which kind of person.