Run coding agents where the work lives, detach when you leave, and come back to the same live session
After this lesson, you should be able to start Herdr in a project, launch one coding agent, detach without stopping it, and reattach later. You will also know what each item in the UI means.
Herdr is a background server that owns real terminal processes, plus clients that attach to render and control them. It is not a replacement for Claude Code, Codex, OpenCode, Pi, or the other agents. It gives them somewhere persistent to run.
Learn the nouns in this order. Most confusion disappears once you stop treating them as synonyms.
herdr command attaches to the default session.For local work, change into the project directory and run Herdr:
cd ~/your-project
herdr
On first use, Herdr launches or attaches to the default background session. If no workspace exists, it opens one automatically. The current project should get its own workspace so the sidebar remains meaningful.
Now start the coding agent in a pane:
claude
You can substitute codex, opencode, pi, or another supported agent. Herdr detects recognized agents automatically and shows their state in the sidebar.
Herdr owns the terminal runtime; the agent still owns its own prompts, tools, permissions, files, and provider credentials. A Herdr pane does not make an agent's actions automatically safe.
You do not need to memorize shortcuts. The official quick start recommends starting with the mouse:
When you want keyboard control, Herdr uses a prefix model. Press ctrl+b, release it, then press one action key:
| Action | Keys |
|---|---|
| Split right | ctrl+b, then v |
| Split down | ctrl+b, then - |
| New tab | ctrl+b, then c |
| Workspace navigation | ctrl+b, then w |
| Show active bindings | ctrl+b, then ? |
This is Herdr's central payoff. Detach the client with:
ctrl+b q
The client disappears, but the background server keeps the panes, agents, servers, and tests running. Close the terminal window or drop an SSH connection and the same principle applies. Reattach later with:
herdr
To actually stop everything in the current session:
herdr server stop
ctrl+b q means “I am leaving the view.” herdr server stop means “stop the server-owned session and its panes.” Use the first for normal breaks; use the second intentionally.
Herdr's sidebar is not just a process list. It helps you decide where to look:
| State | Meaning |
|---|---|
working | Actively running. |
blocked | Needs input, approval, or a decision. |
done | Finished and not yet viewed. |
idle | Finished or waiting and already seen. |
unknown | Herdr cannot classify it confidently. |
Read blocked as an attention signal, not permission to blindly answer. Inspect the pane and decide whether the requested action is safe and in scope.
cd /path/to/project, then herdr.ctrl+b q.herdr again, and confirm the same pane and agent are still there.Do not run herdr server stop until you have completed the reattach check.
Run Herdr where the work lives. One workspace per project. Detach to leave; reattach to return; stop the server only when you mean to stop the work.
This lesson follows Herdr's official Quick start, Concepts, How to work, Agents, and Agent guide. Use the one-page cheat sheet for retrieval practice.