Skip to content

Latest commit

 

History

History
237 lines (161 loc) · 25.9 KB

dashboard.md

File metadata and controls

237 lines (161 loc) · 25.9 KB
title Worker Dashboard
sidebarLabel Dashboard
description Use when checking what the worker is doing, reading agent transcripts, diagnosing failed runs, retrying work, or delegating an ad-hoc task from the local dashboard.
section Automation
order 4
dateModified 2026-12-03

Worker Dashboard

The dashboard shows what the worker has been doing: current and past runs, agent transcripts, failures, and queued work. It starts with devintern worker at http://localhost:4400 on the worker machine.

Page What it shows
Overview Worker health, active and queued work, recently finished tasks. The landing page.
Inbox Notifications: what needs you, and what DevIntern changed outside itself. See Inbox.
Runs Full run history, filterable by status, origin, and outcome class. Open a run to follow its stages, read each agent transcript, open the task or PR, retry, or report a problem.
Automations Recurring automations, estimations, and scheduled jobs, with Run now.
Pull requests The agent's PRs, switchable between Open (awaiting review, oldest first) and Merged (up to the 50 most recently merged, newest first), each linked to its ticket. Merges are recorded when the worker sees them, so PRs merged before this feature and PRs closed without merging are not listed. Last activity shows the worker's latest run on each PR (such as an auto-merge escalation or a CI fix), with its status and reason, and links to that run.
Workspace A read-only view of workspace.toml: routing, repositories, automations, credentials (key names only), and policy.
Stats Success rates, durations, PRs merged (agent PRs whose merge time falls in the window), and When runs happen, a weekday × hour heatmap. Use it to move automations into quiet hours, or share your results. Success and escalation rates and the median duration exclude auto-merge decisions and runs interrupted by a worker stop or restart (the work resumes in a new run); each is shown on its own line.

Check worker health

Overview shows:

  • Uptime, working window, and queue mix: how long the worker has been up, when its working window opens or closes, and what is queued.
  • Active work: runs in progress against max_concurrency and max_concurrency_per_repo. Every in-progress run counts, including PR review, CI fix, and conflict runs.
  • Agent harnesses: your AGENT_HARNESS failover chain, which one is active, and any usage-limit window with its end time. After a limit ends, a harness reads quota unconfirmed until a run on it succeeds.
  • Tracker sources: when each team's tracker was last polled. A source that missed more than three poll intervals is flagged.
  • Restart pending: while devintern worker restart --when-idle waits for running jobs, a banner says how many jobs are finishing and that new work is held. Queued work resumes after the restart.
  • Automation source health: when an error monitor such as Sentry cannot be read, the header shows N sources need attention with a link to the details. See Sentry integration.

