Skip to content
codeband is pre-release. These docs describe its first release, and some of what they describe is still being built.

Start a run in the web interface

Start a run in the web interface when you watch a pipeline on its board and want to start the next run there, without a terminal. In this guide you start a run of the example pipeline ship_feature with a title, on a target repository of your own. At the end, the page for the run is open, and the board has the card Greet the team in the column plan. If a function step fails, see Troubleshooting at the end of this page.

  • You did the Quickstart: you have a clone of codeband with the binary at build/codeband, built with just build, which builds the page into the binary.
  • Your terminal is in the codeband folder. Run each command from there unless a function step says otherwise.

The web interface is a trigger, as codeband run is: it turns what you enter in the start form into a run request and sends it to the daemon through the web interface that codeband dev serves. The form has one field for each part of the run request:

Field Part of the run request
Pipeline The pipeline of the board, as FACTORY/PIPELINE. The form offers every pipeline of the factories that loaded, and a choice of another one gives the form the input fields of that pipeline
Title The title on the card of the run
Target repository An absolute path or a URL. The form offers the locations of earlier runs, newest first
Branch or commit HEAD by default. The daemon resolves the name to one commit, and the form shows its full commit ID and subject. The form can start only once the name names a commit
Input One field for each parameter of the pipeline, with the parameter’s hint under it, or the same input as JSON
Run result destination One of the kinds of run result destination that the daemon has: a patch file or a pull request. The path of a patch file is the folder of a local repository until you change it, and a folder gets the file RUN_ID.patch. A pull request merges into the branch that the commit name names, or that HEAD is on, and into the default branch of the GitHub repository for a commit ID
New tickets folder The folder for the ticket files of the run’s new tickets, which go into a folder named after the run in it. The folder must exist. Empty, the folder of the run is next to the patch file, and with a pull request the run files its new tickets as GitHub issues. The hint under the field says which

The notification channel of the run is the web interface. The daemon pushes nothing to it: the board and the page for the run show the run’s human steps, and every daemon client can answer them and cancel the run. The daemon records the user who runs codeband dev as the one who started the run.

  1. Make a target repository

    The run works on a git repository with at least one commit. Make a new one in /tmp/greeting:

    Terminal window
    git init --quiet /tmp/greeting
    git -C /tmp/greeting commit --quiet --allow-empty -m "Initial commit"

    Both commands print nothing.

  2. Start the daemon, the code server and the web interface

    If codeband dev from the Quickstart still runs, skip this step: it has loaded ship_feature too and serves the web interface. Otherwise, open a second terminal, change to the codeband folder, set your Claude Code login as in the Quickstart, and start codeband dev in the example:

    Terminal window
    just examples/py-factory/dev

    codeband dev prints the address of the web interface with a secret token to stdout. Then the code server logs the pipelines it loaded, ship_feature among them, and the daemon logs Listening. All three keep running. Your token is different:

    Output
    http://127.0.0.1:8765/?token=MDIR3UHKM5P77WSVRO6PHRVHZP
    Nov 25 18:56:08.687 INF Loaded pipelines comp=codeserver pipelines="[intake run_program ship_feature write_hello]" folder=…/codeband/examples/py-factory
    Nov 25 18:56:08.716 INF Serving pipelines comp=codeserver address=unix:~/.local/state/codeband/codeserver.sock
  3. Open the web interface

    Open the address that codeband dev printed in your browser, then open the board of ship_feature at http://127.0.0.1:8765/?view=board&pipeline=py-factory/ship_feature. codeband dev serves the example under the name of its folder, py-factory, so the pipeline is py-factory/ship_feature. The page keeps the token, so this address needs none.

  4. Fill in the start form

    Click Start a run. The form Start a run of py-factory/ship_feature opens on the right of the columns, with py-factory/ship_feature under Pipeline.

    Type Greet the team under Title and /tmp/greeting under Target repository. Leave Branch or commit at HEAD. After a moment, the form shows the full commit ID and the subject of the commit. Your commit ID is different:

    356f0749d99dabbd77ceeb1407a52db77635a8e8 Initial commit

    The input of ship_feature has one field, Instruction, with its default add a file greeting.txt that greets the team. Leave it. Run result destination is Patch file, and Patch file path is /tmp/greeting. Change the path to /tmp, so that the patch does not land in the target repository. Leave New tickets folder empty: new tickets would go next to the patch file. ship_feature ends with no new tickets, so the run writes no ticket file.

  5. Start the run

    Click Start. The button says Starting… until the daemon has fetched the commit and the code server has accepted the input. Then the page for the new run opens, with the title Greet the team, the status running and the stage plan. It follows the agent step planner#0, whose agent transcript grows every two seconds.

Open the board again at http://127.0.0.1:8765/?view=board&pipeline=py-factory/ship_feature. The card Greet the team is in the column plan. After the planner’s agent step, it gets the mark needs an answer, because the run waits at the human step approve_plan. Answer a human step in the web interface goes on from there.

To stop, press Ctrl-C in the terminal of codeband dev.

For an error that this page doesn’t cover, see Run problems.

The form shows commit not found: … is no commit in …

Section titled “The form shows commit not found: … is no commit in …”

The name under Branch or commit names no commit in the target repository, or the target repository is no git repository. Fix the name or the location. Start stays off until the form shows a commit ID.

The form shows The folder has uncommitted changes. The run does not see them.

Section titled “The form shows The folder has uncommitted changes. The run does not see them.”

The folder of the target repository has files that differ from its HEAD, such as a file that git does not track. The run starts from the commit, without them. Commit the changes first when the run needs them.

The form shows run request rejected: the pipeline does not accept the input: …

Section titled “The form shows run request rejected: the pipeline does not accept the input: …”

The code server refused the input, because it does not match the pipeline’s parameters. The text after it names the field and the problem, such as Input should be a valid string for {"instruction": 3} in the JSON editor. The form keeps every value: fix the input and click Start again.

The form shows run request rejected: patch file path … is not absolute

Section titled “The form shows run request rejected: patch file path … is not absolute”

The run result destination can’t take the code change. The same goes for the folder of patch file … does not exist. Fix the path under Patch file path.

  • Run: the parts of a run request and the checks of the daemon before a run starts.
  • Web interface: the board, the start form and what the web interface passes on to the daemon.
  • Cancel a run in the web interface: stop a run from its card or its page.