Skip to content

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.

http://localhost:8090/api/v1

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_TOKEN is set, that value is required.
  • If ITERVOX_SUPERVISOR_TOKEN is set (by a supervisor such as the macOS app), that value is required instead — even with server.allow_unauthenticated: true — and the daemon never prints or writes it. See Running under a supervisor.
  • If ITERVOX_API_TOKEN is unset and server.allow_unauthenticated is false (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 or ITERVOX_PRINT_TOKEN=1 (--no-print-token always suppresses it). Otherwise the token is written to <logs-dir>/api-token (mode 0600) and the log carries only its path and a sha256: fingerprint.
  • server.allow_unauthenticated: true disables auth entirely, on every bind. Renamed from server.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 with 403 cross_origin_forbidden: Sec-Fetch-Site: cross-site/same-site, or an Origin whose host and port differ from Host (scheme is not compared; Origin: null never matches). Requests with neither header (curl, scripts) and GET/SSE pass. Token mode has no origin check.
  • With server.allow_unauthenticated: true, every route (API, SSE, dashboard) refuses a request whose Host is a DNS name other than localhost, server.host or one in server.allowed_hosts with 403 host_not_allowed (DNS-rebinding guard). IP addresses always pass; GET /api/v1/health and GET /api/v1/ready are exempt. Token mode has no Host check.
  • GET /api/v1/health and GET /api/v1/ready are always auth-exempt — the only auth-exempt routes. GET /metrics is never auth-exempt.
Terminal window
curl -H "Authorization: Bearer $ITERVOX_API_TOKEN" \
http://localhost:8090/api/v1/state

The 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.

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.

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}/comment
  • POST /agent-actions/{identifier}/comment_pr
  • POST /agent-actions/{identifier}/create-issue
  • POST /agent-actions/{identifier}/move-state
  • POST /agent-actions/{identifier}/merge_pr
  • POST /agent-actions/{identifier}/provide-input

Profiles opt into these capabilities with allowed_actions, create_issue_state and create_issue_labels in WORKFLOW.md.


JSON errors use the typed envelope below:

{
"error": {
"code": "bad_request",
"message": "message is required",
"field": "message"
}
}
  • field is optional and is mainly used by settings/forms.
  • The dashboard surfaces message in its error toasts. A 503 whose code is orchestrator_busy, settings_reloading or deps_override_queue_full means nothing was enqueued or written; the dashboard retries such a request once after Retry-After. Other 503s are not retried.
  • Some legacy streaming code paths still use plain text responses for transport failures before SSE framing starts.

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.

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
}
FieldMeaning
readyloop_fresh, fewer than 3 consecutive failed tracker polls, and not draining.
loop_freshThe 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_okThe most recent tick polled the tracker and the poll succeeded (false before the first poll and while polling is shed for budget).
config_invalidThe last WORKFLOW.md reload failed validation; the daemon keeps running on its last valid config.
degradedA 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_untilRFC 3339 instant the tracker rate-limit gate lifts, null while it is closed.
drainingThe 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.


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.

