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

codeband CLI

codeband is the one binary of codeband. This page lists each command with its arguments, flags, environment variables, defaults, output and exit codes. Architecture shows how the CLI, the daemon and the code server work together, and the Quickstart uses codeband dev and codeband run end to end.

Terminal window
codeband [global flags] <command> [flags] [arguments]
Command What it does Needs a daemon
codeband init Writes a new factory with one pipeline and one agent No
codeband new Adds a pipeline or an agent to the factory in the working folder No
codeband dev Runs the daemon, the code server of the factory in the working folder and the web interface No
codeband codeserver Runs the code server of the factory in the working folder No
codeband daemon Runs the daemon in the foreground No
codeband run Starts a run of a pipeline and follows it to its end Yes
codeband attach Follows a run to its end and answers its human steps Yes
codeband show Prints the summary of a run and a line for each of its steps Yes
codeband ls Lists the runs, newest first Yes
codeband answer Answers an open human step of a run Yes
codeband graph Prints the preview graph of a pipeline Yes
codeband check Fails when a pipeline has an opaque node, no preview graph or a setup problem Yes
codeband web Serves the web interface, which shows the pipelines, the runs, each run step by step and the dashboard, and starts, answers, cancels and delivers runs Yes, for its page
codeband cancel Cancels a run Yes
codeband deliver Delivers the recorded run result of a run that ended, such as a run fork Yes
codeband harness list Lists the harnesses and whether they can run on this machine No
codeband harness run claude Runs one attempt with Claude Code in a folder No

codeband harnesses is another name for codeband harness. codeband help COMMAND, codeband COMMAND --help and -h print the help of a command. codeband --version and -v print the version. After a command name, -v is the --verbose flag of codeband run, codeband attach and codeband show.

codeband dev and codeband codeserver need the code server command that the SDK of your factory installs. codeband --help lists the two commands only when it finds that command, so run codeband in the environment of your factory: uv run codeband for the Python SDK.

The daemon runs the runs and is the only process that writes run data. Every command in the table that needs a daemon connects to the daemon’s Unix socket daemon.sock in the state folder. The state folder is $XDG_STATE_HOME/codeband, or ~/.local/state/codeband when XDG_STATE_HOME is not set. Each of these commands takes --stateDir, or the environment variable CODEBAND_STATE_DIR, to use another folder. Give the daemon, the code server and every command the same state folder, or they don’t find each other.

When no daemon listens in the state folder, the command prints this line to stderr and exits with code 2. codeband web keeps running and shows the line on its page instead:

no daemon answers on ~/.local/state/codeband/daemon.sock: start one with 'codeband daemon'

codeband daemon and codeband web print the codeband banner to stderr when they start, unless you set --noBanner. No other command prints it. Logs and error messages go to stderr too. Every log record of codeband daemon, codeband dev, codeband codeserver and codeband web has a comp attribute that names the part of codeband that logged it: daemon, codeserver or web. The code server’s records are in the format of --log.format too. Stdout holds only what another program reads: the final line of a run, a run ID, the list of runs, a graph, the URL of the web interface or a harness result. codeband show prints a whole run to stdout. The lines that codeband run and codeband attach print for each step go to stderr. The examples on this page leave out the banner.

Every command takes the global flags, before or after the command name: codeband --noBanner run py-factory/intake and codeband run --noBanner py-factory/intake do the same.

Flag Environment variable Default Description
--log.format CODEBAND_LOG_FORMAT console Log format: console, text or json
--log.level CODEBAND_LOG_LEVEL info Lowest level that is logged: debug, info, warn or error. codeband dev and codeband codeserver give the code server the same level
--log.source CODEBAND_LOG_SOURCE false Add the source file and line of each log statement to the log line
--noBanner CODEBAND_NO_BANNER false Don’t print the codeband banner when daemon or web starts

The telemetry flags export the metrics and traces of a codeband process with OpenTelemetry. Each one also reads the standard OpenTelemetry variables after its CODEBAND_ variable.

Flag Environment variables Default Description
--aws.region AWS_REGION The AWS region that this process runs in
--metrics.enabled CODEBAND_METRICS_ENABLED false Expose metrics
--metrics.exporter CODEBAND_METRICS_EXPORTER, OTEL_METRICS_EXPORTER prometheus prometheus serves the metrics for scraping. otlp pushes them to --metrics.otlp.endpoint, for short-lived commands that a scraper would miss
--metrics.host CODEBAND_METRICS_HOST, OTEL_EXPORTER_PROMETHEUS_HOST localhost Network interface of the metrics endpoint
--metrics.otlp.endpoint CODEBAND_METRICS_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, OTEL_EXPORTER_OTLP_ENDPOINT localhost:4317 OTLP gRPC collector to push metrics to, as host:port or a URL
--metrics.otlp.headers CODEBAND_METRICS_OTLP_HEADERS, OTEL_EXPORTER_OTLP_METRICS_HEADERS, OTEL_EXPORTER_OTLP_HEADERS Headers sent with every metrics push, as key=value, comma separated
--metrics.otlp.insecure CODEBAND_METRICS_OTLP_INSECURE, OTEL_EXPORTER_OTLP_METRICS_INSECURE, OTEL_EXPORTER_OTLP_INSECURE false Push metrics without TLS
--metrics.otlp.interval CODEBAND_METRICS_OTLP_INTERVAL OTEL_METRIC_EXPORT_INTERVAL (milliseconds), else 60s Time between metrics pushes. The process pushes once more when it stops
--metrics.path CODEBAND_METRICS_PATH /metrics Path of the metrics endpoint
--metrics.port CODEBAND_METRICS_PORT, OTEL_EXPORTER_PROMETHEUS_PORT 6060 Port of the metrics endpoint
--tracing.enabled CODEBAND_TRACING_ENABLED false Export traces
--tracing.endpoint CODEBAND_TRACING_ENDPOINT, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_ENDPOINT localhost:4317 OTLP gRPC collector for traces, as host:port or a URL
--tracing.headers CODEBAND_TRACING_HEADERS, OTEL_EXPORTER_OTLP_TRACES_HEADERS, OTEL_EXPORTER_OTLP_HEADERS Headers sent with every trace export, as key=value, comma separated
--tracing.insecure CODEBAND_TRACING_INSECURE, OTEL_EXPORTER_OTLP_TRACES_INSECURE, OTEL_EXPORTER_OTLP_INSECURE false Send traces without TLS

