Skip to content

Dashboard

The Apiary dashboard is a terminal app for watching your hive work in real time — which tasks are running, how your agents are performing, and what the dispatcher is doing right now.

apiary dashboard

Before you start

The dashboard shows data produced by a running dispatcher. In a typical setup you have two terminals:

# Terminal 1 — run the dispatcher
apiary run

# Terminal 2 — watch it
apiary dashboard

apiary run is headless — it does not draw anything itself, it just works in the background and writes everything to the data store. apiary dashboard is the window you open to watch it.

If you open the dashboard before the dispatcher has ever run, it will tell you no data is available yet. Start apiary run and the dashboard will fill in on its next refresh.

The dashboard only ever reads — you can open and close it as often as you like without affecting running tasks.

Where the data lives. Apiary is project-scoped: its state sits in a .apiary/ folder next to your config file — the database at .apiary/apiary.db, logs under .apiary/logs/, and IPC socket at .apiary/apiary.sock.

Config file lookup order. apiary looks for the config file in two places (in order): 1. apiary.yaml in the current directory 2. .apiary/apiary.yaml in the current directory

This lets you keep everything tidy inside .apiary/:

.apiary/
  apiary.yaml        ← your config (optional here)
  apiary.db          ← SQLite database (auto-created)
  apiary.sock        ← IPC socket (auto-created)
  logs/              ← log files (auto-created)
apiary.yaml          ← your config (default location)

Run apiary dashboard from the same directory as apiary run (or point both at the same config with --config) so they share the same project data.

Getting around

The dashboard has a row of tabs along the top. Use the keyboard to move:

Key Action
← / → Switch between tabs
Tab / Shift+Tab Next / previous tab
↑ / ↓ Move the selection or scroll within a tab
Home / End Jump to top / bottom
PgUp / PgDn Page up / down
Ctrl+U / Ctrl+D / Space Alternative page up / down
r Refresh now
W (Shift+W) Start a workflow manually
q / Ctrl+C Quit

The active tab refreshes on its own every couple of seconds. The footer shows how long ago the data was last loaded, so you always know how fresh it is. Contextual help in the footer shows which keys are available in the current view.

Choosing the metrics window

The Overview and Workflows tabs measure over a window you choose, and both use the same one, so the two tabs always describe the same stretch of time. Press w on either tab to cycle it:

Window Covers
last 7 days (default) the last 168 hours
last 30 days the last 720 hours
last 90 days the last 2,160 hours
all time everything the store holds

Every header names the window it is showing — Finished (last 30 days), Durations (all time), WORKFLOWS · last 90 days, no finished runs last 30 days — so no figure appears without the period it was measured over. "All time" covers the whole history the store holds, starting at the first recorded execution.

The key is scoped to the screen: on the Logs tab w toggles word wrap, and in the Agents detail view it cycles an agent's max_workers, exactly as before.

The tabs

Overview

Your at-a-glance health check: what the hive is doing right now, and how long its work takes.

Live — present tense, not tied to the selected window:

  • Status — dispatcher health indicator (Healthy / Degraded / Unknown) with a live glyph.
  • Concurrency — worker pool size (configured in apiary.yaml).
  • Agents — each agent's running workers over its configured maximum, plus how many agents have run in the last hour.
  • Running — how many task executions are being worked on this instant.
  • Queued — tasks that failed and are waiting to be retried automatically.
  • Approvals — decisions parked on a human, with a shortcut to list them.

Finished — how much finished in the selected window, and how long it took:

Finished (last 7 days):  114 runs · 105 tasks done · 9 failed
Durations (last 7 days):
  Wall:    p50 4.4h · p90 22.5h · max 47.8h
  Active:  p50 51m · p90 2.6h · max 13h
  Agents:  p50 9.8m · p90 30m  (1306 runs)
  • Wall — how long a workflow run took end to end, from creation to finish, waiting included.
  • Active — how much of that time something was actually executing: the union of the run's step intervals. Approvals, CI waits and other parked time are not steps, so they do not appear here, and steps that ran in parallel are counted once rather than twice.
  • Agents — how long a single agent run (one process) took. The other two are about whole workflows; this one is about the unit a task spends its time in.

