API Reference
Itervox exposes a REST + Server-Sent Events (SSE) API on the dashboard port
(default :8090). The web dashboard, the terminal commands, and any custom integrations talk to
the same endpoints.
Base URL
Section titled “Base URL”http://localhost:8090/api/v1Authentication
Section titled “Authentication”Dashboard / API bearer auth
Section titled “Dashboard / API bearer auth”By default, on every bind — including loopback (127.0.0.1, localhost,
::1) — Itervox secures all /api/v1/* routes except /api/v1/health and
/api/v1/ready with bearer-token auth (and /metrics, when enabled, with the
same token). Bind address is not treated as a security boundary: a
loopback daemon behind a tunnel or reverse proxy is exactly as reachable as
one bound to 0.0.0.0.
- If
ITERVOX_API_TOKENis set, that value is required. - If
ITERVOX_SUPERVISOR_TOKENis set (by a supervisor such as the macOS app), that value is required instead — even withserver.allow_unauthenticated: true— and the daemon never prints or writes it. See Running under a supervisor. - If
ITERVOX_API_TOKENis unset andserver.allow_unauthenticatedisfalse(the default), Itervox auto-generates an ephemeral token at startup and prints the tokened dashboard URL to stderr once — only when stderr is a terminal orITERVOX_PRINT_TOKEN=1(--no-print-tokenalways suppresses it). Otherwise the token is written to<logs-dir>/api-token(mode 0600) and the log carries only its path and asha256:fingerprint. server.allow_unauthenticated: truedisables auth entirely, on every bind. Renamed fromserver.allow_unauthenticated_lan, which still parses as a deprecated alias.- With
server.allow_unauthenticated: true, state-changing requests (POST,PUT,PATCH,DELETE) from another origin are refused with403cross_origin_forbidden:Sec-Fetch-Site: cross-site/same-site, or anOriginwhose host and port differ fromHost(scheme is not compared;Origin: nullnever matches). Requests with neither header (curl, scripts) andGET/SSE pass. Token mode has no origin check. - With
server.allow_unauthenticated: true, every route (API, SSE, dashboard) refuses a request whoseHostis a DNS name other thanlocalhost,server.hostor one inserver.allowed_hostswith403host_not_allowed(DNS-rebinding guard). IP addresses always pass;GET /api/v1/healthandGET /api/v1/readyare exempt. Token mode has no Host check. GET /api/v1/healthandGET /api/v1/readyare always auth-exempt — the only auth-exempt routes.GET /metricsis never auth-exempt.
curl -H "Authorization: Bearer $ITERVOX_API_TOKEN" \ http://localhost:8090/api/v1/stateThe dashboard captures ?token=<token> on first load, stores it in
sessionStorage (or localStorage when Remember on this device is
enabled), and sends Authorization: Bearer on both fetch and SSE requests.
Token scopes
Section titled “Token scopes”Every authenticated route requires a scope — viewer (GET and SSE, secrets
redacted), operator (adds dispatch, steering, input replies, approvals,
pause/resume, memory edits) or admin (adds settings, tokens, tmux control,
workspace reset, automations). ITERVOX_API_TOKEN, the auto-generated token
and the supervisor token are always admin; stored tokens in
.itervox/tokens.json carry their own scope. A request below the route’s
scope gets 403 with code insufficient_scope, required_scope in the body
and the X-Itervox-Required-Scope header. GET /api/v1/whoami returns the
caller’s scope (also callerScope on GET /state and /events);
GET|POST /api/v1/tokens, DELETE /api/v1/tokens/{id} and
POST /api/v1/tokens/{id}/rotate manage stored tokens (admin). The full
per-route table is in the Security guide.
Agent-action bearer auth
Section titled “Agent-action bearer auth”The daemon-backed agent-action routes use a separate bearer token model. They are authenticated with a short-lived per-run action grant, not the main API token. These routes are:
POST /agent-actions/{identifier}/commentPOST /agent-actions/{identifier}/comment_prPOST /agent-actions/{identifier}/create-issuePOST /agent-actions/{identifier}/move-statePOST /agent-actions/{identifier}/merge_prPOST /agent-actions/{identifier}/provide-input
Profiles opt into these capabilities with allowed_actions,
create_issue_state and create_issue_labels in WORKFLOW.md.
Error format
Section titled “Error format”JSON errors use the typed envelope below:
{ "error": { "code": "bad_request", "message": "message is required", "field": "message" }}fieldis optional and is mainly used by settings/forms.- The dashboard surfaces
messagein its error toasts. A503whosecodeisorchestrator_busy,settings_reloadingordeps_override_queue_fullmeans nothing was enqueued or written; the dashboard retries such a request once afterRetry-After. Other503s are not retried. - Some legacy streaming code paths still use plain text responses for transport failures before SSE framing starts.
Health
Section titled “Health”GET /api/v1/health
Section titled “GET /api/v1/health”Auth-exempt liveness probe.
Response 200
{ "status": "ok" }A static answer: it proves the HTTP server is up, not that the orchestrator
is working. Use it for liveness (restart-on-failure); use /ready for
readiness and alerting.
GET /api/v1/ready
Section titled “GET /api/v1/ready”Auth-exempt readiness probe driven by the orchestrator’s event loop. 200
when ready, 503 when not; the body is the same either way and holds only
booleans and one timestamp:
{ "ready": true, "loop_fresh": true, "last_poll_ok": true, "config_invalid": false, "degraded": false, "tracker_rate_limited_until": null, "draining": false}| Field | Meaning |
|---|---|
ready | loop_fresh, fewer than 3 consecutive failed tracker polls, and not draining. |
loop_fresh | The event loop is alive. Idle, it must have finished an iteration within 3× polling.interval_ms (at least 30 s). Inside a tick or event it stays fresh for up to 2 minutes (the tick budget): since #187 the poll’s tracker reads run off the event loop and the tracker reads an iteration still makes share one 30 s deadline, so a healthy iteration takes milliseconds. Within one poll interval of startup (at least 30 s) it is fresh before the first tick. |
last_poll_ok | The most recent tick polled the tracker and the poll succeeded (false before the first poll and while polling is shed for budget). |
config_invalid | The last WORKFLOW.md reload failed validation; the daemon keeps running on its last valid config. |
degraded | A rate-limited poll, an open tracker rate-limit gate, a tick that skipped its poll to keep the tracker budget for writes, an open tracker breaker (#187: three polls in a row hit a timeout, network error or 5xx), 1–2 consecutive failed polls, or config_invalid. Degraded is still ready. |
tracker_rate_limited_until | RFC 3339 instant the tracker rate-limit gate lifts, null while it is closed. |
draining | The daemon is draining — after SIGTERM/SIGINT, or before applying an operator edit to WORKFLOW.md — and admits no new work while in-flight agent turns finish. A draining daemon answers 503 so a load balancer stops routing to it; loop_fresh stays true. |
A rate-limited poll does not count as a failure: the tracker said when to
come back, so the probe reports degraded and stays ready. config_invalid
does not make the daemon unready either — taking it out of a load balancer
would hide the dashboard you fix the file from. Like /health, /ready is
exempt from the unauthenticated-mode Host guard: its body carries no error
text, identifiers or configuration.
Metrics
Section titled “Metrics”GET /metrics
Section titled “GET /metrics”Prometheus text exposition (text/plain; version=0.0.4). Off by default:
set server.metrics.enabled: true. Requires the same bearer token as
/api/v1/* (in allow_unauthenticated mode it is open like the rest of the
API and subject to the Host guard). Disabled, it answers 404.
curl -H "Authorization: Bearer $ITERVOX_API_TOKEN" http://localhost:8090/metrics| Family | Type | Labels | Meaning |
|---|---|---|---|
itervox_workers_running | gauge | Agent workers running now. | |
itervox_workers_max | gauge | agent.max_concurrent_agents as of the last tick. | |
itervox_retry_queue_length | gauge | Issues waiting to retry. | |
itervox_automation_queue_length | gauge | Automation queue entries. | |
itervox_input_required | gauge | Issues waiting for human input. | |
itervox_paused_issues | gauge | Paused issues. | |
itervox_worker_exits_total | counter | reason | Worker exits (succeeded, failed, stalled, input_required, canceled_by_reconciliation). |
itervox_tracker_requests_total | counter | adapter, outcome | Tracker HTTP calls after in-call retries; outcome is ok, rate_limited or error (transport failure). |
itervox_goroutine_panics_total | counter | Panics recovered on daemon goroutines (the site is in the log line). | |
itervox_events_dropped_total | counter | Orchestrator events that could not be delivered (full channel or send timeout). | |
itervox_client_errors_total | counter | kind, outcome | Dashboard error reports on POST /api/v1/client-errors; kind is render, error, unhandledrejection, schema or other, outcome is accepted, rate_limited or dropped. |
itervox_tracker_webhooks_total | counter | tracker, result | Tracker webhook deliveries (tracker.webhooks); result is accepted, ignored (another repository, a pull request, a comment), bad_signature, stale (a Linear delivery outside the one-minute replay window) or malformed. |
itervox_tracker_store_pulls_total | counter | trigger | List pulls of the tracker store: cold (first pull), interval (the periodic pull; with webhooks on, the safety net), webhook (a delivery whose by-ID read failed) or view (a state set read for the first time). |
itervox_persist_write_errors_total | counter | Failed runtime-ledger writes. Resets on a WORKFLOW.md reload. | |
itervox_transport_failures_total | counter | Retry-exhausted runs classified as transport failures. Resets on reload. | |
itervox_dispatch_ticks_total | counter | bound | Poll ticks observed (any), and those that were slot-bound (slot) or dependency-bound (dependency). Resets on reload. |
itervox_dispatch_eligible_waiting | gauge | Eligible issues waiting for a slot on the last tick. | |
itervox_dispatch_blocked_by_dependency | gauge | Candidates held by a dependency gate on the last tick. | |
itervox_outbox_entries | gauge | state | Outbox entries: pending (all), degraded, rate_limited. |
itervox_tracker_rate_limited_until_seconds | gauge | adapter | Unix time the tracker rate-limit gate lifts; 0 while closed. |
itervox_tracker_poll_consecutive_failures | gauge | Consecutive failed (non-rate-limited) candidate polls. | |
itervox_tracker_last_error_timestamp_seconds | gauge | kind | Unix time of the last tracker failure (outage or rate_limited); absent when none. |
itervox_event_loop_last_idle_timestamp_seconds | gauge | Unix time the event loop last finished an iteration. | |
itervox_host_load1 | gauge | Host one-minute load average (system visibility; absent on Windows). | |
itervox_host_memory_total_bytes | gauge | Host physical memory. | |
itervox_host_memory_available_bytes | gauge | Host memory available to new work. | |
itervox_workspace_disk_free_bytes | gauge | Free space on the volume holding workspace.root. | |
itervox_workspace_disk_low | gauge | 1 while free workspace disk is below workspace.disk_warn_free_gb (or the pause threshold). | |
itervox_run_cpu_percent | gauge | identifier | A live local run’s CPU use, percent of one core, summed over its process tree. |
itervox_run_memory_rss_bytes | gauge | identifier | A live local run’s resident memory, summed over its process tree. |
itervox_run_processes | gauge | identifier | A live local run’s process count. |
Only the itervox_run_* gauges carry an issue identifier, and only for runs that are live now (bounded by agent.max_concurrent_agents); the system families appear only on a daemon with the run monitor (System visibility). The process-wide counters survive a
WORKFLOW.md reload; the ones marked “resets on reload” belong to the
orchestrator generation and restart from zero, which rate() handles as a
counter reset. A scrape never waits on a settings save: it reads the
orchestrator snapshot, the outbox and the rate-limit gate only.
Real-time streams
Section titled “Real-time streams”GET /events
Section titled “GET /events”Full StateSnapshot SSE stream.
- Event shape:
data: <JSON StateSnapshot>\n\n - Initial snapshot is sent immediately.
- State changes are coalesced to at most four snapshots per second (#210): the first change after a quiet period is sent at once, and changes inside the 250 ms window are folded into one snapshot sent when it ends, so the latest state always arrives and no change waits longer than 250 ms. Every client of one change receives the same encoded snapshot.
- Named keepalive event
event: keepalivewithdata: {}after 25 seconds of stream inactivity. - Named event
event: feedwithdata: {"seq":N}(#213) on connect and after every snapshot whosefeedSeqis new: the newest event feed seq. A client that keeps a cursor readsGET /api/v1/feed?since=<cursor>when it moves. It rides the same coalesced delivery as the snapshot.
GET /issues/{identifier}/log-stream
Section titled “GET /issues/{identifier}/log-stream”Per-issue in-memory log SSE stream.
- Event name:
log - Event shape:
id: <cursor>\nevent: log\ndata: <JSON IssueLogEntry>\n\n - Supports resume via
Last-Event-ID - If the underlying in-memory buffer is cleared, stale cursors replay from the beginning of the current buffer
GET /issues/{identifier}/sublog-stream
Section titled “GET /issues/{identifier}/sublog-stream”Per-issue session/subagent log SSE stream.
- Event name:
sublog - Event shape:
id: <epoch>-<seq>\nevent: sublog\ndata: <JSON IssueLogEntry>\n\n(CORE-153).epochidentifies the issue’s current set of session-log entries and changes when the session files are replaced or cleared. - Supports resume via
Last-Event-ID; a cursor from another epoch, a bare pre-CORE-153 number or one past the end getsid: <epoch>-0\nevent: gapand a full replay. - On mid-stream fetch failure the server emits:
event: errordata: {"code":"fetch_failed","message":"..."}GET /logs
Section titled “GET /logs”Global daemon-log SSE tail.
- Event name:
log - Initial connection sends the last ~16 KiB of the rotating daemon log file.
- Optional query param
identifier=<ISSUE-ID>filters matching log lines.
GET /state
Section titled “GET /state”Returns the current orchestrator snapshot as JSON.
Response 200: StateSnapshot
Useful top-level fields include:
running,history,retrying,pausedinputRequiredavailableProfiles,profileDefsautomationsautomationQueue,automationQueueBackpressuredependencyAudit,dependencyGraphNodes,dependencyGraphEdges—dependencyGraphNodeslists only issues that are the source or target of at least one edge (#210); an audited issue with no blocker and no dependent is independencyAuditonlysshHosts,dispatchStrategyautoClearWorkspace,inlineInputconfigInvalidlastTrackerError— the most recent tracker failure, absent when none:{ "at", "op": "poll" | "update_state", "kind": "outage" | "rate_limited", "message", "resetAt"?, "consecutiveFailures"? }. A successful poll clears a poll failure; a failed failed-state move stays for up to an hour.trackerPoll(#187) — the off-loop tracker poll, absent on older daemons:{ "inFlight", "startedAt"?, "runningForMs"?, "lastFinishedAt"?, "lastDurationMs", "slowAfterMs", "slow", "degraded", "breakerOpenUntil"?, "consecutiveTransportFailures"? }. The poll tick reads the tracker (running issues’ states, the candidate list, input-required reply checks) on its own goroutine, at most one poll at a time, under a deadline of 3 ×polling.interval_ms(at least 30 s, at most 2 minutes); the event loop keeps handling worker exits and operator actions meanwhile.inFlight/startedAt/runningForMsdescribe the poll now running;slowis set when it (or, when idle, the last one) took longer thanslowAfterMs(the interval plus half an interval, at least 1 s).degradedis set once three polls in a row hit a transport failure: the daemon then skips tracker reads untilbreakerOpenUntil(two poll intervals, 30 s to 5 minutes), then one poll probes the tracker; a probe that succeeds clears it.syncStatus(#117) — the tracker sync status, absent on older daemons:{ "mode": "store" | "direct" | "local_sync", "lastPullAt"?, "lagMs"?, "lagWarnAfterMs", "stale", "syncIntervalMs", "cursorAt"?, "consecutiveFailures"?, "lastError"?: { "at", "kind", "message" }, "pendingWrites", "pendingUrgent", "pendingBatched", "pendingRetrying", "pendingDegraded", "pendingRateLimited", "oldestPendingAt"?, "nextPushAt"?, "pushIntervalMs" }.modeisstorewhen the local tracker store pulls in the background (tracker.store.enabled),directwhen each poll reads the tracker, andlocal_sync(#118) when local issue files are synced with Linear or GitHub (tracker.sync):lastPullAtis then the sync’s last good cycle,syncIntervalMsistracker.sync.interval_ms, and thepending*counts include the sync’s queued remote writes.lastPullAtis the last successful pull (store) or candidate poll (direct), absent until one succeeds;lagMsis now −lastPullAtwhen the snapshot was built (clients should recompute it on their own clock).staleislagMs > lagWarnAfterMs, or “never pulled and the last pull failed”.lagWarnAfterMsis three pull intervals and at least five minutes (syncIntervalMs:tracker.store.sync_interval_ms, the webhook safety net withtracker.webhooks, orpolling.interval_msin direct mode).cursorAtis the newest tracker update the store has seen.lastErroris the newest failed pull while pulls keep failing (a good pull clears it), classified:kindisrate_limited,auth,not_found,api_status,graphql,timeout,network,canceledorunknown(treat unknown values as opaque), andmessageis a fixed summary, never the tracker’s response. Thepending*counts describe the write-ahead outbox and overlap:pendingBatchedwaits fortracker.push_interval_ms(pushIntervalMs, 0 with the outbox off),pendingRetryingfailed at least once,pendingDegradedfailed five times or more,pendingRateLimitedwaits for a tracker rate-limit reset.nextPushAtis when the next queued write is due (at or beforegeneratedAtmeans now).outboxEntries[].lastFailedAt— when that outbox entry last failed to deliver (rate-limit deferrals do not count).backendHealth(CORE-055) — one row per agent backend, and per SSH host that has a breaker:{ "backend", "host"?, "status": "healthy" | "warning" | "limited" | "probing", "kind"?: "quota" | "throttle", "limitType"?, "limitedUntil", "retryAt"?, "since"?, "probeIssue"?, "heldIssues", "reroutedIssues" }.limitedUntilis always present andnullunless the vendor published a reset time;retryAtis when the breaker half-opens (the reset, or the cooldown end). This is the AGENT backend, unrelated torateLimits(tracker API budget) andoutboxEntries[].rateLimitedUntil(tracker writes). Absent on older daemons.running[]rows carrytitle(the issue’s title),profile(the run’s resolved profile, omitted for the default) andcostUsdEstimated(the run’s estimated cost as its backend reports it; omitted until reported, always for Codex) (#240), andisolation(the sandbox the run’s agent runs in:bubblewrap,landlockorsandbox-exec; omitted when unsandboxed, #258).lastEventis redacted like every log surface.inputRequired[]rows carryguardrailApproval: truefor a guardrail approval request (#240):approve(oritervox approve <issue>) runs the held command once, any other reply rejects it.proposedLessons(#203) — how many proposed lessons wait in the Memory page’s review queue (the Memory nav item’s count); omitted when none.autoSwitches(CORE-055) — issues whose next run uses an automatic override:{ "identifier", "source": "automation" | "backend_fallback" | "unknown", "fromBackend"?, "fromProfile"?, "toBackend"?, "toProfile"?, "reason"?, "switchedAt"? }, sorted by identifier. It describes the next dispatch; the running session’s backend stays onrunning[].backend./api/v1/issuesrows carry the same object asautoSwitch, and an issue held by an open breaker hasineligibleReason: "backend_limited".- An issue whose worktree branch is checked out in another worktree (#193)
has
ineligibleReason: "branch_in_use"until that worktree frees the branch; no retry is scheduled for it. pauseReasons—{ "<identifier>": "<reason>" }for currently paused issues:user_cancelled,user_dismissed_input,retries_exhausted,transition_failedorbudget_exceeded(the issue reachedagent.budget; treat unknown values as opaque). An issue paused by an older daemon without a recorded reason is absent. Omitted when empty.failureAcks(CORE-175) —[{ "identifier", "upTo" }], sorted by identifier: the operator’s acknowledgements of worker failures (seePOST /issues/{identifier}/failures/ack). Omitted when empty.capabilities— optional daemon features the dashboard may use; currently["failure_ack", "dispatch_pause"]. Treat unknown entries as opaque.dispatchPaused(#213) —nullwhile dispatch runs; while all dispatch is paused,{ "reason"?, "until"?, "pausedAt" }(see Dispatch pause).feedSeq(#213) — the newest event feed seq.totals(CORE-091) — daemon-session cumulative, reset on restart:{ "inputTokens", "outputTokens", "costUsdEstimated", "costCoverage": { "claudeRuns", "codexRuns" } }.costUsdEstimatedis the sum of Claude’s client-sidetotal_cost_usdestimates — counted per agent session, so a resumed session is not counted twice — and isnulluntil a Claude run reports a cost. Codex reports no cost:codexRuns > 0means the estimate covers Claude runs only.costCoveragealso carriesrunsByBackend(runs per backend name, e.g.{ "claude": 1, "opencode": 2, "cursor": 1 }) andcostBackends(the backends that reported a cost; OpenCode and custom backends can report one). A backend with runs that is not incostBackendsis left out of the estimate.claudeRunsandcodexRunscount only their own backend; both new fields are omitted until a run has counted.recentFailures— always an array (possibly empty) on a current daemon: the last 100 operator-relevant failures, oldest recorded first. Each row is{ "kind", "identifier"?, "source"?, "message", "occurredAt", "recordedAt", "count" }.kindisworker_failed,worker_stalled,tracker_poll,tracker_write,persist,outbox,panic,clientorautomation(an automation that could not be dispatched, e.g.pr_mergedafter a merge) (treat unknown kinds as opaque).messageis built from the classified error only (never prompt text or agent output), redacted, and capped at 1 KiB. Identical consecutive failures coalesce into one row with acount.occurredAtis when the failure happened (latest repeat),recordedAtwhen the daemon recorded it; an off-loop failure can be recorded after a newer one, so sort byoccurredAtto display. Rate-limited polls and outbox rate-limit deferrals are not failures. The list survives aWORKFLOW.mdreload but not a daemon restart.
Retry rows’ error and the rest of an agent failure’s text are passed
through the log redactor before they reach the snapshot: known key shapes,
NAME=value assignments whose upper-case name contains SECRET, TOKEN,
PASSWORD, API_KEY, PRIVATE_KEY, ACCESS_KEY or CREDENTIAL, the same
with a lower- or mixed-case name (password=, api_key=, "apiKey":,
x-api-key:), HTTP Basic credentials, URL passwords (also with an empty
user), and long random-looking tokens (also inside a path) appear as ***.
Vendor request ids (req_…, msg_…), SRI hashes, git SHAs, UUIDs and
ordinary paths stay readable.
System visibility. On a daemon with the run monitor (capability
"system_visibility"), each running[] row carries resources (the run’s
latest sample: cpuPercent, cpuSeconds, rssBytes, peakRssBytes,
processes, peakProcesses, diskReadBytes, diskWriteBytes,
diskIoKnown, netConnections, topCommands[] of {pid, name, args, cpuPercent, rssBytes}, samples, sampledAt; absent before the first
sample), each history[] row resources (cpuSeconds, peakCpuPercent,
lastRssBytes, peakRssBytes, peakProcesses, diskReadBytes,
diskWriteBytes, commands, filesWritten, connections,
activityMode, samples), and the snapshot a system block:
"system": { "machine": { "load1": 2.1, "load5": 1.7, "load15": 1.2, "loadKnown": true, "cpuCount": 8, "memTotalBytes": 17179869184, "memAvailableBytes": 6442450944, "memPressure": "ok", "disk": {"path": "/home/dev/.itervox/workspaces/web-app", "freeBytes": 3435973836, "totalBytes": 536870912000}, "diskWarnBytes": 5368709120, "diskPauseBytes": 0, "diskLow": true, "diskCritical": false, "sampledAt": "2026-11-02T10:00:00Z" }, "runs": {"runs": 1, "cpuPercent": 82.5, "rssBytes": 734003200, "processes": 6}, "activityMode": "sampled", "platform": "linux"}memPressure is ok, moderate or high; loadKnown is false on
Windows; activityModeReason says why precise mode fell back. Below
operator scope each topCommands[] entry keeps its name but not its
args. See System visibility.
GET /summary
Section titled “GET /summary”A few hundred bytes for a supervisor that polls (the Mac app, #212): the
counts the menu bar shows, with an ETag, so an unchanged daemon answers a
conditional request with 304 Not Modified and no body. Behind the bearer
token like /state, and built from the same snapshot.
Response 200:
{ "etag": "5d41402abc4b2a76b9719d911017c592", "version": "0.2.8", "projectName": "web-app", "capabilities": ["dispatch_pause", "failure_ack"], "counts": { "running": 2, "retrying": 0, "paused": 1, "inputRequired": 1, "pendingInputResume": 0, "recentFailures": 3 }, "paused": true, "pauseReason": "deploy freeze", "pausedUntil": "2026-10-22T12:00:00Z", "generatedAt": "2026-10-22T10:00:00Z"}-
counts.running,counts.retryingandcounts.pausedarecountsofGET /state(pausedcounts paused issues);counts.inputRequiredandcounts.pendingInputResumesplitinputRequired[]bystate;counts.recentFailuresis the length ofrecentFailures[]. -
pausedis the daemon-wide dispatch pause (#213):truewhile nothing new starts.pauseReasonandpausedUntildescribe it and are omitted when unset; the pause, its reason and its until are part of the ETag digest. -
versionis the daemon’s build version (devfor a local build). -
capabilities(#228) are the optional features the daemon serves, as inGET /state; omitted when there are none. The hub lists them per project. -
The
ETagheader is"<etag>". The tag is a digest of every field exceptgeneratedAt, plus each input-required entry (identifier, session, state, question, queued time) and each recent failure (kind, identifier, source, message, time, count), so a new question or failure changes it even when the counts do not. Responses carryCache-Control: no-cache. -
system(system visibility; absent without the run monitor):{"runsRssBytes": 1207959552, "diskLow": true, "diskCritical": false, "diskFreeBytes": 3221225472}— the live runs’ memory rounded down to 64 MiB and the workspace disk warning with its free space rounded down to 256 MiB, so the ETag moves only when the tray’s text would. It is part of the ETag digest.
Send the tag back as If-None-Match: "<etag>" (a list, W/ tags and *
are accepted): while it is current the answer is 304 with the ETag
header and no body. The Mac app reads GET /state only after a 200 from
this endpoint, or every time from a daemon older than it (404).
Event feed
Section titled “Event feed”GET /api/v1/feed
Section titled “GET /api/v1/feed”A bounded, append-only feed of notable events with a cursor (#213), for a
client that was away — a closed Mac app window, a phone, a relay — to find
out what happened. The path is /feed so it does not clash with the
/events SSE stream; a document that says /api/v1/events?since= means this
endpoint.
Query: since (default 0): return the events after this seq.
limit (1–1000, default 200). Anything else is 400.
Response 200 (Cache-Control: no-store):
{ "events": [ {"seq": 41, "ts": "2026-10-22T10:00:00Z", "kind": "run_started", "identifier": "ENG-12", "payload": {"runId": "r-8f2c", "runKind": "worker", "profile": "coder", "backend": "claude"}}, {"seq": 42, "ts": "2026-10-22T10:07:13Z", "kind": "run_finished", "identifier": "ENG-12", "payload": {"runId": "r-8f2c", "runKind": "worker", "profile": "coder", "backend": "claude", "outcome": "succeeded"}}, {"seq": 43, "ts": "2026-10-22T10:07:14Z", "kind": "pr_opened", "identifier": "ENG-12", "payload": {"prUrl": "https://github.com/acme/web/pull/88", "runId": "r-8f2c"}} ], "nextSeq": 43, "headSeq": 43, "oldestSeq": 1, "truncated": false, "hasMore": false}seqincreases by one per event and never repeats, also across restarts. Only the daemon’s event loop assigns it.nextSeqis the cursor for the next read: the last event returned, or yoursincewhen nothing was newer.hasMoremeanslimitcut the page.truncated: truemeans events after your cursor have left the window (or your cursor is ahead ofheadSeq, e.g. the feed file was removed): resynchronize fromGET /state, then continue fromheadSeq.- The window is the newest 5000 events, none older than 7 days. It persists
to
feed.jsonlin the daemon log directory, so a restart keeps it.
kind | When | Payload |
|---|---|---|
run_started | A worker, reviewer or automation run starts | runId, runKind, profile, backend |
run_finished | A run succeeded, was cancelled (outcome: "cancelled") or stopped by reconciliation | run fields, outcome |
run_failed | A run failed, stalled, was rate limited, … | run fields, outcome (the terminal reason) |
input_required | An agent asked a question, or a guardrail approval waits (kind: "guardrail_approval") | run fields |
input_answered | A question was answered (via: dashboard, slack, tracker, agent) or dismissed (via: "dismiss") | via, outcome |
review_verdict | A reviewer finished | profile, verdict, outcome (passed / blocked, once the review is complete) |
pr_opened | A run recorded a PR itervox did not manage yet | prUrl, runId |
pr_merged | The merge_pr action merged a PR | prUrl |
guardrail_blocked | A shim or hook refused an operation, or an approval was rejected | kind, via |
guardrail_approved | A guardrail approval was granted | via |
lesson_proposed | A lesson was proposed (or auto-approved) | outcome, memoryId |
dispatch_paused | All dispatch was paused | reason, until |
dispatch_resumed | Dispatch resumed (via: operator or expired) | via |
review_comment_posted | An operator’s line comment went to the running agent (via: "agent") or the PR (via: "github") (#238) | via, runId or prUrl |
pr_review_submitted_by_operator | An operator submitted a PR review from the dashboard (#238) | prUrl, verdict (approve, request_changes, comment), count |
Payloads are small and structured. They never contain agent output, prompt text, a question or reply, failure text or a guardrail command line; the pause reason is redacted before it is stored.
The machine’s hub (#228; guide: The itervox hub) serves these routes on its
own listener, hub.bind:hub.port (http://127.0.0.1:8089 by default; the
bound address is in ~/.itervox/daemons/hub.lock). Every route except
GET /hub/api/v1/health and the dashboard’s static files needs a hub
token (Authorization: Bearer <token>) from the hub’s own store,
~/.itervox/hub/tokens.json (itervox token create --hub). Project tokens
are not hub tokens. There is no unauthenticated mode. Errors use the
daemons’ envelope, {"error":{"code","message"}}.
| Route | Scope | |
|---|---|---|
GET /hub/api/v1/health | none | {"status":"ok","hub":true} |
GET /hub/api/v1/whoami | viewer | {"principal":{"scope","tokenId","name"},"hub":true} |
GET /hub/api/v1/projects | viewer | the members |
GET /hub/api/v1/feed?since=&limit= | viewer | the merged event feed |
GET /hub/api/v1/events | viewer | SSE: feed and projects announcements, desktop notification frames |
GET /hub/api/v1/notifications | admin | the notification settings, kinds, channels and projects |
PUT /hub/api/v1/notifications | admin | replace the notification settings |
POST /hub/api/v1/notifications/test | operator | send a test notification through one channel |
GET /hub/api/v1/push/vapid-public-key | viewer | {"publicKey"}: the hub’s VAPID application server key (#231) |
POST /hub/api/v1/push/subscribe | operator | subscribe this browser to Web Push under a device name |
GET /hub/api/v1/push/devices | operator | the push devices (name and push service only) |
DELETE /hub/api/v1/push/devices/{id} | operator | stop pushing to a device |
POST /hub/api/v1/pairing | admin | a one-time phone pairing code (10 minutes) |
POST /hub/api/v1/pairing/exchange | none (the code) | trade a pairing code for the device’s operator token |
GET /hub/api/v1/devices | admin | the paired devices |
DELETE /hub/api/v1/devices/{id} | admin | revoke a paired device’s token and its pushes |
* /hub/p/{project}/api/v1/... | the member route’s | the member’s API through the proxy |
GET /hub/, /hub/m, /hub/pair, /hub/p/{project}/..., /assets/..., /manifest.webmanifest, /sw.js, /icons/... | none | the dashboard, its phone layout and the installable web app |
GET /hub/api/v1/projects
Section titled “GET /hub/api/v1/projects”{ "hub": { "version": "0.2.9", "pid": 4182, "url": "http://127.0.0.1:8089/hub/", "startedAt": "2026-10-22T09:00:00Z", "headSeq": 1204 }, "projects": [ { "name": "web", "workflow": "/Users/you/code/web/WORKFLOW.md", "projectDir": "/Users/you/code/web", "pid": 4190, "url": "http://127.0.0.1:8091/", "version": "0.2.9", "startedAt": "2026-10-22T09:01:00Z", "health": "ok", "proxied": true, "capabilities": ["dispatch_pause", "failure_ack", "run_context"], "summary": { "etag": "…", "version": "0.2.9", "counts": { "running": 2, "inputRequired": 1 }, "paused": false }, "checkedAt": "2026-10-22T10:00:00Z" } ]}nameis unique: the project directory’s name, lowercased, with a short hash of theWORKFLOW.mdpath appended when two members share it. It is the{project}of the proxy and the dashboard path.healthisok,unreachable,unauthorized(the member refused the hub’s token) orerror, witherrorsaying why.proxiedis false (withproxyError) for a member running withserver.allow_unauthenticated(never proxied: the hub could not cap a caller’s scope on it) or one whose route scope table the hub could not read (an itervox older than v0.2.9).summaryis the member’s ownGET /api/v1/summary, passed through;capabilitiescomes from it.
Members are the live daemon registry records with hub_member: true (see
the Supervisor contract), refreshed on every registry change and every 10 s.
GET /hub/api/v1/feed
Section titled “GET /hub/api/v1/feed”The same shape and cursor rules as a member’s GET /api/v1/feed,
over every member’s feed merged into one sequence:
{ "events": [ { "seq": 1203, "project": "web", "workflow": "/Users/you/code/web/WORKFLOW.md", "memberSeq": 88, "ts": "2026-10-22T10:00:00Z", "kind": "input_required", "identifier": "ENG-12", "payload": { "runId": "…" } } ], "nextSeq": 1203, "headSeq": 1204, "oldestSeq": 205, "truncated": false, "hasMore": true}seq is the hub’s sequence number: it orders the merged feed and keeps
growing across hub restarts and hand-overs. memberSeq is the event’s
seq in its project’s own feed, and payload is the member’s redacted
payload as is. The hub keeps the newest 5000 events in memory and a cursor
per member in ~/.itervox/hub/hub_feed_cursors.json (0600), from which
the next hub catches up: nothing is missed or repeated. A project the hub
has never seen starts with the events of its current daemon process.
limit is 1–1000 (default 100); since must be a non-negative integer.
GET /hub/api/v1/events
Section titled “GET /hub/api/v1/events”Server-sent events. On connect and on every change: event: projects
({"count":N}, the member count) and event: feed ({"headSeq":N}, the
merged feed’s newest seq); : ping comments every 25 s. Read the events
themselves with GET /hub/api/v1/feed?since=.
Every notification the notification settings
route to the desktop channel is sent as event: notification with
id: <n> and the notification (id, channel, kind — a notification
kind, digest with items, or test —, urgent, project,
identifier, title, body, url, seq, ts) as data. The stream
starts after ?notify_since=<id> or Last-Event-ID, else at the newest
notification. In GET /hub/api/v1/feed, each event that notifies carries
notifyKind and channels.
GET / PUT /hub/api/v1/notifications
Section titled “GET / PUT /hub/api/v1/notifications”Admin. GET returns {settings, kinds, channels, projects}: the settings
document (~/.itervox/hub/notifications.json, schema
notifications.schema.json),
each kind with urgent, each channel with available (set up on this
hub), and the member names. PUT takes the settings document, validates it
(400 invalid_settings), saves it 0600 and applies it at once.
POST /hub/api/v1/notifications/test
Section titled “POST /hub/api/v1/notifications/test”Operator. {"channel": "push" | "slack" | "desktop"} sends one test
notification through that channel: 200 {"sent":true}, 400
unknown_channel, 409 channel_unavailable, 502 send_failed.
Phones: Web Push and pairing (#231)
Section titled “Phones: Web Push and pairing (#231)”Guide: Your phone.
POST /hub/api/v1/push/subscribe (operator) takes a device name and the
browser’s PushSubscription.toJSON():
{ "name": "Pixel", "subscription": { "endpoint": "https://fcm.googleapis.com/fcm/send/…", "keys": { "p256dh": "<base64url P-256 key>", "auth": "<base64url 16 bytes>" } } }201 {"device":{"id","name","service","tokenId","created"}}. The endpoint
must be https on a known push service (Google, Mozilla, Apple, Microsoft;
400 invalid_subscription otherwise); re-subscribing the same endpoint
updates that device. The device is bound to the caller’s hub token: revoking
the token removes it. At most 50 devices (409 too_many_devices). The list
(GET /hub/api/v1/push/devices) never returns an endpoint or key.
Every notification the notification settings
route to the push channel is sent to every device, encrypted per RFC 8291
(Content-Encoding: aes128gcm) and signed with the hub’s VAPID key
(~/.itervox/hub/push_vapid.pem, 0600, created on first use). The
decrypted payload is exactly
{"kind","project","issue","title","url"}: a notification kind (or
digest, test), a redacted title of at most 80 characters and a
hub-relative link (/hub/p/{project}/m/{issue}, else /hub/m). A device the
push service answers 404 or 410 for is removed.
POST /hub/api/v1/pairing (admin) answers 201
{"code","expiresAt","path"}: a 160-bit one-time code, valid for 10
minutes, and the link path /hub/pair#code=<code>. At most 20 codes are
pending (429 too_many_pairings). POST /hub/api/v1/pairing/exchange
takes {"code","name"} without a token and answers 201
{"token","device":{"id","name","created"}}: a new operator hub token named
device: <name>, shown once. A wrong, used or expired code is 400
invalid_code; after 10 wrong codes in a minute the exchange answers 429
too_many_attempts until the minute is over. GET /hub/api/v1/devices
(admin) lists the paired devices (id, name, created, lastUsed,
pushDevices); DELETE /hub/api/v1/devices/{id} revokes one (204; 404
for a token that is not a paired device).
CORS. server.allowed_origins of the hosting daemon applies to every
hub route (and to that daemon’s own API): a listed origin gets
Access-Control-Allow-Origin for itself and its preflights answered; any
other cross-origin preflight is refused with 403 origin_not_allowed.
The proxy: /hub/p/{project}/api/v1/...
Section titled “The proxy: /hub/p/{project}/api/v1/...”Every method. The hub, in order:
- answers 404
project_not_foundfor an unknown project, and 400bad_pathfor a path that is not a plain/api/v1/...path (encoded slashes, empty,.or..segments); - answers 503
member_unavailablewhile it has no route scope table for the member, and 403member_unauthenticatedfor a member running withserver.allow_unauthenticated; - looks the method and path up in the member’s
GET /api/v1/route-scopestable (a path several patterns match takes the most restrictive scope): 404route_not_foundwhen the member declares none; 403not_proxiedfor an agent-action or guardrail grant route, a tracker webhook, or an unknown access class; publicGETprobes need viewer; - answers 403
insufficient_scope(withX-Itervox-Required-Scope) when the hub token’s scope is below the route’s, and 403admin_route_not_proxiedfor a member admin route (the hub never holds an admin token on a member); - drops the caller’s
Authorization,Cookie,OriginandReferer, setsAuthorization: Bearer <the hub's member token>(thehub-viewertoken for a viewer hub token,hub-operatorotherwise, in the member’s own store), and forwards the request with its query.
Responses stream through unbuffered, so SSE routes (/events,
/issues/{identifier}/log-stream, …) work. A member 401 (it refused the
hub’s token) becomes 502 with X-Itervox-Hub-Error: member_auth_failed,
never a 401 that would sign the dashboard out; the hub then obtains a new
member token. An unreachable member is 502 member_unreachable.
GET /api/v1/route-scopes
Section titled “GET /api/v1/route-scopes”On every daemon (viewer, #228): the daemon’s whole route scope table, which the hub’s proxy checks a hub token against.
{ "routes": { "GET /api/v1/state": "viewer", "POST /api/v1/dispatch/pause": "operator", "GET /api/v1/tokens": "admin", "GET /api/v1/health": "public", "POST /api/v1/agent-actions/{identifier}/comment": "agent_grant" } }Keys are METHOD pattern with the full route pattern ({name} matches one
path segment; * is a route registered for every method). Values are
viewer, operator, admin, public or agent_grant.
hub.lock
Section titled “hub.lock”~/.itervox/daemons/hub.lock is the hub election’s lock (a kernel flock,
released when the hub’s process ends) and, while a hub holds it, its
address as JSON (never a token):
{ "schema_version": 1, "pid": 4182, "url": "http://127.0.0.1:8089/hub/", "host": "127.0.0.1", "port": 8089, "version": "0.2.9", "workflow": "/Users/you/code/api/WORKFLOW.md", "started_at": "2026-10-22T09:00:00Z" }The file is never deleted; a hub that stops empties it. A reader must check
that the lock is held (a shared non-blocking flock that fails), or ask the
url’s /hub/api/v1/health, before trusting the content. itervox hub --json prints {"hub": <this object or null>, "members": [...]}.
Dispatch pause
Section titled “Dispatch pause”POST /api/v1/dispatch/pause
Section titled “POST /api/v1/dispatch/pause”Pauses ALL dispatch (#213). Running agents continue; nothing new starts:
tick dispatch, retries, reviewers, automations and pending-input resumes
are held — never dropped — until the pause ends. Retries stay due without
spending an attempt, reviews wait as pending reviews, automations queue
with reason dispatch_paused, answered questions wait to resume. Idle
issues show the ineligible reason dispatch_paused.
Body (optional): {"reason": "deploy freeze", "until": "2026-10-22T12:00:00Z"}.
reason is at most 500 bytes; until is RFC 3339 and must be in the
future (400 otherwise). Without until the pause lasts until resumed. A
second pause while paused updates the reason and until.
Response 200: the pause the event loop applied —
{"dispatchPaused": {"reason": "deploy freeze", "until": "2026-10-22T12:00:00Z", "pausedAt": "2026-10-22T10:00:00Z"}}.
503 when the event loop did not answer.
The pause persists to dispatch_paused.json in the daemon log directory,
so a restart or a WORKFLOW.md reload stays paused; a pause whose until
passed while the daemon was down ends on its first tick. GET /state
shows it as dispatchPaused (null while dispatch runs) and advertises
the dispatch_pause capability.
POST /api/v1/dispatch/resume
Section titled “POST /api/v1/dispatch/resume”Ends the pause (a no-op when none is active). Response 200:
{"dispatchPaused": null}. Held automations start at once, and the next
tick dispatches the rest as slots allow.
Run history
Section titled “Run history”History rows (history in GET /state, and the endpoints below) describe
finished runs, oldest first, from the same bounded ring (200 runs, persisted
to the daemon’s history file). Each row may carry, besides the fields above
(#186):
runId— the run’s ID (the same ID as running rows and logs).profileName— the profile the run used.promptDigest— the run’s prompt version: 64 hex characters of SHA-256 over a versioned, length-prefixed concatenation of the profile’sSOUL.md, itsINSTRUCTIONS.md, the resolved rule set (sorted by id; each rule’s id, severity and text), the run’s memory selection (#202; sorted by id, each entry’s id, type and text; left out entirely when the run had no memory, so such runs keep their earlier digest) and the prompt template (theWORKFLOW.mdbody, oragent.reviewer_promptfor a reviewer run that has one), computed when the run is dispatched. Two runs with the same digest were given the same prompt inputs. Treat it as an opaque identifier; the dashboard shows its first 12 characters.memoryIds— the ids of the memory entries the run’s prompt carried (#202), in block order; omitted when it had none.promptParts—{ "soul"?, "instructions"?, "rules"?, "memory"?, "template"? }: 16-hex-character digests of each component (absent when the run had none), so two versions can be compared part by part. History stores only these hashes, never prompt text.steers— operator messages delivered to the run from the Sessions panel:[{ "text", "at", "delivery": "live" | "resume" }], in delivery order. Text is redacted like the rest of run data and cut to 1 KiB; a run keeps its newest 20, andsteersDroppedcounts older ones that were let go. Typing into a tmux pane is not recorded.
All of these are omitted on rows recorded before they existed.
GET /api/v1/history
Section titled “GET /api/v1/history”The run history: { "history": [HistoryRow] }. ?prompt=<digest prefix>
(1–64 hex characters, case-insensitive) keeps only runs whose
promptDigest starts with it; rows without a digest never match. An
invalid prefix is 400 invalid_prompt_digest (field: "prompt").
GET /api/v1/history/prompt-versions
Section titled “GET /api/v1/history/prompt-versions”The history grouped by prompt version, most recently used version first:
{ "versions": [ { "promptDigest": "3f9a…", "runs": 12, "statuses": { "succeeded": 9, "failed": 3 }, "successRate": 0.75, "firstSeenAt": "2026-10-01T09:00:00Z", "lastSeenAt": "2026-10-18T17:30:00Z", "avgDurationMs": 184000, "profiles": ["implementer"] } ], "unversionedRuns": 4}statuses counts runs per history status, successRate is the share that
succeeded (0–1), firstSeenAt / lastSeenAt are the earliest and latest run
start, avgDurationMs is the mean run duration (#200), and unversionedRuns
counts rows recorded without a digest. The dashboard’s Repo Analysis →
Prompt versions section reads this endpoint.
Repo readiness
Section titled “Repo readiness”GET /api/v1/repo/readiness
Section titled “GET /api/v1/repo/readiness”The repository-level itervox doctor checks (#200), for the dashboard’s
Repo Analysis → Agent readiness section (Repo Analysis guide). The endpoint and itervox doctor
build their rows from the same check functions, so they report the same IDs
and statuses for the same repository (doctor prints them in its
repo readiness: section). The checks run on the request goroutine, never on
the orchestrator’s event loop; the tracker probe has its own 8 s timeout and
is reported as fail when it does not answer in time.
{ "workflow": "/srv/app/WORKFLOW.md", "generatedAt": "2026-10-21T10:00:00Z", "checks": [ { "id": "schema_version", "title": "WORKFLOW.md schema 2 marker", "status": "pass", "detail": "itervox_schema_version: 2" }, { "id": "gitignore_carveouts", "title": ".gitignore keeps .itervox/agents, .itervox/handoff, .itervox/playbooks and .itervox/memory.json committable", "status": "warn", "detail": "the root .gitignore ignores .itervox/ without the carve-outs: !.itervox/agents/** …", "fix": "run `itervox init --update --workflow /srv/app/WORKFLOW.md` (adds the carve-outs), or add the lines yourself" } ]}status is pass, warn or fail; fix is the text doctor prints, set for
anything that is not a pass. Check IDs, in order:
| ID | Checks | Not a pass when |
|---|---|---|
schema_version | itervox_schema_version: 2 in WORKFLOW.md, and the workflow loads | fail: missing, older or unloadable |
gitignore_carveouts | the root .gitignore keeps .itervox/agents/**, .itervox/handoff/**, .itervox/playbooks/** and .itervox/memory.json committable | warn: it ignores .itervox/ without !.itervox/, !.itervox/agents/, !.itervox/agents/**, !.itervox/handoff/, !.itervox/handoff/**, !.itervox/playbooks/, !.itervox/playbooks/**, !.itervox/memory.json |
instruction_docs | CLAUDE.md (Claude profiles) and AGENTS.md (Codex profiles) at the repository root | warn: a backend in use has no instruction file |
verify_skill | a project verification skill or script (#218): .claude/skills/<…verif…>/SKILL.md, scripts/verify*, a verify Makefile target or a verify script in package.json | warn: none of them; POST /api/v1/repo/readiness/verify-skill-issue creates an issue to write one |
bare_fetch_refspec | the shared bare clone’s fetch (#195) | fail: the last fetch failed; warn: still on the pre-#195 refspec, or stale |
profile_refs | skill and subagent references in profile SOUL.md / INSTRUCTIONS.md (#86) | warn: a reference does not resolve |
tracker_reachable | one read of the tracker API (Linear { viewer }, GitHub repository access) | fail: the read failed or timed out; warn: GitHub token without push access |
503 readiness_unavailable when the daemon was built without the checks.
Repo evals
Section titled “Repo evals”GET /api/v1/repo/evals
Section titled “GET /api/v1/repo/evals”The latest saved eval result per profile and scenario (#201), for the
dashboard’s Repo Analysis → Evals section. itervox evals recorded,
itervox evals live and itervox evals record (contributors: make evals,
make evals-live, make evals-record) save each judged report as JSON to <project>/.itervox/evals/<ISO8601>.json (the newest 20
kept; the directory carries its own .gitignore); the endpoint reads the
newest of those files on the request goroutine. It never starts an eval run.
{ "dir": "/srv/app/.itervox/evals", "reports": [ { "file": "20261021T090000.000Z.json", "mode": "live", "finishedAt": "2026-10-21T09:00:00Z", "pass": 7, "total": 8 } ], "cases": [ { "profile": "reviewer", "scenario": "rejects-and-moves-back", "pass": false, "failures": ["forbidden phrase present in comments: /ai-approved"], "promptDigest": "9f2c…", "digestSource": "live", "ranAt": "2026-10-21T09:00:00Z", "mode": "live", "file": "20261021T090000.000Z.json", "regression": true, "previousDigest": "41ab…", "previousAt": "2026-10-20T09:00:00Z", "results": 3 } ]}failureslists every failed assertion: missing required actions, forbidden actions,forbidden_phrasespresent, missing marker phrases.erroris a live run that could not be judged as complete (backend failure, budget);stalea recording older than its sources.promptDigestis the prompt version the case ran against, computed with the same digest as run history (#186), so it matches Prompt versions.digestSourceislive(computed by the live run from the workflow it ran) orrecording(read from a live recording’smetaline). Recorded mode replays a fixed transcript, so it has a digest only when the recording was made by a live run since #201; the hand-written fixtures have none.regressionis set when the case fails on its digest and the newest result on the previous digest passed (previousDigest,previousAt). Results without a digest never mark one.modeisrecorded,liveorrecord;resultscounts the reports read that include the case.errorat the top level means the directory could not be read; no directory is an empty list.
503 evals_unavailable when the daemon was built without the provider.
Repo hotspots
Section titled “Repo hotspots”GET /api/v1/repo/hotspots
Section titled “GET /api/v1/repo/hotspots”Files and directories ranked by how often agent work on them went wrong
(#201), for Repo Analysis → Hotspots. A run in the history window counts
when it failed or stalled, asked for input (input_request), was a
reviewer whose verdict was block (change_request), or opened a PR that
was later reverted on the base branch (reverted). Each such run is
attributed to the files its branch changed.
A background job in the daemon computes it, never on the orchestrator’s event
loop: it reads run history and runs read-only git through internal/gitexec
(no fetch), one refresh at a time, at most 100 run lookups per refresh, each
git call under a 10 s timeout and the refresh under 2 minutes. A request
returns the latest result at once and starts a refresh only when that result
is older than 10 minutes (refreshing: true while it runs; the dashboard
polls until it lands). Each run’s changed files are cached by run ID, so a
refresh runs git only for runs it has not attributed yet (an unattributed run
is retried after an hour).
{ "generatedAt": "2026-10-21T09:05:00Z", "refreshing": false, "repo": "/srv/ws/.bare", "baseRef": "refs/remotes/origin/main", "runsConsidered": 200, "runsWithSignals": 31, "runsAttributed": 27, "runsUnattributed": 4, "files": [ { "path": "internal/orchestrator/event_loop.go", "failed": 3, "stalled": 1, "changeRequests": 2, "inputRequests": 0, "reverted": 1, "total": 7, "issues": ["ENG-12", "ENG-40"], "runs": [ { "runId": "r-…", "identifier": "ENG-40", "status": "succeeded", "kind": "reviewer", "profile": "reviewer", "finishedAt": "2026-10-21T08:40:00Z", "signals": ["change_request"] } ] } ], "directories": [ { "path": "internal/orchestrator/", "…": "same shape" } ], "notes": ["4 run(s) that went wrong could not be attributed to files: …"]}Rows are sorted by total (a run with two signals counts twice), at most 50
per list, with at most 20 runs each, newest first; a directory counts a run
once however many of its files the run changed.
How the signals are read, and where they are approximations:
- Repository. The shared bare clone in worktree mode with
workspace.clone_url, the workspace root in plain worktree mode, otherwise the directory holdingWORKFLOW.md. Refs are as fresh as the daemon’s (or your) last fetch. The base isworkspace.base_branchon origin, else the local branch. - Changed files. Run history now records each run’s branch (the branch
its exit reported, else the issue’s worktree branch), its PR URL and a
reviewer’s verdict. While the branch exists and adds commits, the files are
git diff <base>...<branch>(against the merge base) — the branch’s current state, not exactly what that one run changed. Once the branch is merged or gone, they are the files of the commit on the base whose message names the PR ((#N)squash subject orMerge pull request #N), against its first parent. A run with neither is counted inrunsUnattributed. - Change requests count reviewer runs whose recorded verdict was
block. Reviewer runs recorded before #201 carry no verdict and are not counted (a note says how many). - Reverted PRs come from the newest 500 commits on the base: a revert
subject
Revert "… (#N)", a GitHub revert branchrevert-N-…, or the PR number in the subject of a commit a revert names (This reverts commit <sha>). The newest non-reviewer run with that PR URL gets the signal. Reverts outside that window, or of commits that name no PR, are missed. - The window is the daemon’s run history (the newest 200 runs).
503 hotspots_unavailable when the daemon was built without the job.
Tracker webhooks
Section titled “Tracker webhooks”POST /api/v1/webhooks/{tracker}
Section titled “POST /api/v1/webhooks/{tracker}”Receives Linear (linear) or GitHub (github) issue webhooks when tracker.webhooks.enabled is set; otherwise, and for the other tracker, 404. No bearer token (the tracker cannot send one) and exempt from the unauthenticated-mode Host guard: instead every delivery must be signed with tracker.webhooks.secret (Linear-Signature, or GitHub’s X-Hub-Signature-256), and a Linear delivery must be less than a minute old (webhookTimestamp). Answers 202 for an accepted or ignored delivery, 401 for a bad signature or a stale delivery, 400 for an unreadable payload, 413 over 1 MiB. A delivery only names issues: the tracker store re-reads them by ID and keeps the ones in scope. See Tracker webhooks.
POST /api/v1/webhooks/pr-events
Section titled “POST /api/v1/webhooks/pr-events”Receives GitHub check_run, status, pull_request and pull_request_review deliveries for the PR-event automation triggers (#173) when pr_events.webhook_secret is set; otherwise 404. Same exemptions as the tracker route (no bearer token, past the Host guard) and the same rule: every delivery must carry a valid X-Hub-Signature-256 made with pr_events.webhook_secret. Answers 202 for an accepted or ignored delivery (a ping, another event or action, a pending status, or a PR no Itervox run recorded), 401 for a bad signature, 400 for an unreadable payload, 413 over 1 MiB. Accepted deliveries only become automation dispatches through the orchestrator’s event loop, which dedups them per check, push, review and mergeable transition. Counted in itervox_tracker_webhooks_total{tracker="pr-events"}. See PR events.
Client error reports
Section titled “Client error reports”POST /api/v1/client-errors
Section titled “POST /api/v1/client-errors”The dashboard reports its own production failures here — error-boundary
crashes, uncaught error / unhandledrejection events, and snapshot schema
drift — so they reach the daemon log, itervox_client_errors_total and
recentFailures (kind client). Authenticated like the rest of /api/v1
(bearer token; in allow_unauthenticated mode the CSRF guard and Host guard
apply).
{ "kind": "render", "message": "Cannot read properties of undefined", "route": "/settings", "stack": "..." }kind:render,error,unhandledrejectionorschema; any other value is recorded asother.messageis required.- The body is capped at 8 KiB including trailing bytes and must be exactly
one JSON object. The daemon redacts
message,routeandstackand bounds them (1 KiB, 256 B, 2 KiB) before logging. - Responses:
202 {"accepted":true};400 bad_request(malformed, empty message, trailing data);413 payload_too_large;429 rate_limited(a daemon-wide budget of 20 reports, refilling one per 3 s, withRetry-After);503 orchestrator_busywhen the event queue is full (the report is dropped, not queued). - The dashboard itself dedupes identical
{kind, message, route}reports for 60 s, sends at most 10 per minute per tab, never reports its own failed POST, and sends nothing while it is on the token or server-down screen.
Issues
Section titled “Issues”Listing and detail
Section titled “Listing and detail”| Method | Path | Response |
|---|---|---|
GET | /issues | TrackerIssue[] |
GET | /issues/{identifier} | TrackerIssue |
Run context and changes (#215)
Section titled “Run context and changes (#215)”What an issue’s agent is doing right now, and what it has changed. Both
routes are viewer reads; a file’s hunks need operator (see below).
The daemon advertises them with "run_context" in capabilities on the
snapshot.
GET /issues/{identifier}/context
Section titled “GET /issues/{identifier}/context”The context of the issue’s running run (live: true), or of its most
recent finished run while the daemon still keeps it (the 32 newest finished
runs, this session only), plus the worktree’s changed files and handoffs.
{ "identifier": "ENG-12", "run": { "runId": "r-8f2c", "live": true, "kind": "worker", "profile": "coder", "backend": "claude", "startedAt": "2026-10-22T10:00:00Z", "updatedAt": "2026-10-22T10:04:31Z", "baseBranch": "main", "currentStep": "Wiring the diff endpoint into the router.", "lastToolCall": {"name": "Edit", "target": "internal/server/server.go", "at": "2026-10-22T10:04:31Z"}, "toolCalls": 41, "turnCount": 2, "inputTokens": 120400, "outputTokens": 8200, "totalTokens": 128600, "pendingInput": "", "queuedSteers": 0, "steers": [{"text": "use gitexec", "at": "2026-10-22T10:02:00Z", "delivery": "live"}], "guardrailBlocks": 1, "lastGuardrailKind": "push_protected" }, "port": 41000, "changedFiles": [{"path": "internal/server/changes.go", "status": "added", "additions": 120, "deletions": 0}], "handoffs": [{"title": "Plan the endpoints", "path": ".itervox/handoff/2026-10-22T09-58-00Z_planner.md"}]}portis the issue workspace’sITERVOX_PORT(fromworkspace.port_range); omitted when the workspace has none.currentStepis the run’s last assistant message, redacted (the log redaction: known key shapes, bearer tokens,NAME_TOKEN=…assignments, URL credentials), whitespace-collapsed and cut to 500 bytes.lastToolCallis the latest tool call — started or finished — by name and target (a file path, a command, a pattern, a URL), redacted and cut to 300 bytes. Tool output is never included: the target is computed from the call’s input with every output-bearing field (output,stdout,stderr,result,content, …) removed, and tool results are not read.toolCallscounts finished calls.turnCountand the token counts are the run’s so far;pendingInputis the question the issue waits on (pendingApproval: truefor a guardrail approval);steersare the newest delivered steering messages andqueuedSteersthose not yet delivered;guardrailBlockscounts the operations a guardrail refused in this run.changedFilesis the file list of the diff below (omitted withchangedFilesError—no_worktree,base_not_found,diff_timeout,diff_failed— when it cannot be computed);handoffslists the.itervox/handoff/files, oldest first, titled by their first heading.runisnullwhen the issue has a worktree but no kept run.404 no_run_contextwhen it has neither.
The run context is updated by each worker at most once a second (plus once
at the end of every turn) through the event loop, and is not part of the
/state snapshot or the SSE frames: read it here.
GET /issues/{identifier}/diff
Section titled “GET /issues/{identifier}/diff”The worktree against the merge base of its HEAD with the base branch:
committed changes, uncommitted edits and untracked files. Works while the
issue runs and after it finished, as long as its worktree exists.
Query: base (optional): the branch to diff against (main,
origin/develop); a name only — no options, ranges or revision
expressions (400 invalid_base). Default: the run’s pull-request base (the
blocker branch of a stacked worktree),
then workspace.base_branch, agent.base_branch, origin/HEAD,
origin/main and main, each tried as origin/<name> first. file
(optional): return that file’s hunks instead of the list.
Without file:
{ "identifier": "ENG-12", "base": "origin/main", "mergeBase": "3f9c2e1d…", "files": [ {"path": "internal/server/changes.go", "status": "added", "additions": 120, "deletions": 0}, {"path": "web/public/logo.png", "status": "modified", "additions": 0, "deletions": 0, "binary": true} ], "truncated": false, "hunksAllowed": true}status is added, modified, deleted, typechange, unmerged or
untracked; renames show as a deletion and an addition. At most 2000 files
(truncated: true beyond). hunksAllowed tells the client whether its
token may ask for ?file=.
With file=<path> (operator; a viewer gets 403 insufficient_scope):
{ "identifier": "ENG-12", "base": "origin/main", "file": {"path": "internal/server/changes.go", "status": "added", "additions": 120, "deletions": 0}, "patch": "diff --git a/internal/server/changes.go b/internal/server/changes.go\n…", "truncated": false, "bytes": 4810, "maxBytes": 262144}filemust be one of the listed paths (404 file_not_changedotherwise); no other path reaches git.- The unified diff is cut at 256 KiB on a line boundary (
truncated: true,bytesis the full size). A binary file hasbinary: trueand an emptypatch. - Below
adminthe patch passes through the log redaction (whitespace and lines are kept); an admin sees it as written. An agent can commit a secret, which is why hunks are not a viewer read.
Errors: 404 no_worktree (never dispatched, or the worktree was cleared),
404 base_not_found, 400 invalid_base, 504 diff_timeout, 503 not_supported (a daemon built without the endpoint). Every git call runs
through internal/gitexec on the request’s goroutine — never on the
orchestrator’s event loop — under a 15-second timeout.
System visibility
Section titled “System visibility”A run’s resource use rides on the run context and the snapshot (see
GET /state); its activity audit has its own route. The
daemon advertises both with "system_visibility" in capabilities. Guide:
System visibility.
GET /issues/{identifier}/context gains run.resources (the latest sample
of a live run, the last one of a finished run the monitor still holds; the
fields of running[].resources on /state). Below operator scope its
topCommands[].args are removed.
GET /issues/{identifier}/activity
Section titled “GET /issues/{identifier}/activity”Operator. The activity audit of the issue’s run ?run=<runId>, or of
its latest run (the live one, else the newest recorded) without run.
{ "identifier": "ENG-12", "runId": "r-8f2c", "live": true, "mode": "sampled", "platform": "linux", "supports": {"commands": true, "files": true, "connections": true}, "notes": ["Sampled every 2s from /proc: short-lived processes, files and connections between two samples may be missed."], "workspace": "/home/dev/.itervox/workspaces/web-app/ENG-12", "startedAt": "2026-11-02T10:00:00Z", "updatedAt": "2026-11-02T10:04:31Z", "commands": [{"name": "git", "args": "status --short", "pid": 4300, "count": 4, "firstAt": "2026-11-02T10:01:00Z", "lastAt": "2026-11-02T10:04:00Z"}], "files": [{"path": "/home/dev/.cache/go-build/trim.txt", "write": true, "outsideWorkspace": true, "command": "go", "count": 1, "firstAt": "…", "lastAt": "…"}], "connections": [{"protocol": "tcp", "remote": "140.82.112.3:443", "state": "ESTABLISHED", "command": "git", "count": 1, "firstAt": "…", "lastAt": "…"}], "dropped": {"commands": 0, "files": 0, "connections": 0}, "runs": [{"runId": "r-8f2c", "startedAt": "2026-11-02T10:00:00Z", "live": true}]}modeisoff,sampledorprecise(modeReasonsays why precise mode fell back);supportsandnotessay what the platform and mode can record (no file activity on macOS or Windows; sampled mode may miss short-lived activity; an SSH run shows only its localsshclient).- Each distinct command line, path and remote address is one entry with a
count. Precise mode lists files opened for writing and connect attempts (protocolinet/inet6); sampled mode lists open files (writefrom the open flags) and established connections. outsideWorkspacemarks a write outside the run’s workspace.- At most 500 commands, 1000 files and 300 connections per run;
droppedcounts distinct entries the caps refused. - Command lines and paths are redacted at the source (the log redaction
plus
NAME=valuevalues, credential-named flag values and URL user info). runslists the issue’s recorded runs, newest first (at most 20).
Errors: 404 no_activity (nothing recorded for the issue or that run),
403 insufficient_scope below operator, 503 not_supported without the
run monitor.
Change review (#238)
Section titled “Change review (#238)”Act on the diff above without leaving Itervox: comment on a line or range
for the running agent or for the pull request, and review the pull request.
Both routes are operator; reading the diff stays viewer. The daemon
advertises them with "change_review" in capabilities on the snapshot.
GitHub is reached with the credentials the PR-event watcher already uses
(tracker.api_key for a GitHub tracker on github.com, else GH_TOKEN /
GITHUB_TOKEN — GH_ENTERPRISE_TOKEN / GITHUB_ENTERPRISE_TOKEN for
another host — else gh auth token). An issue’s pull request is the one its
runs recorded most recently. Nothing here merges: a review does not
record a reviewer verdict, change agent.review_quorum’s outcome or touch
the merge_pr gate (required checks, agent.merge_block_labels, the
strategy).
The PR source of GET /issues/{identifier}/diff
Section titled “The PR source of GET /issues/{identifier}/diff”Once the issue has a GitHub pull request, the diff defaults to the PR’s
files as GitHub compares them (base...head) — what a merge would apply.
?source=worktree keeps the live worktree diff (it can be ahead of the
pushed head while a run is live); ?source=pr asks for the PR explicitly
(404 no_pr without one). Both lists and ?file= hunks follow the same
scope and redaction rules as the worktree diff.
{ "identifier": "ENG-12", "base": "main", "mergeBase": "9a1c…", "headSha": "4be0…", "files": [{"path": "internal/server/changes.go", "status": "modified", "additions": 12, "deletions": 3}], "hunksAllowed": true, "source": "pr", "sources": ["pr", "worktree"], "prUrl": "https://github.com/acme/app/pull/7", "worktreePath": "/Users/me/itervox-workspaces/ENG-12"}sourceis what was diffed;sourceswhat?source=may ask for:pronce the issue has a PR,worktreewhile a run is live or when there is no PR.- A PR file’s
statusisadded,modified,deleted,renamedorcopied; GitHub lists at most 3000 files. - When GitHub cannot be read and you did not ask for
?source=pr, the diff falls back to the worktree withprError(github_failed,pr_not_found); an explicit?source=pranswers502 github_failed,404 pr_not_foundor504 github_timeoutinstead. worktreePathis the worktree’s directory on the daemon’s host, for the dashboard’s open-in-editor links.
POST /issues/{identifier}/review-comments
Section titled “POST /issues/{identifier}/review-comments”One line or range comment, sent to the running agent or posted on the PR.
{ "destination": "agent", "path": "internal/server/changes.go", "startLine": 12, "line": 14, "side": "RIGHT", "body": "This should return 404, not 500.", "quote": "+\twriteError(w, 500, …)"}lineis the last line of the range andstartLineits first (omit it for one line).side/startSideareRIGHT(the new file, default) orLEFT(the base file, for deleted lines) — GitHub’s review-comment model.bodyis at most 8 KiB.destination: "agent"queues a steering message for the issue’s live run (the Sessions steering path, #178) and answers202 {"destination": "agent","runId":"…","message":{…}}. The message names the file and lines, quotesquote(the selected diff lines, cut to fit the 10 KiB message limit) in a fenced block, then the comment:Review comment on internal/server/changes.go, lines 12-14:```diff+ writeError(w, 500, …)```This should return 404, not 500.409 no_live_runwhen the issue has no running agent;409 input_requiredwhile it waits for an answer.destination: "pr"posts one review comment on the PR’s head commit and answers201 {"destination":"pr","prUrl":"…","id":101,"url":"…"}. Line numbers must come from the PR’s diff (GitHub refuses a line outside it:422 github_rejected, with GitHub’s message).409 no_pr,409 pr_closed(closed or merged),404 pr_not_found(the credentials cannot read the PR),502 github_failed.
POST /issues/{identifier}/review-continue
Section titled “POST /issues/{identifier}/review-continue”The operator’s whole draft review — line and range comments plus an
overall note — sent to the agent in one action (the dashboard’s Send to
agent). Operator scope; advertised as the review_continue capability.
{ "comments": [ {"path": "internal/server/changes.go", "startLine": 12, "line": 14, "side": "RIGHT", "body": "This should return 404, not 500.", "quote": "+\twriteError(w, 500, …)"}, {"path": "web/src/a.ts", "line": 3, "side": "LEFT", "body": "Keep this check."} ], "note": "Close. Also cover the empty case in a test.", "moveToActive": true, "alsoPostOnPR": true}- Each comment has the fields of
review-comments(line,startLine,side,startSide,bodyat most 8 KiB,quotecut to 4 KiB). At most 50 comments;noteis at most 8 KiB; a comment or a note is required (400 bad_requestwithfield). - A live run gets the review as steering (the Sessions
path): ONE message listing every comment (file and lines, the quoted
lines in a fenced block, the comment) after the note. Quotes are
shortened to fit the 10 KiB message limit; only a review whose comments
alone do not fit is split into numbered parts (
[Operator review, part 1 of 2]).agentis{"delivery":"steered","runId":"…","messages":1}. - No live run: the review is queued for the issue’s next worker run and
agentis{"delivery":"queued","queuedAt":"…","movedTo":"In Progress"}. The queue is runtime state (review_continuations.jsonnext to the daemon log, written by the ledger writer), so it survives a restart until a run takes it. That run writes it into the issue’s worktree as.itervox/handoff/<ISO8601>_operator-review.mdbefore its first prompt, so the Prior Agent Handoffs block carries it; the record is dropped once the file is written (a run that exits before writing it leaves it for the next run). A paused issue is resumed ("resumed": true).moveToActive(defaulttrue): an issue outside the active states is moved to the first active state through the same path as the board’s Dispatch (PATCH .../state), and the normal tick starts it.movedTonames the state; a failed move takes the review back and answers with the tracker’s error.moveToActive: false: no tracker write. The issue is dispatched in its own state on a tick whose gates admit it — free slots, no dispatch pause, nopause_dispatch_when_any_in_statehit, the per-state limit, tracker and gating inferred blockers, branch in use, then the backend breaker andagent.budget— and stays queued until then. That run does not move the issue to the working state, keeps taking turns like any run although the issue is outside the active states (until the agent is done,agent.max_turns, input required, a stall or turn timeout, or a stop), reconciliation does not stop it for being outside the active states (a terminal state other thantracker.completion_statestill does, and so does the turn loop), and it makes no completion move: the issue stays in its state. An issue in another terminal state is refused (409 issue_closed).- The run works on the issue’s own branch (an open PR’s branch, else the
issue’s branch). When
workspace.auto_clear_workspaceremoved the worktree and its local branch after the last run, the worktree is recreated fromorigin/<branch>(in aworkspace.clone_urlbare clone and in the operator’s own clone), not from the base branch.
alsoPostOnPR: trueand the issue has a PR: the comments (and the note as the body) are also posted as ONE GitHub review with eventcomment(thepr-reviewpath).prreports it —{"posted":true,"url":"…", "comments":2}or{"posted":false,"error":"github_rejected","message": "…"}(no_pr,pr_closed,pr_not_found,github_timeout,github_failed). A PR failure never undoes the agent delivery; the response is still202.- Errors (nothing is sent anywhere):
409 input_required(answer withprovide-input),409 issue_closed,409 no_active_state,404 not_found,503 not_configured.
The run that took a queued review has continuedFromReview: true and
reviewComments in its history row (the Timeline shows “Continued from
your review (N comments)”), and /api/v1/state lists waiting reviews in
queuedReviews (identifier, comments, hasNote, moveToActive,
queuedAt; never the text). A feed event review_comment_posted (via: agent, count) is recorded; the comment text is never logged.
POST /issues/{identifier}/pr-review
Section titled “POST /issues/{identifier}/pr-review”One GitHub review: an event and the batched line comments, submitted together.
{ "event": "approve", "body": "Looks good; two nits.", "comments": [ {"path": "a.go", "line": 6, "body": "nit: name"}, {"path": "b.go", "startLine": 2, "line": 3, "side": "LEFT", "body": "why removed?"} ]}event is approve, request_changes or comment; the last two need a
body or at least one comment. At most 50 comments. 201:
{ "prUrl": "https://github.com/acme/app/pull/7", "id": 202, "url": "https://github.com/acme/app/pull/7#pullrequestreview-202", "event": "approve", "comments": 2, "merged": false, "mergePolicy": { "mergesFromHere": false, "blockLabels": ["needs-human"], "quorum": {"blocked": true, "approvals": 1, "blocks": 1, "quorum": "any_block"} }}mergePolicy reports what still governs a merge: blockLabels are the
PR’s labels that make merge_pr refuse, and quorum the agent reviewers’
outcome (null when none ran), which an operator review does not change.
GitHub refuses an approval from the account that opened the PR (422 github_rejected); errors are otherwise those of review-comments.
Every post records a feed event — review_comment_posted (via: agent
or github) or pr_review_submitted_by_operator (verdict, count) —
with the issue and PR only. Comment text is never logged or put on the
feed.
Lifecycle and control
Section titled “Lifecycle and control”| Method | Path | Request body | Success response | Notes |
|---|---|---|---|---|
DELETE | /issues/{identifier} | — | {"cancelled":true,"identifier":"ENG-1"} | Alias for cancel |
POST | /issues/{identifier}/cancel | — | {"cancelled":true,"identifier":"ENG-1"} | 404 not_running if not running |
POST | /issues/{identifier}/resume | — | {"resumed":true,"identifier":"ENG-1"} | 404 not_paused if not paused |
POST | /issues/{identifier}/reanalyze | — | {"queued":true,"identifier":"ENG-1"} | 404 not_paused if not paused |
POST | /issues/{identifier}/terminate | — | {"terminated":true,"identifier":"ENG-1"} | 404 not_found if not running or paused |
POST | /issues/{identifier}/ai-review | — | 202 {"queued":true,"identifier":"ENG-1"} | Reviewer dispatch: a fresh review by the configured reviewers (the whole reviewer_profiles chain, previous verdicts cleared) |
PATCH | /issues/{identifier}/state | {"state":"In Review"} | {"ok":true,"identifier":"ENG-1","state":"In Review"} | Triggers immediate refresh |
While the daemon is draining (see draining under /ready), resume,
reanalyze, ai-review and provide-input are refused with
409 {"code":"draining"}: nothing was queued; re-send once the daemon is
back.
Backend health
Section titled “Backend health”| Method | Path | Request body | Success response |
|---|---|---|---|
POST | /backend-health/clear | {"backend":"claude","host":""} | 202 {"queued":true,"backend":"claude","host":""} |
Closes one agent-backend circuit breaker (backendHealth[] on the
snapshot) when you know the backend is available again. host is empty for
local runs or the SSH worker host of a host-scoped breaker. The clear is
queued on the orchestrator’s event loop: 202 means queued — watch
/api/v1/state or the SSE stream for the row to turn healthy. Issues held
with backend_limited on that breaker are re-evaluated on the next dispatch
pass. Errors: 400 bad_request (field: "backend" unless claude or
codex; field: "host" for a malformed host), 503 event_queue_full
(retry), 501 not_implemented. Like every state-changing route it needs the
bearer token, or, in server.allow_unauthenticated mode, passes the
cross-origin guard. The dashboard offers the same action as Clear next to
a limited backend chip.
Model servers
Section titled “Model servers”| Method | Path | Request body | Success response |
|---|---|---|---|
GET | /model-servers | — | 200 {"servers":[…]} |
Lists the model servers that profile commands point their agent at, for the
desktop app’s “Model servers” section (see
Local models). The daemon reads
the same command assignments as itervox doctor (ANTHROPIC_BASE_URL,
OPENAI_BASE_URL, OPENAI_API_BASE) from the live profile configuration,
and never probes them:
{"servers":[{"var":"ANTHROPIC_BASE_URL","url":"http://127.0.0.1:8000","profiles":["(default)","coder-local"],"pools":["local"],"remote":false}]}One row per variable and URL. profiles are the enabled profiles using it
((default) is agent.command), pools their quota pools
(agent.profiles.<name>.pool, [] when none). remote is true when
agent.ssh_hosts is set, since those runs go to worker hosts. A URL taken
from a variable ($LOCAL_MODEL_URL) has "unchecked": true. Viewer scope;
below admin, credentials in a URL are redacted. With no model server
configured the list is empty.
New task and task templates (#251)
Section titled “New task and task templates (#251)”Fetched on demand; none of these are on the /state snapshot or the SSE
frames. See the New task guide.
POST /api/v1/tasks
Section titled “POST /api/v1/tasks”Creates a task (operator). The body:
{"title": "Upgrade lodash", "instructions": "Run `make test` after the bump.", "where": "local", "start": true, "profile": "implementer", "backend": "codex", "playbook": "feature", "baseBranch": "release/2.x", "template": "upgrade", "vars": {"package": "lodash"}}Only title is required (or template, whose title is used). where is
local (the default: an Itervox-only issue file in .itervox/issues/, also
in a Linear or GitHub project, where tasks are named TASK-1, TASK-2, …)
or tracker (an issue in the project’s Linear or GitHub tracker). The task
is created in the first of tracker.active_states; with start: true the
daemon runs a dispatch pass at once, which starts it through the normal path
(slots, guardrails, budgets and dependencies still apply). With template,
the template’s fields fill what the body leaves empty and vars fill its
{{var}} placeholders. profile, backend and playbook become the
issue’s overrides; instructions (at most 16 KiB) and baseBranch are kept
by the daemon in .itervox/task_specs.json.
201:
{"identifier": "TASK-3", "title": "Upgrade lodash", "state": "Todo", "local": true, "started": true}Errors: 400 with a field (title_required, missing_vars,
unknown_template, unknown_profile, unknown_backend, unknown_playbook,
invalid_base, instructions_too_long); 409 local_tasks_unavailable for
where: "local" when the tracker cannot hold local tasks (the memory
tracker); 502 task_create_failed when the tracker refuses the create (the
message is redacted).
PUT /api/v1/tasks/{identifier}/instructions
Section titled “PUT /api/v1/tasks/{identifier}/instructions”Replaces a task’s instructions (operator) until its first run starts:
{"instructions": "…"} → 200. 404 for an issue that is not a task,
409 task_started once a run has started (the instructions are then the
record of what the run was given). GET /api/v1/issues/{identifier} reports
a task as task: {"instructions", "baseBranch", "local", "started"}.
GET /api/v1/task-templates
Section titled “GET /api/v1/task-templates”The templates in .itervox/tasks/ (viewer), with each one’s placeholders:
{"localTasks": true, "templates": [ {"name": "upgrade", "title": "Upgrade {{package}}", "instructions": "Bump {{package}} to {{version}}.", "profile": "implementer", "baseBranch": "main", "vars": ["package", "version"]}], "problems": [{"path": ".itervox/tasks/Bad.md", "message": "…"}]}localTasks says whether where: "local" is available.
POST / PUT / DELETE /api/v1/task-templates/{name}
Section titled “POST / PUT / DELETE /api/v1/task-templates/{name}”Manage templates (admin; they write committable files). The body is a
template row without name and vars. POST creates (201; 409 template_exists), PUT creates or replaces (200), DELETE removes
(204; 404). A name is lower-case letters, digits, - or _ (400 invalid_name).
Playbooks, decisions and steering (#218)
Section titled “Playbooks, decisions and steering (#218)”Fetched on demand; none of these are on the /state snapshot or the SSE
frames. See the Playbooks guide.
GET /api/v1/playbooks
Section titled “GET /api/v1/playbooks”The playbooks in agent.playbooks.dir (viewer):
{"enabled": true, "playbooks": [ {"name": "bug-fix", "description": "Reproduce first, fix the root cause, prove the fix with a test.", "keywords": ["bug", "crash"], "requireEvidence": ["test"]}]}POST /api/v1/issues/{identifier}/playbook
Section titled “POST /api/v1/issues/{identifier}/playbook”Sets the issue’s playbook (operator): {"playbook":"bug-fix"}, {"playbook":"none"}
(no playbook), or {"playbook":""} (automatic: label, then keyword
classifier). 202 {"identifier":"ENG-1","playbook":"bug-fix"}; 400 unknown_playbook for a name not on disk; 503 when the event queue is full.
The choice is event-loop state, kept across restarts in
.itervox/playbook_overrides.json, and applies from the issue’s next run.
GET /api/v1/issues and GET /api/v1/issues/{identifier} report it as
playbookOverride, with playbook and playbookSource (override,
label, keyword) naming the playbook the next (or current) run gets.
GET /api/v1/issues/{identifier}/decisions
Section titled “GET /api/v1/issues/{identifier}/decisions”Every run’s decision log (.itervox/handoff/<timestamp>_<profile>.decisions.tsv
in the issue’s worktree), oldest run first (viewer). Fields are redacted and
cut to 500 bytes; at most 200 rows per run and 50 runs; a file over 64 KiB is
read up to that and flagged truncated; skipped counts lines without a
decision.
{"identifier": "ENG-1", "runs": [ {"path": ".itervox/handoff/2026-05-02T10-00-00.000Z_implementer.decisions.tsv", "runTimestamp": "2026-05-02T10-00-00.000Z", "role": "implementer", "decisions": [{"time": "2026-05-02T10:01:00Z", "at": "2026-05-02T10:01:00Z", "decision": "Diff against the merge base", "why": "main moves on", "alternative": "main's tip"}]}]}GET /api/v1/issues/{identifier}/attestations
Section titled “GET /api/v1/issues/{identifier}/attestations”The issue’s signed check records
(agent.profiles.<name>.verify), one entry per run, oldest first (viewer).
They are read from .itervox/attestations/<identifier>/<run timestamp>_<profile>.jsonl and
verified on each request: a record is verified when its ed25519 signature is
valid for the daemon’s key and its treeHash is the run’s final tree (the
seal record’s tree); reason says why not. Commands and output tails were
redacted when the record was made. An issue with no records answers
{"identifier":"ENG-1","runs":[]}; 503 not_supported when signed checks are
not wired.
{"identifier": "ENG-1", "keyId": "3f1c9a0b5d7e2468", "runs": [ {"runId": "2026-11-14T10-00-00.000Z_implementer", "profile": "implementer", "finalTree": "9c1e…", "records": [ {"kind": "check", "name": "test", "command": "make test", "pipefail": true, "exitCode": 1, "startedAt": "2026-11-14T10:20:01Z", "durationMs": 8123, "outputSha256": "e3b0…", "outputTail": "FAIL ./pkg …", "treeHash": "9c1e…", "head": "4b2d…", "keyId": "3f1c9a0b5d7e2468", "verified": true}, {"kind": "seal", "exitCode": 0, "startedAt": "2026-11-14T10:20:09Z", "durationMs": 0, "treeHash": "9c1e…", "head": "4b2d…", "keyId": "3f1c9a0b5d7e2468", "verified": true}]}]}GET /api/v1/steering/phrases
Section titled “GET /api/v1/steering/phrases”The steering chips (sessions.steering_phrases, viewer):
{"phrases":[{"label":"Prove it works","message":"Prove it works: …"}]}.
A chip is sent like any message, with POST /api/v1/sessions/{id}/message.
POST /api/v1/repo/readiness/verify-skill-issue
Section titled “POST /api/v1/repo/readiness/verify-skill-issue”Generate verify skill (operator): creates a tracker issue asking an agent
to write the project’s verification skill, through tracker.CreateIssue in
the enforcement issue state (as an accepted enforcement suggestion, #217).
201 {"identifier":"ENG-42","url":"…"}; 502 issue_create_failed (redacted
message) when the tracker refuses.
Per-issue overrides and human-input flow
Section titled “Per-issue overrides and human-input flow”| Method | Path | Request body | Success response |
|---|---|---|---|
POST | /issues/{identifier}/profile | {"profile":"frontend"} or {"profile":""} | {"ok":true,"identifier":"ENG-1","profile":"frontend"} |
POST | /issues/{identifier}/playbook | {"playbook":"bug-fix"}, {"playbook":"none"} or {"playbook":""} | 202 {"identifier":"ENG-1","playbook":"bug-fix"} |
POST | /issues/{identifier}/backend | {"backend":"claude"} (any of claude, codex, opencode, cursor, custom) or {"backend":""} | {"ok":true,"identifier":"ENG-1","backend":"claude"} |
POST | /issues/{identifier}/provide-input | {"message":"...","fromAgent"?:true,"via"?:"slack"} | {"ok":true} |
POST | /issues/{identifier}/dismiss-input | — | {"ok":true} |
POST | /issues/{identifier}/failures/ack | {"upTo":"2026-09-27T10:00:00Z"} | 202 {"queued":true} |
POST | /issues/{identifier}/comment | {"body":"..."} | 202 {"queued":true,"identifier":"ENG-1"} or 200 {"ok":true,"identifier":"ENG-1"} |
POST | /issues/{identifier}/deps-override | — | 202 {"identifier":"ENG-1","overridden":true} |
DELETE | /issues/{identifier}/deps-override | — | 202 {"identifier":"ENG-1","overridden":false} |
backend returns 400 bad_request for anything but claude, codex or "",
and 409 backend_pin_refused (with the resolver’s reason in message,
field: "backend") when the issue’s command runs the other backend — for
example a codex pin over a claude ... profile, which the dispatcher would
refuse. A refused pin is not stored. A pin applies from the next run and wins
over agent.backend_fallback.
profile sets the issue’s agentProfile from its next run. The override is
kept in .itervox/issue_profiles.json (runtime state, not committed), so it
survives a WORKFLOW.md or settings reload and a restart; {"profile":""}
clears it. A rate_limited rule’s switch_to_profile (or an
agent.backend_fallback reroute) that fires after the override reassigns the
issue until that switch is reverted, and the override applies again after
it; an override set after the switch wins. A reply to a question rehydrated
from the tracker (its session was lost) resumes under the issue’s profile.
dismiss-input pauses the issue and records which question was dismissed
(its tracker comment). When the issue is active again, that same unanswered
comment does not block it as input_required again; a new question does.
The record is kept in input_required.json in the daemon log directory and dropped when the
issue reaches a terminal state.
provide-input with fromAgent: true (#216) is a reply relayed for an agent,
such as itervox mcp’s reply_input tool: it answers an ordinary input
request but never a guardrail approval — the event loop ignores it for an
approval, so approvals stay human-only even when one appears after the
caller checked.
provide-input with via: "slack" (#230) is a human reply the hub’s Slack
app relays for an allow-listed Slack user: it answers input requests and
guardrail approvals like a dashboard reply, is mirrored to the tracker the
same way, and the input_answered, guardrail_approved and
guardrail_blocked feed events record via: "slack". via is optional and a
closed enum: any other value, or via together with fromAgent, is
400 bad_request (field: "via").
failures/ack (CORE-175) acknowledges the issue’s worker_failed /
worker_stalled rows in recentFailures that occurred at or before upTo
(RFC 3339), so the dashboard’s attention inbox stops counting them; a newer
failure is not covered. 400 bad_request for a missing or unparsable upTo,
404 issue_not_found when the issue has no such row, 503 orchestrator_busy
(Retry-After: 1) when the event queue is full. The ack is applied by the
event loop (the latest upTo per issue wins), is allowed while the daemon
drains (it starts no work), and is not persisted: like recentFailures, it
does not survive a restart, and it is dropped once the issue’s failures leave
the ring. Offered only when capabilities includes failure_ack.
provide-input / dismiss-input return 404 not_found when the issue is not
currently in input_required. provide-input returns 409 inline_input_enabled
when agent.inline_input: true — the tracker is the only reply channel in that
mode. The 409 is checked first: in inline mode the route refuses regardless
of the request body or the issue’s state. The agent-action provide-input route
(POST /agent-actions/{identifier}/provide-input) is unaffected.
Operator comments are plain comments (no managed marker): they can fire
tracker_comment_added automations and are delivered through the write-ahead
outbox when it is enabled. To answer an input-required agent, use
provide-input. The body is required and capped at 10 KiB; an empty or
oversize body returns 400 bad_request with field: "body".
Inferred-dependency override
Section titled “Inferred-dependency override”POST dismisses the LLM-inferred dependency gating layer for one issue;
DELETE restores it. This is the only mutation surface behind the dashboard’s
Deps tab.
Two things to know:
- Tracker-declared blockers are unaffected.
issue.BlockedBystays a hard block regardless of an override — this endpoint only relaxes the inferred layer. 202means queued, not applied. The change is routed through the orchestrator event loop. PollGET /stateor watch the SSE stream to observe the resultingInferredDepsentry.
Unlike the sibling issue actions there is no “must already be in state X”
precondition, so a failure has exactly one cause: the orchestrator’s event
channel was full. That returns 503 deps_override_queue_full rather than
404, signalling retry rather than unknown identifier.
Sessions
Section titled “Sessions”The Sessions panel (#178) — the dashboard’s /sessions page and the Mac app’s
Sessions window. A session is an agent CLI session, identified by the CLI’s
own session ID; itervox writes only to sessions it started. Sessions started
by hand on the daemon’s host are listed read-only with owner: "external".
GET /api/v1/sessions
Section titled “GET /api/v1/sessions”The daemon’s agent sessions: every running itervox run, every session waiting for (or resuming from) a human reply, and the recent sessions started by hand on the daemon’s host. Sessions waiting for input come first, then resuming ones, then running ones, oldest first within each; sessions started by hand come last, most recently written first.
{ "generatedAt": "2026-10-15T09:00:00Z", "sessions": [ { "id": "6f1c…", "owner": "itervox", "identifier": "ENG-2", "backend": "claude", "status": "input_required", "queuedAt": "2026-10-15T08:59:00Z", "inputContext": "Which database should I use?" }, { "id": "0b9e…", "runId": "run-2a78…", "owner": "itervox", "identifier": "ENG-1", "title": "Fix the login redirect", "profile": "coder", "backend": "claude", "workerHost": "gpu-1", "status": "running", "startedAt": "2026-10-15T08:40:00Z", "turnCount": 2, "lastEvent": "Running the test suite", "steering": "resume", "messages": [ {"id": "msg-…", "text": "Also update the docs.", "status": "delivered", "delivery": "resume", "queuedAt": "…", "deliveredAt": "…"} ] }, { "id": "c41d…", "owner": "external", "identifier": "", "title": "Add a health check", "backend": "claude", "status": "running", "cwd": "/work/app", "startedAt": "2026-10-15T07:10:00Z", "updatedAt": "2026-10-15T08:58:00Z", "inUseReason": "a claude process (4242) is running in the session's directory; it may be this session" } ]}| Field | Meaning |
|---|---|
id | The agent CLI’s session ID (Claude Code session, Codex thread). Empty in the first seconds of a run, until the CLI reports it; runId addresses the session meanwhile. |
runId | Itervox’s run ID (running sessions only). |
owner | itervox for this daemon’s runs — only those take replies and messages; external for a session started by hand (read-only, no identifier). |
status | running, input_required or pending_input_resume; for a session started by hand, running while its CLI may still be running (with inUseReason) and exited once it is not. |
cwd | The directory of a session started by hand. |
updatedAt | A session started by hand: its transcript’s last write. |
inUseReason | A session started by hand with status: "running": why it counts as still running. |
kind | tmux for a session itervox started in tmux (New session); reviewer for a reviewer run. |
tmuxPane | The tmux pane the session runs in, {"id": "%3", "label": "work:0.0"}; null when none. |
controllable | The panel may show its screen and type into it (Sessions in tmux): a session itervox started in tmux, or a hand-started one in a matched pane with sessions.tmux_control, while tmux is installed. |
attachCommand | A session itervox started in tmux: the command that attaches a terminal to it. |
startedAt / queuedAt | When the run started / when it started waiting for input. |
inputContext | The agent’s question while it waits. |
steering | Running sessions: live (a message is written into the running turn — local Claude with agent.live_steering) or resume (delivered as the prompt of the next turn, which resumes the session). |
messages | Operator messages sent to the issue’s sessions, newest last (at most 20): status queued, delivered (with delivery live or resume) or dropped (with reason). |
The response also carries tmux — {"available": true, "version": "tmux 3.4", "installHint": "brew install tmux", "control": false}, re-detected every
discovery pass (control is sessions.tmux_control) — and newSession —
{"projectRoot": "…", "folders": ["…"], "profiles": ["…"], "max": 8}, what
New session offers (the project directory, then itervox’s workspaces).
503 not_configured when the daemon was built without the sessions client.
Messages are runtime state: they do not survive a daemon restart. Which sessions started by hand are listed is set by
sessions: (default: the last 24 hours, inside
the project directory only).
POST /api/v1/sessions/{id}/message
Section titled “POST /api/v1/sessions/{id}/message”Queues an operator message for a running session. {id} is the session’s
id, or its runId before the CLI reported an ID. For a controllable
session in tmux the text is pasted into its pane instead, then Enter is
pressed unless submit is false ({"text": "…", "submit": false};
message and text are interchangeable), and the answer is 202 with
"status": "delivered", "delivery": "tmux".
{"message": "Also update the docs."}202 {"message":{"id":"msg-…","text":"…","status":"queued","queuedAt":"…"}} —
the message is queued; its status in GET /api/v1/sessions moves to
delivered or dropped. A session waiting for input takes a reply through
POST /issues/{identifier}/provide-input instead.
A delivered message is also kept, redacted, in the run’s history entry
(steers, see Run history).
| Status | Code | When |
|---|---|---|
400 | bad_request | Missing, empty or over-10 KiB message (field: "message") |
403 | not_owned | Itervox did not start that session and it is not controllable through tmux |
404 | not_found | No running session with that ID |
409 | input_required | The session is waiting for input: use provide-input |
409 | tmux_unavailable / pane_gone | A tmux session: see Sessions in tmux |
503 | orchestrator_busy | Event queue full (Retry-After: 1) |
GET /api/v1/sessions/{id}/transcript
Section titled “GET /api/v1/sessions/{id}/transcript”A page of the transcript of a session started by hand, read from the CLI’s
own transcript file. Query: limit (1–500,
default 100 entries) and before (the cursor from the previous page; omitted
= the newest entries). Entries are oldest first; each text is redacted with
the daemon’s log redaction and abbreviated (truncated: true). Tool calls
appear by name (kind: "tool"), tool results abbreviated
(kind: "tool_result"); thinking, sub-agent sidechains and the CLI’s own
context messages are left out.
{ "id": "c41d…", "backend": "claude", "entries": [ {"role": "user", "kind": "text", "text": "Add a health check", "at": "2026-10-15T07:10:02Z"}, {"role": "assistant", "kind": "tool", "text": "Edit", "at": "…"}, {"role": "assistant", "kind": "text", "text": "Done: GET /healthz returns 200.", "at": "…"} ], "before": 73400320, "hasMore": true, "size": 74066206}before is present only when hasMore. 404 not_found for a session that is
not listed (only a listed session’s transcript can be read — the path never
comes from the client); 400 bad_request for a bad before or limit.
Sessions in tmux
Section titled “Sessions in tmux”Sessions running in a tmux pane (#178) — hand-started ones the daemon matched
to a pane, and the ones it started with POST /api/v1/sessions — can be read
and typed into through tmux. A hand-started session is controllable only with
sessions.tmux_control: true; every write needs tmux on the
daemon’s PATH and re-checks, at that moment, that the pane still exists and
still runs the session’s process. Writes are audited (sessions: tmux send
with session, pane, kind and size — never the text) and counted in
itervox_tmux_sends_total{kind}.
Errors common to the tmux endpoints:
| Status | Code | When |
|---|---|---|
403 | not_controllable | Not running in a pane itervox may control (keys, screen) |
409 | tmux_unavailable | tmux is not installed on the daemon’s host; message carries the install command |
409 | pane_gone | The pane is gone, or no longer runs this session |
GET /api/v1/sessions/{id}/screen
Section titled “GET /api/v1/sessions/{id}/screen”The pane’s text: capture-pane of the last lines (1–2000, default 200)
lines of screen and scrollback, plain text without escape sequences.
{"id": "itervox-3f9a1c", "pane": "%7", "label": "itervox-3f9a1c:0.0", "text": "╭─ Claude Code …", "lines": 200, "capturedAt": "2026-10-15T09:00:01Z"}404 not_found for an unknown session; 400 bad_request for a bad lines.
POST /api/v1/sessions/{id}/keys
Section titled “POST /api/v1/sessions/{id}/keys”Presses one key: {"key": "Enter"}. Only Enter, Escape, Up, Down,
Left, Right, Tab, C-c and the digits 1–9 are accepted
(400 key_not_allowed otherwise). 202 {"ok": true, "key": "Enter"}.
POST /api/v1/sessions/{id}/terminal/ticket
Section titled “POST /api/v1/sessions/{id}/terminal/ticket”A ticket for the session’s live terminal (#298): {"mode": "read"}
(operator; the default) or {"mode": "write"} (admin, and only with
sessions.terminal_write: true). Valid for 30 seconds, for one connection,
to this session in this mode, for the token that asked.
{"ticket": "itvt_…", "mode": "read", "expiresAt": "2026-11-17T10:00:30Z", "url": "/api/v1/sessions/itervox-3f9a1c/terminal?ticket=itvt_…"}403 insufficient_scope (viewer, or write below admin),
403 terminal_write_disabled, 501 terminal_unsupported (Windows),
429 too_many_terminals (16 open), plus the errors of the screen route.
GET /api/v1/sessions/{id}/terminal?ticket=…&cols=…&rows=…
Section titled “GET /api/v1/sessions/{id}/terminal?ticket=…&cols=…&rows=…”The live terminal’s WebSocket, authenticated by the ticket (no bearer
header; the hub refuses it). The daemon runs tmux attach-session (-r
for a read ticket) in a pseudo-terminal sized cols x rows and sends
what it draws as binary frames. The client sends binary frames whose first
byte is the op: 0x00 + bytes typed (ignored for a read ticket), 0x01 +
cols + rows (uint16, big-endian) to resize. Closing the socket detaches;
the session keeps running. Refusals before the upgrade:
401 ticket_invalid / ticket_expired, 403 ticket_wrong_session,
403 ticket_wrong_principal (the token was revoked or lost the scope, or
another token’s header came with it), 403 origin_not_allowed.
POST /api/v1/sessions
Section titled “POST /api/v1/sessions”Starts an interactive agent CLI in a new tmux session itervox-<id> (New
session):
{"backend": "claude", "cwd": "/work/app", "profile": "coder", "prompt": "Fix the flaky login test."}backend is claude or codex. cwd (default: the WORKFLOW.md
directory) must be the project directory, a directory inside it, or one of
itervox’s workspaces. The CLI is the profile’s command (else agent.command)
when its binary is that backend, else the backend’s binary, run interactively
(no -p) with the profile’s permission_mode — by default the confining one:
--permission-mode acceptEdits (Claude), --sandbox workspace-write (Codex) —
and prompt as its first prompt. The session is owned by itervox (owner: "itervox", kind: "tmux"), controllable whatever sessions.tmux_control
says, and does not count toward max_concurrent_agents.
201 {"session":{…,"kind":"tmux","controllable":true,"attachCommand":"tmux attach -t itervox-3f9a1c"}}.
| Status | Code | When |
|---|---|---|
400 | bad_request | Bad backend, a cwd outside the project and workspaces (field: "cwd"), an unknown profile, the CLI not on the daemon’s PATH (field: "backend"), an over-10 KiB prompt |
409 | tmux_unavailable | tmux is not installed |
429 | too_many_sessions | 8 tmux sessions itervox started are running |
These sessions are runtime state carried across WORKFLOW.md reloads. They
are tagged with tmux user options (@itervox-project and others), and a
restarted daemon re-adopts a session named itervox-<id> whose
@itervox-project is its own project directory (never by name alone), up to
the cap of 8: such a row has "adopted": true, and "guardrailsStale": true
when its guardrails were prepared by the previous daemon process (its pushes
that guardrails.lanes must report are refused; see
Sessions → After a daemon restart).
POST /api/v1/sessions/{id}/stop
Section titled “POST /api/v1/sessions/{id}/stop”Stops a session (admin). Body {"force": false} (optional).
- A tmux session itervox started (or re-adopted): presses the CLI’s interrupt
(Claude Code:
C-ctwice; Codex:C-c), waits up to 5 s for the tmux session to end, then runstmux kill-sessionif it is still there.force: truerunstmux kill-sessionat once. - A hand-started session in a controllable pane (
sessions.tmux_control): the interrupt keys only, neverkill-session;forceis refused.
200 {"id": "itervox-3f9a1c", "outcome": "stopped"} — outcome is
stopped (the CLI quit), killed (tmux kill-session) or interrupted (a
hand-started CLI that is still running).
| Status | Code | When |
|---|---|---|
403 | not_controllable | A hand-started session outside a controllable tmux pane: stop it in its own terminal |
403 | not_owned | force on a session itervox did not start |
404 | not_found | Unknown session |
409 | tmux_unavailable / pane_gone | As for the other tmux endpoints |
DELETE /api/v1/sessions/{id}
Section titled “DELETE /api/v1/sessions/{id}”The same as a force stop of a tmux session itervox started (tmux kill-session). 200 {"ok": true}; 403 not_owned for any other session;
404 not_found for an unknown id; 409 tmux_unavailable without tmux.
Snapshot endpoints
Section titled “Snapshot endpoints”| Method | Path | Response |
|---|---|---|
GET | /issues/{identifier}/logs | IssueLogEntry[] |
GET | /issues/{identifier}/sublogs | IssueLogEntry[] |
GET | /logs/identifiers | string[] |
Clear endpoints
Section titled “Clear endpoints”| Method | Path | Success response |
|---|---|---|
DELETE | /issues/{identifier}/logs | {"ok":true} |
DELETE | /issues/{identifier}/sublogs | {"ok":true} |
DELETE | /issues/{identifier}/sublogs/{sessionId} | {"ok":true} |
DELETE | /logs | {"ok":true} |
Notes:
/issues/{identifier}/logsreads the in-memory orchestrator log buffer./issues/{identifier}/sublogsreads persisted agent session logs and returns an empty array when no logs exist./logsis an SSE stream of the daemon log file, not a JSON endpoint.
Runtime settings
Section titled “Runtime settings”All settings endpoints persist the value and apply it in memory. A setting in
the agent, polling, server or workspace section (workers, inline
input, workspace auto-clear, max retries, the switch budget, SSH hosts,
dispatch strategy, the reviewer) is written to the project settings file
.itervox/settings.jsonc, keeping its comments, and removed from
WORKFLOW.md if WORKFLOW.md set it (see
Settings files). The rest
(tracker states, failed state, dependencies, automations, profiles, the
project filter, available models) is written to WORKFLOW.md. None of them
reloads WORKFLOW.md, so saving a setting never touches
an in-flight agent turn — this now includes /settings/tracker/states, the
Linear project filter (PUT /projects/filter) and
POST /settings/models/refresh, which used to reload (CORE-160).
| Method | Path | Request body | Success response |
|---|---|---|---|
POST | /settings/workers | {"workers":5} or {"delta":1} | {"workers":5} |
POST | /settings/inline-input | {"enabled":true} | {"ok":true} |
POST | /settings/workspace/auto-clear | {"enabled":true} | {"ok":true,"autoClearWorkspace":true} |
PUT | /settings/tracker/states | {"activeStates":[...],"terminalStates":[...],"completionState":"Done"} | {"ok":true} |
PUT | /settings/tracker/failed-state | {"failedState":"Failed"} (empty string = pause instead) | {"ok":true,"failedState":"Failed"} |
PUT | /settings/agent/max-retries | {"maxRetries":5} | {"ok":true,"maxRetries":5} |
PUT | /settings/agent/max-switches-per-issue-per-window | {"maxSwitchesPerIssuePerWindow":2} | {"ok":true,"maxSwitchesPerIssuePerWindow":2} |
PUT | /settings/agent/switch-window-hours | {"switchWindowHours":6} | {"ok":true,"switchWindowHours":6} |
POST | /settings/ssh-hosts | {"host":"builder-1","description":"GPU box"} | {"ok":true} |
DELETE | /settings/ssh-hosts/{host} | — | {"ok":true} |
PUT | /settings/dispatch-strategy | {"strategy":"round-robin" | "least-loaded"} | {"ok":true} |
POST | /settings/deps-analysis-mode | {"mode":"auto" | "manual"} | {"ok":true,"mode":"auto"} |
DELETE | /workspaces | — | 202 {"ok":true} |
POST | /refresh | — | 202 {"queued":true,"queued_at":"..."} |
POST | /automations/{id}/test | {"identifier":"ENG-42"} (target issue identifier) | {"ok":true} |
Settings layers
Section titled “Settings layers”The schema-driven Settings section’s endpoints (#158). See Settings files.
| Method | Path | Request body | Success response | Errors |
|---|---|---|---|---|
GET | /settings/schema | — | the settings JSON Schema (the published settings.schema.json) | — |
GET | /settings/layers | — | {"schemaUrl":"…","layers":[{"name":"user"|"project"|"local","path","writable","exists","raw","version","values":{"agent.max_turns":4,…},"unknown":["…"],"error"?}],"effective":[{"key","value","layer","path"?}]} | — |
PUT | /settings/layers/{layer} | {"baseVersion":"<version from GET>","values":{"agent.max_turns":4,"agent.ssh_hosts":null}} (form: each key set, null removes it; comments kept) or {"baseVersion":"…","raw":"<JSONC text>"} (written as typed) | the layers as above plus "layer", "applied" (changed settings applied to the running daemon), "restartRequired" (changed settings that apply at the next restart or reload) and "shadowed" (key → the higher layer that still wins) | 400 settings_invalid (a key Itervox does not read, a wrong type or enum, a key edited on another page, or a config that does not load; nothing written), 404 unknown_layer, 409 settings_stale (the file changed since baseVersion; "" means it did not exist), 503 settings_reloading |
A project or local save also removes the keys it sets from WORKFLOW.md; a
user save never edits the project.
The Rules editor’s endpoints (#157). Rules are files the daemon reads again for every run (see Rules), so a save applies to the next run and reloads nothing.
| Method | Path | Request body | Success response | Errors |
|---|---|---|---|---|
GET | /rules | — | {"schemaUrl":"…","layers":[{"name":"user"|"project"|"local","path","writable","exists","raw","version","rules":[Rule],"error"?}]} | — |
PUT | /rules/{layer} | {"baseVersion":"<version from GET>","rules":[Rule]} (form: only changed rules and fields are rewritten, comments kept) or {"baseVersion":"…","raw":"<JSONC text>"} (written as is) | the saved layer | 400 rules_invalid (not a valid rules file; nothing written), 404 unknown_layer, 409 rules_stale (the file changed since baseVersion; "" means it did not exist) |
GET | /rules/preview?profile=&issue= | — | {"profile","backend","projects","rules":[Rule + "layer","overrides"?],"conflicts":[{"id","layer","keptLayer","message"}],"errors":[{"layer","path","message"}],"block","hash","ids","templatePlacesRules"} | — |
A Rule is {"id","severity":"must"|"should","text","description"?,"scope"?:{"projects"?,"profiles"?,"backends"?}}. Running rows and
history rows in /state carry the run’s rulesHash and ruleIds (omitted
when no rule applied).
Memory
Section titled “Memory”The Memory page’s endpoints (#202). Memory lives in two files the daemon
reads again for every run (~/.itervox/memory.json, private, and
.itervox/memory.json, project shared; see the configuration reference,
“Memory files”), so a change applies to the next run and reloads nothing.
Every write redacts secrets first; text over 2000 bytes (or a list over 32
items of 512 bytes) is refused.
| Method | Path | Request body | Success response | Errors |
|---|---|---|---|---|
GET | /memory | — | {"enabled","tokenBudget","promptShareTokens","schemaUrl","files":[{"scope":"private"|"project","path","exists","writable","error"?}],"entries":[Entry],"lessons":{"enabled","drafter","scope","autoApprovePrivate","autoApproveProject","maxPerIssue","rateWindowHours","staleAfterRuns","rejected","enforceThreshold"}} | — |
POST | /memory | {"text","type"?,"scope"?,"tags"?,"profiles"?,"pinned"?,"status"?,"source"?} (type defaults to fact, scope to private, status to active; posting a deleted entry back, id and timestamps included, restores it) | 201 the entry | 400 memory_invalid, 409 memory_conflict (id in use), 413 memory_too_large |
PUT | /memory/{id} | any of {"text","type","tags","profiles","pinned","status"} (omitted fields stay) | the entry | 400 memory_invalid, 404 memory_not_found, 413 memory_too_large |
DELETE | /memory/{id} | — | the deleted entry | 404 memory_not_found |
POST | /memory/{id}/pin | {"pinned":true|false} (empty body pins) | the entry | 404 memory_not_found |
POST | /memory/{id}/promote | — | {"entry":Entry,"path":"<project file>","diff":"<git diff of it>","diffNote"?} | 404 memory_not_found, 409 memory_conflict (already shared) |
POST | /memory/{id}/approve | {"scope"?:"private"|"project","text"?} (optional; scope defaults to the file the proposal is in, text replaces the lesson text: edit, then approve) | the entry, now active (moved to scope, lesson.approvedAt set) | 400 memory_invalid (bad scope), 404 memory_not_found, 409 memory_conflict (not proposed), 413 memory_too_large |
POST | /memory/{id}/reject | — | the removed proposal; the lesson is remembered in .itervox/lessons-rejected.json and not proposed again | 404 memory_not_found, 409 memory_conflict (not proposed) |
POST | /memory/{id}/promote-to-rule | {"layer":"user"|"project","severity"?:"must"|"should","text"?} (admin, #217; severity defaults to should, text to the lesson’s) | {"entry":Entry,"layer","path","rule":{"id":"lesson-<entry id>","severity","text","description","scope"?}}; the lesson is now archived with lesson.rule pointing at the rule | 400 rules_invalid (bad severity, empty text, or the layer file does not parse), 404 memory_not_found, 404 unknown_layer (not user or project, or the layer is off), 409 memory_conflict (not an approved lesson, or a different rule already has that id), 409 rules_stale |
POST | /memory/{id}/enforcement/accept | — | {"entry":Entry,"issue":{"identifier","title","url"?}}: the Enforce: <lesson> issue created in the tracker (in memory.lessons.enforce_issue_state), carrying the suggestion’s draft and the lesson’s evidence; lesson.enforcement.status is now accepted (#217) | 404 memory_not_found, 409 memory_conflict (no pending suggestion), 502 enforcement_issue_failed (the tracker refused) |
POST | /memory/{id}/enforcement/dismiss | — | the entry, lesson.enforcement.status: "dismissed" (never suggested again for it) | 404 memory_not_found, 409 memory_conflict (no pending suggestion) |
GET | /memory/recall?q=&profile=&budget= | — | {"enabled","profile","budget","tokens","dropped","entries":[{"id","type","text","scope","tags"?,"pinned"?}],"overBudget"?,"unreadableFiles"?} | 400 bad_request (q missing or over 2000 bytes, budget outside 1–8000) |
An Entry is the file’s entry (id, type: preference|fact|decision|lesson,
text, scope, profiles?, tags?, pinned?, status: active|proposed|archived,
source?: {"kind"?,"issue"?,"runIds"?,"links"?}, created, updated, lastUsed?, useCount?,
lesson?: {"trigger","situation"?,"wentWrong"?,"worked"?,"correction"?,"confidence"?,"evidence"?,"draftedBy"?,"approvedAt"?,"verification"?,"rule"?:{"layer","id","at"},"enforcement"?:{"kind":"lint"|"type"|"test"|"docs"|"rule","status":"suggested"|"accepted"|"dismissed","title"?,"draft","draftedBy"?,"suggestedAt","decidedAt"?,"issue"?,"issueUrl"?}})
plus path (the file that holds it), runs (the newest runs in history whose prompt
carried it: [{"runId"?,"identifier","status","finishedAt"}], at most 20) and, for an approved
lesson that is not helping (#203), notHelping: "unused" (none of the last
memory.lessons.stale_after_runs runs used it), "failing" (most runs that used it failed)
or "enforced" (its enforcement suggestion was accepted, #217) with notHelpingReason, and for every
lesson analytics: {"applied","runs","succeeded","failed"} (how many runs had it in their prompt,
and the runs in history that used it by outcome; #217). lessons also carries enforceThreshold.
lesson.trigger is input_reply, steering, failed_then_succeeded, or since #217
reviewer_ask, reverted_pr or recipe. Lessons Itervox proposes arrive as status: "proposed" entries;
approve and reject change the snapshot’s proposedLessons, which is pushed at once. A promote’s diff
is git diff of the project file after the move, or the whole file when git does not track it
yet (diffNote says so); outside a git repository it is empty. A file that does not parse is
reported in files[].error and never rewritten (400 memory_invalid) until it is fixed.
recall (#216, viewer scope) is the memory search behind itervox mcp’s
recall tool, ranked exactly like run-time retrieval: the selection a run of
profile (default default) on an issue titled q would get — active entries
in that profile’s scope, pinned first, then by relevance — within budget
tokens (default the run-time memory budget). dropped counts what the budget
left out; proposed and archived entries are never returned.
Skills Inventory
Section titled “Skills Inventory”The skills endpoints expose the Repo Analysis -> Capabilities inventory and recommendation
surface. They use the same dashboard bearer token as the rest of /api/v1.
| Method | Path | Request body | Success response | Notes |
|---|---|---|---|---|
GET | /skills/inventory | — | Inventory | 503 inventory_unavailable before the first successful scan |
POST | /skills/scan | — | Inventory | Forces a fresh filesystem scan |
GET | /skills/issues | — | InventoryIssue[] | Static analyzer recommendations |
POST | /skills/fix | {"issueID":"UNUSED_PROFILE","fix": Fix} | {"status":"ok"} | v0.2.0 only applies the non-destructive UNUSED_PROFILE edit-yaml fix; unsafe actions such as remove-mcp are rejected |
GET | /skills/analytics | — | AnalyticsSnapshot | Includes HasRuntimeEvidence; 503 analytics_unavailable only before analytics can be computed |
GET | /skills/analytics/recommendations | — | Recommendation[] | Runtime-side recommendations; empty until HasRuntimeEvidence is true |
POST | /skills/check-refs | {"profile":"worker","command":"codex","backend":"codex","text":"…"} | {"backend":"codex","sshHosts":[],"refs":[{"kind":"skill","name":"tdd","from":9,"to":12,"status":"missing","severity":"warn","issueId":"MISSING_SKILL_REF","message":"…"}]} | #123: runs the itervox doctor reference check over one draft prompt (SOUL.md or INSTRUCTIONS.md) for a profile with that command and backend. backend is the one the daemon resolves; each reference occurrence has status ok, missing or outside_repo (only with SSH hosts), and from/to are UTF-16 offsets into text. 503 inventory_unavailable before the first scan; 413 over 256 KiB |
GET | /skills/profile-backends | — | {"default":"claude","profiles":{"reviewer":"codex"}} | #123: the backend each configured profile runs on, resolved like doctor and the dispatcher do; default is the workflow’s |
Inventory is a direct inventory/recommendation snapshot, not a complete
normalized capability graph in v0.2.0. The response includes ScanTime,
Partial/ScanError for best-effort scanner failures, and Stale when a
tracked core config or discovered inventory file changed or disappeared since the scan. ORPHAN_MCP
scans skill names, frontmatter descriptions, and skill bodies. Duplicate MCP
recommendations are advisory because the daemon does not rewrite user-owned MCP
settings files.
Profiles, reviewer, models, and automations
Section titled “Profiles, reviewer, models, and automations”Profiles
Section titled “Profiles”| Method | Path | Request body | Success response |
|---|---|---|---|
GET | /settings/profiles | — | {"profiles": { "<name>": ProfileDef }} |
PUT | /settings/profiles/{name} | See body below | {"ok":true} |
DELETE | /settings/profiles/{name} | — | {"ok":true} |
Profile update body:
{ "command": "codex --model gpt-5-codex", "soul": "# qa SOUL\n\nYou are the QA specialist for this repository.", "instructions": "# qa INSTRUCTIONS\n\nRun focused verification and report failures clearly.", "soulFile": ".itervox/agents/qa/SOUL.md", "instructionsFile": ".itervox/agents/qa/INSTRUCTIONS.md", "backend": "codex", "enabled": true, "allowedActions": ["comment", "provide_input"], "createIssueState": "Todo", "originalName": "old-name"}For schema 2 profiles, soul and instructions are written to the referenced
SOUL.md and INSTRUCTIONS.md files. prompt is retained as a compatibility
field derived from instructions; new clients should use the file-backed fields.
Reviewer and models
Section titled “Reviewer and models”| Method | Path | Response |
|---|---|---|
GET | /settings/reviewer | {"profile":"reviewer","auto_review":true} |
PUT | /settings/reviewer | {"ok":true} |
GET | /settings/models | { "<backend>": [ModelOption] } |
POST | /settings/models/refresh | {"ok":true,"models":{ "<backend>": [ModelOption] }} — body {"backend":"claude" | "codex" | "opencode" | "all"} (default all; opencode lists opencode models and is left out of all when that finds none); rewrites agent.available_models in WORKFLOW.md and the live model list, without a reload. 503 settings_reloading like the other settings writes |
PUT /settings/reviewer request body:
{ "profile": "reviewer", "auto_review": true }Automations
Section titled “Automations”| Method | Path | Request body | Success response |
|---|---|---|---|
PUT | /settings/automations | {"automations":[AutomationDef]} | {"ok":true} |
There is no dedicated GET /settings/automations; the current list is exposed
via GET /state / GET /events.
Supported trigger types:
croninput_requiredtracker_comment_addedissue_entered_stateissue_moved_to_backlogrun_failedpr_opened— fires when a worker’s PR is detectedpr_merged— fires when the daemon-sidemerge_praction merges an itervox-managed PRpr_check_completed,pr_synchronized,pr_review_submitted,pr_mergeable_changed— fire on GitHub activity on a PR an Itervox run recorded; sourced fromPOST /api/v1/webhooks/pr-eventsor a poll of the open managed PRs (#173)rate_limited— fires when a worker run exhausts retries and Itervox classifies the terminal failure as rate-limit-driven. The switch cap limits automated switching; it is not the trigger condition.blockers_resolved— fires when dependency audit observes a previously blocked issue becoming unblocked.
Tracker event triggers are poll-derived, not webhook-derived. The event poll
runs every polling.automation_interval_ms (default 15 seconds) and fetches only
the states its rules need (see Automation event poll). tracker_comment_added compares only the latest
observed comment, so multiple comments between polls collapse to the latest
comment for trigger purposes.
Automation definitions preserve these optional policy/filter fields:
{ "id": "answer-stale-input", "enabled": true, "profile": "input-responder", "trigger": { "type": "input_required" }, "filter": { "maxAgeMinutes": 30, "inputContextRegex": "tests|review" }, "policy": { "autoResume": true }}{ "id": "rate-limit-switch", "enabled": true, "profile": "default", "trigger": { "type": "rate_limited" }, "policy": { "autoResume": true, "switchToProfile": "fallback", "switchToBackend": "codex", "cooldownMinutes": 45 }}maxAgeMinutes is only valid for input_required triggers.
rate_limited triggers require policy.autoResume: true for the automatic
profile/backend switch. switchToProfile, switchToBackend, and
cooldownMinutes are only valid for rate_limited triggers.
blockers_resolved may set policy.moveToState; the selected profile must
allow move_state before the daemon accepts that policy.
Validation failures return 400 with typed error codes such as:
duplicate_automation_idinvalid_croninvalid_timezoneinvalid_regexinvalid_trigger_typeinvalid_match_modeinvalid_limit
Dependency analysis
Section titled “Dependency analysis”Runs the LLM analyzer that populates the inferred-dependency sidecar. One job runs at a time.
| Method | Path | Response |
|---|---|---|
POST | /deps/analyze | 202 {"jobId":"..."} — returns the in-flight job’s ID if one is already running |
GET | /deps/analyze/{jobId} | DepsAnalyzeJobRow — status, chunk progress, issuesScanned |
DELETE | /deps/analyze/{jobId} | Cancels a running job; 404 if it already finished |
Status is one of running, succeeded, failed, or cancelled. Cancellation
is real rather than cosmetic: the job context threads into exec.CommandContext,
so cancelling kills the agent subprocess.
Jobs are bounded by agent.deps_analyzer_timeout_ms (default 10 minutes,
matching the dashboard’s poll deadline) and chunked at
agent.deps_analyzer_chunk_size issues per turn.
Outbox
Section titled “Outbox”The write-ahead outbox holds tracker writes that have not yet been confirmed.
Enabled by default via tracker.outbox.
| Method | Path | Response |
|---|---|---|
POST | /outbox/{id}/retry | Re-queues a failed or degraded entry |
DELETE | /outbox/{id} | Discards an entry permanently |
Discard is the operator remedy for a stuck entry: an entry enqueued with no observed from-state baseline (currently only the issue-discard path) is exempt from supersede-reconciliation and will not clear on its own.
Pending entries appear on the state snapshot as outboxEntries[], each with
id, kind, identifier, targetState, attempts, lastError, degraded,
enqueuedAt, nextAttemptAt, and — when the last attempt was deferred by a
tracker rate limit — rateLimitedUntil (RFC 3339). Rate-limit deferrals do not
increase attempts and never set degraded.
Projects (Linear only)
Section titled “Projects (Linear only)”These endpoints return 501 not_supported for trackers without project support.
| Method | Path | Request body | Success response |
|---|---|---|---|
GET | /projects | — | {"projects":[Project]} |
GET | /projects/filter | — | {"filter":["alpha","beta"]} or {"filter":null} |
PUT | /projects/filter | {"slugs":["alpha","beta"]} or {} | {"filter":[...],"ok":true} |
Notes:
- Empty array means “all issues”.
- Omitting
slugsresets to theWORKFLOW.mddefault.
Tracker scope and filter (#198, Linear and GitHub)
Section titled “Tracker scope and filter (#198, Linear and GitHub)”The tracker filter generalises the scope: a list of groups, conditions
ANDed inside a group, groups ORed (see the configuration reference, “Tracker
filter”). Keys are the WORKFLOW.md condition names: projects, teams,
assignee, labels_any, labels_all, labels_none, priority, states,
cycle, milestone. 501 not_supported for trackers without one.
| Method | Path | Request body | Success response |
|---|---|---|---|
GET | /tracker/scope | — | {"scope":{"projects":[],"assignee":"","labels":[],"filter":[{"labels_any":["agent"]}],"filterMode":true,"conditions":["assignee","labels_any",…]}} |
PUT | /tracker/scope | {"filter":[{"projects":["ENG"],"labels_none":["blocked"]},{"assignee":"me"}]} | {"scope":{...},"ok":true} |
POST | /tracker/filter/preview | {"filter":[...]} | {"count":12,"identifiers":["ENG-1","ENG-4",…]} |
GET | /tracker/teams | — | {"teams":[{"id":"…","key":"ENG","name":"Engineering"}]} ([] on GitHub) |
GET /tracker/scopealways returnsfilter:tracker.filter, or the legacy keys as one implicit group (filterMode: false),[]for every issue.conditionslists what the tracker supports (every condition on Linear;assignee, the label conditions,statesandmilestoneon GitHub).PUTwithfiltervalidates it with theWORKFLOW.mdparser (an unknown condition, an empty group, a bad priority or an unsupported condition:422 invalid_filter), resolves its assignees (422 assignee_not_found), writestracker.filteras one flow-style line, comments the legacy keys out (project_slugonly on Linear) and applies the filter without a reload; the tracker store pulls again and the automation poll rebaselines.[]reads every issue. The reload fence answers503 settings_reloading. A legacy body (projects/assignee/labels, Linear only) commentstracker.filterout.POST /tracker/filter/previewis read-only: it counts the issues in the active states the filter matches, through the same compiled query the poll uses, and lists the first 10 identifiers. Nothing is saved.- While a filter is in effect,
PUT /projects/filteranswers409 tracker_filter_in_effect(project_slug and tracker.filter cannot both be set). - The snapshot’s
trackerScopeis the filter’s summary (e.g.ENG · agent|ai · ¬blocked OR me · urgent) andfilterConditionsthe supported conditions (present when the tracker has a filter).
Also: GET /tracker/labels → {"labels":[...]} and GET /tracker/users → {"users":[{"id","name","email"}]} (on GitHub, the repository’s labels and assignable logins).
Agent actions
Section titled “Agent actions”These routes are intended for agent subprocesses that have been granted
daemon-backed permissions through profile allowed_actions.
| Method | Path | Request body | Success response |
|---|---|---|---|
POST | /agent-actions/{identifier}/comment | {"body":"..."} | {"ok":true} |
POST | /agent-actions/{identifier}/comment_pr | {"summary":"...","findings":[{"path":"...","line":42,"severity":"warning","body":"..."}]} | {"ok":true,"findings":N} |
POST | /agent-actions/{identifier}/create-issue | {"title":"...","body":"...","labels":["repo:web"],"blocked_by_source":true} (labels and blocked_by_source optional) | {"ok":true,"issue":{...}} |
POST | /agent-actions/{identifier}/move-state | {"state":"Todo"} | {"ok":true} |
POST | /agent-actions/{identifier}/provide-input | {"message":"..."} | {"ok":true} |
These routes require an Authorization: Bearer <grant-token> header carrying a
short-lived action grant for the specific issue and action.
The create-issue body takes optional labels and blocked_by_source (#253).
The issue is created in the profile’s create_issue_state. Each label must be
in the profile’s create_issue_labels (compared ignoring case; the allow-list’s
spelling is sent to the tracker): any other label, or any label when the
allow-list is empty, is refused with 403 agent_action_denied and the message
label_not_allowed:<label>, before anything is created; a blank label is a
400. Linear resolves the names among the source issue’s team and workspace
labels and fails the create when one does not exist; GitHub adds them beside
the state label; the local tracker writes them to the issue file.
blocked_by_source: true records the source issue as a blocker of the new one:
a Linear “blocks” relation, the Blocked by #N body line on GitHub, blocked_by
in a local issue file. If the issue was created but its Linear relation failed,
the error names the created issue. The itervox action create-issue shim sends
them for --label (repeatable) and --blocked-by-source.
When the daemon spawns a local agent subprocess for a profile that has any
allowed_actions configured, the following environment variables are injected
so the agent can call back into the daemon without operator-supplied secrets:
| Variable | Description |
|---|---|
ITERVOX_ACTION_TOKEN | The short-lived per-run action grant. Pass as Authorization: Bearer $ITERVOX_ACTION_TOKEN on every /agent-actions/... call. |
ITERVOX_DAEMON_URL | The base URL for the daemon (http://127.0.0.1:<port> by default). Build the action URL as $ITERVOX_DAEMON_URL/api/v1/agent-actions/$ITERVOX_ISSUE_IDENTIFIER/<action>. |
ITERVOX_ISSUE_IDENTIFIER | The issue this run belongs to (e.g. ENG-42). |
ITERVOX_CREATE_ISSUE_STATE | Set when allowed_actions includes create_issue; the tracker state for follow-up issues. Usually used as the state field in the create-issue body. |
ITERVOX_RUN_ID | The orchestrator’s run ID for this dispatch — useful for correlating logs. |
Profiles WITHOUT allowed_actions do not receive these env vars and the shim
PATH is unchanged. SSH remote workers also do not receive these env vars or the
local action shims in v0.2.0; the worker prompt warns that daemon-backed actions
are unavailable remotely.
Denials on these routes use codes such as:
unauthorizedagent_action_deniednot_supported
Core response shapes
Section titled “Core response shapes”ProfileDef
Section titled “ProfileDef”{ "command": "claude", "prompt": "# reviewer INSTRUCTIONS\n\nReview the change.", "soul": "# reviewer SOUL\n\nYou are the code reviewer.", "instructions": "# reviewer INSTRUCTIONS\n\nReview the change.", "soulFile": ".itervox/agents/reviewer/SOUL.md", "instructionsFile": ".itervox/agents/reviewer/INSTRUCTIONS.md", "backend": "claude", "enabled": true, "allowedActions": ["comment", "move_state"], "createIssueState": "Todo"}soulFile and instructionsFile mirror the WORKFLOW.md profile references.
The dashboard profile editor uses soul and instructions as the authoritative
editable text for schema 2 profiles.
AutomationDef
Section titled “AutomationDef”{ "id": "qa-ready", "enabled": true, "profile": "qa", "instructions": "Run the QA routine.", "trigger": { "type": "issue_entered_state", "state": "Ready for QA" }, "filter": { "matchMode": "all", "states": ["Ready for QA"], "labelsAny": ["qa"], "identifierRegex": "^ENG-", "limit": 10, "inputContextRegex": "continue|branch" }, "policy": { "autoResume": true }}TrackerIssue
Section titled “TrackerIssue”Returned by both GET /issues and GET /issues/{identifier}.
Important fields include:
orchestratorState:idle,running,retrying,paused,input_required,pending_input_resumeagentProfile,agentBackendcomments,labels,branchName,blockedByblockedByDetails: richer blocker metadata for UI/API clients. Each entry hasidentifierand may includestateandurl.blockedByremains the compatibility string-array form.review(GET /issues/{identifier}only): the issue’s latest review, when it has one.verdictslists each finished reviewer (profile,verdictapprove/block,reasons, linecomments,recordedAt);outcome(blocked,approvals,blocks,quorum) appears once every reviewer has run;inProgressis set while a multi-reviewer chain is still running.
IssueLogEntry
Section titled “IssueLogEntry”{ "level": "INFO", "event": "action", "message": "Write — updated README.md", "tool": "Write", "detail": "{\"status\":\"completed\",\"exit_code\":0}", "time": "12:34:56", "sessionId": "abc123"}Environment variables
Section titled “Environment variables”| Variable | Purpose |
|---|---|
ITERVOX_API_TOKEN | Explicit bearer token for non-loopback API access. |
LINEAR_API_KEY | Linear API token referenced from WORKFLOW.md. |
GITHUB_TOKEN | GitHub API token referenced from WORKFLOW.md. |
ITERVOX_DRY_RUN | Set to 1 to run the orchestrator without dispatching worker subprocesses. |