Writes a new factory into the folder, which it makes, or into the working folder. The factory loads and runs as it is: it has the pipeline implement, which runs one agent step of the agent implementer with the instruction of its run input and ends the run with the code change of that agent step. codeband init runs no package manager and no git.

Terminal window
codeband init [flags] [FOLDER]

Run it with the SDK of the language you write pipelines in. For the Python SDK:

Terminal window
uvx --from codeband-sdk codeband init my-pipelines
Flag Environment variable Default Description
--sdk CODEBAND_SDK python SDK, and so the language, of the factory. python is the only SDK

The name of the package is the folder name with _ in place of -, such as my_pipelines. It must be lower-case letters, digits and _, with a letter first, and no Python keyword. The command prints what it wrote and the next steps, and exits with code 0:

Output
Wrote the factory my-pipelines with the pipeline implement and the agent implementer.
Next steps:
cd my-pipelines
uv run codeband dev

Python SDK lists the files and the layout. In these cases codeband init writes nothing, prints the message to stderr and exits with code 1:

Message Cause
my-pipelines holds '.gitignore': init writes only into an empty or new folder The folder holds a file
the package name 'My_Pipelines' of folder 'My-Pipelines' must be … The folder name gives no valid package name
unknown SDK 'rust': the SDKs are python --sdk names no SDK

Adds a pipeline or an agent to the factory in the working folder, in the layout and the language that codeband init writes. A pyproject.toml marks a factory of the Python SDK.

Terminal window
codeband new pipeline NAME
codeband new agent NAME
Command What it writes
codeband new pipeline NAME The module of the pipeline NAME with the parameter instruction, which ends the run with no code change, and the pipeline’s entry at the end of the list of pipelines
codeband new agent NAME The module of the agent NAME with its input and output types, on Claude Code, and its prompt template NAME.md next to it

NAME is lower-case letters, digits and _, with a letter first, and no Python keyword. Each command prints what it wrote and exits with code 0:

Terminal window
$ uv run codeband new agent reviewer
Wrote the agent reviewer and its prompt template reviewer.md into my_pipelines/agents.
$ uv run codeband new pipeline review
Wrote the pipeline review and added my_pipelines.pipelines.review:review to [tool.codeband] pipelines in pyproject.toml.

codeband new pipeline changes no other byte of pyproject.toml, so its comments stay. codeband dev then loads the new pipeline. In these cases the command writes nothing, prints the message to stderr and exits with code 1:

Message Cause
my_pipelines/agents/reviewer.md exists The factory has a pipeline or an agent of this name
the pipeline name 'Review' must be lower-case letters, digits and _, with a letter first, and no Python keyword The name has another form. The agent name has the same rule
no pyproject.toml in FOLDER: run codeband new in a factory The working folder is not a factory
no folder PACKAGE of the package of project 'NAME' in FOLDER The working folder has no package folder named after [project] name in pyproject.toml, with _ in place of -
FOLDER/pyproject.toml has no [tool.codeband] pipelines pyproject.toml has no list of pipelines

Starts the factory code server of the factory in the working folder, runs the daemon and serves the web interface, all in the foreground of one terminal, until you press Ctrl-C or send it SIGTERM. We recommend it while you write pipelines. To serve several factories, start codeband daemon and a codeband codeserver for each. codeband web serves the web interface alone.

Terminal window
codeband dev [flags]

codeband dev starts the same code server command as codeband codeserver.

Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband Folder of the two sockets, the daemon’s lock, bare clones and workspaces
--storeDir CODEBAND_STORE_DIR <stateDir>/store Root folder of the run store
--codeServerCommand CODEBAND_CODE_SERVER_COMMAND codeband-codeserver Command that starts the code server, as a name on the PATH or a path. It gets no arguments and reads the state folder from CODEBAND_STATE_DIR
--config CODEBAND_CONFIG codeband.toml in the working folder, else in $XDG_CONFIG_HOME/codeband Path of the config file. It must not have a factories table
--factory CODEBAND_FACTORY The name of the working folder Name of the factory, the first part of each pipeline name, such as my-pipelines in my-pipelines/intake. It holds lowercase letters, digits, - and _
--webAddr CODEBAND_WEB_ADDR 127.0.0.1:8765 Address of the web interface, as host:port. Port 0 picks a free port
--rateLimitBackoff CODEBAND_RATE_LIMIT_BACKOFF 5m0s,15m0s As for codeband daemon
--reload CODEBAND_RELOAD true Loads the factory again when a file changes

codeband dev reads the config file, takes the daemon’s lock and checks the version of git as codeband daemon does. Then it serves the web interface on --webAddr, as codeband web does, and prints its URL with a secret token to stdout. Then it starts the code server and waits until it answers. Then it starts the daemon as codeband daemon does. The code server listens on codeserver.sock in the state folder. codeband dev writes the log records of all three to stderr in one format. With --log.level debug, the code server also logs each request it gets:

Output
Nov 24 15:35:47.063 INF Read the config file comp=daemon path=~/src/my-pipelines/codeband.toml
Nov 24 15:35:47.072 INF Checked programs comp=daemon git=2.53.0
Nov 24 15:35:47.073 INF Serving the web interface comp=web addr=127.0.0.1:8765
Nov 24 15:35:47.073 INF Started code server comp=daemon command=~/src/my-pipelines/.venv/bin/codeband-codeserver pid=15388
Nov 24 15:35:47.074 INF Waiting for the code server comp=daemon code_server=unix:~/.local/state/codeband/codeserver.sock
Nov 24 15:35:49.271 INF Loaded pipelines comp=codeserver pipelines="[intake run_program write_hello]" folder=~/src/my-pipelines
Nov 24 15:35:49.300 INF Serving pipelines comp=codeserver address=unix:~/.local/state/codeband/codeserver.sock
Nov 24 15:35:49.326 INF Starting daemon comp=daemon state_dir=~/.local/state/codeband store_dir=~/.local/state/codeband/store rate_limit_backoff="[5m0s 15m0s]" version=v0.0.0-20261124142757-d50161dbbf44
Nov 24 15:35:49.327 INF Listening comp=daemon socket=~/.local/state/codeband/daemon.sock

