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.
Before you start
Section titled “Before you start”- You did the Quickstart: you have a clone of codeband with the binary at
build/codeband, built withjust build, which builds the page into the binary. - Your terminal is in the
codebandfolder. Run each command from there unless a function step says otherwise.
How the start form makes a run request
Section titled “How the start form makes a run request”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.
-
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/greetinggit -C /tmp/greeting commit --quiet --allow-empty -m "Initial commit"Both commands print nothing.
-
Start the daemon, the code server and the web interface
If
codeband devfrom the Quickstart still runs, skip this step: it has loadedship_featuretoo and serves the web interface. Otherwise, open a second terminal, change to thecodebandfolder, set your Claude Code login as in the Quickstart, and startcodeband devin the example:Terminal window just examples/py-factory/devcodeband devprints the address of the web interface with a secret token to stdout. Then the code server logs the pipelines it loaded,ship_featureamong them, and the daemon logsListening. All three keep running. Your token is different:Output http://127.0.0.1:8765/?token=MDIR3UHKM5P77WSVRO6PHRVHZPNov 25 18:56:08.687 INF Loaded pipelines comp=codeserver pipelines="[intake run_program ship_feature write_hello]" folder=…/codeband/examples/py-factoryNov 25 18:56:08.716 INF Serving pipelines comp=codeserver address=unix:~/.local/state/codeband/codeserver.sock -
Open the web interface
Open the address that
codeband devprinted in your browser, then open the board ofship_featureathttp://127.0.0.1:8765/?view=board&pipeline=py-factory/ship_feature.codeband devserves the example under the name of its folder,py-factory, so the pipeline ispy-factory/ship_feature. The page keeps the token, so this address needs none. -
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_featureunder Pipeline.Type
Greet the teamunder Title and/tmp/greetingunder Target repository. Leave Branch or commit atHEAD. After a moment, the form shows the full commit ID and the subject of the commit. Your commit ID is different:356f0749d99dabbd77ceeb1407a52db77635a8e8 Initial commitThe input of
ship_featurehas one field, Instruction, with its defaultadd 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_featureends with no new tickets, so the run writes no ticket file. -
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 titleGreet the team, the statusrunningand the stageplan. It follows the agent stepplanner#0, whose agent transcript grows every two seconds.
Check that it worked
Section titled “Check that it worked”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.
Troubleshooting
Section titled “Troubleshooting”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.
Related
Section titled “Related”- 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.