Indaba

The web view

A page in your browser that shows the runs on your machine and follows one of them live: its steps as a graph, what each step did, what happens if it fails, its output and what it cost. It reads the same files as indaba watch and the terminal dashboard, so the three always agree. It can also start a workflow of the project and stop a run it started, and open a workflow file to read, change and save it; a run started in a terminal it only shows. It also lists and organises the workflows Indaba knows (the Workflows screen) and changes the project's logging settings (the Settings screen).

The Run screen of an earlier version: four steps left to right, the failure route from verify back to code drawn under them, the selected step's panel and the step list with each step's tries.

The Run screen as an earlier version showed it; the header now also has Workflows and Settings.

Status. In indaba 0.2.0-alpha.0 and @indaba/server 0.2.0-alpha.0, on npm under the next tag: the Runs, Run, Workflows and Settings screens, Run and Stop (specs/web-app-actions), and the workflow editor (Form, Graph and Source). Install both (below) or run from a checkout. pnpm try:ui -- --demo also makes a demo project to look at.

A debate's discussion#

A step that is a debate has a closed Show the discussion section in its panel: the rounds, who said what, where each participant ended, and the ruling if you were asked for one. The engine keeps the messages when the debate ends, in .indaba/discussions of the project, or in the folder you name with indaba run --discussion-dir <dir>; if you kept them elsewhere, tell the page with indaba ui --discussion-dir <dir> (repeatable). A run from before this was added, or one whose folder the server was not told about, says that no messages were kept. Secrets are removed when the messages are written.

Open it#

indaba ui                      # the runs of the current folder; opens your browser
indaba ui --root ../other-project --root .   # several projects
indaba ui --no-open --port 4173
Option Does
--root <dir> A project whose runs to show (its .indaba/traces); repeatable. Default: the current folder
--discussion-dir <dir> Another folder with the kept messages of debates; repeatable. Default: each root's .indaba/discussions
--port <n> The port to listen on. Default: a free one
--no-open Print the address and do not open the browser
--log-level, --log-dir As for every command: how much goes to the log file, and where it is

It prints an address with a token, opens it in your browser unless --no-open, and serves until Ctrl+C. Stopping it stops the runs started from the page; runs you started in a terminal carry on:

Indaba is serving the runs of:
  /path/to/project

Open this address in a browser (it carries the token, so keep it to yourself):

  http://127.0.0.1:4173/#token=AUrK9NZ7CGDGRlcaz_6Lw...

Stop with Ctrl+C; that also stops the runs started from the page. Runs started in a terminal are not affected.

indaba ui needs the optional package @indaba/server installed next to indaba; the page is inside that package, so there is nothing else to install. Without it the command says so and exits 1:

indaba ui needs the package @indaba/server, which could not be loaded (...).
Install it next to indaba, then try again: npm install -g @indaba/server

Both packages are on npm under the next tag (0.2.0-alpha.0): npx -p indaba@next -p @indaba/server@next indaba ui. To work on Indaba itself, use a checkout of this repository: with Node 22 and pnpm 9, build once and use pnpm indaba in place of indaba:

pnpm install
pnpm build
pnpm indaba ui --root /path/to/your/project

A checkout that has not been built says The page of indaba ui has not been built. In a checkout of Indaba, run: pnpm build.

A demo with nothing to set up#

From a checkout:

pnpm install
pnpm build
pnpm try:ui -- --demo

--demo makes a throwaway project in your temp folder, runs a four-step workflow in it (no agent, no API key: its steps are node commands, and one of them fails once so you see a retry), then prints an address:

Open this address in a browser (it carries the token, so keep it to yourself):

  http://127.0.0.1:52344/#token=q5G3fDM5i6QKij...

Open that address. pnpm try:ui -- --root /path/to/your/project serves the same page over that project, without opening the browser, but read-only: Runs and Run only, with no Run, Stop, Edit, Workflows or Settings; use pnpm indaba ui --root for those. Either way, a run you start in that project with indaba run appears while it runs.

What you see#

Runs#

The runs on this machine, newest first: the workflow's name, its state, when it started, what it cost and its id. Hold the pointer over a cost to see what it is made of (3 model calls, 1 with no price). Click a row or the workflow's name to open the run. The list updates by itself when a run starts or ends. On a narrow screen each run becomes a card.

