Herdr
Run Greenware in Herdr: each client a workspace, each play a tab with a maestro you talk to, each stage a live Claude Code pane you can watch or take over.
Herdr is a terminal multiplexer for coding agents, and Greenware’s flagship runtime. With runner: herdr, every stage runs as a live, interactive Claude Code pane instead of a background claude -p.
| Greenware | In Herdr |
|---|---|
| Client | A workspace, gw:<client>, whose first tab shows a live board |
| Play | A tab: the maestro on the left; on the right, the viewer on top (it renders the play, reports to Herdr and runs the engine) and the working stage agent under it |
| Maestro | A Claude Code session you talk to about the play. See the maestro |
| Stage | A live Claude Code pane under the viewer, open only while its stage runs. Watch it, or type in it to steer that stage |
| Questions, gates, failures | The play shows as blocked in Herdr’s Agents sidebar with the reason, plus a notification. Herdr’s phone and Telegram plugins put them on your phone |
| Decisions | The maestro, the plugin’s popups (idea, inbox, gates), the board, or gw answer / gw approve |
Set up
The installer links the plugin and adds its keys when Herdr is installed first. Then, from your factory:
herdr
cd ~/factory && gw herdr setup
gw herdr setup:
- links the Greenware plugin (when Herdr is running),
- points the plugin’s actions at this factory,
- installs the Factory view in Herdr’s Agents sidebar,
- sets
runner: herdrinfactory.yaml, - prints the key bindings if your Herdr config has none,
- reports whether Claude Code trusts the factory folder, and at a terminal offers to trust it.
Then start a play as usual. It opens in its own tab:
gw idea acme "route inbound demo requests to the right AE"
If Herdr isn’t running, the play is created and waits; it appears in its tab, ready to go, when you open Herdr. Opening Herdr brings back the tab of every active play.
Keys and actions
| Key | Action |
|---|---|
prefix+i |
New idea (popup) |
prefix+a |
Answer questions (inbox popup) |
prefix+y |
Review gates (popup) |
prefix+m |
Board |
The plugin also has actions for onboarding a client from its domain and for reopening every active play’s tab. The popups are plain gw commands underneath: gw herdr idea, gw herdr inbox, gw herdr gates, gw herdr client.
Folder trust
The first time Claude Code starts in a folder, it asks whether you trust it. A stage pane waiting on that prompt would look hung, so Greenware handles it three ways:
- Trust the factory once:
gw startandgw herdr setupoffer it, andgw doctor --fixdoes it. Every play under the factory then starts without the prompt. Greenware writes the single flag in~/.claude.jsononly on your yes, after a backup to~/.claude.json.greenware-backup, keeping every other key. - Detection: if a stage is waiting on the prompt anyway, within about 2 seconds the play says “Waiting on folder trust: switch to the stage pane and choose “Yes, I trust this folder”“. Accepting there covers only that play.
- Doctor:
gw doctorshows✗ claude trusts the factorywhen stages run in Herdr panes and the folder isn’t trusted.
Each stage reads a snapshot of its context from .greenware/context/ inside its play folder, so stages never ask for extra folder access. The snapshot never includes holdouts or Clay logins.
Commands
gw herdr setup # link the plugin, install the Factory view, set runner: herdr
gw herdr open acme/lookalikes-01 # open (or re-open) a play's tab
gw herdr doctor # what Greenware sees in Herdr
gw run # make sure every active play has a live tab
gw herdr doctor prints the Herdr binary, session and server state, the socket, whether the plugin is linked, and each play’s tab and whether its viewer is live.
Settings
In factory.yaml (see Configuration):
herdr:
session: "" # a named Herdr session; empty means the default (or HERDR_SESSION)
stageTimeoutMs: 2700000 # how long a stage agent may run before the runner gives up (45 minutes)
maestro: true # a maestro pane in every play tab
How stages launch
Each stage’s permission rules go in a settings file under the factory’s private .greenware/stages/ folder, and the pane gets a short claude --settings <file> … line. No agent can edit its own rules there, and the line stays well under the ~1 KB a fresh macOS shell accepts. If Herdr can’t type the line because the shell isn’t ready, Greenware retries for up to 15 seconds, then fails the stage with the reason.
Greenware needs Herdr 0.9.0 or newer; gw doctor notes a Herdr older than 0.9.4, which truncates long lines silently. If Herdr updated itself while its server kept running, Greenware finds the new binary on its own. See Troubleshooting.