Terminal window
curl -H "Authorization: Bearer $ITERVOX_API_TOKEN" http://localhost:8090/metrics
FamilyTypeLabelsMeaning
itervox_workers_runninggaugeAgent workers running now.
itervox_workers_maxgaugeagent.max_concurrent_agents as of the last tick.
itervox_retry_queue_lengthgaugeIssues waiting to retry.
itervox_automation_queue_lengthgaugeAutomation queue entries.
itervox_input_requiredgaugeIssues waiting for human input.
itervox_paused_issuesgaugePaused issues.
itervox_worker_exits_totalcounterreasonWorker exits (succeeded, failed, stalled, input_required, canceled_by_reconciliation).
itervox_tracker_requests_totalcounteradapter, outcomeTracker HTTP calls after in-call retries; outcome is ok, rate_limited or error (transport failure).
itervox_goroutine_panics_totalcounterPanics recovered on daemon goroutines (the site is in the log line).
itervox_events_dropped_totalcounterOrchestrator events that could not be delivered (full channel or send timeout).
itervox_client_errors_totalcounterkind, outcomeDashboard 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_totalcountertracker, resultTracker 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_totalcountertriggerList 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_totalcounterFailed runtime-ledger writes. Resets on a WORKFLOW.md reload.
itervox_transport_failures_totalcounterRetry-exhausted runs classified as transport failures. Resets on reload.
itervox_dispatch_ticks_totalcounterboundPoll ticks observed (any), and those that were slot-bound (slot) or dependency-bound (dependency). Resets on reload.
itervox_dispatch_eligible_waitinggaugeEligible issues waiting for a slot on the last tick.
itervox_dispatch_blocked_by_dependencygaugeCandidates held by a dependency gate on the last tick.
itervox_outbox_entriesgaugestateOutbox entries: pending (all), degraded, rate_limited.
itervox_tracker_rate_limited_until_secondsgaugeadapterUnix time the tracker rate-limit gate lifts; 0 while closed.
itervox_tracker_poll_consecutive_failuresgaugeConsecutive failed (non-rate-limited) candidate polls.
itervox_tracker_last_error_timestamp_secondsgaugekindUnix time of the last tracker failure (outage or rate_limited); absent when none.
itervox_event_loop_last_idle_timestamp_secondsgaugeUnix time the event loop last finished an iteration.
itervox_host_load1gaugeHost one-minute load average (system visibility; absent on Windows).
itervox_host_memory_total_bytesgaugeHost physical memory.
itervox_host_memory_available_bytesgaugeHost memory available to new work.
itervox_workspace_disk_free_bytesgaugeFree space on the volume holding workspace.root.
itervox_workspace_disk_lowgauge1 while free workspace disk is below workspace.disk_warn_free_gb (or the pause threshold).
itervox_run_cpu_percentgaugeidentifierA live local run’s CPU use, percent of one core, summed over its process tree.
itervox_run_memory_rss_bytesgaugeidentifierA live local run’s resident memory, summed over its process tree.
itervox_run_processesgaugeidentifierA 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.


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: keepalive with data: {} after 25 seconds of stream inactivity.
  • Named event event: feed with data: {"seq":N} (#213) on connect and after every snapshot whose feedSeq is new: the newest event feed seq. A client that keeps a cursor reads GET /api/v1/feed?since=<cursor> when it moves. It rides the same coalesced delivery as the snapshot.

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

Per-issue session/subagent log SSE stream.

  • Event name: sublog
  • Event shape: id: <epoch>-<seq>\nevent: sublog\ndata: <JSON IssueLogEntry>\n\n (CORE-153). epoch identifies 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 gets id: <epoch>-0\nevent: gap and a full replay.
  • On mid-stream fetch failure the server emits:
event: error
data: {"code":"fetch_failed","message":"..."}

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.

Returns the current orchestrator snapshot as JSON.

Response 200: StateSnapshot

Useful top-level fields include:

  • running, history, retrying, paused
  • inputRequired
  • availableProfiles, profileDefs
  • automations
  • automationQueue, automationQueueBackpressure
  • dependencyAudit, dependencyGraphNodes, dependencyGraphEdges — dependencyGraphNodes lists only issues that are the source or target of at least one edge (#210); an audited issue with no blocker and no dependent is in dependencyAudit only
  • sshHosts, dispatchStrategy
  • autoClearWorkspace, inlineInput
  • configInvalid
  • lastTrackerError — 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/runningForMs describe the poll now running; slow is set when it (or, when idle, the last one) took longer than slowAfterMs (the interval plus half an interval, at least 1 s). degraded is set once three polls in a row hit a transport failure: the daemon then skips tracker reads until breakerOpenUntil (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" }. mode is store when the local tracker store pulls in the background (tracker.store.enabled), direct when each poll reads the tracker, and local_sync (#118) when local issue files are synced with Linear or GitHub (tracker.sync): lastPullAt is then the sync’s last good cycle, syncIntervalMs is tracker.sync.interval_ms, and the pending* counts include the sync’s queued remote writes. lastPullAt is the last successful pull (store) or candidate poll (direct), absent until one succeeds; lagMs is now − lastPullAt when the snapshot was built (clients should recompute it on their own clock). stale is lagMs > lagWarnAfterMs, or “never pulled and the last pull failed”. lagWarnAfterMs is three pull intervals and at least five minutes (syncIntervalMs: tracker.store.sync_interval_ms, the webhook safety net with tracker.webhooks, or polling.interval_ms in direct mode). cursorAt is the newest tracker update the store has seen. lastError is the newest failed pull while pulls keep failing (a good pull clears it), classified: kind is rate_limited, auth, not_found, api_status, graphql, timeout, network, canceled or unknown (treat unknown values as opaque), and message is a fixed summary, never the tracker’s response. The pending* counts describe the write-ahead outbox and overlap: pendingBatched waits for tracker.push_interval_ms (pushIntervalMs, 0 with the outbox off), pendingRetrying failed at least once, pendingDegraded failed five times or more, pendingRateLimited waits for a tracker rate-limit reset. nextPushAt is when the next queued write is due (at or before generatedAt means 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" }. limitedUntil is always present and null unless the vendor published a reset time; retryAt is when the breaker half-opens (the reset, or the cooldown end). This is the AGENT backend, unrelated to rateLimits (tracker API budget) and outboxEntries[].rateLimitedUntil (tracker writes). Absent on older daemons.
  • running[] rows carry title (the issue’s title), profile (the run’s resolved profile, omitted for the default) and costUsdEstimated (the run’s estimated cost as its backend reports it; omitted until reported, always for Codex) (#240), and isolation (the sandbox the run’s agent runs in: bubblewrap, landlock or sandbox-exec; omitted when unsandboxed, #258). lastEvent is redacted like every log surface.
  • inputRequired[] rows carry guardrailApproval: true for a guardrail approval request (#240): approve (or itervox 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 on running[].backend. /api/v1/issues rows carry the same object as autoSwitch, and an issue held by an open breaker has ineligibleReason: "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_failed or budget_exceeded (the issue reached agent.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 (see POST /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) — null while 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" } }. costUsdEstimated is the sum of Claude’s client-side total_cost_usd estimates — counted per agent session, so a resumed session is not counted twice — and is null until a Claude run reports a cost. Codex reports no cost: codexRuns > 0 means the estimate covers Claude runs only. costCoverage also carries runsByBackend (runs per backend name, e.g. { "claude": 1, "opencode": 2, "cursor": 1 }) and costBackends (the backends that reported a cost; OpenCode and custom backends can report one). A backend with runs that is not in costBackends is left out of the estimate. claudeRuns and codexRuns count 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" }. kind is worker_failed, worker_stalled, tracker_poll, tracker_write, persist, outbox, panic, client or automation (an automation that could not be dispatched, e.g. pr_merged after a merge) (treat unknown kinds as opaque). message is 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 a count. occurredAt is when the failure happened (latest repeat), recordedAt when the daemon recorded it; an off-loop failure can be recorded after a newer one, so sort by occurredAt to display. Rate-limited polls and outbox rate-limit deferrals are not failures. The list survives a WORKFLOW.md reload 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.

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.retrying and counts.paused are counts of GET /state (paused counts paused issues); counts.inputRequired and counts.pendingInputResume split inputRequired[] by state; counts.recentFailures is the length of recentFailures[].

  • paused is the daemon-wide dispatch pause (#213): true while nothing new starts. pauseReason and pausedUntil describe it and are omitted when unset; the pause, its reason and its until are part of the ETag digest.

  • version is the daemon’s build version (dev for a local build).

  • capabilities (#228) are the optional features the daemon serves, as in GET /state; omitted when there are none. The hub lists them per project.

  • The ETag header is "<etag>". The tag is a digest of every field except generatedAt, 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 carry Cache-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).


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
}
  • seq increases by one per event and never repeats, also across restarts. Only the daemon’s event loop assigns it.
  • nextSeq is the cursor for the next read: the last event returned, or your since when nothing was newer. hasMore means limit cut the page.
  • truncated: true means events after your cursor have left the window (or your cursor is ahead of headSeq, e.g. the feed file was removed): resynchronize from GET /state, then continue from headSeq.
  • The window is the newest 5000 events, none older than 7 days. It persists to feed.jsonl in the daemon log directory, so a restart keeps it.
kindWhenPayload
run_startedA worker, reviewer or automation run startsrunId, runKind, profile, backend
run_finishedA run succeeded, was cancelled (outcome: "cancelled") or stopped by reconciliationrun fields, outcome
run_failedA run failed, stalled, was rate limited, …run fields, outcome (the terminal reason)
input_requiredAn agent asked a question, or a guardrail approval waits (kind: "guardrail_approval")run fields
input_answeredA question was answered (via: dashboard, slack, tracker, agent) or dismissed (via: "dismiss")via, outcome
review_verdictA reviewer finishedprofile, verdict, outcome (passed / blocked, once the review is complete)
pr_openedA run recorded a PR itervox did not manage yetprUrl, runId
pr_mergedThe merge_pr action merged a PRprUrl
guardrail_blockedA shim or hook refused an operation, or an approval was rejectedkind, via
guardrail_approvedA guardrail approval was grantedvia
lesson_proposedA lesson was proposed (or auto-approved)outcome, memoryId
dispatch_pausedAll dispatch was pausedreason, until
dispatch_resumedDispatch resumed (via: operator or expired)via
review_comment_postedAn 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_operatorAn 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"}}.

RouteScope
GET /hub/api/v1/healthnone{"status":"ok","hub":true}
GET /hub/api/v1/whoamiviewer{"principal":{"scope","tokenId","name"},"hub":true}
GET /hub/api/v1/projectsviewerthe members
GET /hub/api/v1/feed?since=&limit=viewerthe merged event feed
GET /hub/api/v1/eventsviewerSSE: feed and projects announcements, desktop notification frames
GET /hub/api/v1/notificationsadminthe notification settings, kinds, channels and projects
PUT /hub/api/v1/notificationsadminreplace the notification settings
POST /hub/api/v1/notifications/testoperatorsend a test notification through one channel
GET /hub/api/v1/push/vapid-public-keyviewer{"publicKey"}: the hub’s VAPID application server key (#231)
POST /hub/api/v1/push/subscribeoperatorsubscribe this browser to Web Push under a device name
GET /hub/api/v1/push/devicesoperatorthe push devices (name and push service only)
DELETE /hub/api/v1/push/devices/{id}operatorstop pushing to a device
POST /hub/api/v1/pairingadmina one-time phone pairing code (10 minutes)
POST /hub/api/v1/pairing/exchangenone (the code)trade a pairing code for the device’s operator token
GET /hub/api/v1/devicesadminthe paired devices
DELETE /hub/api/v1/devices/{id}adminrevoke a paired device’s token and its pushes
* /hub/p/{project}/api/v1/...the member route’sthe member’s API through the proxy
GET /hub/, /hub/m, /hub/pair, /hub/p/{project}/..., /assets/..., /manifest.webmanifest, /sw.js, /icons/...nonethe dashboard, its phone layout and the installable web app
{
"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"
}
]
}
  • name is unique: the project directory’s name, lowercased, with a short hash of the WORKFLOW.md path appended when two members share it. It is the {project} of the proxy and the dashboard path.
  • health is ok, unreachable, unauthorized (the member refused the hub’s token) or error, with error saying why.
  • proxied is false (with proxyError) for a member running with server.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).
  • summary is the member’s own GET /api/v1/summary, passed through; capabilities comes 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.

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.

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.

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.

Operator. {"channel": "push" | "slack" | "desktop"} sends one test notification through that channel: 200 {"sent":true}, 400 unknown_channel, 409 channel_unavailable, 502 send_failed.

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.

Every method. The hub, in order:

  1. answers 404 project_not_found for an unknown project, and 400 bad_path for a path that is not a plain /api/v1/... path (encoded slashes, empty, . or .. segments);
  2. answers 503 member_unavailable while it has no route scope table for the member, and 403 member_unauthenticated for a member running with server.allow_unauthenticated;
  3. looks the method and path up in the member’s GET /api/v1/route-scopes table (a path several patterns match takes the most restrictive scope): 404 route_not_found when the member declares none; 403 not_proxied for an agent-action or guardrail grant route, a tracker webhook, or an unknown access class; public GET probes need viewer;
  4. answers 403 insufficient_scope (with X-Itervox-Required-Scope) when the hub token’s scope is below the route’s, and 403 admin_route_not_proxied for a member admin route (the hub never holds an admin token on a member);
  5. drops the caller’s Authorization, Cookie, Origin and Referer, sets Authorization: Bearer <the hub's member token> (the hub-viewer token for a viewer hub token, hub-operator otherwise, 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.

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.

~/.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": [...]}.


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.

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.


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’s SOUL.md, its INSTRUCTIONS.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 (the WORKFLOW.md body, or agent.reviewer_prompt for 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, and steersDropped counts 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.

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").

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.


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:

IDChecksNot a pass when
schema_versionitervox_schema_version: 2 in WORKFLOW.md, and the workflow loadsfail: missing, older or unloadable
gitignore_carveoutsthe root .gitignore keeps .itervox/agents/**, .itervox/handoff/**, .itervox/playbooks/** and .itervox/memory.json committablewarn: it ignores .itervox/ without !.itervox/, !.itervox/agents/, !.itervox/agents/**, !.itervox/handoff/, !.itervox/handoff/**, !.itervox/playbooks/, !.itervox/playbooks/**, !.itervox/memory.json
instruction_docsCLAUDE.md (Claude profiles) and AGENTS.md (Codex profiles) at the repository rootwarn: a backend in use has no instruction file
verify_skilla project verification skill or script (#218): .claude/skills/<…verif…>/SKILL.md, scripts/verify*, a verify Makefile target or a verify script in package.jsonwarn: none of them; POST /api/v1/repo/readiness/verify-skill-issue creates an issue to write one
bare_fetch_refspecthe shared bare clone’s fetch (#195)fail: the last fetch failed; warn: still on the pre-#195 refspec, or stale
profile_refsskill and subagent references in profile SOUL.md / INSTRUCTIONS.md (#86)warn: a reference does not resolve
tracker_reachableone 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.

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
}
]
}
  • failures lists every failed assertion: missing required actions, forbidden actions, forbidden_phrases present, missing marker phrases. error is a live run that could not be judged as complete (backend failure, budget); stale a recording older than its sources.
  • promptDigest is the prompt version the case ran against, computed with the same digest as run history (#186), so it matches Prompt versions. digestSource is live (computed by the live run from the workflow it ran) or recording (read from a live recording’s meta line). 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.
  • regression is 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.
  • mode is recorded, live or record; results counts the reports read that include the case. error at 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.

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 holding WORKFLOW.md. Refs are as fresh as the daemon’s (or your) last fetch. The base is workspace.base_branch on 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 or Merge pull request #N), against its first parent. A run with neither is counted in runsUnattributed.
  • 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 branch revert-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.


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.

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.

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, unhandledrejection or schema; any other value is recorded as other. message is required.
  • The body is capped at 8 KiB including trailing bytes and must be exactly one JSON object. The daemon redacts message, route and stack and 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, with Retry-After); 503 orchestrator_busy when 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.

MethodPathResponse
GET/issuesTrackerIssue[]
GET/issues/{identifier}TrackerIssue

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.

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"}]
}
  • port is the issue workspace’s ITERVOX_PORT (from workspace.port_range); omitted when the workspace has none.
  • currentStep is 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.
  • lastToolCall is 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. toolCalls counts finished calls.
  • turnCount and the token counts are the run’s so far; pendingInput is the question the issue waits on (pendingApproval: true for a guardrail approval); steers are the newest delivered steering messages and queuedSteers those not yet delivered; guardrailBlocks counts the operations a guardrail refused in this run.
  • changedFiles is the file list of the diff below (omitted with changedFilesError — no_worktree, base_not_found, diff_timeout, diff_failed — when it cannot be computed); handoffs lists the .itervox/handoff/ files, oldest first, titled by their first heading.
  • run is null when the issue has a worktree but no kept run. 404 no_run_context when 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.

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
}
  • file must be one of the listed paths (404 file_not_changed otherwise); no other path reaches git.
  • The unified diff is cut at 256 KiB on a line boundary (truncated: true, bytes is the full size). A binary file has binary: true and an empty patch.
  • Below admin the 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.

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.

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}]
}
  • mode is off, sampled or precise (modeReason says why precise mode fell back); supports and notes say 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 local ssh client).
  • Each distinct command line, path and remote address is one entry with a count. Precise mode lists files opened for writing and connect attempts (protocol inet / inet6); sampled mode lists open files (write from the open flags) and established connections.
  • outsideWorkspace marks a write outside the run’s workspace.
  • At most 500 commands, 1000 files and 300 connections per run; dropped counts distinct entries the caps refused.
  • Command lines and paths are redacted at the source (the log redaction plus NAME=value values, credential-named flag values and URL user info).
  • runs lists 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.

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"
}
  • source is what was diffed; sources what ?source= may ask for: pr once the issue has a PR, worktree while a run is live or when there is no PR.
  • A PR file’s status is added, modified, deleted, renamed or copied; 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 with prError (github_failed, pr_not_found); an explicit ?source=pr answers 502 github_failed, 404 pr_not_found or 504 github_timeout instead.
  • worktreePath is the worktree’s directory on the daemon’s host, for the dashboard’s open-in-editor links.

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, …)"
}
  • line is the last line of the range and startLine its first (omit it for one line). side / startSide are RIGHT (the new file, default) or LEFT (the base file, for deleted lines) — GitHub’s review-comment model. body is at most 8 KiB.
  • destination: "agent" queues a steering message for the issue’s live run (the Sessions steering path, #178) and answers 202 {"destination": "agent","runId":"…","message":{…}}. The message names the file and lines, quotes quote (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_run when the issue has no running agent; 409 input_required while it waits for an answer.
  • destination: "pr" posts one review comment on the PR’s head commit and answers 201 {"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.

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, body at most 8 KiB, quote cut to 4 KiB). At most 50 comments; note is at most 8 KiB; a comment or a note is required (400 bad_request with field).
  • 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]). agent is {"delivery":"steered","runId":"…","messages":1}.
  • No live run: the review is queued for the issue’s next worker run and agent is {"delivery":"queued","queuedAt":"…","movedTo":"In Progress"}. The queue is runtime state (review_continuations.json next 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.md before 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 (default true): 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. movedTo names 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, no pause_dispatch_when_any_in_state hit, the per-state limit, tracker and gating inferred blockers, branch in use, then the backend breaker and agent.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 than tracker.completion_state still 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_workspace removed the worktree and its local branch after the last run, the worktree is recreated from origin/<branch> (in a workspace.clone_url bare clone and in the operator’s own clone), not from the base branch.
  • alsoPostOnPR: true and the issue has a PR: the comments (and the note as the body) are also posted as ONE GitHub review with event comment (the pr-review path). pr reports 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 still 202.
  • Errors (nothing is sent anywhere): 409 input_required (answer with provide-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.

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.

MethodPathRequest bodySuccess responseNotes
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.

MethodPathRequest bodySuccess 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.

MethodPathRequest bodySuccess 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.

Fetched on demand; none of these are on the /state snapshot or the SSE frames. See the New task guide.

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"}.

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).

Fetched on demand; none of these are on the /state snapshot or the SSE frames. See the Playbooks guide.

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"]}
]}

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.

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}]}
]}

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.

MethodPathRequest bodySuccess 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".


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.BlockedBy stays a hard block regardless of an override — this endpoint only relaxes the inferred layer.
  • 202 means queued, not applied. The change is routed through the orchestrator event loop. Poll GET /state or watch the SSE stream to observe the resulting InferredDeps entry.

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.

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".

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"
}
]
}
FieldMeaning
idThe 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.
runIdItervox’s run ID (running sessions only).
owneritervox for this daemon’s runs — only those take replies and messages; external for a session started by hand (read-only, no identifier).
statusrunning, 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.
cwdThe directory of a session started by hand.
updatedAtA session started by hand: its transcript’s last write.
inUseReasonA session started by hand with status: "running": why it counts as still running.
kindtmux for a session itervox started in tmux (New session); reviewer for a reviewer run.
tmuxPaneThe tmux pane the session runs in, {"id": "%3", "label": "work:0.0"}; null when none.
controllableThe 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.
attachCommandA session itervox started in tmux: the command that attaches a terminal to it.
startedAt / queuedAtWhen the run started / when it started waiting for input.
inputContextThe agent’s question while it waits.
steeringRunning 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).
messagesOperator 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).

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).

StatusCodeWhen
400bad_requestMissing, empty or over-10 KiB message (field: "message")
403not_ownedItervox did not start that session and it is not controllable through tmux
404not_foundNo running session with that ID
409input_requiredThe session is waiting for input: use provide-input
409tmux_unavailable / pane_goneA tmux session: see Sessions in tmux
503orchestrator_busyEvent queue full (Retry-After: 1)

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 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:

StatusCodeWhen
403not_controllableNot running in a pane itervox may control (keys, screen)
409tmux_unavailabletmux is not installed on the daemon’s host; message carries the install command
409pane_goneThe pane is gone, or no longer runs this session

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.

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.

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"}}.

StatusCodeWhen
400bad_requestBad 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
409tmux_unavailabletmux is not installed
429too_many_sessions8 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).

Stops a session (admin). Body {"force": false} (optional).

  • A tmux session itervox started (or re-adopted): presses the CLI’s interrupt (Claude Code: C-c twice; Codex: C-c), waits up to 5 s for the tmux session to end, then runs tmux kill-session if it is still there. force: true runs tmux kill-session at once.
  • A hand-started session in a controllable pane (sessions.tmux_control): the interrupt keys only, never kill-session; force is 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).

StatusCodeWhen
403not_controllableA hand-started session outside a controllable tmux pane: stop it in its own terminal
403not_ownedforce on a session itervox did not start
404not_foundUnknown session
409tmux_unavailable / pane_goneAs for the other tmux endpoints

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.

MethodPathResponse
GET/issues/{identifier}/logsIssueLogEntry[]
GET/issues/{identifier}/sublogsIssueLogEntry[]
GET/logs/identifiersstring[]
MethodPathSuccess 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}/logs reads the in-memory orchestrator log buffer.
  • /issues/{identifier}/sublogs reads persisted agent session logs and returns an empty array when no logs exist.
  • /logs is an SSE stream of the daemon log file, not a JSON endpoint.

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).

MethodPathRequest bodySuccess 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}

The schema-driven Settings section’s endpoints (#158). See Settings files.

MethodPathRequest bodySuccess responseErrors
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.

MethodPathRequest bodySuccess responseErrors
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 layer400 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).


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.

MethodPathRequest bodySuccess responseErrors
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 entry400 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 entry400 memory_invalid, 404 memory_not_found, 413 memory_too_large
DELETE/memory/{id}—the deleted entry404 memory_not_found
POST/memory/{id}/pin{"pinned":true|false} (empty body pins)the entry404 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 again404 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 rule400 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.


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.

MethodPathRequest bodySuccess responseNotes
GET/skills/inventory—Inventory503 inventory_unavailable before the first successful scan
POST/skills/scan—InventoryForces 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—AnalyticsSnapshotIncludes 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”
MethodPathRequest bodySuccess 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.

MethodPathResponse
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 }
MethodPathRequest bodySuccess 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:

  • cron
  • input_required
  • tracker_comment_added
  • issue_entered_state
  • issue_moved_to_backlog
  • run_failed
  • pr_opened — fires when a worker’s PR is detected
  • pr_merged — fires when the daemon-side merge_pr action merges an itervox-managed PR
  • pr_check_completed, pr_synchronized, pr_review_submitted, pr_mergeable_changed — fire on GitHub activity on a PR an Itervox run recorded; sourced from POST /api/v1/webhooks/pr-events or 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_id
  • invalid_cron
  • invalid_timezone
  • invalid_regex
  • invalid_trigger_type
  • invalid_match_mode
  • invalid_limit

Runs the LLM analyzer that populates the inferred-dependency sidecar. One job runs at a time.

MethodPathResponse
POST/deps/analyze202 {"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.


The write-ahead outbox holds tracker writes that have not yet been confirmed. Enabled by default via tracker.outbox.

MethodPathResponse
POST/outbox/{id}/retryRe-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.


These endpoints return 501 not_supported for trackers without project support.

MethodPathRequest bodySuccess 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 slugs resets to the WORKFLOW.md default.

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.

MethodPathRequest bodySuccess 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/scope always returns filter: tracker.filter, or the legacy keys as one implicit group (filterMode: false), [] for every issue. conditions lists what the tracker supports (every condition on Linear; assignee, the label conditions, states and milestone on GitHub).
  • PUT with filter validates it with the WORKFLOW.md parser (an unknown condition, an empty group, a bad priority or an unsupported condition: 422 invalid_filter), resolves its assignees (422 assignee_not_found), writes tracker.filter as one flow-style line, comments the legacy keys out (project_slug only 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 answers 503 settings_reloading. A legacy body (projects / assignee / labels, Linear only) comments tracker.filter out.
  • POST /tracker/filter/preview is 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/filter answers 409 tracker_filter_in_effect (project_slug and tracker.filter cannot both be set).
  • The snapshot’s trackerScope is the filter’s summary (e.g. ENG · agent|ai · ¬blocked OR me · urgent) and filterConditions the 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).


These routes are intended for agent subprocesses that have been granted daemon-backed permissions through profile allowed_actions.

MethodPathRequest bodySuccess 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:

VariableDescription
ITERVOX_ACTION_TOKENThe short-lived per-run action grant. Pass as Authorization: Bearer $ITERVOX_ACTION_TOKEN on every /agent-actions/... call.
ITERVOX_DAEMON_URLThe 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_IDENTIFIERThe issue this run belongs to (e.g. ENG-42).
ITERVOX_CREATE_ISSUE_STATESet 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_IDThe 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:

  • unauthorized
  • agent_action_denied
  • not_supported

{
"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.

{
"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
}
}

Returned by both GET /issues and GET /issues/{identifier}.

Important fields include:

  • orchestratorState: idle, running, retrying, paused, input_required, pending_input_resume
  • agentProfile, agentBackend
  • comments, labels, branchName, blockedBy
  • blockedByDetails: richer blocker metadata for UI/API clients. Each entry has identifier and may include state and url. blockedBy remains the compatibility string-array form.
  • review (GET /issues/{identifier} only): the issue’s latest review, when it has one. verdicts lists each finished reviewer (profile, verdict approve/block, reasons, line comments, recordedAt); outcome (blocked, approvals, blocks, quorum) appears once every reviewer has run; inProgress is set while a multi-reviewer chain is still running.
{
"level": "INFO",
"event": "action",
"message": "Write — updated README.md",
"tool": "Write",
"detail": "{\"status\":\"completed\",\"exit_code\":0}",
"time": "12:34:56",
"sessionId": "abc123"
}
VariablePurpose
ITERVOX_API_TOKENExplicit bearer token for non-loopback API access.
LINEAR_API_KEYLinear API token referenced from WORKFLOW.md.
GITHUB_TOKENGitHub API token referenced from WORKFLOW.md.
ITERVOX_DRY_RUNSet to 1 to run the orchestrator without dispatching worker subprocesses.