Web interface
The web interface is a page in your browser that shows the pipelines of the daemon’s factories, their runs and the scores of those runs, and that starts runs, answers human steps, cancels runs and delivers run results. codeband dev serves it next to the daemon and the code server of the factory in its working folder. codeband web serves it alone, next to codeband daemon. Both print its address with a secret token to stdout:
http://127.0.0.1:8765/?token=6EGHLUQPNTZGR2EWX2HUGA3KWQOpen the address with its token in a browser. After that, the browser has the token, and http://127.0.0.1:8765/?pipeline=py-factory/intake opens the graph of py-factory/intake, http://127.0.0.1:8765/?view=runs opens the run list, http://127.0.0.1:8765/?view=board&pipeline=py-factory/write_hello opens the board of py-factory/write_hello, and http://127.0.0.1:8765/?view=run&id=RUN_ID opens the page for one run, where RUN_ID is the run ID that codeband run prints.
The page has four views, which the Pipelines, Runs, Board and Dashboard buttons in its header switch between, and the page for one run. Pipelines lists the pipelines of each factory of the daemon and draws the preview graph of the one you pick, with the arrows between its nodes. It marks an incomplete graph and shows the reason for a pipeline with no graph. Runs lists the runs of all pipelines. Board shows the runs of the pipeline you picked in Pipelines as cards in columns. Dashboard shows the scores of the runs of the factory of the pipeline you picked. A run in the list or on the board opens the page for that run.
The page opens in a light theme. The moon button at the right of the header switches to a dark theme, and the sun button switches back. The browser keeps your choice for the next pages of the same address.
Pipelines
Section titled “Pipelines”The pipelines screen groups the pipelines by factory, under the name that codeband.toml or codeband dev gives each one, and names each pipeline as FACTORY/PIPELINE, such as py-factory/intake. A factory that failed, because its code server does not answer or its code does not load, shows in its place with the reason and no pipelines. The pipelines of the other factories work as before.
The page gets the factory manifests from the daemon when it loads, and the daemon sends it each factory that changes after that. A factory reload of codeband dev, and a factory that failed or came back, show on the pipelines screen, in the preview graphs and in the start form of the board without a refresh of the browser. The page shows the old factory manifest until the new one arrives. The pipeline you picked stays picked while the new factory manifest still has it. An open start form keeps what you typed in the input fields that the new input schema still has, and shows the new fields.
Next to codeband daemon, the daemon learns of a code server that started again with changed code at the next invocation of one of its runs. The Reload button asks the daemon for the factory manifests at once. When no daemon answers, the page shows the reason, keeps the pipelines it already shows, and connects again every two seconds.
Run list
Section titled “Run list”The run list shows the newest run first. Each row has the run’s title, or its run ID for a run without a title, then the pipeline as FACTORY/PIPELINE, the status, the stage, the running steps, the start time and the cost so far, and the mark waits for an answer while a human step of the run is open. The stage is the one the run entered last, and its place stays empty for a run that has not entered a stage. The running steps are named by their agent for an agent step and by their name for other steps, with a count when several have the same name, such as reviewer × 3. The list changes while you watch it, with no reload: a run that you start with codeband run shows up as running, and its row changes when its status, stage, running steps or cost change. When the connection to the daemon breaks, the page says so, connects again every two seconds, and then shows the current state of every run.
The board of a pipeline has one column for each stage. The first column holds the runs without a stage. The pipeline’s declared stages follow in declared order, and after them comes one column for each stage that a run recorded and the pipeline no longer declares, such as a stage you renamed. A card shows the run’s title, or its run ID for a run without a title, the run ID, a status mark (running, needs an answer, finished, stopped, failed or cancelled), the running steps named as in the run list, and the cost so far. It also shows the time since the start of a run that goes on, or from the start to the end of an ended run. A stopped or failed card shows the reason. A card moves to another column when its run enters another stage, with no reload. A run that waits for an answer or has ended stays in the column of its last stage. In a column, the runs that go on come before the ended ones. The board shows the runs that have not ended and the runs that ended in the last 24 hours, and the switch Show ended runs hides the ended ones.
Start a run on the board opens a form that starts a run of its pipeline. Its Pipeline field offers every pipeline of the factories that loaded, as FACTORY/PIPELINE, and a choice of another pipeline gives the form the input fields of that pipeline. The form also has a title, a target repository, a branch or commit name that the daemon resolves to a commit ID before Start turns on, the input, the Run result destination: a patch file and its path, or a pull request, and the New tickets folder, in which the run writes the files of its new tickets into a folder named after the run. The field starts empty. 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 of the pull request’s repository. After the start, the page for the run opens. The guide Start a run in the web interface describes the form.
Page for one run
Section titled “Page for one run”A click on a card of the board, or on the title or run ID in a row of the run list, opens the page for that run. Its header shows the run’s title, pipeline as FACTORY/PIPELINE, status, stage, time and cost. The time counts from the start until now, or until the end of a run that ended. The left side lists the run’s steps in the order they started, each with its kind and status. Steps in a row that started in the same stage form a group with the name of the stage. Steps outside every stage block form a group named no stage at the place where they ran, so a run that enters build, opens a human step and then enters review has three groups. The right side shows the step that you select:
| Step | The page shows |
|---|---|
| Agent step | Its agent transcript: the live output of an attempt while it runs, and of each attempt that ended, the stored agent transcript and the raw agent transcript to open or download. Its step request: the agent, the start commit, the sandbox as the name of its definition and its kind, such as go (host), the rendered prompt and the input. Its attempts, each with its status, its start and end commit, its cost and why it failed. When it ends, its step output and a summary with the end commit, the cost, the changed paths and the step artifacts, or the attempt failure of its last attempt. An agent step with write access lists no changed paths |
| Shell step | Its live output while it runs. Its arguments and its sandbox, and when it ends, its step output with the exit code, the last 64 KiB of its output and the complete output to open or download |
| Function step | Its step output, the value that it returned, or its error |
| Human step | Its question, as indented JSON in which a text field of several lines shows as its lines. While it is open, a form for the answer, built from the answer type. When it is closed, its answer with the user who gave it, or why it closed without one |
A step is running until it has a value, then ok or failed. A human step is open until it has an answer, then answered. A human step that has no answer when its run ends is closed, and a step of another kind that has no value then is unfinished. The page reads the run journal of the run from its first entry and adds each new step and value while the run goes on. When the connection to the daemon breaks, the page says so, connects again every two seconds, and goes on after the last journal entry it has.
Until you select a step, the page follows the run. It shows the step that started last of those that run or wait for an answer, moves to the next step when that one starts, and stays on the last step while none runs. A click on a step stops the following, and the page stays on that step until you reload it. When several steps run at the same time, the list marks each of them running, and you click the one you want to read.
The live output of an agent step shows the text, the tool calls and their tool results as they happen, each attempt apart from the others. A tool call shows the tool and the start of its input, and a click on it shows the whole input. Its tool result shows under it, marked Returned, or Failed for a call that failed, with its first line. A click on the tool result shows all of it that arrived. The page gets at most the first 16 KiB of a tool result, and a longer one ends with a note such as Cut at 16 KiB of 244 KiB; the agent transcript keeps all of it. The entries of a subagent show indented under the tool call that started it. The live output of a shell step is the standard output and standard error of its program as it writes them. The box of the live output scrolls with new output until you scroll up in it. When you open the page while an agent step or shell step runs, its live output starts from the start of the attempt or program. The live output is not in the run journal: a shell step that ended before you opened the page shows none. When the connection to the daemon breaks, the page connects again and shows each entry and each byte of output once.
An attempt of an agent step that ended before you opened the page, such as an attempt of a run that ended yesterday, shows Show the agent transcript in place of the live output. A click on it loads the agent transcript of the attempt from the daemon, which reads it from the raw agent transcript in the run store. It has the same form as the live output, and every tool result is whole. The page loads an agent transcript only when you open it, not when the page opens. An attempt that ended while the page was open keeps the live output that the page got. Each attempt that ended has its raw agent transcript, as the harness wrote it, to open or download as STEP-attempt-N.jsonl, such as writer-0-attempt-0.jsonl.
A step artifact is a file that an agent step produced, such as a spec or a report. The page lists each step artifact of an agent step with its name, media type and size. Download saves the file under its name. Open shows it in a new tab when it is text, an image or a PDF, and text of every kind shows as plain text there, so an HTML file of an agent can’t run scripts with the rights of the page.
A run that ended with a code change shows it under its header, in the section Code change: its title, its description, its commit, where the engine delivered it (Delivered to) or why it could not (Could not deliver), and the patch to open or download as RUN_ID.patch. git am applies the patch to the target repository at the run’s start commit.
A run whose run result has new tickets lists them under the code change, in the section New tickets: the title and the tags of each one, in the order of the run result, and the path of its ticket file, the URL of its issue, or why the engine could not deliver it.
The section Scores shows each score of the run with its value, its explanation and its scorer. Score again scores this run again with the current scorers. The section Run forks lists the run’s parent and its run forks side by side, each with its scores, its cost and its time, and with the step output of each at the agent step where it branches off. A click on a run fork opens its page.
A run that ended with a run result that was not delivered, such as a run fork, has the button Deliver in its header. It asks for a patch file and its path or a pull request, then delivers the recorded code change and new tickets as codeband deliver does, and the sections Code change and New tickets show where each part went.
The entry Run journal at the end of the list of steps shows the run journal journal entry by journal entry. Each journal entry has its sequence number, its kind, the time the run store wrote it, and the entry as JSON in the form of the run journal file, without the sequence number and time. The run journal view grows while the run goes on.
Dashboard
Section titled “Dashboard”The dashboard of a factory shows one row for each scorer, the built-in ones of the SDK and those of the factory, and one column for each week. A cell shows the median of a number, such as the cost of a run, the share of passes of a pass or a fail, such as ci_first_try, or the share of each label. Under each value, the cell shows how many runs had a score and how many had none. A run without a score for a scorer never counts as a score of zero.
The Pipeline filter limits the dashboard to the runs of one pipeline. Group by splits each row by the model or the harness of the runs’ agent steps, such as the runs on Claude Code next to the runs on Codex CLI. A click on a cell lists the runs behind it, and a run in that list opens its page. Score again scores all runs of the pipeline in the filter again with the current scorers, and the cells change as the new scores arrive.
Answer a human step
Section titled “Answer a human step”The form of an open human step has a field for each property of the answer type: a checkbox for yes or no, a choice for fixed values, a text box for text and numbers, a text area for text with a text media type or a maximum length over 200 characters, and a list of these. Edit as JSON shows the same answer as JSON, and an answer type that the fields cannot show, such as a list of objects, opens there. Answer sends it as codeband answer does. The code server of the run’s factory checks the answer, and the form shows its error text for an answer that it refuses, such as answer rejected: human step approve_plan#0 does not accept the answer: …. The form takes input while the human step is open. When the human step closes before you answer, because someone else answered it or the run was cancelled or failed, the form turns read-only, shows what happened and keeps the text that you typed. You can answer every open human step, also one of a run that someone started with codeband run, and the first answer that the run accepts counts. A card with the mark needs an answer opens the page for its run at the open human step. The guide Answer a human step in the web interface shows it step by step.
Cancel a run
Section titled “Cancel a run”A card of the board and the header of the page for one run have a Cancel run button while the run runs or waits for an answer. It asks you to confirm, then cancels the run as codeband cancel does: a running agent step or shell step stops, and an open human step closes. The card and the page show the run as cancelled when it has stopped, and the button goes away. You can cancel every run, also one that someone started with codeband run. The guide Cancel a run in the web interface shows it step by step.
Read-only view
Section titled “Read-only view”codeband web --read-only serves the page for visitors who watch a factory at work. It connects to daemon-read.sock, the read-only address of the daemon, which refuses every call that starts, answers, cancels, delivers or scores. The page shows the same views, the dashboard and the page for each run, without Start a run, the answer form, Cancel run, Deliver and Score again. It needs no token, so you can serve it on a public address:
codeband web --read-only --addr 0.0.0.0:8080A visitor reads everything that the run store holds: prompts, agent transcripts, step outputs and the output of shell steps. The daemon replaces the values of the variables of an attempt or a shell step with *** before it records them, so a token that an agent printed does not show. A variable whose source is value is not masked. The code change is not masked either, so a secret that an agent committed shows in the patch of the run. Text that an agent read from elsewhere, such as a private file of the target repository, does show. Serve the read-only view only for factories whose target repositories you would show.
Token and origin
Section titled “Token and origin”The page calls the daemon’s API through the command that serves it, codeband dev or codeband web, which passes each call on to the daemon. It passes on the calls that read the factories, the runs and their stored data, the start of a run, the answer to a human step and the cancellation of a run, and refuses every other call. The daemon records the user who runs that command as the one who started, answered or cancelled.
Each start of codeband dev or codeband web makes a new secret token and prints it in the query of the address, as ?token=. The page takes the token from the address when it opens, keeps it in the browser for the next pages of the same address, and sends it with each call in the header Authorization: Bearer TOKEN. The command refuses a call without the token, or with the token of an earlier start, with the request has no token or a wrong one: open the address that codeband web or codeband dev prints, with its token. A page with no token, or with a kept token that a new start refused, says so in its header and forgets that token. The token keeps other users and programs of the machine from reading your runs, starting runs, answering their human steps and cancelling them through the port. The files of the page need no token: they are the same for everyone.
It also refuses a call from a web page whose origin is not its own address, with the web interface does not answer pages of origin "ORIGIN", so a page of another site in your browser can’t call it. On a loopback address, it answers only requests for localhost, 127.0.0.1 or ::1. Keep the default loopback address: anyone with the token who can reach the address can read the factory manifests of your factories and your runs, with their prompts, start runs, answer their human steps and cancel them.
Related
Section titled “Related”- Start a run in the web interface: fill in the start form of a pipeline’s board.
- Answer a human step in the web interface: follow a card to its human step and answer it with the form.
- Cancel a run in the web interface: stop a run from its card.
- codeband dev: the command that serves the web interface while you write pipelines.