herdr-core
Run each ticket's agent in a herdr-core terminal. herdr-core is the local server behind herdr-app; its terminals live independently of the app. See Use your client for usage. Its preset brings Git workspace in project scope.
AI first
text
Read https://bakers.build/addons/herdr-core.
Use herdr-core as this machine's executor. Check `hc --version` (0.1.18 or
later), propose the machine.config.js executor entry or a project addon entry
and verify it with bakers conductor check.Setup
Install herdr-core from herdr.dev/core. bakers.build requires hc 0.1.18 or later on the conductor's PATH; hc starts its server on demand.
sh
hc --version
hc lsA run fails at once with an install or upgrade message when hc is missing or older.
Configuration
Initialize a project with the executor choice:
sh
bakers config init --scope project --project <name> --executor @bakers-build/addon-herdr-coreIts preset brings @bakers-build/addon-workspace-git; no separate worktree entry is needed. Existing projects can list it in .bakers/project.config.js:
js
addons: [
'@bakers-build/addon-herdr-core',
],bakers conductor start runs the conductor as a detached process; it needs no herdr process host. Use bakers conductor start --foreground to keep it attached to the current terminal.
The executor calls hc from the conductor, outside any agent sandbox. A sandboxed agent that calls hc from its own shell needs it among the trusted commands, for example trusted_commands: ['$inherit', 'hc'] in a shared permissions block. A trusted hc run starts any program outside the sandbox, so grant it only on a machine where that is acceptable.
To use it on your machine only, while the project keeps its own executor, set it in ~/.bakers/machine.config.js:
js
executor: { use: '@bakers-build/addon-herdr-core' },The machine's executor wins for every project on that machine; the project keeps its workspace and hooks. Conductor slots explains the precedence. No with options are required; Options lists them.
Options
Generated from the options.schema.json of @bakers-build/addon-herdr-core; change the schema, not this table.
| Option | Type | Default | Required | Effect |
|---|---|---|---|---|
command | string | claude | Fallback agent command when the agent addons supply none. | |
launch_watch | object | — | Launch-watch windows: how long a start may take and how soon an agent exit counts as a failed launch. | |
launch_watch.timeout_ms | integer | 4000 | Window after start in which an immediate agent exit fails the launch; 0 skips it. | |
launch_watch.start_timeout_ms | integer | 60000 | How long the launch waits for the wrapper to report the start. | |
launch_watch.poll_ms | integer | 50 | Polling interval of both windows. |
Run lifecycle
startRun starts an 80x24 background terminal in the worktree through hc connect. A forwarder passes each resize (SIGWINCH) to the agent. An isolated run starts through a launcher named after its agent, so hc ls names it. Its terminal name holds at most 32 characters of a-z0-9-_. The run's environment travels in a private launch script, not the command line. stopRun does nothing. Cleanup ends (hc kill) and removes (hc rm) only this run's terminals, found by their labels. Run state reaches bakers.build as with herdr.
herdr-core has no workspace of its own and opens no layout. Remote machines (hc run --on) are not used.
Verify
Run bakers conductor check, then a first ticket. The run appears in hc ls, named <identifier>-<run id> in lowercase, in the ticket worktree, with the labels bakers.ticket, bakers.branch and bakers.run. Quit herdr-app: the run keeps working, and hc ls still shows it. When the run is finalised, its terminal ends and disappears.
Package source in a checkout: bakers-cli/addons/herdr-core.