Workspace also says whether the running worker has applied the latest workspace.toml. A save that changes a restart-only setting (default tracker, a team's name, tracker, or env, error monitors, dashboard port, or working-hours schedule) is rejected as a whole, and the page shows why.

Follow active work

Each Active work row shows the task, repository, harness, attempt, current phase and step, and elapsed time. Select a row to open the run. When the worker is stopped or every harness is usage-limited, rows turn neutral because the runs are not advancing.

Below the running rows:

  • Waiting to retry: tasks deferred in the last 48 hours, for example after a usage limit, with the reason.
  • Queued: accepted work that has not started, such as ad-hoc tasks, dashboard retries, PR events, automations waiting for their repository's checkout, and PR jobs (shown as owner/repo#N) waiting for a free slot or for another job on the same PR. Expand a row for its details: task key, repository, who queued it, when, why it may be held back, and for ad-hoc tasks the prompt. Expanding a pending ad-hoc task shows Cancel task: confirm it and the task is withdrawn before the worker starts it. A running task is cancelled through POST /api/tasks/:id/cancel (the active-work view has no button yet); it settles cancelled and keeps its branch for a later resume. Recently cancelled tasks are listed below the queue with who cancelled them and when. See Cancel a running task.
  • Recently finished: the last five finished tasks with outcome and PR. View all runs opens Runs.

Inbox

The bell in the header shows how many notifications are unread; a ! on the count means some of them need you. Open it for the latest items, or choose Open inbox. When something needs you, Overview also lists it in a Needs you block at the top, with the count split into what needs attention and what is waiting on review, for example 2 need attention · 5 waiting on review.

Tab What lands there
Needs you Everything below that needs a human, plus exhausted retries, broken automations, and unreadable sources or credentials.
DevIntern problems A DevIntern step failed (a likely DevIntern bug). The same error across runs shares one row, for example Likely DevIntern bug: verify failed (×3).
Waiting on review Escalations: a review or merge rule held a PR for you, or the agent could not finish a task.
Activity PRs DevIntern opened or auto-merged, and work a run delegated or tickets it filed.
All Everything.

Repeats of the same event share one row with a count such as ×88, and the row comes back as unread when it happens again. Each row links to its run, PR, or ticket. On a delegated-work row, Show spawned work lists the child tasks and tickets with their current status.

  • Mark read clears the unread state. Mark all read does it for every row.
  • Resolve closes a row you have dealt with. Rows also resolve on their own when the problem goes away, for example when a later run of the same task succeeds. Turn on Show resolved to see them again.
  • Mute hides this row and every future notification from the same cause, and stops their Slack and email delivery. Use it for a known, noisy problem you do not want to hear about. Muted groups are listed at the bottom of the inbox with Unmute.

To get these on your desktop, in Slack, or at a webhook without keeping the dashboard open, see Notifications.

Why a run did not succeed

A run that failed, escalated, or was abandoned has an outcome class. The runs list shows it as a badge with the cause underneath, and Class filters by it. Open the run for a banner with the class, the step that failed, its error, and where the unfinished work went.

Class Meaning What to do
Waiting on review A review or auto-merge rule wants a human to approve, for example a version bump or a deny pattern. Nothing is broken. Review the PR, then merge or close it.
Agent stopped The agent could not complete the task: it gave up, tests kept failing, or the ticket was unclear. Clarify the ticket or fix the blocker, then retry.
DevIntern problem A DevIntern step failed rather than the agent's work: verification, git or worktree operations, PR creation, or a crash. Retry. If it happens again, choose Report problem on the banner; the report is pre-filled with the step and error.
Environment Credentials, sign-in, network, a rate limit, a missing tool, or a code host that refuses the PR for a setup reason (for example missing code-host settings) stopped the run. Fix the setup (see Configuration), then retry.

The banner also shows the work status: Work saved on branch (a retry continues from it), Work kept in worktree with its path on the worker machine, or Work discarded when the changes could not be saved. Runs from before this feature have no class, except escalated auto-merge runs, which show as Waiting on review.

Retry a failed run

Fix the cause first (missing credentials, unclear task details, a temporary agent failure), then open the run and choose Retry. The worker queues a fresh attempt with the same routing and checks for queued retries every 5 seconds (WORKER_RETRY_INTERVAL_SECONDS). A run that already has an attempt queued or running cannot be retried again. The run's Retry history links each retry to the run it started, with that run's status (for example deferred on a usage limit), or shows "no run recorded yet" until one begins. A retry that fails before its run starts stays that way: check the worker log.

Ad-hoc tasks from devintern worker add show Re-queue task instead. It resumes the prior attempt on its existing branch rather than opening a second PR. It is also offered on a successful run that pushed its branch but failed to open the PR (for example on bad credentials); the re-queued run opens the PR from that branch. A fresh branch is used only when the old branch is gone or its PR was merged or closed. The worker also resumes an interrupted ad-hoc task once on its own at startup when there is work to resume. If a task cannot be re-queued, for example because its queue entry expired after 30 days, the run explains why; use devintern worker add to submit it again.

Report a problem with a run

When a run fails in a way the output does not explain, or completes with the wrong result, open it and choose Report a problem. It files the same redacted bug report as devintern report --run <id>; see Reporting Bugs.

Missing credentials, usage limits, and failed verification checks are configuration issues, not DevIntern bugs. Fix those and retry. A run classed as a DevIntern problem shows Report problem on its banner instead, with the failing step and error already filled in.

For a problem that is not tied to one run, choose Report a bug at the bottom of the sidebar. It sends your environment, worker readiness, and recent worker logs, with no run attached. Request a feature opens a public GitHub issue form with your version filled in.

Run an automation now

Open Automations, find the automation, and choose Run now. It runs through the same pipeline as a scheduled occurrence. Use this to test a new prompt or to run routine work early. Open an automation to read its prompt, schedule, next run, and recent runs.

An automation runs in its repository's base checkout, which only one job uses at a time. If the checkout is busy, the automation shows Waiting for a slot and starts on its own when the checkout is free.

Automations also lists other scheduled jobs, each with Run now:

  • Estimation: your [[estimations]] story-point sweeps, with the usual skip rules. See Story Points Estimation.
  • Conflicts (when [workspace].conflict_resolution = "scheduled"): opens the conflict-resolution window now, for the usual grace period (WORKER_RESOLVE_WINDOW_GRACE_MINUTES). The next scheduled window does not move.
  • Auto-merge (when [workspace].auto_merge = true): checks every open agent PR now. The PR must still be green and conflict-free.

Run now needs a running worker. A standalone devintern dashboard lists automations but cannot run them.

Delegate a task

Choose New task in the header to hand the worker a one-off task, the dashboard equivalent of devintern worker add. Pick a registered repository (and, when several teams are fixed to it, the team whose credentials the run uses, like --team), give it a title, and describe the work in Markdown (up to 20,000 characters). The worker sees only this text, so write a self-contained brief. Press Ctrl+Enter (⌘+Enter on macOS) to submit.

The task is queued and the running worker picks it up on its next poll. Ad-hoc tasks ignore working windows and use [defaults].worker_task_args (default --create-pr). The dialog shows the task key (local-<slug>) and links to the run once it starts. Submitting twice returns the task that is already queued instead of creating a duplicate.

To give the agent screenshots, logs, or specs, choose Attach files, or paste a screenshot into the description. Up to 10 files, 10 MB each and 25 MB in total. The files are stored with the task in ~/.devintern/injected/ (not in the repository), and the agent gets their paths in an Attachments section of the task. They are deleted when the task is pruned.

Advanced options sets per-task choices that otherwise come from the workspace:

Option Default Effect
Agent harness The AGENT_HARNESS chain Runs the task on this harness only, with no failover. If that harness is usage-limited, the task waits for its reset. See Agent harness
Model The harness's default Passed to the harness as written. Without a harness, it applies to the primary harness only
Reasoning effort The harness's default low, medium, or high; ignored by harnesses that do not support it
Depends on None Ad-hoc task keys (any repository in the workspace) to wait for, like --after. See Dependent tasks
Dependency mode [defaults].dependency_mode Stack on the unmerged branch (--stack) or Wait until merged (--wait-merge); shown once a dependency is named

New task needs a workspace with at least one registered repository; add one with devintern worker add-repo.

For scripts, use devintern worker add. It needs no running dashboard and can wait for the result. To call the API directly, send an Origin header that matches the address you call (see Local by design):

curl -s http://127.0.0.1:4400/api/tasks \
  -H 'Content-Type: application/json' \
  -H 'Origin: http://127.0.0.1:4400' \
  -d '{"repo":"backend","title":"Bump the lockfile","body":"","idempotencyKey":"lockfile-1"}'

The response matches devintern worker add --json: { id, taskKey, repo, status, deduplicated }.

Share your results

Stats → Share turns the selected window into an image for X, LinkedIn, or anywhere else. There are two cards:

  • Shipped: how many agent PRs merged, and how many merged on their own once checks passed, plus teammates' PRs DevIntern auto-merged and automations it ran.
  • Agent time: total agent hours, split into time while you were offline and time during your working hours. Set your working hours in the dialog; the browser remembers them.

The dialog opens on whichever card tells the stronger story. Untick Breakdown or Agent time to leave those details off. The card shows totals only, never repository, ticket, or team names.

Button What it does
Share image Opens your system's share sheet with the image attached, so it goes into the post itself. Shown only where the browser can share files: phones and tablets, Safari on macOS, and Chrome or Edge on Windows and ChromeOS.
Post on X, LinkedIn Opens a post with a short devintern.com link whose preview is the card. To make the link, the dashboard sends the card's totals to devintern.com, which draws the same image from them; nothing else is sent. Offline, the post gets a longer link that carries the totals itself.
Copy image, Download The PNG, made in your browser, to attach anywhere.

The Overview also offers a card when there is something to share, with a preview of the image and a Share button:

Prompt Shows when Opens
Milestone In the last 7 days, all-time merged agent PRs passed 10, 50, 100, 250, 500, or 1,000, or agent hours passed 100, 500, or 1,000 Card for all time
Best week Last week merged more agent PRs than any earlier week, with at least 4 earlier weeks of history Shipped, 7 days
Offline More than 60% of the last 7 days' agent time (at least 10 hours) fell outside your working hours Agent time, 7 days
Your week The last 7 days merged at least 5 agent PRs or logged at least 10 agent hours 7 days

At most one prompt shows per week, in that order, and each milestone, best week, or offline week is offered once. Click × to hide the card until next week (weeks start on Monday). Working hours are the ones you set in the share dialog (default Monday to Friday, 09:00 to 18:00). The browser remembers what you dismissed.

To link straight to a card, open #/stats?share=<shipped|agent-time>&window=<7d|30d|90d|all>, for example http://localhost:4400/#/stats?share=shipped&window=7d. Stats opens on that window with the share dialog showing that card. An invalid link opens Stats normally.

Dashboard assistant

Chat with an agent in the dashboard about your workspace configuration and automations, or to ask about runs and PRs. It runs on your Claude Code or Codex subscription inside the agent sandbox and pauses while that agent is usage-limited. See Dashboard assistant.

View the dashboard without the worker

devintern dashboard

This shows existing run history while the worker is stopped. Only explicit actions such as Retry, New task, and Cancel task write anything.

Option Default Effect
--port <number> 4400 Listen on another port (env: DASHBOARD_PORT).
--host <host> 127.0.0.1 Loopback address to bind: 127.0.0.1, localhost, or ::1.
--workspace <path> ~/.devintern Pass the same workspace.toml (or its directory) you gave the worker, so queue counts, automations, and transcripts follow it.
--allow-origin <origin> Trust an extra origin; repeatable. See Allowed origins.
--no-tailscale-autodetect Do not trust Tailscale Serve origins automatically.

Starting a standalone dashboard requires an active Worker Pilot or automation license. The dashboard inside the worker stays available when an expired Worker Pilot pauses new work.

Read dashboard data from the command line

Every read-only dashboard view is also a devintern worker subcommand. These commands read the workspace database directly, so they need no running dashboard or worker and no network access. Use them in scripts and from sandboxed agents, which usually cannot reach localhost:4400.

Command Shows
devintern worker runs Recorded runs, newest first. Filter with --automation, --origin, --status, --task-key, --limit, --offset.
devintern worker runs show <id> One run with its stages, retry status, harness logs, and artifacts
devintern worker runs logs <id> [name] A run's agent transcripts, or the redacted tail of one
devintern worker runs artifacts <id> [artifact-id] A run's artifacts, or one artifact's content
devintern worker stats Success rates, durations, agent PRs merged in the window, the shipped total, and activity by hour (--window 7d|30d|90d|all, default 30d; --tz <zone>). Rates and the median duration exclude auto-merge decisions and runs interrupted by a worker stop or restart, each shown on its own line
devintern worker automations Automations and estimation sweeps with next and last run. Read from workspace.toml, so it omits the Conflicts and Auto-merge entries a running worker's dashboard adds
devintern worker prs PRs and MRs opened by the agent: open (default) or recently merged (--state open|merged; --limit N, 1..500, default 50)
devintern worker queue Queued work that has not started
devintern worker status Worker liveness, relay identity, queue counts, poll cursors
devintern worker overview Capacity, harness health, tracker freshness
devintern worker logs Recent worker log entries (--lines N, default 500; --level)

With --json, a command prints exactly the body of the matching dashboard API route (for example worker runs matches GET /api/runs), so scripts that used curl can switch unchanged. worker status --json and worker overview --json also add schema (devintern.worker-status, devintern.worker-overview), version (1), and result (the worker's liveness, worker.status: for example running or stopped) in front of the body:

devintern worker stats --window 7d --json | jq '.stats.successRate'

The commands use the workspace from --workspace, then DEVINTERN_WORKSPACE_DIR, then ~/.devintern. They never modify the database. If it is missing, worker queue without --json explains that the worker has not started yet and exits 0; worker status still answers without one. Every other case — another command, an unreadable database (wrong permissions or a sandbox denial), or any --json invocation including worker queue --json — prints why and exits with code 1. --json is the reliable way for scripts to tell a missing database from an empty queue.

Local by design

The dashboard listens only on a loopback address and cannot be bound to another one. It has no login of its own, and its actions retry runs, trigger automations, enqueue and cancel tasks, and send bug reports with your credentials. Access levels limit what other devices can do.

To protect it from other websites open in your browser, the API accepts requests only for localhost, 127.0.0.1, [::1] (any port), or an allowed origin. Actions must come from the same origin as the dashboard page and send Content-Type: application/json.

To disable the dashboard or change its port:

[workspace]
dashboard = false
# dashboard_port = 4400

Access the dashboard from another device

Keep the dashboard on loopback and put something that authenticates in front of it: an SSH tunnel, Tailscale Serve, or a reverse proxy with a login. Do not use tailscale funnel; the dashboard refuses requests from the public internet. By default other devices can read and act (queue tasks, retry, Run now), and configuration changes are allowed only from the worker machine.

Setup for each option, allowed origins, per-person access levels, and access tokens for scripts are in Dashboard Access Levels and Tokens.

Artifacts

Run detail lists the files a run registered, with the step and commit that produced them. Preview text, Markdown, and images, or download the files. See Pipeline artifacts.