The daemon serves the factory under the name of its folder, so intake is my-pipelines/intake. With --factory pipelines, it is pipelines/intake.

Stdout holds only the URL. The token in it is new at each start, so your token is different, and the log records leave it out:

Output
http://127.0.0.1:8765/?token=6EGHLUQPNTZGR2EWX2HUGA3KWQ

On Ctrl-C, codeband dev stops the daemon and the web interface, then sends SIGTERM to the code server and the processes it started, and exits with code 0. A code server that still runs 10 seconds later is killed. A second Ctrl-C kills the code server at once, and codeband dev exits with code 1.

A changed file starts a factory reload.

codeband dev prints Because It then
no code server command 'codeband-codeserver' on the PATH: run codeband in the environment of your factory The PATH has no code server command. You started codeband dev outside the environment of the factory, for the Python SDK without uv run, or the factory does not have the SDK as a dependency Exits with code 1 and starts nothing
config file … The config file has an error, or the file of --config does not exist. See Errors at start Exits with code 1 and starts nothing
a code server already listens on …: stop it, or start only the daemon with 'codeband daemon' A code server that you started by hand listens on codeserver.sock in the state folder Exits with code 1 and starts nothing
listen on 127.0.0.1:8765: … Another process, for example codeband web, listens on --webAddr, or the address is not valid Exits with code 1 and starts no code server
the code server exited: … The code server stopped on its own, before it answered or with --reload=false. The exit status follows the colon Stops the daemon and the web interface, and exits with code 1
another daemon uses the state folder … Another daemon or codeband dev holds the lock of this state folder Exits with code 1 and starts no code server
check git: … The check of a daemon failed Exits with code 1 and starts no code server

codeband dev also exits with code 1 and starts nothing when its config file has a factories table. Start codeband daemon to serve the factories of such a file.

Runs the code server of the factory in the working folder, in the foreground, until you press Ctrl-C or send it SIGTERM. codeband starts the code server command of its environment as a child process and gives it every argument as it is, so the flags are the flags of your SDK’s code server: see Python SDK. codeband codeserver --help logs the help of that command.

Terminal window
codeband codeserver [arguments of the code server]

Run it in the environment of the factory. For the Python SDK:

Terminal window
uv run codeband codeserver

The code server command is the one that CODEBAND_CODE_SERVER_COMMAND names, as a name on the PATH or a path. When the variable is not set, it is codeband-codeserver on the PATH, the name under which each SDK installs its code server. Put the global flags before codeserver: everything after it goes to the code server.

codeband codeserver gives the code server the level of --log.level and writes its log records to stderr in the format of --log.format, each with comp=codeserver. A line of the code server that is not a log record, such as a line of its help, becomes one INF record with the line as its message and stream=stdout or stream=stderr. Ctrl-C and SIGTERM reach the code server, and codeband codeserver exits with code 0 when the code server has stopped:

Output
Nov 24 15:35:49.271 INF Loaded pipelines comp=codeserver pipelines="[intake run_program write_hello]" folder=~/src/my-pipelines
Nov 24 15:35:49.300 INF Serving pipelines comp=codeserver address=unix:~/.local/state/codeband/codeserver.sock
Nov 24 15:36:02.508 INF Received termination signal - Stopping... comp=codeserver signal=interrupt

For codeband daemon, start the code server of each factory on its own address, and name the address in its [factories.NAME] table. With the Python SDK, --address sets it:

Terminal window
uv run codeband codeserver --address http://127.0.0.1:8081

When the code server exits on its own, codeband codeserver prints the code server exited: and the exit status, and exits with code 1.

When codeband finds no code server command, it prints this line to stderr and exits with code 1:

no code server command 'codeband-codeserver' on the PATH: run codeband in the environment of your factory

Runs the daemon in the foreground until you press Ctrl-C or send it SIGTERM. The daemon hosts the engine, which runs the runs and writes their run journals to the run store. It serves the factories that its config file names, and starts no code server: start the code server of each factory with codeband codeserver. codeband dev starts a daemon and one code server together.

Terminal window
codeband daemon [flags]
Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband Folder of the daemon’s socket, lock, bare clones and workspaces
--storeDir CODEBAND_STORE_DIR <stateDir>/store Root folder of the run store
--config CODEBAND_CONFIG codeband.toml in the working folder, else in $XDG_CONFIG_HOME/codeband Path of the config file. The daemon exits with code 1 when this file does not exist
--rateLimitBackoff CODEBAND_RATE_LIMIT_BACKOFF 5m0s,15m0s Waits before the retries of an attempt that failed with rate_limit, one per retry, comma separated. An empty value turns them off

At start, the daemon reads its config file, codeband.toml, and logs its path. Each [factories.NAME] table names a factory and the address of its code server in code_server. The daemon exits with code 1 when it finds no config file, a config file without a factories table, or two tables with the same code_server. A change to the tables applies after a restart of the daemon. This file serves two factories, my-pipelines and factory:

codeband.toml
[factories.my-pipelines]
code_server = "unix:/home/ada/.local/state/codeband/codeserver.sock"
[factories.factory]
code_server = "http://127.0.0.1:8081"

Its [env] table names the environment variables of every agent step and shell step. Then the daemon makes the state folder readable only by your user and takes the lock daemon.lock in it. It checks that git on the PATH is version 2.42 or later, because every run needs git.

The daemon checks no login and no harness program when it starts, so it also starts on a machine whose pipelines run no agent step on Claude Code. An agent step checks what its harness needs when an attempt starts. When something is missing, the attempt fails with the kind setup. Its message names what is missing and ends with run codeband check, which finds every such problem at once:

An agent step on Needs
Claude Code CLAUDE_CODE_OAUTH_TOKEN, a token from claude setup-token, or ANTHROPIC_API_KEY, an Anthropic API key, in the [env] table of codeband.toml or in the daemon’s environment. When [env] lists neither, the token of the daemon’s environment wins when both are set. And claude on the PATH, version 2.1.330 or later
Any harness A value for each variable of [env]

The daemon then dials each code server, gets the pipelines of its factory, and listens on daemon.sock:

Output
Nov 24 12:48:41.262 INF Read the config file path=~/src/my-pipelines/codeband.toml
Nov 24 12:48:41.269 INF Checked programs git=2.53.0
Nov 24 12:48:41.270 INF Starting daemon state_dir=~/.local/state/codeband store_dir=~/.local/state/codeband/store rate_limit_backoff="[5m0s 15m0s]" version=v0.0.0-20261124113901-31571001ee26
Nov 24 12:48:41.271 INF Listening socket=~/.local/state/codeband/daemon.sock

It also listens on daemon-read.sock, the read-only address for codeband web --read-only.

A factory whose code server does not answer, or whose code does not load, has failed. The daemon starts anyway, logs the name of the factory with the reason, and runs the pipelines of the other factories. codeband check reports the failed factory, and the web interface shows it with its reason.

The daemon prints Because It then
The code server does not answer, so runs start once it does No code server listens on the code_server address of a factory. The line names the factory in factory and the address in code_server Keeps running the other factories. Start the code server; the daemon needs no restart
The factory does not load The code of a factory does not load. The line names the factory in factory and the reason in err Keeps running the other factories. Fix the code and start its code server again
config file … The config file has an error, or the file of --config does not exist. See Errors at start Exits with code 1
another daemon uses the state folder … Another daemon holds the lock of this state folder Exits with code 1
check git: git 2.41.0 is older than 2.42 git is older than 2.42 Exits with code 1
socket path … is longer than 103 bytes: choose a shorter state folder The path of daemon.sock is longer than macOS and Linux accept for a Unix socket Exits with code 1

The daemon checks the setup of every pipeline, as codeband check does, each time a factory code server sends a factory manifest that differs from the one it last checked, the first one included. It runs no command source, so a password manager does not ask for an unlock at each change of the factory. The daemon logs each problem as a warning with check=manifest, and each variable with a command source as a Variable not tested line. It logs the problems of each check that a daemon client asks for, such as codeband check or codeband run, with check=client. No line holds a value. A daemon without a login, whose codeband.toml takes DATABASE_URL from a command, logs:

Output
Nov 25 17:06:22.214 INF Variable not tested check=manifest message="the variable DATABASE_URL was not tested: its source is a command"
Nov 25 17:06:22.214 WRN Setup problem check=manifest message="the harness claude has no login: set one of CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY in codeband.toml or in the environment of the daemon" pipelines=my-pipelines/review

An unchanged factory manifest gives no new lines.

A run that has not ended when the daemon stops continues from its run journal after a restart.

A run whose factory is no longer in codeband.toml waits, as it does while its code server does not answer, until the factory is back after a restart or a person cancels the run.

Starts a run of a pipeline on a target repository and follows it to its end. The run starts at the start commit, HEAD by default, and does not see uncommitted changes.

Terminal window
codeband run [flags] <pipeline>

<pipeline> names one pipeline as FACTORY/PIPELINE, such as py-factory/intake. FACTORY is the key of the factory’s [factories.NAME] table in codeband.toml, or the name that codeband dev gives it. A name without FACTORY names no pipeline.

Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon
--input CODEBAND_RUN_INPUT {} Run input as JSON, or - to read it from stdin
--repo CODEBAND_RUN_REPO . A folder in the target repository
--commit CODEBAND_RUN_COMMIT HEAD Start commit, such as a branch or a commit ID
--patch CODEBAND_RUN_PATCH ./<run-id>.patch Path of the patch file that the run writes when it ends with a code change. A folder means <run-id>.patch in that folder
--pr CODEBAND_RUN_PR false Deliver the code change as a pull request on GitHub in place of a patch file. Together with --patch, it is a usage error
--prRemote CODEBAND_RUN_PR_REMOTE origin Remote of the target repository whose URL names the GitHub repository of the pull request. It applies only with --pr
--tickets CODEBAND_RUN_TICKETS next to the patch file, GitHub issues with --pr Existing folder for the run’s folder of ticket files
--title CODEBAND_RUN_TITLE Title of the run for people. codeband ls, codeband show and the run list of codeband web show it. It is not part of the run input
--detach, -d CODEBAND_RUN_DETACH false Print the run ID to stdout and exit without following the run
--verbose, -v CODEBAND_RUN_VERBOSE false Print the whole text of each agent message and tool call, the first 20 lines of each tool result, and the output of shell steps as it comes

codeband run finds the top folder of the repository that holds --repo and turns --commit into a commit ID. When --commit names a branch, or is HEAD on a branch, that branch is the run’s start branch, which a pull request merges into. A commit ID, a tag or a detached HEAD gives a run without a start branch. With uncommitted changes, it logs The repository has uncommitted changes. The run does not see them. and starts the run anyway. The code server checks the run input against the pipeline’s parameters before the run starts.

Before the run starts, codeband run has the daemon check the setup of the pipeline, as codeband check PIPELINE does, with the command sources of codeband.toml. It prints each problem as a warning to stderr and starts the run anyway, because the run may never reach the agent step or the shell step that the problem stops. A harness that no agent step of the pipeline runs on gives no warning. A pipeline with an agent step on Claude Code, started without a login, prints:

Output
Nov 25 17:06:22.289 WRN Setup problem. The run starts anyway. message="the harness claude has no login: set one of CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY in codeband.toml or in the environment of the daemon"
Started run mg30cqgt72

codeband run prints Started run RUN-ID to stderr, then a line for each step of the run as the run goes on, and at the end one final line to stdout. This run of a pipeline with one agent step ends with a patch:

Output
Started run mg30cqgt72
▸ writer#0 agent step of writer
writer#0: writing hello.txt
✓ writer#0 finished after 0.2s, $0.00
/tmp/hello.patch
Line Printed when
▸ STEP agent step of AGENT, ▸ STEP shell step: PROGRAM, ▸ STEP human step opens An agent step, a shell step or a human step starts. STEP is its step ID
STEP: TEXT The agent of a running agent step writes text. The line holds its first line, cut at 100 characters
STEP → TOOL INPUT The agent calls a tool. The line holds the input as JSON, cut at 100 characters
STEP ← CONTENT, STEP ← failed: CONTENT The tool result of a tool call. The line holds its first line, cut at 100 characters, or (no output). failed: marks the tool result of a call that failed
STEP attempt N failed: KIND: MESSAGE (RETRY) An attempt of an agent step fails, with its attempt failure kind. RETRY is retry in DURATION, retry now or no retry
✓ STEP finished after DURATION, $COST, ✓ STEP has questions after …, ✗ STEP failed after …: KIND: MESSAGE An agent step ends with its output, with questions for a person, or without an output. COST is the sum of the known costs of its attempts
✓ STEP exit code 0 after DURATION, ✗ STEP exit code N after DURATION, ✗ STEP timed out after …, ✗ STEP cancelled after … A shell step ends. A failed shell step adds the last 20 lines of its output, each after │
✓ STEP function step, ✗ STEP function step failed: TYPE: MESSAGE A function step returns or raises
✓ STEP answered by USER after DURATION A human step gets its answer
✗ STEP got no answer The run ends before the human step gets its answer, such as after a cancellation or a failure
! STEP: MESSAGE, ! MESSAGE The run records a warning, such as about a recorded step that the changed code no longer reaches, or the pipeline code changed since this run started
cancellation requested by USER Someone cancels the run

With --verbose, the text lines hold the whole text, the tool lines the whole input, and the output of each shell step appears as the program writes it, in place of the last 20 lines. A tool result shows its first 20 lines: the first after ←, the others each after │. A last line such as │ … 35 more lines names the lines it leaves out. The daemon sends at most the first 16 KiB of a tool result while the agent step runs, and the last line of a longer one says how many of its bytes arrived, such as │ … cut at 16384 of 250000 bytes. The agent transcript keeps all of it. This run’s shell step fails:

Terminal window
codeband run -v py-factory/run_program --input '{"argv": ["sh", "-c", "echo building; echo tests failed; exit 1"]}'
Output
Started run rbwp628b6f
▸ program#0 shell step: sh -c echo building; echo tests failed; exit 1
building
tests failed
✗ program#0 exit code 1 after 0.2s
stopped: the program exited with code 1:
building
tests failed

When stderr is a terminal, the lines have colours, unless NO_COLOR is set, and a turning line shows the running agent step or shell step and how long it has run.

When a human step opens and stdin is a terminal, codeband run asks the human step’s question in the terminal. A yes-or-no question takes y or n, a choice takes a number, a text or number answer takes one line, and an object or a list opens the editor of $VISUAL or $EDITOR (vi when neither is set) on a JSON file. When the run rejects the answer, it prints the reason and asks again. When someone answers the human step from another terminal first, it stops asking and prints who answered, such as ✓ review#0 answered by ada after 41.0s. When stdin is not a terminal, it prints the command that answers the human step from another terminal:

Output
Started run 2kvyh625rb
Run 2kvyh625rb waits for an answer to human step review#0. Answer it with:
codeband answer 2kvyh625rb review#0 --json '<answer>'

The first Ctrl-C, or SIGTERM, cancels the run and keeps following it to its end:

Output
Cancelling run r1zxt4et7f. Press Ctrl-C again to exit without waiting.
cancelled by ada

ada is the user who cancelled the run: yours, in your terminal.

A second Ctrl-C prints Stopped following run RUN-ID, which the daemon cancels and exits with code 130 at once. The daemon finishes the cancellation without the CLI.

Final line The run Exit code
The absolute path of the patch file, such as /home/ada/src/webshop/t3csn38rzg.patch Ended with a code change, written as a patch file 0
The URL of the pull request, such as https://github.com/acme/webshop/pull/42 Ended with a code change, delivered as a pull request 0
no code change Finished without a code change 0
stopped: REASON Was stopped by its pipeline, such as with cb.Stop in Python 3
failed: KIND: STEP: MESSAGE Failed. KIND, such as diverged, and the step ID appear when the failure has them 1
could not deliver the code change: MESSAGE Ended with a code change that the engine could not deliver 1
cancelled by USER, or cancelled Was cancelled, by USER when the run journal names who asked 4

After its final line, a run prints new ticket: TITLE: PATH for each new ticket, or new ticket: TITLE: could not deliver: MESSAGE, which makes the exit code 1.

Code Meaning
0 The run finished, with or without a code change. With --detach: the run started
1 The run failed or a part of its run result was not delivered, or the run did not start: an unknown pipeline, an input that the pipeline does not accept, a --repo outside a git repository, a --commit that is no commit, or a pull request without a GitHub token
2 No daemon answers, the command has no pipeline name or more than one, --input - cannot read stdin, or --pr comes with --patch
3 The pipeline stopped the run
4 The run was cancelled
130 You pressed Ctrl-C a second time and the CLI stopped following the run

Run intake of the Quickstart and write its new tickets into /tmp:

Terminal window
codeband run py-factory/intake --tickets /tmp --input '{"title": "Release 1.2", "body": "- Add a dark mode"}'
Output
Started run zhe9t2a40a
no code change
new ticket: Add a dark mode: /tmp/zhe9t2a40a/01-add-a-dark-mode.md

Start a run without following it, and keep its ID:

Terminal window
run=$(codeband run -d py-factory/intake --input '{"title": "Release 1.2", "body": "- Fix the crash on start"}')

$run holds the run ID, such as t7dmzpzqfk, and the command exits with code 0.

Read the run input from the file input.json, and write the patch file into the folder patches:

Terminal window
mkdir -p patches
codeband run FACTORY/PIPELINE --input - --patch patches < input.json

Put the name of a pipeline that ends with a code change in place of FACTORY/PIPELINE. The final line is the path of the patch file, named after the run ID:

Output
Started run 1xz40nmenf
/home/ada/src/webshop/patches/1xz40nmenf.patch

Follows a run to its end, as codeband run does, and asks for the answer at each human step that opens. Use it for a run that you started with codeband run -d, or after you stopped following one.

Terminal window
codeband attach [flags] <run>

<run> is the run ID, or a start of it that no other run ID has, such as mg3.

Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon
--verbose, -v CODEBAND_ATTACH_VERBOSE false Print the whole text of each agent message and tool call, the first 20 lines of each tool result, and the output of shell steps as it comes

codeband attach prints Attached to run RUN-ID to stderr, then the lines of each step that the run ran so far and the lines of the steps that follow, as codeband run prints them. An agent step or shell step that runs when you attach shows what it did since it started. The final line goes to stdout and has the form of the final line of codeband run:

Terminal window
codeband attach mg3
Output
Attached to run mg30cqgt72
▸ writer#0 agent step of writer
✓ writer#0 finished after 0.2s, $0.00
/tmp/hello.patch

A human step that opens while codeband attach follows the run, or that waits for its answer when you attach, is asked as codeband run asks it. Human steps that have their answer already are not asked again.

Ctrl-C, or SIGTERM, stops following the run and exits with code 130. The run goes on in the daemon:

Output
Stopped following run mg30cqgt72, which goes on. Follow it again with:
codeband attach mg30cqgt72

The exit codes are those of codeband run. When <run> is no run or the start of no run ID, it prints attach: run RUN: run not found and exits with code 1. When <run> is the start of several run IDs, it names them and exits with code 2.

Prints the summary of a run and a line for each step that it ran, then its final line, or how to answer its open human steps. It never answers or changes the run.

Terminal window
codeband show [flags] <run>

<run> is the run ID, or a start of it that no other run ID has.

Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon
--follow, -f CODEBAND_SHOW_FOLLOW false Follow the run to its end, as codeband attach does, but without asking for answers
--verbose, -v CODEBAND_SHOW_VERBOSE false Print the whole text of each agent message and tool call, the first 20 lines of each tool result, and the output of shell steps as it comes

Everything goes to stdout: the summary, a blank line, the lines of each step and the final line of a run that ended:

Terminal window
codeband show mg30cqgt72
Output
Run mg30cqgt72
Title Greet the team
Pipeline py-factory/write_hello
Status finished
Repository /tmp/greeter
Start commit 40f42ef7e2c57f93a7dd2a9e9ddedb7feb9d8f86
Started 2026-11-24 20:56:38
Ended 2026-11-24 20:56:39
Cost $0.00
Input {"instruction":"add a file hello.txt that says hello"}
▸ writer#0 agent step of writer
✓ writer#0 finished after 0.2s, $0.00
/tmp/hello.patch

The times are in your time zone. The summary has Title only for a run that you started with --title. It adds Open human steps while human steps wait for their answer, and Reason for a run that stopped or failed. Input is the last line: the run input as canonical JSON on one line, with the defaults of the pipeline’s parameters filled in. The text, tool call and tool result lines of an agent step, and with --verbose the output of a shell step, appear only while the agent step or shell step runs. A failed shell step shows the last 20 lines of its output in every case. For a run that waits, codeband show prints to stderr the command that answers each open human step, as codeband run does without a terminal.

codeband show exits with code 0 once it printed the run, whatever the run’s status. With --follow, its exit codes are those of codeband attach, and Ctrl-C exits with code 130. A <run> that names no run exits with code 1, and the start of several run IDs with code 2.

Lists the runs of the daemon, newest first, one line per run.

Terminal window
codeband ls [flags]
Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon
--limit CODEBAND_LS_LIMIT 20 Most runs to list. 0 lists every run
--status CODEBAND_LS_STATUS List only the runs of this status: running, waiting, finished, stopped, failed or cancelled
Terminal window
codeband ls
Output
RUN STATUS PIPELINE STARTED COST TITLE
mg30cqgt72 finished py-factory/write_hello 2026-11-24 20:56:38 $0.00 Greet the team
6fbxemkd2a stopped py-factory/intake 2026-11-24 20:56:38 $0.00
8evq915rp7 finished py-factory/intake 2026-11-24 20:56:38 $0.00

STARTED is in your time zone, COST is the sum of the known costs of the run’s attempts, and TITLE is the title that codeband run --title gave the run. A run without a title has nothing in TITLE. Without runs, codeband ls prints No runs to stderr and nothing to stdout.

Code Meaning
0 The runs were listed
2 No daemon answers, the command has arguments, --limit is negative or --status names no status

Answers an open human step of a run that waits. A human step is where a person answers a typed question before the run goes on. Answer a human step uses this command.

Terminal window
codeband answer [flags] <run> [human step]

<run> is the run ID, or a start of it that no other run ID has, such as 2kv. [human step] is the human step’s step ID, such as review#0. Without it, codeband answer answers the run’s only open human step.

Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon
--json CODEBAND_ANSWER_JSON The answer as JSON, or - to read it from stdin. Without it, codeband answer asks for the answer in the terminal, as codeband run does

On success, it prints Answered human step HUMAN_STEP of run RUN to stderr. The code server checks the answer against the human step’s answer type. A rejected answer prints the reason, and codeband answer exits with code 1:

Terminal window
codeband answer 2kvyh625rb --json '{"approve": "maybe"}'
Output
answer: answer rejected: human step review#0 does not accept the answer: 1 validation error for Verdict
approve
Input should be a valid boolean, unable to interpret input [type=bool_parsing, input_value='maybe', input_type=str]
For further information visit https://errors.pydantic.dev/2.14/v/bool_parsing

When the code server of the run’s factory does not run, or its code does not load, the run cannot check the answer. The run keeps waiting, and codeband answer exits with code 1:

Output
answer: check the answer: code server unavailable: unavailable: dial unix ~/.local/state/codeband/codeserver.sock: connect: no such file or directory

Fix the cause and answer again.

Code Meaning
0 The run recorded the answer
1 The code server does not run, or the run rejected the answer, has no open human step, has no human step with that ID, or has more than one open human step and you named none. The message names the open human steps
2 No daemon answers, the arguments are wrong, <run> is the start of several run IDs, --json - cannot read stdin, or stdin is not a terminal and --json is not set

Answer human step review#0 with JSON from stdin:

Terminal window
echo '{"approve": true, "note": "Looks good"}' | codeband answer 2kvyh625rb review#0 --json -
Output
Answered human step review#0 of run 2kvyh625rb

Prints the preview graph of a pipeline: its shape as its code server infers it from the loaded pipeline code. An opaque node is code the analysis cannot follow. A graph with an opaque node is incomplete, and a run can start steps that the graph does not show.

Terminal window
codeband graph [flags] <pipeline>