Wall and Active sit next to each other because the gap between them is the information: a workflow that spends most of its life waiting for a person has a high wall and a low active time, while one that is genuinely slow has both high. One figure without the other says very little.

The figures are percentiles, not averages. Run durations are heavy-tailed — a handful of runs parked for most of a day can drag a mean far above anything you will typically experience — so a mean describes no run in particular. p50 is the typical run, p90 is the slow tail, and max is the worst one. On a narrow terminal the lines drop max first and then the p90s; the wall/active pair and the sample sizes always stay.

The counts are sample sizes now, not the headline: 114 runs is the N behind the wall and active distributions, and (1306 runs) is the N behind the agent distribution. A percentile without its sample size is not interpretable. The task split (105 done · 9 failed) is kept because a failure is still the thing to notice; it comes from the task registry, so a retried task is one task that eventually finished, not a failure plus a success.

A window with no finished runs says so (no finished runs last 7 days) rather than printing zeros, and a failed durations query says the figures are unavailable rather than implying nothing ran. Everything here covers the selected metrics window (see Choosing the metrics window); the box title and each header name it.

Metrics help. Press H for an in-place explanation of these figures: what the window covers, how wall differs from active, and what p50, p90, max and N mean. It scrolls on a short terminal; H or Esc closes it.

Running counts the task executions the database still marks as running. That is not the same as the number of processes actually working: a process that died without closing its row out keeps counting until the next dispatcher restart reconciles it. The Running tab tells the two apart — it shows which of those executions are provably alive and which are stale.

Resources

At the bottom of the tab, a Resources section reports what the hive costs on this machine right now:

Hive:     12.3% CPU  412.5 MiB  14 processes
Daemon:    1.2% CPU   87.0 MiB
  • Hive is the daemon and its whole process tree — every agent CLI it spawned plus the MCP servers and node children under each. That is where the memory actually goes, and it is the number to watch.
  • Daemon is the dispatcher process alone, so you can see how much of the total is the daemon versus the work it is running.

The figures are measured by the dashboard from the operating system's process table, not reported by the daemon. CPU is what the tree used since the previous refresh, as a percentage of one core (200% means two cores' worth), so it is an instantaneous reading rather than a lifetime average. On the very first sample it reads —: there is no earlier reading to compare against yet.

Not every platform exposes a process table to this tool; where it does not, the section says so instead of printing a number it could not measure.

Overview tab

Tasks

A list of recent tasks — both running and already finished — newest first. Each row shows the task title, which step it is on, its status, and when it ran. Use ↑ / ↓ to move the ▶ marker.

The list opens with the newest 100 tasks. When older ones exist, a hint appears under the last row; press ↓, PgDn or End while on that row to load the next 100 below it. Loaded pages stay put across the periodic refresh.

