Project
.bakers/project.config.js is the committed file that names a bakers.build project and wires the engine that works its tickets: the executor and the worktree.
It holds no credentials and no agent policy. The server and sign-in come from the connection: a connection that names no server is served by @bakers-build/addon-remote-drupal. Host identity and agents come from the machine. bakers config init --scope project --project <name> writes the file; bakers config check --scope project validates it offline by reading addon presets.
The generated file
js
// @bakers-schema-version 1
/** @type {import('@bakers-build/core').ProjectConfig} */
export default {
schema_version: 1,
project: { name: 'demo', workspace: 'Engineering' },
capture_logs: true,
addons: ['@bakers-build/addon-herdr'],
};herdr's preset fills the executor and the worktree. The generator also writes a hooks block when you answered its questions. --server, --executor and --worktree write an explicit choice instead of the defaults (Conductor slots).
The file carries no identity and is identical for everyone. bakers derives the conductor id <machine_id>-<project>-<variant> at runtime from the machine file's machine_id, project.name and the variant (conductor for project.config.js, review for project.review.config.js); it is never written to a config, and bakers conductor ls prints it as the last column. A new conductor is named <machine label> · <project>, plus /<variant> for a variant other than conductor; rename it on its Settings tab. When this machine, project and variant already have a conductor under an older id, the first bakers conductor start offers to take it over (bakers conductor).
Fields
| Field | Meaning and default |
|---|---|
schema_version | 1, written by bakers config init. |
project | Required object { name, workspace? }, written literally: the loader reads it without running the file, so no variables or spreads. |
project.name | Required project name. BAKERS_PROJECT overrides it for one process. |
project.workspace | Workspace name. Required only when the project name exists in more than one workspace; the error names the candidates. |
server | Optional engine slot that talks to the control plane: { use, export?, with? }, or a constructed plugin with kind: 'server'. It and a server addon in addons win over the connection's server; without either, the connection's server is used, by default @bakers-build/addon-remote-drupal. |
executor | Engine slot that runs agent sessions, same shape. A machine executor overrides it. |
worktree | Engine slot that creates ticket worktrees, same shape. |
server.use, server.export, server.with, executor.use, executor.export, executor.with, worktree.use, worktree.export, worktree.with | A slot's package, its named factory and the factory's options; see Slot descriptors. |
addons | Packages that contribute slots and tools: a name, or { use, alias?, with? }. A direct slot beats an addon; otherwise the last contributor wins with a warning. with is checked against the addon's options schema. Agent harnesses belong in the machine file. |
addons[].use, addons[].alias, addons[].with, addons[].priority | An entry's package name, its alias, its options (with) and an optional priority function. |
states | Optional array of non-empty state strings; omitted or empty seeds all claimable states on first registration. Later edits belong on the conductor Settings tab or API; changing this file does not update an existing registration. |
prompt | Agent prompt template with {identifier}, {state}, {run_uuid} and {ticket_uuid}. The default tells the agent to read the ticket and comments, read WORKFLOW.md and run only the current state. Keep a custom prompt short and on one line. |
poll_interval_ms | Positive integer, default 5000. |
lease_seconds | Positive integer requested run lease, default 300; the server caps it at 3600. It is an ownership duration, not a task timeout. |
restart_on_change | Boolean, default true: a running conductor restarts itself when a config file, the secrets file or the installed CLI version changes. Needs Node.js 22.15 or later. |
capture_logs | Boolean, default true. Transcripts upload only where the server's run-log storage policy allows it; false keeps this conductor's transcripts local even then. Metrics are unaffected. |
hooks | Optional command object. Lifecycle hooks owns its keys, timing, environment, failure behavior and on-demand provision_up profiles. |
hooks.after_create, hooks.before_run, hooks.after_run, hooks.after_done, hooks.on_freeze, hooks.on_resume, hooks.provision_up, hooks.provision_exec | The lifecycle hooks and on-demand commands. |
marketplaces | Optional array of agent plugin marketplaces every run of this project installs: { url, ref, plugins }. See Agent plugins. |
marketplaces[].url, marketplaces[].ref, marketplaces[].plugins | The marketplace's Git URL, the ref to check out and the plugins to install from it. |
runtime.enabled, runtime.default | Restrict only: allowed machine runtime aliases, and the default. A project select is refused. See Slot catalogs. |
runtime, runtime.read_only | Worktree-relative paths an isolated run sees read-only and cannot change in a commit, for example ['.ddev', '.github']. .bakers is always protected. A listed path must exist, or dispatch fails. Project config only. See Protected paths. |
runtime.image, runtime.shared, agents, agents.args, agents.model, agents.effort, agents.permissions, agents.sandbox, agents.sandbox.trusted_commands, agents.sandbox.deny_read, agents.sandbox.allow_write, agents.sandbox.network, agents.sandbox.mcp_servers, agents.config, agents.env_deny | Slot keys; each applies only where the machine's allow lists it. |
permissions | Deprecated (warns); use agents.permissions. Run permissions for every agent of every machine that runs this project. The machine's own block and a harness entry replace it key by key; '$inherit' keeps the layer below. A block that loosens the sandbox gives anyone who can push here more rights on those machines and warns at every load. See Shared run security. |
permissions.mode | sandbox, system or yolo. |
permissions.sandbox, permissions.sandbox.deny_read, permissions.sandbox.allow_write, permissions.sandbox.trusted_commands | The sandbox block and its lists. |
select_agent | Deprecated, warns at load. Function (candidates, ticket) => candidate replacing the agent choice; use the machine's agents.select. |
Unknown keys fail.
Offline checks import addon preset modules to read their contributions, scopes and nested addons; they make no server connection and do not evaluate your configuration file. Keep preset imports free of side effects. An unresolved package remains opaque and missing slots are reported as unknown_value until its preset can be read.
Slot descriptors
A slot entry { use, export, with } names an installed package. use resolves from the config directory, then the current directory, then the CLI install. export picks a named factory; without it the default export is used, and a package with several function exports and no default needs export. with is the factory's options. A config need not import its plugin packages.
| Package | Provides | Options |
|---|---|---|
@bakers-build/addon-remote-drupal | The server for a bakers.build control plane, and the default when neither the project nor the connection names one | None; it uses the connection and engine context. |
@bakers-build/addon-herdr | Executor and worktree from one addons entry; the same with goes to both | herdr options |
@bakers-build/addon-orca | Executor and worktree hosted in Orca, from one addons entry | Orca options |
@bakers-build/addon-workspace-git | A worktree only, without a terminal executor; needs a compatible executor | Git workspace |
Conductor slots explains ownership and selection.
Agent plugins
Declare the plugins every run needs once, here, so every machine runs with the same skills and hooks:
js
// Fragment: add inside the exported object.
marketplaces: [
{ url: 'https://github.com/mattpocock/skills.git', ref: 'v1.3.2', plugins: ['mattpocock-skills'] },
{ url: 'https://github.com/obra/superpowers.git', ref: 'v7.0.0', plugins: ['superpowers'] },
],urlis a remote Git URL (https://,ssh://orgit@); a local path orfile://URL is rejected.refis a tag (the fixed version) or a branch.pluginsnames the plugins to install from that marketplace.- Claude in
systemor the bypass mode without an isolating runtime uses your own~/.claude: it installs missing plugins there and warns, changing nothing, about a marketplace at another ref or a disabled plugin.home: 'individual'(options) chooses the agent home. - Otherwise, before each launch, the agent addon installs the list with the harness's own commands into an agent home at
~/.cache/bakers/agent-homes/<harness>/<hash>/($XDG_CACHE_HOMEwhen set), keyed by a hash of the list. The run uses only that home: the addon setsCLAUDE_CONFIG_DIRorCODEX_HOME, links only the credential file (~/.claude/.credentials.json,~/.codex/auth.json; a Claude refresh inside the home stays yours), trusts the run's worktree and leaves your own agent home untouched. Codex then starts with--dangerously-bypass-hook-trust, so plugin hooks run without a trust prompt. For a macOS keychain login, setCLAUDE_CODE_OAUTH_TOKENorANTHROPIC_API_KEYin the secrets file; without any login the run start fails. - The conductor checks no skills before the launch: the install is the only gate. A skill a recipe or
WORKFLOW.mdrequires but the run cannot load stops the run inside the agent, under thebb-workflowstop rule, which names the missing skill. - Each run writes one
pluginsentry to the conductor log: harness, alias, mode, on or off with the reason, hash, home,built,reusedorhost, the marketplaces, trust bypass and warnings. A failed install fails the run with the reason in its error log. - Plugins are off, and the run uses your own agent home (Claude then installs the
.claude/settings.jsonplugins before the first turn), when the project declares none, the harness addon cannot install plugins (onlyclaudeandcodexcan), or the machine's agent entry setsplugins: false. marketplacesbelongs to the project; inmachine.config.jsit fails loading.
Serve fewer states or poll more slowly
js
// Fragment: add inside the exported object.
states: ['working', 'review'],
poll_interval_ms: 10000,Use real workflow state names (Workflows and states). Add qualification when it should qualify hand-written tickets.
Named variants
A variant is a second, complete project file .bakers/project.<name>.config.js, for example project.review.config.js with states: ['review']. It is not an overlay: it repeats project and every slot it needs. Its variant is review, so it registers as a separate conductor. Select it with --conductor review or BAKERS_CONDUCTOR=review; without a selector project.config.js is used, or the only file when there is just one. See Conductors.
Shared values can live in a module both files import; bakers config check reports a value it cannot read statically as not checked. Keep project literal.
Verify
sh
bakers config check --scope project --online
bakers infoThe online check must pass and the resolved project/workspace must match your checkout. Use project setup for the first connection.