<pipeline> names the pipeline as FACTORY/PIPELINE, as for codeband run.

Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon
--format CODEBAND_GRAPH_FORMAT text Output format: text, boxes, dot or json
Format Prints
text One node per line after its file and line. The nodes of a branch, a loop, a block and a stage are indented
boxes Each node as a box, and the nodes of a branch, a loop, a parallel node, a block and a stage inside a frame, with an arrow between boxes that follow each other. A stage has a heavy frame
dot A Graphviz digraph with arrows from a start node to an end node, for dot -Tsvg. A stage is a filled cluster
json The message codeband.codeserver.v1.PreviewGraph as JSON

A pipeline without a preview graph prints no preview graph: REASON: to stdout with text and boxes, to stderr with dot and json, so that stdout holds only DOT or JSON.

Code Meaning
0 The graph or the reason for no graph was printed
1 No pipeline has this name. The message lists the pipelines of the daemon
2 No daemon answers, the command has no pipeline name or more than one, or --format is unknown

Print the graph of py-factory/intake as text:

Terminal window
codeband graph py-factory/intake
Output
py_factory/pipeline.py:21 if not plan.tickets
py_factory/pipeline.py:22 stop "the request has no tickets: write each one as a '- ' bullet"
py_factory/pipeline.py:24 if len(plan.tickets) > max_tickets
py_factory/pipeline.py:25 stop f'the request has {len(plan.tickets)} tickets, more than {max_tickets}: split it'
py_factory/pipeline.py:27 function step received_at
py_factory/pipeline.py:31 with contextlib.suppress(cb.FunctionStepFailedError)
py_factory/pipeline.py:32 function step post_summary
py_factory/pipeline.py:34 return

A block that enters a stage prints as stage NAME, with the steps of the block under it. py-factory/write_hello runs its agent step in the stage build:

Terminal window
codeband graph py-factory/write_hello
Output
py_factory/hello.py:51 stage build
py_factory/hello.py:52 agent step writer
py_factory/hello.py:54 return

An incomplete graph starts with a line that says so, and marks each opaque node:

Output
incomplete: the pipeline can start steps that the graph does not show
graph.py:23 for step in (first, second)
graph.py:24 opaque: step()
graph.py:25 return

Draw the graph of py-factory/intake as an SVG file with Graphviz:

Terminal window
codeband graph --format=dot py-factory/intake | dot -Tsvg > intake.svg

Checks the factories of the daemon, their preview graphs and the setup of the daemon: of every pipeline, or of the pipelines you name as FACTORY/PIPELINE. Run it in CI to keep code that the analysis cannot follow out of your pipelines, and after you set up or change an installation.

Terminal window
codeband check [flags] [pipeline...]
Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon

codeband check prints one line per problem to stdout. Without pipeline names, the first lines name each factory that failed as factory FACTORY: REASON, and the check goes on with the other factories. The problems of the preview graphs follow, after the file and line of the node where there is one. PIPELINE in a line is the name as FACTORY/PIPELINE:

Problem Line
An opaque node FILE:LINE: PIPELINE: opaque node: SOURCE
A pipeline with no preview graph PIPELINE: no preview graph: REASON
An incomplete graph whose opaque node this build of codeband cannot show PIPELINE: the preview graph is incomplete, but this build of codeband finds no opaque node in it

The problems of the setup follow. The daemon tests that each variable of the [env] table of codeband.toml has a value, and runs the command sources for that. It tests that each harness that a checked pipeline needs has a login variable with a value and a program that passes the check of the harness. The agent steps of a pipeline’s preview graph name the agents whose harness it needs; a pipeline with an incomplete preview graph, or with none, needs the harness of every agent. The check prints names and never a value, and it sends no request to a model provider, so it does not test that a login works.

Problem Line
A variable of [env] has no value the variable NAME has no value: REASON
A harness has no login PIPELINES: the harness claude has no login: set one of CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY in codeband.toml or in the environment of the daemon
The program of a harness is missing, too old or does not answer PIPELINES: claude 2.1.329 is older than 2.1.330, PIPELINES: run claude --version: …, or PIPELINES: claude --version ran past its time limit of 10s

PIPELINES lists the checked pipelines that need the harness, joined by commas. At the end, codeband check prints preview graph problems: N, setup problems: M to stderr, after failed factories: K, when a factory failed. Without a problem, it prints no problems in the preview graphs or the setup.

Code Meaning
0 No problem
1 At least one problem, an unknown pipeline, or a factory that failed
2 No daemon answers
Terminal window
codeband check
Output
graph.py:24: my-pipelines/local_value: opaque node: step()
my-pipelines/review: the harness claude has no login: set one of CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY in codeband.toml or in the environment of the daemon
preview graph problems: 1, setup problems: 1

Serves the web interface on --addr and prints its URL with a secret token to stdout. codeband dev serves the same page, so you need codeband web only next to codeband daemon. Keep --addr on a loopback address. The command runs in the foreground until you press Ctrl-C.

Terminal window
codeband web [flags]
Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon
--addr CODEBAND_WEB_ADDR 127.0.0.1:8765 Address of the web interface, as host:port. Port 0 picks a free port
--read-only CODEBAND_WEB_READ_ONLY false Serve the read-only view, without actions and without a token
Code Meaning
0 Ctrl-C stopped the web interface
1 The address is taken or not valid
2 The command was called with an argument
Terminal window
codeband web
Output
http://127.0.0.1:8765/?token=6EGHLUQPNTZGR2EWX2HUGA3KWQ

Open the URL with its token in a browser. Web interface describes what the page shows and the addresses of its views.

Cancels a run, waits until the run stops its running work, and prints how the run ended. A running agent step or shell step stops, and an open human step closes. Ctrl-C in the terminal of codeband run cancels a run the same way.

Terminal window
codeband cancel [flags] <run>

<run> is the run ID, or a start of it that no other run ID has.

Flag Environment variable Default Description
--stateDir CODEBAND_STATE_DIR $XDG_STATE_HOME/codeband, else ~/.local/state/codeband State folder of the daemon
Terminal window
codeband cancel mrkx00dwy4
Output
Cancelling run mrkx00dwy4
cancelled by ada

Cancelling run RUN goes to stderr. The final line goes to stdout and has the form of the final line of codeband run. A run that ended before the cancellation arrived ends in another way.