The / filter and the tickets-only (T) / approvals (A) toggles run in the query, not on the loaded rows: they search every task ever recorded, and the matches page the same way. The filter matches the title, the task id, the state, and the source reference (#412, ERP-42) of any binding.

   #          TASK                            STEP           STATUS   WHEN
▶  #412       Fix approval gate re-entry      review 3/5     running  4m ago
   #401       Port pgsink to new columns      check-ci 4/6   blocked  1h ago
   #396       Decompose the spec              ⑂ 3 steps      running  8m ago

The STEP column answers "where has it got to": the step now executing and its position in the workflow. A task running more than one workflow instance at once — parallel, for_each, or spawned children — shows ⑂ 3 steps rather than picking one of them to display.

There used to be an AGENT column here. An agent is a property of a step, not of a task, so for a task whose steps used three different agents it showed one arbitrary agent of the three. The agent is still shown per step in Details and in the workflow monitor, where it is accurate.

From the list you can drill into the selected task:

Key Opens
d Details — agent, model, runner, attempts, start/finish times, total duration, and the error message if it failed
Enter or l Logs — the per-task log lines for that run
o Open the task in your browser (its source URL)
p Open PR — the task's most recent pull request, in your browser
R (Shift+R) Force restart — cancel and re-dispatch the task (with confirmation)
W (Shift+W) Start a workflow on the task, ignoring triggers and guards
C Clear logs — delete all logs for the task (with confirmation)
D (Shift+D) Delete task — permanently remove the task and all its workflows, steps and logs (with confirmation; cannot be undone)
b Board — the same tasks grouped into columns by state (see below)
Esc / Backspace / h / ← Back to the list

The # column shows each task's human reference (e.g. ERP-42) so you can match a row to the work item in Plane. Press o on any task — in the list, on the board, in Details, in the workflow monitor, or drilled into from an agent — to open it directly in the browser, and p to open its most recent pull request.

In the Logs view, ↑ / ↓ scroll through the lines, Home / End jump to the top / bottom, and PgUp / PgDn (or Ctrl+U / Ctrl+D / Space) scroll a page at a time. From either sub-view you can jump straight to the other (d ↔ l) or press r to reload it.

Running tasks show how long they've been going; finished tasks show when they completed. A task that was retried shows its attempt count in the Details view.

Tasks list Task detail view Task logs view

Workflow monitor

Pressing Enter on a task whose work is driven by a workflow opens the live monitor: the step list on the left, and the selected step's detail — or its logs — on the right.

Key Action
↑ / ↓ Move between steps
Enter / l Open the selected step's logs in the right panel
- / + Resize the split — narrow or widen the step list, 5% at a time
[ / ] Switch between workflow instances, when a task fanned out to several
t Open the step's transcript
o / p Open the monitored task (its source URL) / its latest pull request
r Refresh the monitor
X / R Stop the workflow / restart the whole task (both confirm first)
Esc / Backspace / h / ← Back (closes the log panel first, then the monitor)

The split defaults to 40% and is clamped between 20% and 80% so neither panel becomes unreadable. Widening the step list past the default reveals the DUR column, which the default width clips. - / + work while the log panel is open, which is usually when you want the extra room; resizing never disturbs the step selection or scroll position.

Force restart and clear logs

Pressing R (Shift+R) on a selected task shows a centered confirmation modal with a rounded border. Press y / Y to confirm or any other key to cancel. This sends a restart request to the daemon via Unix socket: the task's running dispatch and queued jobs are cancelled, its non-terminal instances are interrupted, its control labels are stripped, and the item is re-routed and dispatched immediately — it does not wait for the next poll.

The result appears as a one-line banner above the footer, and the list refreshes straight away so the new run is visible:

  • ✓ Restarted CDT-123 (10042) — dispatched 1 workflow(s): implement
  • ✗ Restarted CDT-123 (10042) — but no workflow matches it right now, so nothing was dispatched

The banner names the item the way you know it — the Jira key, the GitHub issue number — with the raw cell id in parentheses when the two differ. - ✗ Restart failed: … — the daemon's own message, e.g. an id that is an internal task id rather than a cell id.

Restart deliberately overrides the once and failure-cap guards (the banner names what it overrode); it never overrides the in-flight guard, so a workflow that is genuinely running is not started a second time.

Pressing C on a selected task works the same way — confirm with y / Y to delete the task's logs and execution records, or any other key to cancel.

Answering an approval

A workflow parked at an approval step shows its question in the task detail and in the workflow monitor. Answer it there:

Key Action
a open the decision sheet
y / n open it with approve / reject preselected

The sheet shows the question, the answers the workflow offers (not just yes/no), any declared fields, and a reason box:

Key Action
↑ / ↓ move between rows; at a section edge, into the next section
← / → or 1-9 choose an answer
tab / shift+tab move between Answers, Fields and Reason
enter on an answer: select it; on a field or the reason: submit
ctrl+s submit from anywhere
esc cancel — nothing is recorded

The reason is optional and is always offered. Submitted values reach the workflow as ${{ memory.<field> }}, the chosen answer as ${{ memory.approval_outcome }}, and the reason as ${{ memory.approval_feedback }}.

The result is reported in the banner — including a refusal, such as a gate someone else has already answered. A failing answer never asks for the fields.

The same requests are answerable from the terminal with apiary approvals; see Human-in-the-loop approvals.

Starting a workflow manually

W (Shift+W) opens a picker listing every configured workflow. ↑ / ↓ select, Enter starts, Esc cancels. It works from any tab.

Where R re-runs whatever matches an item, W runs the workflow you name — matched or not. It skips the trigger's match block, exclusive suppression, the live-instance guard, once, and the failure cap. Starting a workflow that is already running on the task is allowed: the banner says so, and you get a second concurrent instance.

The header of the picker names the target before you commit to it:

  • item <id> — the task focused when you pressed W. The run binds it and writes back to the source like any other dispatch.
  • standalone — no source item — no task was focused, or you pressed s to detach from it. The workflow runs on a fresh internal task; comments, state locks and sub-issues are no-ops for that run.

The result appears as the usual banner, e.g. ✓ Started triage on CDT-123 (10042) (bypassed triggers and guards). Use apiary dispatch for the same thing from a shell, where you can also pass --input.

Watching the live conversation (debug mode)

By default the per-task Logs show the milestones: the dispatch decision, the agent's final output, and whether it succeeded. To watch the full, real-time conversation with the agent — every message, tool call, and result, plus the exact prompt that was sent and the routing decision that picked the agent — start the dispatcher in debug mode:

apiary run --debug

With --debug, each task's Logs view fills in live as the agent works (the dashboard refreshes every couple of seconds). You'll see, in order:

  • the routing decision — which route matched, which were skipped and why, and the agent that was selected;
  • the prompt — the exact text sent to the agent (task title, description, labels, and the agent's soul file);
  • the conversation — [assistant] messages, [tool→ …] calls with their inputs, [tool← result] outputs, and a final [result:…] line with turns, duration, and cost.

These are DEBUG-level lines (shown in grey). Without --debug they are not recorded, keeping normal runs lightweight.

The rich [assistant] / [tool→ …] breakdown comes from Claude's structured event stream — the claude provider preset already requests it (--output-format stream-json --verbose), so a plain runner is enough:

runners:
  - id: claude-cli
    type: cli
    provider: claude

Apiary parses those events into the readable lines above. A CLI without structured output still streams — you just see its raw output instead.

The board

Press b for a board view of the same tasks, one column per state:

  QUEUED (1)              RUNNING (2)              BLOCKED (2)              DONE (12)
  #418                  │ #412                   │ #401                   │ #390
  Add plugin registry   │ Fix approval gate re-… │ Port pgsink to new co… │ Docs: plugins
  —                     │ review 3/5             │ check-ci 4/6           │ —
  2m ago                │ 4m ago                 │ ci 1h ago              │ 20m ago

  FAILED (1) — needs attention
    #407     Improve advisor evidence pack        build 2/7      3h ago

The columns are the task states themselves, so a card sits in BLOCKED because its state says blocked — nothing is inferred. A blocked card also shows what it is waiting on (approval, ci, dependency).

FAILED is a lane, not a column. The columns are stages work passes through, and terminal failure is not one — it is an exception waiting for a person. The lane stays visible when it is empty, showing FAILED (0), because "nothing needs attention" is worth seeing.

The board is a working surface, not a wallboard. Every key does what it does elsewhere, acting on the selected card:

Key Action
← → Move between columns (at the left edge: back to the list; at the right edge: next tab)
↑ ↓ Move within a column
Enter / l Open the task
a / y / n Answer the approval the card is blocked on
R (Shift+R) Force restart the task
o / p Open the card's source URL / its latest PR
b / Esc Back to the list

Answering approvals in place is the reason the view earns its keystroke: open the board, see BLOCKED (4), clear four gates without drilling into four tasks.

Cards cannot be dragged between columns. A card moves when the hive moves it — state is a consequence of what actually ran, and a board that let you drag a task into DONE would be asserting something that never happened.

DONE is capped so finished work cannot squeeze out the columns that need attention; the header always shows the true count, with +N for what it did not fit. On a narrow terminal columns are dropped from the right (DONE first, then QUEUED) and their counts move into the header. Below about 40 columns the board declines to render and the list is shown instead.

To open on the board every time, set it per hive:

settings:
  dashboard:
    default_view: board   # list (default) | board

or per invocation with apiary dashboard --view=board.

Running

The agents working right now — one row per in-flight process, so you can see what the hive is doing at this instant rather than what it did.

   AGENT            TASK             TITLE                    MODEL         PID   ELAPSED     CPU       MEM
▶  janitor          stuck-check@…   Stuck agent work check   claude-haiku…  7941   19h36m   12.4%   184.2 MiB

Each row is a process, not an agent: an agent running two tasks at once appears twice, because those are two separate processes doing two separate jobs. The TASK column carries the work item's human reference (ERP-42, #412), so you can match a row to the thing it is doing.

CPU and MEM are what that agent is costing right now, for its whole tree: the CLI plus the MCP servers and node children under it. They are the same measure as the Overview's Hive figure, broken down per row, and they refresh with the tab. A — means the process exited between the database query and the measurement, or that the first CPU sample has not landed yet.

The dot in front of each row says whether the process is provably alive:

  • Green — the process is working. It has a PID and a heartbeat from the last minute.
  • Red — the row still says running, but the heartbeat has gone stale. The process is gone: it died, or the machine it ran on went away, without the row being closed out.

A stale row is still listed on purpose. Work that is stuck is exactly the work you want to see, and hiding it would leave you looking at a shorter list and a false sense of calm.

Stale rows do not stay forever: the dispatcher reaps them, closing out any execution whose process is gone — every few minutes, and again whenever the dispatcher restarts. A row is only reaped when nothing proves the process is still running, so live work is never closed out from under you.

Waiting workflows

Below the running processes is a WAITING section: the workflows the hive holds but cannot advance. A workflow is not a process — it stays non-terminal long after the agent that was running it is gone, parked on something.

   STATE         WORKFLOW         TASK       TITLE                      AGENT        WAITING ON     AGE
   ⏸ ci          implementation   #7853      Oficina: integrar emiss…   —            CI run      38m21s
   ⏸ approval    implementation   #7874      Oficina: painel de capa…   —            human approval  2h06m
   ✗ interrupted implementation   #7864      Oficina: dashboard emp…   —            run died     1h45m

The rows are ordered by what you can do about them: a workflow waiting on a human, a CI run or a blocker issue is waiting for something, while an interrupted instance is the debris of a run that died and needs a decision rather than a wait. The AGE column is how long it has been waiting, which is what makes a two-day-old approval visible.

One cursor covers both sections: press ↓ past the last running row and it steps onto the first waiting workflow. Enter opens the selected row's workflow monitor, exactly as it does for a running process, and the task actions — o open, D delete, R restart, t transcript — apply to the row the cursor is on.

Nothing here is hidden: the count in the section header is the number of non-terminal workflows, and when the list is longer than the screen it scrolls to keep the selected row in view and says how many rows are hidden above and below.

The waiting section is not a graveyard. A workflow that no run is working on and no job is waiting to start is dead, and the dispatcher closes it out on its regular pass — so an interrupted run does not sit here being "waiting" forever. What stays is what is genuinely waiting: an approval, a CI run, a blocker issue.

If the tab cannot read the database — a locked file, or a query that took too long on a very large one — it says so instead of showing an empty list. An empty list is a claim about the hive; a failed query is not.

Key Action
↑ / ↓ Move the selection
Enter / l Open the task's workflow monitor — the live step list for the task this agent is working on
o Open the task in your browser (its source URL)
D (Shift+D) Delete task — permanently remove the task and all its workflows, steps and logs (with confirmation; cannot be undone)
Home / End Jump to top / bottom
PgUp / PgDn Page up / down

Opening the monitor from here lands you on the same live view the Tasks tab opens, with the steps and their logs — so you can watch a specific agent work rather than reading about it afterwards.

Agents

How each of your agents is performing over time. For every agent you'll see its status (active / idle), completed task count, average run time, and overall success rate (color-coded).

Use this tab to compare agents — to spot one that's failing more often than the others, or one that's much slower — so you can adjust which work you route to it.

An agent shows up here once it has actually run at least one task.

The Agents tab supports three levels of drill-down:

Key Action
d Detail — full per-agent stats: status, running count, current task, completed / succeeded / failed counts, queued count, success rate, average duration, last task timestamp
Enter / l Activity list — all tasks handled by this agent (from activity: press Enter / l again to drill into that task's logs)
o Open the task's source URL in your browser (from activity or task logs)
p Open PR — the task's most recent pull request (from activity or task logs)
Esc / Backspace / h / ← Back one level (agent list → detail → activity → task logs)
Home / End Jump to top / bottom in activity list or task logs
PgUp / PgDn Page up / down in activity list or task logs

Agents tab

Logs

A live feed of what the dispatcher, router, and runners are doing, newest at the bottom. Lines are color-coded so problems stand out:

  • Red — errors
  • Yellow — warnings
  • Blue — informational
  • Grey — debug / verbose

Use ↑ / ↓ to scroll back through recent activity. Home / End jump to the start / end, and PgUp / PgDn (or Ctrl+U / Ctrl+D / Space) scroll a page at a time.

Key Action
w Toggle word wrap — when on (default), long messages wrap. When off, ← / → scroll horizontally by 8 columns
← / → Horizontal scroll — only when wrap is off
r Refresh now

The footer shows your scroll position (e.g. line 42/150) so you always know where you are. This is the first place to look when the Overview tab shows failures.

Logs tab

Workflows

The workflows your config defines, and how long their runs take. The left list shows every workflow with a compact second line: the number of finished runs and the two median durations, active over wall (114 · 54m/4.4h). A workflow with no finished run in the window says so (no runs last 7 days) instead of showing a row of zeros.

Select a workflow with ↑ / ↓ to see its steps on the right. The line under the title is the full comparison:

114 runs · active p50 54m · p90 2.6h · max 13h — wall p50 4.4h · p90 21.5h · max 47.8h

Wall is the life of a run from creation to finish, waiting included. Active is the time something was actually executing: the union of the instance's step intervals, so approvals, CI waits and other parked time are excluded, and steps that ran in parallel are counted once rather than twice. The gap between the two is the point of showing them side by side — a workflow that spends most of its life waiting for a person has a high wall and a low active time, while one that is genuinely slow has both high.

The figures are percentiles, not averages. Run durations are heavy-tailed — one workflow in this hive has a mean of 481 minutes over a p50 of 261 — and a mean describes no run in particular. p50 is the typical run, p90 is the slow tail, and max is the worst one. On a narrow terminal the line drops max first and then the p90s; the run count and the active/wall distinction always stay, because they are what the line exists to compare. Press H for the same in-place explanation the Overview offers (H or Esc to close).

Each step that ran gets its own line with its own distribution (ran 3 · p50 1.0m · p90 5.0m). A step's duration is its wall interval — started to finished — so there is no active/wall pair to draw for it. Steps nobody reached show no line at all.

The durations cover the selected metrics window — the same one the Overview uses (see Choosing the metrics window) — and count runs that finished in it, however long they took to get there, so a run that started before the window is still measured. Press w to change the window, Enter / → to move into the step list, Esc / ← to come back, and j / k to move between steps. If the durations query fails, the definitions still show and the figures are marked metrics unavailable rather than reading as zero.

Troubleshooting

The dashboard says there's no data / a tab looks empty. The dispatcher hasn't produced that kind of data yet. Make sure apiary run is going in another terminal, then give it a task to work on. The Overview and Agents tabs populate first as soon as work starts; the Tasks and Logs tabs fill in as the dispatcher records running tasks and log activity.

The Running tab is empty. That means nothing is in flight — no agent process is running right now. It is empty between tasks, not broken. If work should be running and the tab stays empty, check the Tasks tab for a task stuck in queued, and the Logs tab for why it was never dispatched.

The Running tab shows a red dot. The row says running but the process's heartbeat has gone stale: the process died without the row being closed out. The work is stuck — restart the task with R from the Tasks tab, or check the Logs tab for the failure.

Numbers look stale. Press r to force an immediate refresh. The footer shows the last update time.

The dashboard won't open. It needs the dispatcher's data store, which is created the first time you run apiary run. Run the dispatcher once, then reopen the dashboard.

I want to quit. Press q (or Ctrl+C).