Skip to content

Build your first addon ​

Use addons to make agents available in bakers.build, give them project tools, and add operations to tickets. This guide shows what you can build, how to package it, and where to implement each integration.

What can you extend? ​

Start with the capability your project needs:

You want to…The addon provides…
Use an AI coding program with bakers.buildAn agent harness that translates between bakers.build and your program's launch and transcript APIs.
Control how a ticket's checkout is preparedA workspace integration that creates and manages its working directory.
Give agents an additional operationA tool that an agent can call during a run.
Let someone request an operation from a ticketA message with a button or form and an answer in the control panel.

One addon can provide several capabilities. You implement the operations in JavaScript and register them through a preset. The API reference defines the supported exports.

How bakers.build loads an addon ​

Create a JavaScript package with a preset: a module that tells bakers.build what the addon provides. List the package in configuration; bakers.build imports its preset and registers the declared capabilities. The package can live in your project; publishing it to npm is optional.

PiecePurpose
package.jsonNames the package and exposes its ./preset entry.
preset.jsExports your implementations through names bakers.build recognizes.
An addons configuration entryEnables the package on a machine or in a project.

For example, agents registers an agent harness, tools registers callable operations, and inbox declares ticket messages. The package's scopes export declares where it can be enabled. Agent harnesses belong to the machine where their programs run; project tools belong to the project that needs them.

What you will build ​

Each example implements a new integration:

  1. Add an agent: write a harness for a program bakers.build does not yet support.
  2. Add a client: start and close agent terminals in your application through its CLI.
  3. Extend the control panel: implement an operation and make it callable from a ticket.

The harness and client guides define a small example CLI/API, then show the complete adapter, registration and verification. Their external programs are hypothetical so you can see which parts must be adapted to your own software.

Verify ​

Use a disposable project and the checks in each guide. First verify the adapter against your program's CLI or API, then check configuration, restart the conductor and dispatch a ticket. A configuration check proves registration; the live run proves your external program works with it.

Add a ticket message ​

To let someone call an operation from a ticket, declare a message. bakers.build displays its button or form and the returned answer. Extend the control panel implements a read-only worktree check through tools and inbox.

Remove the example ​

Remove its addon entry and any catalog entry referring to it, restart the conductor, then delete only the example package. When replacing a client integration, restore the project's previous executor configuration before dispatching further runs.

Extend your addon ​

Continue with Tools, Messages, the preset API and the executor/workspace lifecycle.