Skip to content

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 ​

FieldMeaning and default
schema_version1, written by bakers config init.
projectRequired object { name, workspace? }, written literally: the loader reads it without running the file, so no variables or spreads.
project.nameRequired project name. BAKERS_PROJECT overrides it for one process.
project.workspaceWorkspace name. Required only when the project name exists in more than one workspace; the error names the candidates.
serverOptional 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.
executorEngine slot that runs agent sessions, same shape. A machine executor overrides it.
worktreeEngine slot that creates ticket worktrees, same shape.
server.use, server.export, server.with, executor.use, executor.export, executor.with, worktree.use, worktree.export, worktree.withA slot's package, its named factory and the factory's options; see Slot descriptors.
addonsPackages 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[].priorityAn entry's package name, its alias, its options (with) and an optional priority function.
statesOptional 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.
promptAgent 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_msPositive integer, default 5000.
lease_secondsPositive integer requested run lease, default 300; the server caps it at 3600. It is an ownership duration, not a task timeout.
restart_on_changeBoolean, 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_logsBoolean, 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.
hooksOptional 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_execThe lifecycle hooks and on-demand commands.
marketplacesOptional array of agent plugin marketplaces every run of this project installs: { url, ref, plugins }. See Agent plugins.
marketplaces[].url, marketplaces[].ref, marketplaces[].pluginsThe marketplace's Git URL, the ref to check out and the plugins to install from it.
runtime.enabled, runtime.defaultRestrict only: allowed machine runtime aliases, and the default. A project select is refused. See Slot catalogs.
runtime, runtime.read_onlyWorktree-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_denySlot keys; each applies only where the machine's allow lists it.
permissionsDeprecated (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.modesandbox, system or yolo.
permissions.sandbox, permissions.sandbox.deny_read, permissions.sandbox.allow_write, permissions.sandbox.trusted_commandsThe sandbox block and its lists.
select_agentDeprecated, 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.

PackageProvidesOptions
@bakers-build/addon-remote-drupalThe server for a bakers.build control plane, and the default when neither the project nor the connection names oneNone; it uses the connection and engine context.
@bakers-build/addon-herdrExecutor and worktree from one addons entry; the same with goes to bothherdr options
@bakers-build/addon-orcaExecutor and worktree hosted in Orca, from one addons entryOrca options
@bakers-build/addon-workspace-gitA worktree only, without a terminal executor; needs a compatible executorGit 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'] },
],
  • url is a remote Git URL (https://, ssh:// or git@); a local path or file:// URL is rejected. ref is a tag (the fixed version) or a branch. plugins names the plugins to install from that marketplace.
  • Claude in system or 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_HOME when set), keyed by a hash of the list. The run uses only that home: the addon sets CLAUDE_CONFIG_DIR or CODEX_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, set CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY in 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.md requires but the run cannot load stops the run inside the agent, under the bb-workflow stop rule, which names the missing skill.
  • Each run writes one plugins entry to the conductor log: harness, alias, mode, on or off with the reason, hash, home, built, reused or host, 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.json plugins before the first turn), when the project declares none, the harness addon cannot install plugins (only claude and codex can), or the machine's agent entry sets plugins: false.
  • marketplaces belongs to the project; in machine.config.js it 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 info

The online check must pass and the resolved project/workspace must match your checkout. Use project setup for the first connection.