A run#

Part Shows
The heading The workflow, the run's state, when it started, how long it has run or took, and its id
Steps (the graph) Every step of the workflow, left to right in the order they wait for each other (top to bottom below 640 px), including steps that have not run yet. A grey arrow is "waits for" (depends_on); it turns green when the step it comes from has completed. A red dashed line under the steps is where a failure leads (on_failure: retry_step), with how many retries are used
The step panel The selected step: what happened in it (its runner, model, tokens and cost, or its commands and exit codes), what happens if it fails, its tries with the reason each one failed, its output, and, when the runner streamed it, the model's reasoning in a section of its own that starts shut
Steps (the list) The same steps as a table; a step that ran more than once opens to show each try
Cost What the run cost so far, the number of model calls, the budget, and a table of each step that called a model: its calls (and any still running), its tokens in and out (on a phone, in the step's own panel), and its cost. The rows add up to the total, which is the same number the Runs screen shows

Select a step by clicking it in the graph or in the list, or by pressing Tab until it is focused and then Enter. The selected step is part of the address (?step=verify), so a reload or a copied link opens the same step. When nothing is selected, the page opens the step that is running, otherwise the last one that failed, otherwise the first.

Each card in the graph says the step's runner, its state as a symbol and a word, its time, and either its try (try 2, 1 failed) or that it runs again if another step fails. Drag the canvas to move it; the page's own scroll never zooms it.

What the states mean#

Symbol and word Means
○ pending Not started, or reset to run again after a retry
▶ running, ▶ checking Running, or its guards and outputs are being checked
✓ completed Finished and passed its checks
✗ failed Failed; what happens next is in "If this step fails"
▲ escalated Handed to a person: retries ran out, a debate did not agree, or on_failure: escalate
■ cancelled Stopped

Colour repeats the symbol and the word and is never the only sign of a state.

Costs#

A cost the page cannot compute is shown as unknown, never as zero. A total that includes a model call with no price says at least $0.42 (partial). A run with no model calls (only commands) says $0.00 (no model calls). A step with no budget says no limit.

When the connection drops#

If the server stops answering while you follow a run, a red banner says so, every state turns grey and says last known after its word (✓ completed, last known), and the page reconnects by itself, resuming where it left off without repeating or skipping anything. After 8 failed attempts in a row (about half a minute) it stops asking: the header says Server stopped, a banner says what to do, and Check again asks once and picks up again if the server answers. Nothing on the page claims to be live while it is not.

Run and Stop#

Run a workflow on the Runs screen opens a panel with the workflow files of the projects served and of the folders added with indaba workflows add or imported on the Workflows screen: files named *.workflow.ai.yml or *.workflow.ai.yaml up to four folders down, and the project's default .indaba/workflow.ai.yml. Folders node_modules, .git and the rest of .indaba/ are not searched, and links are not followed. A file with problems is listed with them, as indaba validate words them, and cannot be run. The search stops at 200 files (it says so); a file over 1 MiB is listed as invalid.

The list is the workflow registry of those projects, the one indaba workflows keeps: each workflow shows the name, project and tags you gave it with indaba workflows annotate, and its last run (state, when, cost). A workflow you hid is behind Show the hidden workflows. The list is read again when you come back to the window, and the folders are looked at again at most every 30 seconds; a file that was deleted is not offered.

What the run needs. Pressing Run first looks at what the workflow needs on this machine: a runner program that is not installed, a key that is not set (by name, never by value), a file that is not there, and what the workflow lists under requires that only you can judge. When something needs a look the panel shows it before the run, the critical items first, and counts the items that are ready instead of listing them. Confirm for this run on an item that only you can judge confirms it for this run alone; you are asked again next time, and nothing is written to the workflow file. Start anyway is always there, with the report above it: the report informs and never stops a run. With nothing to look at, or when the server cannot say, the panel skips the report and goes on. The panel offers Start while it is still looking, so a slow check never holds a run back.

The first run asks first. Before a workflow runs from the page for the first time, the panel shows what its file says it will use: the runner of every step, the commands it runs (shell commands, an agent's own command, local MCP servers), what each step may read and write, and the steps that need a person. Press Run it to go ahead. The page remembers that you confirmed this exact content (by its SHA-256), so it does not ask again, and asks again whenever the file changes, even by a space. What you confirmed is kept outside every project, in your user configuration folder (indaba/confirmed-workflows.json under %APPDATA% on Windows, ~/Library/Application Support on macOS, $XDG_CONFIG_HOME or ~/.config elsewhere), so a project you download never arrives confirmed.

The summary covers only what the workflow file declares. It does not cover scripts a command calls, indaba.config, plugins, or what an agent then does with its own tools. A step with no permissions reads "runner default (unrestricted)".

Full access asks every time. When a step's agent has permissions: { level: full }, the panel lists those steps and asks again (Run it with full access) every time that workflow starts, even when you confirmed the file before.

What runs. Each run is indaba run --workdir <project> --task-id <id> -- <file> in a process of its own, started in the project's folder with the environment indaba ui was started with. It runs the exact bytes you confirmed: a copy under .indaba/run-inputs/ that is deleted when the run ends. It writes the same trace and log as a run from a terminal, and indaba watch follows it. At most four runs started from the page are alive at once.

The run has no terminal, so a step that needs a person (a login, or arbiter: human) ends escalated; the panel lists such steps before you run. Run those workflows in a terminal.

Stop is on the Run screen of a run the page started, while it runs. It asks first, then stops the run as Ctrl+C would: the running step is cancelled and its worktree removed. A run started in a terminal has no Stop on the page.

Closing indaba ui (Ctrl+C, or closing its terminal) stops every run it started the same way, waits up to five seconds, then ends any that did not stop, with everything they started. The page says so before your first run. If indaba ui itself crashes, or is killed, its runs keep going without it; the next indaba ui in that project removes the copies they left under .indaba/run-inputs/.

Workflows#

Workflows in the header lists every workflow Indaba finds in the folders it looks in: the folder you started indaba ui in (or each --root), and the folders you added with indaba workflows add or imported here. A table shows each workflow's name, project, tags, last result, last cost, last run and state (valid, invalid with the first problem, or missing). The name opens the workflow. Sort by any column, search by name, project, tag or state, and choose one row to act on it:

Edit a workflow#

Edit next to a workflow in the Run a workflow panel, or its name on the Workflows screen, opens it at an address of its own (/workflows/<id>), so a reload opens it again. It works for a workflow with problems too: that is where they get fixed. Form, Graph and Source switch between three views of the same draft; what you change in one is in the others.

As a form#

The form is shown first when the file can be read as a workflow; otherwise the source view, with the reason.

As a graph#

As text#

The page edits files that already exist; it does not create, rename or delete one. A file over 1 MiB, or one that is not UTF-8 text, opens only in your own editor.

Themes, keyboard and phone#

Safety#

The page can show your agents' work, so it is built like something that could leak it.

Messages that replace the page#

Message What to do
This page needs its address The address had no token, or the server refused it (it was started again, so its token changed). Open the address the terminal printed
The server stopped Nothing answers at the address. Start it again, then open the new address
This page is older than the server The server was updated while the page was open. Reload
Run not found No run has this id, perhaps because its trace was deleted. Go back to Runs

Messages in the Run a workflow panel:

Message What to do
This workflow has problems, so it cannot run Fix the problems listed, then try again
The most runs started here at once are already going Wait for one to end, or stop one
Missing, Critical, Needs you in the list of what the run needs The run would probably fail without it (Critical), a program, key or file is not there (Missing), or only you can say whether it is so (Needs you; press Confirm for this run). Fix it and press Run again, or start anyway
Your confirmation could not be saved Your user configuration folder cannot be written; the run does not start until it can
The run did not start It shows the first line the run printed; run the workflow with indaba run in a terminal to see the rest
This run was recorded before Indaba wrote down which step waits for which A run from an earlier version: its steps are shown in the order they ran, with no arrows, and what a failure does is unknown

Not there yet#

From specs/web-app and roadmap.md, in the order they are planned: a published @indaba/server that installs, so indaba ui works from npm; a health column on the Workflows screen (it needs the health report); "run this step" and a form for a workflow's inputs; answering an agent's questions; applying or discarding a run's changes.

Working on the page itself: web-view-development.md.