Code Meaning
0 The run ended and its final line was printed
1 The run had already ended (cancel: run RUN ended: run ended) or does not exist (cancel: run RUN: run not found)
2 No daemon answers, the command has no run ID or more than one, or the run ID is the start of several run IDs

Delivers the recorded run result of an ended run, such as a run fork. Nothing runs again.

Terminal window
codeband deliver [flags] <run>

It takes --stateDir and the flags of codeband run that name a run result destination: --patch, --pr, --prRemote and --tickets, whose environment variables start with CODEBAND_DELIVER_ in place of CODEBAND_RUN_. Its final line and exit codes are those of codeband run, and exit code 1 also means that the run has not ended.

Lists each harness that codeband drives, its version and whether it can run on this machine. A harness is an agent runtime, such as Claude Code, that codeband drives to run the agent steps of an agent.

Terminal window
codeband harness list [flags]
Flag Environment variable Default Description
--claude.binary CODEBAND_CLAUDE_BINARY claude Path or name of the claude CLI
Output
NAME VERSION STATUS
claude 2.1.331 ok

STATUS is ok, or the error that stops the harness from running, such as run nosuchclaude --version: exec: "nosuchclaude": executable file not found in $PATH. VERSION is - when codeband cannot read the version. The command exits with code 0 in both cases.

The first release drives two harnesses, Claude Code and Codex CLI, and codeband harness list has one row for each.

Runs one attempt with Claude Code in a folder, without a daemon, to try the harness. It prints the agent transcript to stderr while the attempt runs, and the result as JSON to stdout.

Terminal window
codeband harness run [flags] claude [flags] <prompt>

<prompt> is the prompt. All arguments after the flags form the prompt, joined with spaces.

The flags of codeband harness run hold for every harness:

Flag Environment variable Default Description
--dir CODEBAND_HARNESS_RUN_DIR . Folder to run the attempt in
--schema CODEBAND_HARNESS_RUN_SCHEMA JSON Schema of the structured output. Empty means no structured output
--timeout CODEBAND_HARNESS_RUN_TIMEOUT 10m0s Stop the attempt after this time. 0 means no limit
--transcript CODEBAND_HARNESS_RUN_TRANSCRIPT File to write the raw agent transcript to. Empty means no file

The flags of claude:

Flag Environment variables Default Description
--binary CODEBAND_CLAUDE_BINARY claude Path or name of the claude CLI
--oauthToken CODEBAND_CLAUDE_OAUTH_TOKEN, CLAUDE_CODE_OAUTH_TOKEN Token from claude setup-token
--apiKey CODEBAND_CLAUDE_API_KEY, ANTHROPIC_API_KEY Anthropic API key, used when no OAuth token is set
--model CODEBAND_CLAUDE_MODEL Model alias or name. Empty uses the default of the claude CLI
--effort CODEBAND_CLAUDE_EFFORT Reasoning effort: low, medium, high, xhigh or max. Empty uses the default of the claude CLI
--tools CODEBAND_CLAUDE_TOOLS Read, Grep, Glob Built-in tools the agent can see. Repeat the flag for each tool. The default tools can only read
--allow CODEBAND_CLAUDE_ALLOW Permission rules that approve tool calls, such as Bash(go test *). Repeat the flag for each rule

Each line is the agent’s text, → TOOL INPUT for a tool call, ← CONTENT for the whole tool result of a tool call (← failed: CONTENT for a call that failed), or ↻ API request repeat N: ERROR for a repeated API request. The lines of a subagent are indented by four spaces. The result on stdout has the fields Output (the structured output), Failure (its Kind and Message, or null), SessionID, HarnessVersion, CostUSD and PermissionDenials.

Code Meaning
0 The attempt succeeded
1 The attempt failed (attempt failed: KIND: MESSAGE), or it could not start: no prompt, no OAuth token and no API key, an unknown --effort, or a --schema that is not JSON

codeband harness run without a harness name prints its help and exits with code 0.

Ask Claude Code about the repository in the current folder, with the default read-only tools and a five-minute limit:

Terminal window
codeband harness run --timeout 5m claude --model sonnet 'List the Go packages in this repository and what each one does.'

Each flag on this page names its environment variables in its table. A flag on the command line wins over its variable. codeband also reads these variables, which no flag sets:

Variable Read by Effect
XDG_STATE_HOME All commands with --stateDir The default state folder is $XDG_STATE_HOME/codeband. Without it, ~/.local/state/codeband
XDG_CONFIG_HOME codeband daemon, codeband dev Without --config and without a codeband.toml in the working folder, the config file is $XDG_CONFIG_HOME/codeband/codeband.toml. Without the variable, ~/.config/codeband/codeband.toml
VISUAL, EDITOR codeband run, codeband attach, codeband answer The editor for answers that are a JSON object or list. VISUAL wins over EDITOR; without either, vi. It runs through sh -c, so it can hold arguments, such as code --wait
CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY codeband daemon, codeband dev The Claude Code login of every agent step and shell step, when the [env] table of codeband.toml lists neither. The daemon reads them when an attempt or a shell step starts and passes only one of them, the token when both are set. An agent step on Claude Code without either fails with the attempt failure kind setup. codeband harness run claude reads them through its own flags
NO_COLOR All commands Any value turns off colours in console logs and in the lines of codeband run, codeband attach and codeband show. Output that doesn’t go to a terminal has no colours anyway

The exit codes mean the same in every command that follows a run or talks to the daemon. Each command’s section lists the cases that apply to it.

Code Meaning
0 Success
1 The command failed, the run failed, or the daemon rejected the request. Also for an unknown flag and for errors that no other code names
2 No daemon answers, or the command was called with wrong arguments, such as a start of several run IDs
3 The pipeline stopped the run (codeband run, codeband attach, codeband show --follow)
4 The run was cancelled (codeband run, codeband attach, codeband show --follow)
130 A second Ctrl-C stopped codeband run from following its run, or Ctrl-C stopped codeband attach or codeband show --follow

A command name that codeband does not know prints No help topic for 'NAME' and exits with code 3.

  • Architecture: what the daemon, the code server and the state folder do in one run.
  • Python SDK: the code server command and the settings that list your pipelines.
  • Run problems: fixes for each error that codeband run prints when a run does not start or fails.
  • Glossary: the meaning of the terms on this page.