Configuration
Itervox is configured entirely through a single WORKFLOW.md file in your project directory. The file has two parts: a YAML front matter block (between --- delimiters) that controls all runtime behaviour, and a Liquid template body that becomes the prompt sent to the agent for each issue.
Run itervox init in your project directory to generate a starter file for Linear or GitHub.
Every runtime section — agent, automations, dependencies, hooks, hub, polling, server, tracker and workspace — can also come from settings files shared by every project or kept per project. The project and local files win over the same key in WORKFLOW.md; your user file holds personal defaults, which a project’s WORKFLOW.md overrides. itervox init writes these sections to .itervox/settings.jsonc. Keeping them in the front matter still works but is deprecated: itervox init --update moves them to .itervox/settings.jsonc and leaves the prompt in WORKFLOW.md (see Moving settings out of WORKFLOW.md).
File format
Section titled “File format”---itervox_schema_version: 2
tracker: kind: github api_key: $GITHUB_TOKEN project_slug: owner/repo active_states: ["todo"] completion_state: "in-review"
polling: interval_ms: 60000
agent: max_turns: 60 max_concurrent_agents: 3 turn_timeout_ms: 3600000
workspace: root: ~/.itervox/workspaces/my-project
hooks: after_create: | git clone git@github.com:owner/repo.git . before_run: | git fetch origin main && git checkout main && git reset --hard origin/main
server: port: 8090---
You are an expert engineer working on the codebase.
## Your issue
**{{ issue.identifier }}: {{ issue.title }}**
{% if issue.description %}{{ issue.description }}{% endif %}
Issue URL: {{ issue.url }}
{% if issue.comments %}## Comments{% for comment in issue.comments %}**{{ comment.author_name }}**: {{ comment.body }}{% endfor %}{% endif %}
## Steps
1. Explore the codebase relevant to this issue.2. Create a branch: `git checkout -b {{ issue.branch_name | default: issue.identifier | downcase }}`3. Implement the change.4. Run tests and lint.5. Commit and open a PR.Everything after the closing --- is the Liquid prompt template. See Liquid template variables for all available variables.
tracker
Section titled “tracker”Controls which issue tracker Itervox polls and how issue states are mapped.
| Field | Type | Default | Description |
|---|---|---|---|
kind | string | required | Tracker backend: "linear", "github" or "local" (issues as Markdown files in .itervox/issues/, no account or key; see Local issues). |
endpoint | string | https://api.linear.app/graphql | GraphQL endpoint (Linear only). Omit for GitHub — the client uses the GitHub API automatically. |
api_key | string | required (Linear, GitHub) | API token; not used by local. Use $VAR_NAME to read from an environment variable (recommended). |
project_slug | string | required (GitHub) | For Linear (optional): the project slug from your Linear URL (e.g. "ENG"); omit to read every project. ANDed with assignee and labels. For GitHub: "owner/repo". For local (optional): the identifier prefix for new issues, letters, digits and _ (default ITX). |
assignee | string | "" | Linear only (#182): only the issues assigned to this user — me (the API key’s own user, Linear’s viewer), a user id, or an email. Alone: that user’s issues in every project of every team the key can read; with project_slug: the intersection. Resolved once at startup and on each WORKFLOW.md reload; a user nobody can see fails every poll (never widens) and itervox doctor exits 1. An issue reassigned away mid-run finishes its run but gets no new one, and shows as “out of scope”. Itervox’s own writes never set an assignee. See Linear setup → Scope. |
team | string | "" | Linear only, with assignee (#182): only the issues of this team, by key (ENG) or id. Ignored without assignee. |
labels | string[] | [] | Linear only (#182): only the issues carrying any of these labels, ANDed with the project and assignee. An issue whose matching label is removed mid-run is out of scope like a reassigned one. |
filter | list of groups | none | Linear and GitHub (#198): what Itervox reads, as groups of conditions — every condition in a group must match (AND), an issue is read when any group matches (OR). Replaces project_slug (Linear), assignee, team and labels, which keep working as one implicit group; setting both is a config error. See Tracker filter below. Load-time; Settings → Tracker Scope edits it (written back as one line, no reload). |
active_states | string[] | ["Todo", "In Progress"] | Issue states Itervox actively polls and dispatches agents for. |
terminal_states | string[] | ["Closed", "Cancelled", "Canceled", "Duplicate", "Done"] | Issue states that are complete. Issues in these states are not re-dispatched. |
working_state | string | "In Progress" | State Itervox transitions an issue to when an agent is dispatched. Empty string = no transition. |
completion_state | string | "" | State Itervox transitions an issue to after the agent finishes successfully (e.g. "In Review"). Empty string = no transition. When set, the issue leaves active_states so it is not re-dispatched. |
backlog_states | string[] | ["Backlog"] (Linear, local), [] (GitHub) | States shown as the leftmost column(s) on the Kanban board. Issues in backlog states are displayed but not dispatched. |
failed_state | string | "" | State to move an issue to when agent.max_retries is exhausted. When empty, issues are paused in the dashboard instead of transitioning. |
outbox | bool | true | Write-ahead outbox for tracker state transitions and comments. Writes are persisted durably to .itervox/outbox.json and flushed by an independent worker, instead of being made synchronously from the orchestrator’s completion/failed-state paths — so a tracker outage or rate-limit stall cannot lose a transition. Set false as a kill switch to restore synchronous behaviour. With outbox: false, input-required questions and replies are posted with a single direct attempt instead of being queued, so they are not durable and not ordered, and replies are matched to the most recent question by position. Operator comments posted from the dashboard (POST /api/v1/issues/{id}/comment) also go through the outbox when it is enabled; with outbox: false they are posted directly, and entries left from an earlier outbox-on run stay visible with Retry/Discard but are delivered only once the outbox is enabled again. Load-time only (no runtime setter). |
push_interval_ms | int | 10000 | Coalesced push (needs outbox: true). A tracker write waits this long in its issue’s batch before the outbox pushes it, so several changes to one issue cost one round of requests and the tracker never shows the intermediate states: of the state moves queued for an issue inside one interval only the last is sent (on GitHub, where a state is a label, this also merges the label swaps — Itervox writes no other labels); comments are kept and posted in order. A batch’s deadline is set by its first write, so a stream of changes cannot hold it back. The write lands in the local tracker store at once — the board, the orchestrator’s tick and automations see the issue in its new state immediately, while the store’s own copy stays the tracker’s so the outbox’s reconciliation (a person’s later change in the tracker wins) still compares against the real tracker state. Batched writes are in .itervox/outbox.json from the moment they are queued, so a crash or restart before the push loses nothing: the restarted daemon pushes them when they come due, with the outbox’s usual retries. Urgent writes skip the batch and are pushed at once, taking the issue’s earlier queued writes with them (an issue’s writes are always delivered in order): input-required questions and the replies sent back to the agent, the max-retries-exhausted failure comment, the move to failed_state, the rate-limit auto-switch “budget exhausted” comment, and operator comments posted from the dashboard (POST /api/v1/issues/{id}/comment). 0 pushes every write as soon as the flusher sees it (within 5 s, as before coalesced push); a negative value falls back to the default. Load-time only. |
store.enabled | bool | true | Local tracker store, on by default since v0.2.4 (set false to poll the tracker directly, as before). Itervox keeps a copy of the tracked issues in .itervox/tracker_store.json (gitignored, mode 0600) and answers the orchestrator’s and dashboard’s list reads from it, so a tick makes no list requests to the tracker and the board keeps working through a tracker outage. A background sync re-pulls from the tracker every store.sync_interval_ms; Itervox’s own state, branch and create writes apply to the store and the file at once, so a restart does not undo them. A restart serves from the file; a cold start (no file, or a file from another tracker, endpoint, project_slug or active_states list) pulls once before the first read is answered. Reads of one issue (the state check after each agent turn, retries, stopping a cancelled issue’s worker, detail with comments) still go to the tracker, so a running worker sees a state change at once. Before any agent starts (a dispatch, retry, reviewer, automation run, answered question or backend-fallback re-dispatch), the issue is read once more from the tracker by ID (the claim check), so an issue a person closed, moved out of an active state or deleted since the last pull is not started; a queued Itervox state write that the person’s later change superseded, and that is still queued at that point, is dropped, so the person’s state wins (a write the outbox already delivered is not undone). When the tracker cannot be read the start is deferred, never dropped. Linear and GitHub only; local and memory trackers ignore it. Load-time only. |
webhooks.enabled | bool | false | Receive Linear or GitHub issue webhooks on POST /api/v1/webhooks/<kind> and refresh the tracker store by issue as they arrive, instead of waiting for the next pull; the store’s periodic pull slows to webhooks.safety_net_interval_ms. Needs store.enabled: true and a webhooks.secret; Linear and GitHub only. Setup, including a relay for a daemon the tracker cannot reach: Tracker webhooks. Load-time only. |
webhooks.secret | string | — | The webhook signing secret, usually $ITERVOX_WEBHOOK_SECRET from .itervox/.env (itervox secret set ITERVOX_WEBHOOK_SECRET). Every delivery must carry its HMAC-SHA256 signature; anything else is dropped. Required when webhooks.enabled, at least 16 characters. |
webhooks.safety_net_interval_ms | int | 600000 | The store’s sync interval while webhooks are on (it replaces store.sync_interval_ms): each pull asks the tracker for the issues updated since the last one, repairing missed deliveries; store.full_sync_interval_ms still applies. Load-time only. |
store.sync_interval_ms | int | 60000 | How often the tracker store pulls from the tracker. On Linear and GitHub a pull asks only for the issues updated since the last one: one request (paginated) for the whole project, in any state, so an issue edited, closed, moved out of the active states, trashed or archived is applied and one moved into an active state becomes a candidate. The cursor is the newest update time the tracker reported, saved with the store; each pull asks from one minute before it, so a late-committed update is not missed. A failed pull keeps it and is retried after 5 s, doubling up to this interval. A GitHub issue closed without closed among the terminal states leaves the store, as a full pull would not list it. Lower it for faster pickup of changes made in the tracker; raise it to spend fewer requests. Load-time only. |
store.full_sync_interval_ms | int | 3600000 | How often a pull is a full one even so (the candidate list and each state set the board, backlog and cleanup read). It catches what a changes listing cannot show: an issue moved to another Linear project or transferred to another GitHub repository, or a deleted GitHub issue. Between full pulls, the blocker state an issue records for a blocker outside the tracked project is not refreshed (the changes listing covers the project only), so it can be up to this interval old; a blocker inside the project is refreshed when it changes. Load-time only. |
comment_commands | map | off | /itervox run [profile], /itervox stop and /itervox review in GitHub issue comments, obeyed from users with write access or in allow. Keys: enabled (default false), allow (logins), allow_token_user (default false), reply_to_unauthorized (default false). GitHub only. See Comment commands. |
sync.kind | string | off | local only: two-way sync of the issue files with a Linear project (linear) or GitHub repository (github). New files are created on the remote and get a remote: key; new remote issues become files; title, description, state, labels, priority, blockers and comments sync both ways, and when both sides changed a field the more recent edit wins (recorded as a comment in the file). See Local issues: sync. Load-time only. |
sync.api_key, sync.project_slug, sync.endpoint | string | required (endpoint optional) | The remote’s credentials and scope, with the same meaning and $VAR resolution as the top-level keys of a linear or github tracker. project_slug is required for both: the Linear project new issues are created in (in its first team), or owner/repo. |
sync.active_states, sync.terminal_states, sync.backlog_states, sync.completion_state | as for tracker: | The remote’s own state names (on GitHub, the state labels), with the same defaults as the top-level keys. On GitHub these labels are the issue’s state, so they are not synced as labels. | |
sync.state_map | map | {} | Local state name → remote state name, for states named differently on the two sides (Review: "In Review"); a state not listed has the same name on both sides. |
sync.pull_states | string[] | remote active + backlog states, and completion_state | Remote states whose issues not yet in a file are pulled into new files. Issues already linked sync in any state. |
sync.interval_ms | int | 60000 | How often the sync runs; a file edit also starts one within seconds. Between full pulls a cycle asks the remote only for the issues changed since the last one. |
sync.full_sync_interval_ms | int | 3600000 | How often a cycle lists every issue in pull_states (and re-reads every linked issue) instead of the changes since the last cycle. |
Outbox visibility: pending and degraded entries appear in the dashboard’s Outbox panel and LiveOps tile, each with Retry and Discard controls. An entry enqueued with no observed from-state baseline (currently only the issue-discard path) is exempt from supersede-reconciliation, so Discard is the operator remedy for a stuck entry.
Comments are never posted twice. Each queued comment carries a unique key. If an attempt fails, the next retry first asks the tracker whether that comment already landed, and marks the entry delivered instead of re-posting it. If the tracker cannot answer, the entry waits for the next retry rather than posting blind. On Linear the key is the comment’s own id; on GitHub it is a hidden marker in the comment body.
Rate-limited entries are not failures. When a write is rejected by a rate limit, the entry waits until the tracker’s published reset (plus a few seconds of jitter) and shows an amber rate limited until HH:MM chip. These deferrals do not count toward the degraded badge, which is reserved for writes that are genuinely failing.
GitHub note: GitHub Issues does not have built-in workflow states. Itervox simulates states using labels. Create labels in your repository settings that match the values you configure (e.g. create a label named todo, another named in-review).
# Linear exampletracker: kind: linear api_key: $LINEAR_API_KEY project_slug: ENG # optional; omit for every project # assignee: me # optional: AND assigned to this user # labels: ["agent"] # optional: AND carrying any of these labels active_states: ["Todo", "In Progress"] terminal_states: ["Done", "Cancelled", "Duplicate"] completion_state: "In Review" backlog_states: ["Backlog"] failed_state: "Failed"
# GitHub exampletracker: kind: github api_key: $GITHUB_TOKEN project_slug: owner/repo active_states: ["todo"] terminal_states: ["done", "cancelled"] completion_state: "in-review"Tracker filter
Section titled “Tracker filter”tracker.filter (#198) is a list of groups. Inside a group every condition must match (AND); an issue is read when any group matches (OR). All conditions are optional, but a group needs at least one.
tracker: kind: linear api_key: $LINEAR_API_KEY filter: - projects: [ENG] # group 1: all of these labels_any: [agent, ai] labels_none: [blocked, needs-human] - assignee: me # OR group 2 labels_all: [urgent] priority: [1, 2]| Condition | Meaning | Linear | GitHub |
|---|---|---|---|
projects | in any of these projects (slugs; __no_project__ for none) | ✓ | — |
teams | in any of these teams (key or id) | ✓ | — |
assignee | me (the API key’s user), a user id or an email (Linear); me or a login (GitHub) | ✓ | ✓ |
labels_any | has at least one of these labels | ✓ | ✓ (one search per label) |
labels_all | has every one of these labels (extra labels are fine) | ✓ | ✓ |
labels_none | has none of these labels | ✓ | ✓ |
priority | any of these priorities: 0 none, 1 urgent, 2 high, 3 normal, 4 low | ✓ | — |
states | narrows active_states: an issue in an active state is read only in one of these (or working_state, so a dispatched issue stays in scope); backlog and terminal issues are not narrowed | ✓ | ✓ |
cycle | current (the team’s active cycle) or a cycle id | ✓ | — |
milestone | a project milestone (Linear) or milestone (GitHub) name, any case | ✓ | ✓ |
- Backward compatible.
project_slug/assignee/team/labelskeep working and mean one implicit group (teamnarrows only the assignee, as before). Setting them andfilteris a config error naming the keys (on GitHubproject_slugis the repository and stays). An unknown condition, an empty group, a priority outside 0–4 or a label in bothlabels_allandlabels_nonefails the load or validation; a typo never widens the filter. - One scope everywhere. The candidate poll, the tracker store’s full and incremental pulls, webhook refreshes (by-ID reads checked against the same filter in memory), the dependency analyzer’s issue set and the automation poll all read the same filter. The automation poll’s scope key and the store’s scope cover the whole filter, so a filter change rebaselines and fires no triggers.
- Linear compiles the filter to one
IssueFilter:{and: [<states>, {or: [<group>, …]}]}.labels_anyislabels: {some: {name: {in}}},labels_allonelabels: {some: {name: {eq}}}per label (Linear’severywould mean “every label of the issue is in the set”),labels_none“no labels, or every label outside the set”. - GitHub runs one issue search per group —
repo:o/r is:issue is:open label:"a" -label:"b" assignee:x milestone:"m"— and unions and de-duplicates the results by issue number. GitHub search has no OR between labels in one query, so a group with severallabels_anyruns one search per label. States stay labels: the searches read the open issues a group matches and the state is derived from the labels as without a filter.projects,teams,priorityandcyclehave no GitHub equivalent and are a config error naming the condition. The search API allows 30 requests a minute and returns at most 1,000 issues per query; with the tracker store on (the default) the poll reads the store and only the store’s full pulls search, while its incremental pull lists changed issues and applies the filter in memory. - Leaving the filter mid-run (a label the filter excludes is added, reassigned, moved): the run finishes, nothing is re-dispatched, and the dashboard shows it out of scope. A retry waiting when the issue leaves the filter is released too.
- Agent writes never change the fields a filter reads — state moves (which the
statescondition is built around), comments, the branch name and follow-up issues only. itervox doctorvalidates the filter with the rest of the workflow, resolves its assignees (exit 1 if one matches no user) and prints how many issues in the active states match.
polling
Section titled “polling”Controls how frequently Itervox checks the tracker for new or updated issues.
| Field | Type | Default | Description |
|---|---|---|---|
interval_ms | int | 30000 | Polling interval in milliseconds. The poll runs off the event loop: one at a time, under a deadline of 3× the interval (at least 30 s, at most 2 minutes), so a slow or rate-limited tracker never freezes worker exits, operator actions or the dashboard. A poll past the interval plus half an interval is logged and shown as slow; after three polls in a row hit a tracker timeout, network error or 5xx, tracker reads pause for two intervals (30 s to 5 minutes) and the poll shows as degraded on the dashboard, HEARTBEAT.md and /api/v1/ready. |
rate_limit_reserve_percent | int | 10 | Share of the tracker’s request budget held back for writes. Set 0 to disable. |
automation_interval_ms | int | 15000 | How often the automation event poll (tracker_comment_added, issue_entered_state, issue_moved_to_backlog) lists issues. While the tracker reports less than 20% of its request budget left, the interval doubles after each poll, up to 8× this value, and returns to it once the budget recovers. Zero or a negative value means the default. Read at load time. See Automation event poll. |
polling: interval_ms: 60000 # check every minute rate_limit_reserve_percent: 10 automation_interval_ms: 60000 # automation event poll once a minuteThe automation key lives under polling: because automations: is a list of rules and has no place for a setting.
Write priority under rate limits
Section titled “Write priority under rate limits”Reads and writes draw on one tracker budget, and the polling loops scale with the number of stuck issues — so on a busy project polling could exhaust the hourly budget early, after which every state transition, comment and dependency audit failed. Unsticking an issue requires a write, so the reads starved the very operations that would have drained the queue.
When the remaining budget falls into rate_limit_reserve_percent, Itervox stops
spending requests on polling reads for that tick — the candidate poll and the
input-required reply check — while continuing to admit writes and the
input-resume fetch that lets a queued resume proceed. Dispatch pauses until the
budget resets rather than failing every write in the meantime, and the daemon
logs a warning naming the remaining budget and reset time so a stalled board is
never mistaken for a hung daemon.
Adapters that do not report rate-limit counters are unaffected: the check fails open and polls as before.
When a tracker actually rate-limits a request, Itervox records the window once and every caller — agents, the poller, and the outbox — respects it:
- Linear reports a rate limit as HTTP 400 with a
RATELIMITEDerror code, and publishes the reset time inX-RateLimit-Requests-Reset/X-RateLimit-Complexity-Reset. GitHub uses 429 or 403:Retry-Afterfor secondary limits, andX-RateLimit-Resetonce the hourly budget is spent. - Writes are admitted ahead of reads when the window lifts. On Linear, where every request is a POST, requests are classified from the GraphQL operation: mutations are writes, queries are reads.
- If the reset is more than 60 seconds away, calls return a rate-limit error immediately instead of waiting and retrying into a closed window. The outbox holds its writes until the reset and skips flushing until then.
- A recorded window is capped at 2 hours, so a malformed reset header cannot stall tracker writes indefinitely.
workspace
Section titled “workspace”Controls where Itervox creates per-issue working directories and how they are managed.
| Field | Type | Default | Description |
|---|---|---|---|
root | string | ~/.itervox/workspaces/<project> | Directory where per-issue workspaces are created, namespaced per project by default. Supports ~ expansion and $VAR_NAME env var references. |
auto_clear | bool | false | When true, the workspace directory is deleted only when the issue reaches a terminal tracker state — completion_state after success, or failed_state after retries are exhausted. The workspace persists across retries, input-required pauses, stalls, and pipeline mid-states so chained profiles can share .itervox/handoff/ files on the same branch. Logs live in a separate dir and are unaffected. Compatible with agent.auto_review — the clear is deferred until after the reviewer also completes (v0.2.0 breaking change from the legacy “clear after every successful run” semantics). An automation run’s success clears only an issue that is terminal by then, so an issue_entered_state chain keeps its worktree and handoffs. |
worktree | bool | false | When true, Itervox uses git worktree to create per-issue branches inside a shared clone at root instead of making separate empty directories. Requires a git repository to already exist at root (or clone_url to be set). |
clone_url | string | "" | Git remote URL used to initialise the bare clone when worktree: true and the root directory does not yet contain a git repository. |
base_branch | string | "main" | Branch that new worktrees are created from when worktree: true. With clone_url, new worktrees start from origin/<base_branch> as last fetched. |
copy_files | string[] | [] | Gitignored files the project needs but does not commit (.env, .env.local, a local config), copied from the main checkout into each new worktree before hooks.after_create and refreshed on later runs. Paths or globs relative to the repository root; see Workspace setup. The agent can read these files. |
copy_files_max_bytes | int | 10485760 | Most bytes copy_files copies into one worktree per run (10 MB). The rest is skipped and the cap hit is logged. |
disk_warn_free_gb | int | 5 | Warn on the dashboard and in the desktop tray while the volume holding root has less than this many GB free. 0 turns the warning off. See System visibility. Read at startup. |
disk_pause_free_gb | int | 0 | Pause all dispatch (the dispatch pause, reason Low disk space: …) while the volume holding root has less than this many GB free; dispatch resumes once free space is back above it plus 0.5 GB. Running agents continue. 0 (the default) never pauses. Read at startup. |
port_range | string | "41000-41999" | LOW-HIGH range (within 1024–65535) each issue’s workspace gets a TCP port from, as ITERVOX_PORT and {{ run.port }}. See Workspace setup. |
With clone_url, the bare clone at <root>/.bare fetches origin’s branches into refs/remotes/origin/*, so a fetch never overwrites a local branch (an agent’s unpushed commits are safe) and a branch checked out in a worktree cannot make it fail. New worktree branches are created with --no-track; their only upstream is their own name on origin. A clone made by an older version (fetch refspec +refs/heads/*:refs/heads/*) is migrated automatically on first use, and upstreams that point at a different branch are repaired. A failing fetch shows up once in recent failures, and itervox doctor reports the clone’s last successful fetch.
workspace: root: ~/.itervox/workspaces/my-project auto_clear: true worktree: true clone_url: git@github.com:owner/repo.git base_branch: mainOpen pull requests and shared branches. A worker continues an open pull
request linked from the issue (in its description or comments) only when the
PR is the issue’s own: its head branch is the issue’s branch or names the
identifier (vlad/eng-12-fix for ENG-12), or its title or body names the
identifier on word boundaries (Fixes ENG-12, Closes #12) or links the
tracker issue. A PR that is only linked — a blocker’s, a related one — is
ignored. Git checks a branch out in one worktree at a time: when the branch an
issue needs is already checked out in another worktree (another issue’s, or the
repository’s own checkout), the issue is not retried. It is held with the
branch_in_use ineligible reason (the dashboard shows “Branch checked out
elsewhere”) and released on the first tick after that worktree is removed or
switches branches. The hold is runtime state; after a restart the first
dispatch finds the branch taken again and holds the issue without spending a
retry. Itervox does not create a second branch from the PR branch instead: the
agent’s pushes would not reach the PR. Fetches into the shared clone are
serialized, so parallel dispatches no longer fail with cannot lock ref.
Workspace setup
Section titled “Workspace setup”Each issue runs in its own worktree, which starts with only what git tracks.
Two settings prepare it for the work: copy_files brings in the files the
project needs but does not commit, and port_range gives each workspace its
own TCP port, so agents running dev servers in parallel do not collide.
workspace: worktree: true copy_files: [".env", ".env.local", "config/local"] port_range: "41000-41999"copy_files
- Where from. Entries are paths or
filepath.Matchglobs (*,?,[…]; no**), relative to the git top level of the directory that holdsWORKFLOW.md— the main checkout — and are read from there. An absolute entry, or one with a..element, fails the load. - Only gitignored files. Every file is checked with
git check-ignorein the main checkout and in the new worktree. A tracked or unignored match is skipped with a warning in the issue log, so a copied file can never be committed from the worktree..gitis never copied. - When. After the worktree is created and before
hooks.after_create, so the hook can use the files. At the start of each later run of the issue the files are refreshed: one is copied again when the worktree has none or the main checkout’s copy is newer, so an edit made in the worktree is kept. - How. Directories are copied recursively, up to
copy_files_max_bytesper run (10 MB by default); a cap hit is reported in the issue log. Symlinks are never followed — a match that is one, a match reached through a symlinked directory, and a symlink inside a copied directory are all skipped. File modes and modification times are kept. - Secrets. When a copied file is a dotenv file (
.env,.env.<name>,<name>.env), its values are registered with the log redactor, so they are masked as***in the daemon log and in the text Itervox redacts before showing it (the run context, recent failures). Like every registered secret, values shorter than 8 characters are not masked, and ordinary values such aslocalhost:5432are masked too. The agent can read every copied file: copy only what you would hand the agent yourself. - SSH workers. Nothing is transferred to a worker host. The copy is made on the daemon’s machine, and an SSH worker runs the agent in the same workspace path, which must be shared with the worker host (as every SSH run already requires). Without a shared workspace the files are not there on the worker.
- Defaults. Empty: projects that do not set it copy nothing.
itervox initwritescopy_files: [".env", ".env.local"]for those of the two that exist in the project and are gitignored. Worktree mode only (worktree: true).
ITERVOX_PORT
- Each issue’s workspace gets the lowest port of
port_rangethat no other workspace of this project holds and that can be bound on127.0.0.1when it is first used. - It is
ITERVOX_PORTin the agent’s environment (an SSH run gets it as an assignment in front of the agent command) and in every hook’s:after_create,before_run,after_runandbefore_remove. Prompts get it as{{ run.port }}(an empty string without a port), and the issue’s Now panel shows it. - It stays with the issue while its workspace exists — across runs,
retries, reviewers and daemon restarts — and is released when the
workspace is removed (auto-clear,
itervox clear, the dashboard). It is recorded in.itervox-ports.jsonunderworkspace.root(under<root>/worktreesin worktree mode). - The free-port check runs on the daemon’s machine. On an SSH worker the
port is only guaranteed not to be shared with another workspace of this
daemon. Give each project its own
port_rangewhen several daemons run on one machine. - A range with no free port leaves the run without
ITERVOX_PORT(logged); it never fails the run.
Agent handoff (.itervox/handoff/)
Section titled “Agent handoff (.itervox/handoff/)”When multiple profiles run on the same issue — for example a research profile followed by an implementer followed by a reviewer — they can share structured deliverables via the per-issue workspace’s .itervox/handoff/ directory.
How it works:
- The orchestrator stamps each worker run with an ISO8601 timestamp and computes a canonical handoff path:
.itervox/handoff/<timestamp>_<profile-name>.md. These values are appended to the worker’s prompt as a## Run Contextblock (fieldsrun.timestamp,run.handoff_pathandrun.decisions_path— the run’s decision log,<timestamp>_<profile-name>.decisions.tsvnext to the handoff). - Before dispatching any worker, the orchestrator reads every existing
.mdfile in that directory (including.partial.mdfiles), sorts them by filename (chronological because of the ISO8601 prefix), and inlines them into the prompt as a## Prior Agent Handoffsblock. A 30 KB token budget caps the section; if exceeded, the oldest files are dropped with a[earlier handoffs truncated]marker. - The agent’s INSTRUCTIONS.md “Handoff Protocol” section tells it to read the prerendered prior-handoffs block and write its own deliverable to
run.handoff_pathbefore exiting. The orchestrator does not call out to the agent — it relies on the agent following INSTRUCTIONS.md. - If the worker exits with
TerminalFailedorTerminalStalled, the orchestrator renames the most recent matching<timestamp>_<profile>.mdto<timestamp>_<profile>.partial.md. Subsequent agents see partials in their handoff context and can distinguish them from clean deliverables.TerminalInputRequireddoes not mark partial — the agent intentionally paused and may resume.
Git policy: .itervox/handoff/** is committable. itervox init and itervox init --update patch the root .gitignore to whitelist it alongside .itervox/agents/**. Commit the pipeline trail into PRs so reviewers can read the chain.
Filenames are deterministic from run.timestamp and the profile name:
.itervox/handoff/2026-05-26T14-30-45Z_researcher.md.itervox/handoff/2026-05-26T14-42-12Z_implementer.md.itervox/handoff/2026-05-26T14-58-30Z_reviewer.mdProfile names with spaces are slugified ("story writer" → story-writer). An empty profile name falls back to agent.
See the Agent Handoff guide for a worked example chaining three profiles end-to-end.
Controls the agent runner: which CLI to invoke, concurrency limits, timeouts, retry behaviour, and advanced features like SSH dispatch and named profiles.
Core fields
Section titled “Core fields”| Field | Type | Default | Description |
|---|---|---|---|
command | string | "claude" | CLI command used to launch the agent. Can include flags (e.g. "claude --model claude-opus-4-6"). |
backend | string | "" | Explicitly sets the runner backend: "claude", "codex", "opencode", "cursor" or "custom" (see the Backends guide). Needed when command is a wrapper script and Itervox cannot infer the backend from the command name (claude, codex, opencode and cursor-agent are recognised), and always for custom, a command speaking the itervox agent protocol. A backend that disagrees with a command whose binary is a recognised CLI (this field, a profile backend, a per-issue backend pin, or a rate_limited switch_to_backend) is refused: the command keeps its own backend and the daemon logs a warning. |
max_concurrent_agents | int | 10 | Maximum number of agent workers running simultaneously across all issues. |
max_concurrent_agents_by_state | map | {} | Per-state concurrency limits that override max_concurrent_agents. Keys are lowercase state names. See example below. |
max_automation_queue_length | int | 100 | Maximum durable automation dispatch entries waiting for capacity or dependency resolution. 0/negative values fall back to the default; the queue is never unlimited. |
max_retries | int | 5 | Maximum retry attempts before an issue is moved to tracker.failed_state (or paused if failed_state is empty). 0 means unlimited retries. When the failed turn carried a vendor limit signal, the retry waits for the vendor’s reset time or retry delay (at most 6 hours) if that is longer than the normal back-off. |
max_retry_backoff_ms | int | 300000 | Cap on exponential retry back-off (5 minutes). Back-off progresses as 10s × 2^(attempt-1), capped at this value. 0/negative values fall back to the default; use max_retries to control retry count. |
max_turns | int | 20 | Maximum number of agent turns per session. |
budget.tokens | int | 0 | The most tokens (input + output) one issue may use, across every run, retry, review and automation run. When an issue reaches it, its running agent is stopped and the issue is paused with reason budget_exceeded; nothing starts for it while it is over budget. 0 means no limit. See Per-issue budgets. |
budget.cost_usd | number | 0 | The most estimated cost (USD) one issue may use, as budget.tokens. Only Claude runs report a cost, so an issue run only by Codex never reaches it. 0 means no limit. |
The retry settings are also editable on the Settings page (the rate-limit switch cap is under Rate limits & failover):
Per-issue budgets
Section titled “Per-issue budgets”agent: budget: tokens: 2000000 # per issue, across all runs and retries cost_usd: 10 # estimated, from Claude runsItervox adds up what every run of an issue uses (the implementer, its retries, reviewers and automation runs) and checks it after each update from the agent. When the issue reaches either limit, its agent is stopped, the issue is paused with reason budget_exceeded, and the dashboard notifies (if notifications are on). Retries, automations and an answered question do not start it again while it is over budget: each pauses it instead.
To let it continue, raise the budget in WORKFLOW.md (the daemon reloads it) or with itervox config set agent.budget.tokens N (the daemon reloads for it too), and resume the issue from the dashboard. Resuming without raising it pauses the issue again at once.
The totals live in issue_spend.json in the daemon’s logs directory, so a restart does not reset a budget; a run’s usage is written when the run ends, so a crash loses only the running turns’ usage. itervox report costs prints them per issue and per day; see the CLI reference.
Timeout fields
Section titled “Timeout fields”| Field | Type | Default | Description |
|---|---|---|---|
turn_timeout_ms | int | 3600000 | Hard wall-clock limit for an entire agent session (all turns combined). When exceeded, the subprocess is killed and the issue is retried. 0 disables the timeout. |
read_timeout_ms | int | 30000 | Per-read timeout on the subprocess stdout pipe (30 seconds). If no bytes arrive within this window, the subprocess is killed. Catches OS-level pipe hangs before the stall detector fires. Suspended while the run waits for a guardrail approval; a full window starts again from the answer. |
stall_timeout_ms | int | 300000 | Orchestrator-level inactivity timeout (5 minutes). If no SSE events are produced within this window, the worker context is cancelled and the issue is retried. Operates on the parsed event stream and detects semantic stalls (e.g. agent looping without progress). A run waiting for a guardrail approval is not a stall; the window starts again from the answer. Set to 0 or less to disable. |
deps_analyzer_timeout_ms | int | 600000 | Wall-clock limit for one dependency-analyzer job end to end, across all chunks. Matches the dashboard’s 10-minute poll deadline. ≤ 0 falls back to the default. |
deps_analyzer_chunk_size | int | 75 | Maximum issues sent to the agent in one analyzer turn. Larger backlogs are split into sequential chunks; relations spanning two chunks are not examined (an accepted blind spot, logged at analysis time). Raise it for full-graph fidelity on a larger backlog if you can tolerate a longer, costlier turn. ≤ 0 falls back to the default. |
dependency_audit_refresh_interval_ms | int | 600000 | How often the off-loop dependency audit refreshes blocker state from the tracker. With a blockers_resolved automation it is also how often the audit lists the issues in the states that rule can fire in (one list read per interval), which is how a Backlog issue is seen blocked and then unblocked; see blockers_resolved. Startup-only — not runtime-editable. See the rate-limit note below before lowering. |
dependency_audit_refresh_timeout_ms | int | 30000 | Bounds a single off-loop refresh batch. Startup-only. |
dependency_audit_refresh_batch_size | int | 100 | Caps how many audit rows one batch may fetch. Startup-only. |
Credit Itervox
Section titled “Credit Itervox”Both are optional and off unless you add them.
-
PR footer. Set
agent.pr_footer: trueand Itervox adds this footer to each pull request an agent opens:---<!-- itervox:shipped -->Shipped with [Itervox](https://github.com/vnovick/itervox)Itervox adds it after a successful run with
gh pr edit, once per PR: the hidden marker (or the visible line) means it is already there. Only a PR on the run’s own branch gets it; a PR that is merely linked from the issue, which may be someone else’s, is left alone. TheghCLI must be authenticated for the repository. -
README badge. Paste this into your README:
[](https://github.com/vnovick/itervox)
Behaviour fields
Section titled “Behaviour fields”| Field | Type | Default | Description |
|---|---|---|---|
inline_input | bool | false | When an agent needs human input, its question is always posted as a comment on the tracker issue, and a comment on the issue resumes the agent — normally in the same session; after a daemon restart that had to rebuild the entry from tracker comments, a fresh session starts with the question and your reply as context. false (default): the dashboard also offers a reply box. true: the tracker is the only place to reply — the dashboard reply box is hidden and POST /api/v1/issues/{id}/provide-input returns 409 inline_input_enabled. Automation replies (itervox action provide-input) are unaffected. A reply written before the agent’s question has actually reached the tracker still counts: with the outbox enabled, any comment created after the question was queued resumes the agent. Runtime-editable from Settings → General. |
live_steering | bool | false | Lets a message typed in the Sessions panel reach a running local Claude Code turn mid-turn: the turn runs with --input-format stream-json, the prompt is the first message on its stdin and an operator message is written as a further user message; stdin closes when the turn’s result arrives. Off — and always for Codex and SSH workers — a message waits for the current turn to end and is delivered as the prompt of the next turn, which resumes the same session. Keep it off when command is a wrapper script that reads its stdin to the end before starting Claude. Read at startup. |
resource_sampling | bool | true | Samples each local run’s processes every 2 seconds for CPU, memory, process count, disk I/O and network connections, shown on the issue’s Now panel, in /metrics and in the desktop tray. See System visibility. Read at startup. |
activity_audit | string | sampled | Records what each run did (commands started, files written, network connections): off; sampled (what the 2-second sampler sees: may miss short-lived activity); or precise (Linux only, eBPF: every exec, open-for-write and connect of the run’s process tree; needs CAP_BPF + CAP_PERFMON or root and a mounted tracefs, and falls back to sampled with the reason when unavailable). Read at startup. |
isolation | string | "none" | Default process isolation for profiles that do not set isolation: none (no sandbox, the long-standing behaviour) or process (the agent runs in an OS sandbox that lets it write only to its workspace and hides credentials and other workspaces; the run does not start when no sandbox works on the machine). Any other value fails config load, as does process together with agent.ssh_hosts. Read at load time. |
push | string | "agent" | Who publishes a run’s branch for profiles that do not set push: agent (the agent pushes and opens its pull request, the long-standing behaviour) or daemon (patches only: the agent gets no forge credentials and its push and pull-request commands are refused; Itervox pushes after the run’s checks and opens the pull request). Any other value fails config load; daemon also needs guardrails.enabled and is refused together with agent.ssh_hosts. Read at load time. See Patches only. |
base_branch | string | "" | Remote branch used as the base for git diffs when enriching PR context (e.g. "origin/develop"). When empty, Itervox auto-detects via git symbolic-ref refs/remotes/origin/HEAD, falling back to "origin/main". |
pr_footer | bool | false | When true, Itervox appends a one-line “Shipped with Itervox” footer to the body of each pull request an agent run opens on its own branch (after a successful worker run, not automation runs; PRs merely linked from the issue are left alone), using gh pr edit. The footer carries a hidden marker, so it is added once per PR and never duplicated when later runs update the same PR. See Credit Itervox. |
reviewer_prompt | string | built-in | (Deprecated) Liquid template for reviewer runs. Prefer reviewer_profile. The built-in default is read-only: it asks for a verdict, never a commit or push. |
reviewer_profile | string | "" | Name of the agent profile used for code review. When set, the reviewer runs as a regular worker using this profile’s command, backend, and profile files. Enables the AI Review button in the dashboard. |
reviewer_profiles | string[] | [] | Ordered list of reviewer profiles for multi-reviewer fan-out. With more than one entry, each reviewer runs sequentially and independently over the same issue and records a verdict, combined per review_quorum. Empty falls back to reviewer_profile. Every reviewer (a single one included) is read-only, gets the diff against the base branch plus the latest handoff, and has its verdict, reasons and line comments posted on the issue; see the cross-review preset. |
review_quorum | string | "any_block" | How reviewer verdicts combine: any_block (one block blocks), majority (strictly more than half), or unanimous (all must block). A reviewer that records no parseable verdict counts as a block. |
auto_review | bool | false | When true, automatically dispatches a reviewer worker after each successful agent run. Requires reviewer_profile to be set. As of v0.2.0, this safely coexists with workspace.auto_clear — the clear is deferred until the reviewer also completes. |
max_switches_per_issue_per_window | int | 2 | Maximum times a rate_limited automation can switch an issue to a different profile within the rolling window. 0 for unlimited. Also counts backend_fallback switches of implementer runs. This cap limits switching; it is not the trigger condition. |
switch_window_hours | int | 6 | Rolling window size (in hours) for the switch cap. The switch history, cooldowns and cap-comment dedupe survive a daemon restart. |
switch_revert_hours | int | 0 | TTL (in hours) after which an auto-applied profile/backend switch is reverted on the next poll cycle, returning the issue to its original profile and backend. 0 (default) disables the revert. Operator-set overrides survive — only auto-switches with a recorded AutoSwitchedAt timestamp are eligible. |
backend_fallback | map | absent | Declarative reroute when a backend hits its usage limit, with reset-time switch-back and a minimum dwell. See “Backend health and fallback” below. Read at load time; not runtime-editable. |
rate_limit_error_patterns | string[] | [] | Custom case-insensitive substrings for detecting rate-limit errors, matched verbatim against the whole failure text (agent-reported failure and CLI stderr). Empty falls back to the built-in defaults: anchored 429 forms (http 429, status: 429, (429), 429 too many requests), anchored quota forms (insufficient_quota, quota exceeded for, usage quota), rate_limit_exceeded, rate limit, too many requests and the Claude/Codex usage-limit phrases. A bare 429 counts only in the agent-reported failure, never in CLI stderr; a bare quota never counts. |
allow_unchecked_merge | bool | false | When false (default), the merge_pr action refuses to merge on a repo with zero required checks configured (reason unarmed_gate:...) instead of merging with no CI coverage. Set true to merge anyway; the daemon still logs a loud warning. |
agent: reviewer_profile: code-reviewer # use the "code-reviewer" profile for AI reviews auto_review: true # automatically review after each successful run profiles: code-reviewer: command: claude --model claude-opus-4-6 soul_file: .itervox/agents/code-reviewer/SOUL.md instructions_file: .itervox/agents/code-reviewer/INSTRUCTIONS.mdBackend health and fallback (agent.backend_fallback)
Section titled “Backend health and fallback (agent.backend_fallback)”Backend circuit breaker. Itervox keeps one breaker per agent backend and
worker host (claude, codex, claude@build-1, …): a limit seen on SSH
host A says nothing about local runs or host B, which may use other
credentials. A profile with a pool gets its own breaker for its backend:
claude/local, or claude/local@build-1 on an SSH host (/ separates the
pool, @ the host). Profiles without a pool share the backend’s breaker. A
breaker opens when:
- a run stops on a usage limit (Claude
rate_limit_eventrejected, a result with API status 429/402, a Codex “You’ve hit your usage limit”): limited until the vendor’s published reset, or fordefault_cooldown_minutes(15) when no reset is published; or - Claude reports
api_retryforrate_limit/overloadedthree times within 5 minutes on that backend and host: limited for 5 minutes (or the vendor’s retry delay, when longer). Fewer retries only mark itwarning.
A breaker never holds longer than its source can justify: a
rate_limit_event reset is capped at 5h15m for the five_hour window, 7 days
- 1h for
seven_day*windows and 24h for any other window; a reset read from text (Codex, or a Claude result message) at 6h; anapi_retrythrottle at 1h; an unknown reset usesdefault_cooldown_minutes(at most 1440). A further reset is capped and logged, and a persisted value is capped again on load. A zone-less text reset from an SSH worker (Codex prints the host’s local time with no zone) is treated as unknown, because the daemon cannot tell the host’s zone; the cooldown and one probe re-learn it. To close a breaker early, use Clear on the dashboard chip orPOST /api/v1/backend-health/clear(see the API reference).
While a breaker is open, no issue is started on that backend and host.
Workers, retries, reviewers, automation runs and input-required resumes are
all checked. An issue that cannot run anywhere is held with the
backend_limited ineligible reason (shown as the issue’s “why idle” reason),
never paused, and consumes no retry. Queued automations stay queued with
backend_limited. When the reset passes, the breaker half-opens: exactly
one issue is dispatched as a probe, and the others wait. A probe that
succeeds (or stops to ask a question) closes the breaker. A probe that hits
the limit again reopens it. Open breakers survive a restart
(backend_health.json in the daemon log directory, next to
auto_switched.json; runtime state, never commit it).
Declarative fallback. With agent.backend_fallback, a limited target is
rerouted instead of held:
agent: backend_fallback: chain: [claude, codex] # preference order profile_map: # counterpart profile per backend coder: { codex: coder-codex } reviewer: { codex: reviewer-codex } default: { codex: coder-codex } # issues running agent.command on_unmapped: hold # hold | backend_hint default_cooldown_minutes: 15 # when the vendor publishes no reset min_dwell_minutes: 30 switch_back: at_reset # at_reset | on_success | manual| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | true when the block is present | false keeps the block but turns rerouting off. Without the block there is no rerouting, but the breaker still holds issues on a limited backend. The whole block may also be a boolean: backend_fallback: false is off, true is on with the defaults. Any other shape ("off", a number, a list, enabled: "false") fails config loading |
chain | []string | [claude, codex] | Backends tried in order when the target is limited. Known (claude, codex, opencode, cursor, custom), distinct backends only. An entry may name a quota pool as backend/pool (claude/local); see “Quota pools as fallback steps” below |
profile_map | map | {} | source_profile: {backend: target_profile}. default is the key for issues that run agent.command. Every target must exist, be enabled and actually run that backend (its command’s binary, else its backend: for a wrapper). A backend key may be backend/pool; its target must then have that pool. The reverse direction is implied: a target profile maps back through its source row |
on_unmapped | string | hold | For a profile with no mapping: hold (wait with backend_limited) or backend_hint (request the chain backend for the issue’s own command; works only for wrapper commands — a claude ... command is never paired with codex) |
default_cooldown_minutes | int | 15 | How long a breaker stays limited when the vendor published no reset time (1–1440). Also used by the breaker when the block is absent |
min_dwell_minutes | int | 30 | Minimum time a switched issue stays on the fallback before it may switch back. It never blocks a further hop when the fallback itself becomes limited |
switch_back | string | at_reset | at_reset: the override is cleared once the dwell has passed AND the original backend is no longer limited (its reset, or the cooldown, has passed); the next dispatch goes back through the breaker. on_success: cleared by the first successful run after the dwell. manual: never cleared automatically (pin a backend, or use switch_revert_hours) |
The block is read at load time: set it in .itervox/settings.jsonc (or,
deprecated since v0.3, in WORKFLOW.md’s front matter); a hand edit of
either file reloads the daemon, which applies it. It has no runtime setter,
and the Settings page shows it read-only outside its JSON view. For a
walk-through, see the Backend health and fallback guide.
A switched implementer issue keeps its new profile and backend for later
runs (a sticky override, shown on the card as codex (auto) and in the
snapshot’s autoSwitches). Before, a success cleared the override, so the
next dispatch went back to the still-limited backend. Each fallback switch
counts against max_switches_per_issue_per_window. With the cap spent, the
issue is held rather than rerouted. Reviewer and automation runs are
rerouted per run and leave the issue’s profile alone.
Precedence (fallback vs pins vs rate_limited rules):
- An operator’s per-issue backend pin (dashboard issue detail, or
POST /api/v1/issues/{identifier}/backend) wins. A pinned issue is never rerouted: when its pinned backend is limited it is held withbackend_limited. A pin is refused up front (409 backend_pin_refused) when the issue’s command runs the other backend. agent.backend_fallback, for profiles it maps (or every profile withon_unmapped: backend_hint). When such a run hits a usage limit, the fallback alone handles it: the issue is rerouted at once (no retry consumed) or held, andrate_limitedautomations are not evaluated for that exit.rate_limitedautomations, for everything else: unmapped profiles, pinned issues, and failures classified from text at retry exhaustion. They keep their own cap, cooldown and switch target. A switch target on a limited backend is queued withbackend_limitedrather than started.
When both are configured, use profile_map for the common Claude ⇄ Codex
pairs and keep rate_limited rules for custom mappings or helper runs.
Quota pools as fallback steps. A chain entry or a profile_map backend
key may name a pool as backend/pool. This lets a profile that runs Claude
Code against a local model server take over when Anthropic’s usage limit
opens the claude breaker:
agent: profiles: coder: command: claude --model opus coder-codex: command: codex --model gpt-5 coder-local: command: "ANTHROPIC_BASE_URL=http://127.0.0.1:8000 claude" pool: local # its own breaker: claude/local backend_fallback: chain: [claude, codex, claude/local] profile_map: coder: { codex: coder-codex, "claude/local": coder-local }A limited coder run moves to coder-codex, or to coder-local when Codex
is limited too, and switches back per switch_back. The backend part must be
a known backend and the pool must match [a-z0-9-]+. A profile_map target
for claude/local must run claude with pool: local. A target with a pool
cannot be mapped under the plain backend key, and the other way round. The
snapshot’s backendHealth rows report a pooled breaker with the lane as its
backend ("claude/local"). Clear and
POST /api/v1/backend-health/clear take the same value.
SSH dispatch
Section titled “SSH dispatch”Itervox can distribute agent work across multiple remote hosts via SSH. Each host runs the agent CLI in a separate SSH session.
| Field | Type | Default | Description |
|---|---|---|---|
ssh_hosts | string[] | [] | List of SSH hosts in "host" or "host:port" format. When empty, agents run locally. |
ssh_host_descriptions | object | {} | Optional display labels for ssh_hosts. Keys are host strings, values are user-facing descriptions shown in the dashboard. |
ssh_strict_host_checking | string | "accept-new" | Default StrictHostKeyChecking mode applied to every SSH worker connection. Valid values: accept-new (TOFU — pin on first contact, reject on mismatch), yes (strict — reject any unknown or changed key), no / off (permissive — accept any key, insecure), ask (prompt — incompatible with BatchMode=yes). Defaults to accept-new so a brand-new host’s key is recorded in ~/.ssh/known_hosts on first contact and any subsequent mismatch is rejected. |
ssh_strict_host_by_host | object | {} | Per-host override for StrictHostKeyChecking, taking precedence over ssh_strict_host_checking. Keys are host addresses (matching entries in ssh_hosts), values use the same set as the default. Use to harden production hosts to yes or temporarily relax a sandbox VM to no. |
dispatch_strategy | string | "round-robin" | How issues are routed to SSH hosts. "round-robin" cycles through hosts in order. "least-loaded" sends each new issue to the host with the fewest active workers. Ignored when ssh_hosts is empty. |
agent: ssh_hosts: - build-host-1.example.com - build-host-2.example.com:2222 dispatch_strategy: least-loaded # Default to TOFU for all hosts; harden production specifically. ssh_strict_host_checking: accept-new ssh_strict_host_by_host: "build-host-1.example.com": yesWorker host requirements. Each turn runs as ssh -T <host> bash -lc '<fixed wrapper>', with the script (prompt included) sent on ssh’s stdin, so the worker needs bash 3.2 or later (with process substitution: /dev/fd or a writable TMPDIR) plus the POSIX userland tools sh, cat, printf, wc and sleep — no setsid, ps, head or base64. The prompt reaches the agent CLI on its stdin, never as a command-line argument (claude ... -p, codex exec ... -), so no prompt size is refused on Linux workers (MAX_ARG_STRLEN); Claude Code caps piped input at 10 MB. The remote user’s login shell can be any of sh, bash, zsh, dash, ksh, csh or tcsh; it only passes the wrapper to bash. Any SSH server works (OpenSSH or Dropbear): the wrapper creates its own process group for the agent instead of relying on the server’s. The worker’s login profile must not read stdin: a profile that reads a line or a fixed number of bytes makes the turn fail with exit 97 (“arrived truncated”), and one that reads stdin to end-of-file blocks the turn until it is cancelled.
Cancelled turns stop the remote agent. itervox keeps the ssh connection’s stdin open for the whole turn. When a turn is cancelled, times out, or the daemon shuts down, the local ssh client is killed, sshd closes the session, and the wrapper on the worker sees end-of-file on stdin. It then sends SIGTERM to the process group it created for the agent (the agent and everything it started), and SIGKILL 2 seconds later. Nothing outside that group is signalled — not the SSH server, other sessions on the same connection (Dropbear, ControlMaster), or background jobs your login profile started — and a normally finished turn signals nothing at all. A readonly TMOUT in the login profile does not affect it. A process that moved itself into another process group or session (for example with setsid) is not reached. If the network drops without the client dying, sshd only notices once its ClientAliveInterval or TCP keepalive expires, and the stop happens then.
Available models
Section titled “Available models”The available_models field stores the list of models available for each backend. This is auto-populated by itervox init (which queries claude --list-models / codex --list-models) and used by the web dashboard’s profile editor to suggest models in the dropdown.
| Field | Type | Default | Description |
|---|---|---|---|
available_models | map | {} | Map of backend name ("claude", "codex", "opencode", "cursor") to a list of model options. itervox models refresh fills claude and codex from the vendor APIs and opencode from opencode models; a cursor list is written by hand. Each entry has id (model ID string) and label (human-readable name). |
agent: available_models: claude: - { id: "claude-haiku-4-5-20251001", label: "Haiku 4.5 - Fast" } - { id: "claude-sonnet-4-6", label: "Sonnet 4.6 - Balanced" } - { id: "claude-opus-4-6", label: "Opus 4.6 - Powerful" } codex: - { id: "gpt-5.3-codex", label: "GPT-5.3-Codex - Frontier coding" } - { id: "gpt-5.2-codex", label: "GPT-5.2-Codex - Long-horizon agentic coding" }If available_models is empty or missing, the dashboard falls back to a built-in default list.
Agent profiles
Section titled “Agent profiles”Named profiles let you configure alternative agent commands selectable per-issue from the web dashboard. Each profile must specify a command. In schema 2, profile text lives in files under .itervox/agents/<profile>/; WORKFLOW.md stores references to those files.
| Field | Type | Description |
|---|---|---|
command | string | CLI command for this profile (e.g. "claude --model claude-haiku-4-5-20251001"). |
soul_file | string | Path to SOUL.md, relative to WORKFLOW.md when not absolute. Holds identity, purpose, boundaries, and collaboration style. |
instructions_file | string | Path to INSTRUCTIONS.md, relative to WORKFLOW.md when not absolute. Holds operational rules, checklists, and done criteria. |
backend | string | Explicit backend override for this profile (same as the top-level backend field): claude, codex, opencode, cursor or custom. |
pool | string | Optional, empty by default. Names a separate quota pool for the profile’s backend, for a profile that points a known agent CLI at another model server, e.g. command: "ANTHROPIC_BASE_URL=http://127.0.0.1:8000 claude" with pool: local. The profile still runs the claude backend, but its circuit breaker is claude/local, so a Claude usage limit does not hold it, and agent.backend_fallback can name claude/local as its own step. Lower-case letters, digits and -; any other value fails config loading. Read at load time; kept as is when the profile is saved from the dashboard. See Backend health and fallback. |
enabled | boolean | Optional. Disabled profiles stay in config but are hidden from normal selection and dispatch. |
allowed_actions | string[] | Optional daemon-backed actions the profile may invoke: comment, comment_pr, create_issue, move_state, provide_input. |
create_issue_state | string | Required when allowed_actions includes create_issue; the tracker state/column used for follow-up issues. |
create_issue_labels | string[] | Optional, empty by default. The labels a create_issue call may put on the new issue (itervox action create-issue --label …); any other label is refused with agent_action_denied, and an empty list allows none. Use it to route follow-ups to another daemon whose tracker.filter selects the label. Kept as is when the profile is saved from the dashboard. See Work across two repositories. |
permission_mode | string | "bypass" |
isolation | string | Optional. process runs this profile’s agent (and every process it starts) in an OS sandbox: bubblewrap or Landlock on Linux, sandbox-exec on macOS. none turns it off for this profile. Unset inherits agent.isolation. When no sandbox works the run does not start. Refused at load together with agent.ssh_hosts. Kept as is when the profile is saved from the dashboard. See Process isolation. |
isolation_extra_write | string[] | Optional. Absolute (or ~/) paths a sandboxed run may also write, e.g. ~/.npm. |
isolation_extra_deny | string[] | Optional. Absolute (or ~/) paths a sandboxed run may not read or write, on top of the built-in deny list. |
push | string | Optional. daemon makes this profile patches only: its agent’s environment carries no forge or tracker credentials, its shims refuse git push, gh pr create, gh pr merge and other pull-request writes, and after a successful run (and after hooks.after_run_required, verify and the file part of require_evidence) Itervox pushes the branch with its own credentials, classified into guardrails.lanes (a human-lane change waits for approval), and opens the pull request. With verify, only a commit whose tree the signed checks ran on is pushed. agent keeps the agent pushing. Unset inherits agent.push. Kept as is when the profile is saved from the dashboard. See Patches only. |
require_evidence | string[] | Optional, off by default. Checks a run of this profile must prove before Itervox moves its issue to completion_state, e.g. [test, lint, ci]. See Done needs evidence. Kept as is when the profile is saved from the dashboard. |
verify | list of {name, run, timeout_ms} | Optional, off by default. Checks the daemon runs itself in the worktree after a successful run, before the run counts as succeeded, e.g. [{name: test, run: "make test"}]. Each run is recorded and signed; a non-zero exit holds the run like failed evidence. A name also in require_evidence is proved by this run, never by the agent’s evidence file. timeout_ms defaults to 600000 (10 minutes). See Signed checks. Kept as is when the profile is saved from the dashboard. |
SOUL.md is appended before INSTRUCTIONS.md, and both files support the same Liquid bindings as the main WORKFLOW.md prompt. Automation instructions are appended after the selected profile files. agent.profiles.*.prompt is legacy input for itervox init --update; schema 2 rejects it at daemon startup.
The dashboard profile editor edits SOUL.md and INSTRUCTIONS.md separately
and writes those files before refreshing the snapshot.
allowed_actions do not grant shell or tracker access by themselves. They only
allow the daemon to mint short-lived per-run bearer grants for the corresponding
/api/v1/agent-actions/* routes.
Done needs evidence
Section titled “Done needs evidence”An agent saying it is finished is not proof. With require_evidence on a profile, a successful run of that profile moves the issue to completion_state only when every listed check is proven:
agent: profiles: implementer: command: claude require_evidence: [test, lint, ci]-
Named checks (
test,lint, or any short name you choose): the agent records each one in a JSON file,.itervox/evidence/<profile>.jsonin the workspace, also available as{{ run.evidence_path }}. The run’s prompt gets an## Evidence (required)block that names the file, the checks and the format:{"commit": "<git rev-parse HEAD>", "checks": [{"name": "test", "command": "make test", "output": "ok ./... 3.2s", "passed": true}]}A check counts when it has
passed: trueand a non-emptycommandandoutput. In a git worktree the evidence must name the commit the checks ran on by its id (a 7+ character prefix is enough; a branch name such asHEADdoes not count), and the only later commits allowed are ones that touch nothing outside.itervox/(moving code into it counts as a change) (such as the handoff commit Itervox makes after the run). Proof from before a code change never counts for new code. A staged or unstaged change to a tracked file outside.itervox/handoff/and.itervox/evidence/also voids the evidence: the checks did not run on it. -
ci: the run’s pull request must have only passing checks (gh pr checks; skipped checks count as passing). Pending, failing or unreadable checks, or no pull request, keep it unmet.
Without the evidence, the issue is not moved: the run ends input required with a “Needs evidence before moving to …” reason listing each missing check, shown in the dashboard and posted on the issue. Reply (for example “run the tests and record them”, or once CI is green) to resume the agent; the resumed run is checked again and moves the issue once the evidence is in place.
Reviewer and automation runs are not gated, since they do not move the issue. Without require_evidence nothing changes. The value must be a list: a single value such as require_evidence: true is a config error, not a silent “off”.
A playbook can also declare require_evidence in its frontmatter. Its checks are added to the profile’s for runs that get that playbook: one list, one ## Evidence (required) block, one gate.
Signed checks
Section titled “Signed checks”require_evidence trusts the agent to record its own checks: the writer of the fix also writes the proof. verify takes the pen away. Itervox runs each command itself, in the issue’s worktree, after the agent’s run ends and before the run counts as succeeded:
agent: profiles: implementer: command: claude require_evidence: [test, ci] # test is proved by verify below; ci by the PR's checks verify: - name: test run: make test - name: lint run: "golangci-lint run ./... | tail -n 50" timeout_ms: 300000| Key | Type | Default | Description |
|---|---|---|---|
name | string | required | The check’s name: lower-case letters, digits, -, _ (up to 32). ci is reserved for the pull request’s checks. Names must be unique. |
run | string | required | The command line. It runs as bash -lc with set -o pipefail first, so a failing command piped into tail or tee still fails. |
timeout_ms | int | 600000 | How long the check may run. Past it, the check’s whole process group is killed and the check fails as timed out. |
- The checks run in order and stop at the first failure. Under
isolation: processthey run in the same sandbox as the agent. - Every check passes (exit
0) → the run succeeds as usual. A check fails, times out, or changes the working tree → the issue is not moved: the run ends input required with a “Signed checks failed (verify)” reason naming the check, its exit code, the command and its last output lines. Reply to resume the agent; the checks run again when the resumed run ends. - Each check is written as a signed record to
.itervox/attestations/<identifier>/<run timestamp>_<profile>.jsonlnext toWORKFLOW.md: the command, its real exit code, start time and duration, the SHA-256 of the combined output and a redacted output tail, the hash of the working tree it ran on and the HEAD commit. Read them withGET /api/v1/issues/{identifier}/attestationsor check a file withitervox attest verify. - The agent’s prompt names the checks (
- signed checks: …in the## Evidence (required)block) so it does not spend turns recording them; anything it writes for them in its evidence file is ignored. Otherrequire_evidencenames are read from the file as before. - Reviewer and automation runs are not checked, as with
require_evidence. The value must be a list of maps; a malformed entry is a config error, never dropped. Load-time only. - The dashboard shows the records in the issue panel’s Signed checks section: each run’s checks with their exit code, duration, short tree hash and whether the record and the run’s seal verify.
See Signed checks for the record format, the key and what it does and does not prove.
Playbooks
Section titled “Playbooks”agent.playbooks attaches a task-type playbook (.itervox/playbooks/<name>.md) to each worker run’s prompt, right after INSTRUCTIONS.md. The playbook is chosen per issue: the operator’s choice in the issue detail view, else the first label mapped by labels, else a confident keyword match over the title and description, else none. See the Playbooks guide for the file format, the classifier and the scaffolded playbooks. Read at load time; the playbook files are read again for every run.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Attach playbooks. With no playbook files nothing is attached either way. |
dir | string | .itervox/playbooks | Playbooks directory, relative to WORKFLOW.md when not absolute. |
classify | bool | true | When no label matches, score the title and description against each playbook’s keywords and attach a confident winner. |
labels | map | see below | Issue label (case-insensitive) → playbook name. A set map replaces the defaults. |
Default labels: bug, bugfix, bug-fix, regression → bug-fix; feature, enhancement → feature; refactor, refactoring, tech-debt → refactor; perf, performance → perf; investigation, spike, research → investigation; docs, documentation → docs.
agent: playbooks: labels: bug: bug-fix defect: bug-fixagent: command: claude max_concurrent_agents: 5 max_turns: 60 turn_timeout_ms: 3600000 read_timeout_ms: 120000 stall_timeout_ms: 300000
max_concurrent_agents_by_state: "in progress": 3 "in review": 2
profiles: fast: command: claude --model claude-haiku-4-5-20251001 soul_file: .itervox/agents/fast/SOUL.md instructions_file: .itervox/agents/fast/INSTRUCTIONS.md thorough: command: claude --model claude-opus-4-6 soul_file: .itervox/agents/thorough/SOUL.md instructions_file: .itervox/agents/thorough/INSTRUCTIONS.md allowed_actions: [comment, move_state] input-responder: command: claude --model claude-sonnet-4-6 soul_file: .itervox/agents/input-responder/SOUL.md instructions_file: .itervox/agents/input-responder/INSTRUCTIONS.md allowed_actions: [comment, provide_input] qa: command: claude --model claude-sonnet-4-6 soul_file: .itervox/agents/qa/SOUL.md instructions_file: .itervox/agents/qa/INSTRUCTIONS.md allowed_actions: [comment, create_issue, move_state] create_issue_state: Todoautomations
Section titled “automations”Automations dispatch a selected profile when a trigger fires, then layer a small instruction block on top of that profile.
Supported triggers:
croninput_requiredtracker_comment_addedissue_entered_stateissue_moved_to_backlogrun_failedpr_opened— fires when a worker’s PR is detectedpr_merged— fires when an itervox-managed PR is merged by the daemon-sidemerge_practionpr_check_completed,pr_synchronized,pr_review_submitted,pr_mergeable_changed— fire on GitHub activity on a PR an Itervox run recorded (a completed check or status, a new push, a submitted review, a merge conflict appearing or clearing). Sourced from GitHub webhooks (pr_events.webhook_secret) or a poll of the open managed PRs; see PR events.rate_limited— fires when a worker run hits a vendor usage limit. A structured limit reported by the agent (Claude’srate_limit_eventwith statusrejected, or a result with API status 429/402; a Codex “You’ve hit your usage limit” error) fires it on the first failure without consuming a retry, also withmax_retries: 0. Otherwise it fires when the run exhausts its retries and the failure text is classified as rate-limit-driven. The switch cap limits automated switching; it is not the trigger condition. With no eligible fallback, the issue is retried after the vendor’s reset time (at most 6 hours).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; cron rules are
checked every 15 seconds regardless). tracker_comment_added compares only the latest
observed comment, so multiple comments between polls collapse to the latest
comment for trigger purposes.
Automation event poll
Section titled “Automation event poll”The event poll lists only the states its rules can fire on (#155):
| Rule | States the poll fetches |
|---|---|
| any event-polled rule | its filter.states (a named state is fetched, terminal or not) |
issue_entered_state | trigger.state, plus tracker.active_states |
issue_moved_to_backlog | tracker.backlog_states, plus tracker.active_states |
tracker_comment_added | tracker.active_states; with filter.states set and match_mode: all, only those states |
tracker.terminal_states, tracker.completion_state and tracker.backlog_states
are never fetched unless a rule names them (or, for backlog, an
issue_moved_to_backlog rule exists). With no tracker_comment_added,
issue_entered_state or issue_moved_to_backlog rule, the poll makes no
request at all. cron rules fetch their own states when they fire;
blockers_resolved is fired by the dependency audit; the other triggers come
from the daemon’s own events.
A move into a polled state from a state the poll does not fetch (for example
Backlog → Todo for an issue_entered_state: Todo rule, or Done → Backlog for
issue_moved_to_backlog) still fires: an issue that was not listed by the
previous poll, now sits in a state that poll fetched, and was created more than
a minute before it, has moved. Its {{ trigger.previous_state }} is then
empty, since the poll never saw it. A move from an active state reports its
previous state as before. An issue created in the trigger state does not fire.
Neither does an issue that only became visible because the runtime project
filter (dashboard) changed: the first poll after a filter change takes a
fresh baseline instead of inferring moves.
tracker_comment_added watches comments only on the issues the poll lists, so
a rule without filter.states no longer watches comments on backlog or
terminal issues; name those states in filter.states to watch them. (Terminal
issues were never dispatched by any automation.)
With the tracker store on (the default for Linear and GitHub), the poll’s state set becomes a store view after one fetch, and every later poll is answered from the store, which the store’s incremental “updated since” pull keeps current, so the poll itself costs no list requests.
When a trigger cannot start immediately for a retryable runtime reason such as
no_slots, per_state_limit, already_running, input_required,
pending_input_resume, or blocked_by, Itervox records a durable automation
queue entry instead of dropping the attempt. The queue is capped by
agent.max_automation_queue_length. Saturation pauses recurring/cron/polled
producer intake; one-shot and internal dispatch attempts are rejected and
counted for audit rather than paused. Existing queue entries continue draining
until the queue falls below the low-water mark.
| Field | Type | Description |
|---|---|---|
id | string | Stable automation identifier. |
enabled | bool | Whether the automation is active. |
profile | string | Name of the agent profile to dispatch. |
instructions | string | Small Markdown/Liquid instruction overlay appended after the selected profile files. |
trigger.type | string | Trigger type. |
trigger.cron | string | Five-field cron expression for cron triggers. |
trigger.timezone | string | Optional timezone for cron triggers. |
trigger.state | string | Required for issue_entered_state; the tracker state that must be entered. |
filter.match_mode | string | How populated filters combine: all or any. |
filter.states | string[] | Issue-state filter. For cron automations, leave empty to use backlog and active states. |
filter.states_any | string[] | Alias for filter.states; recommended for blockers_resolved examples to make the source-state policy explicit. |
filter.labels_any | string[] | Match issues with at least one of the listed labels. |
filter.groups | list of groups | The tracker filter group syntax (#198): matches when any group matches. One more check beside states, labels_any and identifier_regex, combined by match_mode. filter: can also be the list of groups itself. assignee: me is not resolved here (use a user id or login); states is plain membership. |
filter.identifier_regex | string | Regex matched against issue identifiers like ENG-42. |
filter.limit | int | Maximum number of issues to queue from one cron tick or event poll batch. On cron rules the selection rotates between ticks from a persisted per-rule cursor (see the automations guide). |
filter.input_context_regex | string | Only meaningful for input_required; matched against the blocked-agent question text. |
filter.max_age_minutes | int | Only meaningful for input_required; skips blocked entries older than this many minutes. |
filter.check_names | string[] | Only for pr_check_completed: check run names or commit status contexts (case-insensitive). Empty = every check. |
filter.conclusions | string[] | Only for pr_check_completed: success, failure, neutral, cancelled, skipped, timed_out, action_required, stale, error. Empty = every conclusion. |
filter.review_authors | string[] | Only for pr_review_submitted: GitHub logins (case-insensitive), e.g. greptile-apps[bot]. |
filter.review_states | string[] | Only for pr_review_submitted: approved, changes_requested, commented, dismissed. |
filter.mergeable_states | string[] | Only for pr_mergeable_changed: fire on a move into these states. Empty = into or out of dirty (a conflict). |
policy.auto_resume | bool | For input_required, allows the helper to resume the blocked run via provide_input. For rate_limited, accepted but prefer policy.auto_switch. |
policy.auto_switch | bool | Alias for policy.auto_resume on rate_limited; allows immediate profile/backend switching without a human approval step. |
policy.switch_to_profile | string | Required for rate_limited; profile to use for the switched run. The issue is reassigned to it (over an earlier operator pin) until the switch is reverted. |
policy.switch_to_backend | string | Optional claude/codex backend override for rate_limited switched runs. |
policy.cooldown_minutes | int | Optional cooldown for rate_limited rules on the same issue/profile tuple. Default is 30 when unset. |
policy.move_to_state | string | Optional for blockers_resolved; allows the helper profile to move matching unblocked issues to this state when the profile includes move_state. |
When switch_to_backend is set, the target profile command must be compatible with that backend. Prefer a dedicated Codex profile such as command: codex / backend: codex, or a backend-aware wrapper command.
pr_events
Section titled “pr_events”How the PR-event triggers (pr_check_completed, pr_synchronized, pr_review_submitted, pr_mergeable_changed) learn about GitHub activity on managed PRs. Read at load time.
| Field | Type | Default | Description |
|---|---|---|---|
pr_events.webhook_secret | string | empty | When set ($VAR resolves from the environment; at least 16 characters), serves POST /api/v1/webhooks/pr-events for signed GitHub check_run, status, pull_request and pull_request_review deliveries. The poll then only reads each managed PR (head SHA and mergeable_state). Empty: the poll on polling.automation_interval_ms also reads check runs, statuses and reviews. |
pr_events: webhook_secret: $ITERVOX_PR_WEBHOOK_SECRETThe poll needs a GitHub token that can read the PR’s repository: tracker.api_key when the tracker is GitHub, else GH_TOKEN / GITHUB_TOKEN (GH_ENTERPRISE_TOKEN / GITHUB_ENTERPRISE_TOKEN for an Enterprise host), else the gh CLI login. A Linear-tracked project with PRs on GitHub works after gh auth login, or with GITHUB_TOKEN in .itervox/.env. Managed PRs and the PR-event dedup ledger persist in pr_events.json in the daemon log directory, next to automation_queue.json.
Dependency readiness and blockers
Section titled “Dependency readiness and blockers”Itervox exposes tracker blockers to the prompt and dashboard, and normal issue dispatch skips Todo issues whose blockers are still non-terminal. That is the deterministic blocker behavior shipped in v0.2.0.
Automation rules can opt into a deterministic blockers_resolved trigger. Core dependency audit detects when a previously blocked issue has no unresolved blockers left; tracker mutation still happens only through an enabled automation whose selected profile is allowed to use move_state.
automations: - id: qa-ready enabled: true trigger: type: issue_entered_state state: "Ready for QA" profile: qa instructions: | Run the QA routine for this issue. Comment the results. If any required check fails, move the issue to Todo.
- id: pm-backlog-review enabled: true trigger: type: cron cron: "0 9 * * 1-5" timezone: "Asia/Jerusalem" profile: pm instructions: | Review backlog issues for missing clarity and acceptance criteria. Leave one concise comment summarising what is unclear. filter: states: ["Backlog"] limit: 20
- id: unblock-backlog-to-todo enabled: true trigger: type: blockers_resolved profile: pm instructions: | All tracked blockers for this backlog issue are terminal. Move only backlog/Backlog issues to Todo. Do not move review, in-review, PR-open, or merged issues. filter: states_any: ["backlog", "Backlog"] policy: move_to_state: "Todo"For the full mental model, trigger semantics, and examples, see the Automations guide. For runtime behavior, see the Automation Queue guide and Dependency Management guide.
Migrating from schedules: (deprecated)
Section titled “Migrating from schedules: (deprecated)”The legacy schedules: block is still parsed and silently upgraded to equivalent cron automations at startup — but this fallback is deprecated and will be removed in a future release. Itervox logs a warning on startup when a schedules: block is found, with the count of upgraded entries.
To migrate: rewrite each schedules: entry as an automations: entry with trigger.type: cron plus the same cron expression, timezone, profile, and state filter. The legacy format has no instructions: block, so migrated entries start with an empty prompt overlay and can optionally add instructions at migration time.
dependencies
Section titled “dependencies”Controls the dependency graph: which inferred (LLM-detected) edges are trusted enough to hold dispatch, how eligible issues are ordered, and when a long-blocked issue escalates for attention.
Tracker-declared blockers (issue.BlockedBy) always hard-block dispatch and are not configurable here. This block governs the inferred layer plus ordering.
| Field | Type | Default | Description |
|---|---|---|---|
inferred_gating | bool | true | Kill switch for the soft gate. When true, inferred edges can hold dispatch just like tracker blockers. Set false to make inferred edges display-only. |
confidence_threshold | float | 0.7 | Minimum analyzer confidence (0.0–1.0) an inferred edge needs to gate. Lower-confidence edges still appear on the dashboard but never block. Out-of-range values fall back to the default. |
staleness_hours | int | 168 | How long an inferred edge is trusted before it stops gating. Non-positive values fall back to the default. |
ordering | string | "critical_path" | Dispatch ordering strategy. One of critical_path, critical_path_strict, or simple — see Ordering modes. An unrecognized value falls back to the default with a warning. |
escalate_blocked_after_hours | int | 48 | How long an issue may sit blocked before it surfaces as needing attention. An explicit 0 disables escalation and is preserved as a meaningful value; only a negative value falls back to the default. |
analysis_mode | string | "auto" | How the LLM dependency analyzer is triggered. auto: on the scheduler’s debounce/min-interval rules. manual: only via the Deps tab’s Analyze button or POST /api/v1/deps/analyze. The blocker audit is unaffected. Runtime-editable from Settings → Dependencies. auto_analyze (bool) is a deprecated alias: false = manual. Changing the mode from the dashboard leaves the old auto_analyze line in WORKFLOW.md; delete it by hand to stop the “both set” warning on every reload. |
stacked_prs | bool | false | Branch an issue’s worktree from its single live blocker’s branch and point its pull request at that branch — see below. |
auto_analyze_min_interval_minutes | int | 60 | Minimum gap between scheduled analysis passes. Non-positive values fall back to the default — the analyzer must not run every tick. |
auto_analyze_debounce_minutes | int | 5 | Delay after a dispatch-affecting change before analysis starts, so it waits for state to settle rather than racing an in-flight dispatch. |
dependencies: inferred_gating: true confidence_threshold: 0.7 staleness_hours: 168 ordering: critical_path escalate_blocked_after_hours: 48 analysis_mode: auto auto_analyze_min_interval_minutes: 60 auto_analyze_debounce_minutes: 5Stacked worktrees
Section titled “Stacked worktrees”A walk-through of this behaviour is in the Stacked pull requests guide.
Set dependencies.stacked_prs: true to have an issue’s worktree branch from
its blocker instead of workspace.base_branch, so the work starts from the
blocker’s commits rather than duplicating them.
Pull request base. A stacked run’s pull request targets the blocker’s branch, so it shows only this issue’s changes:
- The prompt says so.
{{ run.pr_base_branch }}is the blocker’s branch on a stacked run (andworkspace.base_branchotherwise), and a stacked run also gets a## Stacked Branchblock telling the agent to rungh pr create --base <blocker-branch>. - Itervox enforces it. After a stacked run completes successfully (not for
automation runs, which are blocker-gated anyway), if the issue has an open pull request —
one the run opened or one already linked from the issue — Itervox runs
gh pr edit <url> --base <blocker-branch>unless the base already matches. GitHub only accepts a base branch that exists on the remote, so the blocker’s branch must have been pushed; ifghrefuses, the daemon logs a warning and the PR keeps its base.
A run counts as stacked when its worktree — new or reused — has the
blocker’s branch in its history and that branch has commits
workspace.base_branch does not. A blocker branch with nothing of its own,
or one that is behind base_branch, is not used as a PR base. An existing
branch is checked out as it is, so it counts as stacked only if it was
already built on the blocker. If base_branch does not exist locally, only
the first condition is checked.
dependencies: stacked_prs: trueIt applies only when an issue has exactly one live blocker, and that
blocker must carry an identifier — without one it cannot name a branch, so
itervox declines to stack rather than guess. An unidentified blocker still
counts as a live blocker: it is a real dependency, so an issue with one
identified and one unidentified live blocker does not stack either. With
several live blockers,
any choice of base would be arbitrary: the branch would sit on one blocker
while still depending on the others, so the PR would not be reviewable in
isolation. A blocker that has already reached a terminal state is skipped —
its work is in base_branch already.
Stacking is best-effort by design. If the blocker’s branch does not exist in
this checkout — not dispatched yet, worked on another machine, worktree
cleared — itervox falls back to base_branch and logs the decision. Review
ergonomics must never be the reason a dispatch fails.
Restacking. When a blocker reaches a terminal state, itervox replays the
dependent’s worktree onto base_branch automatically, so the stack does not
drift behind subsequent merges. Three cases are refused rather than forced:
| Situation | Behaviour |
|---|---|
| The dependent is running | Deferred. Rebasing a worktree an agent has checked out moves HEAD under a live process; the restack (and the pull request retarget) runs on the first dependency audit after the run ends, unless the issue is blocked again by then. |
| The worktree has uncommitted changes | Skipped. That work is unpushed and unbacked-up. |
| The rebase conflicts | Aborted — the branch is left byte-identical — and the issue moves to input_required with the reason. A conflict needs an owner; resolving it automatically would be a guess. |
An issue that still has another live blocker is never restacked, matching the rule that stacking only happens with exactly one live blocker.
After a restack — or when the branch already sits on base_branch — Itervox
points the dependent’s open pull request at base_branch with
gh pr edit --base, off the event loop. A skipped (running or dirty) or
conflicted restack leaves the pull request alone. Restacking does not push:
until the rebased branch is pushed, the pull request still shows its old
commits.
Ordering modes
Section titled “Ordering modes”All three modes share the same final tiebreakers (created_at oldest first, then identifier). They differ only in what they weigh before reaching them:
| Mode | Comparison order | Use when |
|---|---|---|
critical_path (default) | priority band → fan-out → chain length | You want operator-set priority to stay authoritative. |
critical_path_strict | fan-out → chain length → priority band | You want throughput across the dependency graph to outrank the priority field. |
simple | priority band only (no graph awareness) | You want the legacy pre-graph behaviour. |
“Fan-out” is how many issues are transitively unblocked by finishing this one; “chain length” is the longest downstream path. Both are computed per tick over the dependency graph, with cycles collapsed so they cannot skew the counts.
The distinction that matters: critical_path applies graph leverage only as a tiebreaker within a single priority band. If your issues carry consistently distinct priorities, the graph metrics are never consulted and the mode behaves like simple. Choose critical_path_strict when you want a blocker that gates a dozen issues to dispatch ahead of an unrelated urgent leaf.
The tradeoff runs both ways. critical_path_strict deliberately overrides an explicit operator signal — an issue marked urgent for a reason outside the graph (a customer escalation, a deadline) will wait behind a high-fan-out lower-priority blocker. Prefer the default unless you are specifically optimising fleet throughput.
Both graph-aware modes degrade to exactly simple’s ordering when the issue set has no dependency edges, so enabling either on a project without blockers changes nothing.
For the full mental model, see the Dependency Management guide.
Shell commands run at lifecycle points in each issue’s workspace. All hooks run in the issue’s workspace directory.
| Field | Type | Default | Description |
|---|---|---|---|
after_create | string | "" | Shell command run after the workspace directory is created, before any agent runs. Typically used to clone the repository. |
before_run | string | "" | Shell command run once per worker invocation, before the first agent turn of that attempt. Typically used to sync the branch (git fetch, git reset). |
after_run | string | "" | Shell command run after each completed agent turn. |
after_run_required | bool | false | When true, a worker whose final after_run hook exits non-zero fails the unit instead of completing it — the hook becomes a per-unit completion gate. |
before_remove | string | "" | Shell command run before the workspace directory is deleted (when workspace.auto_clear: true or on manual removal). |
timeout_ms | int | 60000 | Maximum time allowed for any single hook to complete (60 seconds). |
All hooks run via bash -lc in the issue workspace (on Windows, Git Bash’s bash.exe or ITERVOX_SHELL; without one every hook fails — see Running on Windows). Itervox does not inject any per-issue environment variables into hook processes; hooks inherit the daemon’s environment as-is. before_run is intentionally per-attempt, not per-turn, so setup hooks do not wipe agent progress between turns. On an in-place input_required resume, Itervox skips before_run; if the workspace had to be recreated first, the normal setup hooks run again.
By default after_run failures are logged and ignored. Set hooks.after_run_required: true to turn after_run into a per-unit completion gate: a unit whose final after_run hook fails does not complete, regardless of the agent’s own clean exit. Use it to run make test (or any operator-owned verification) as part of the definition of done, complementing the CI-governed merge gate.
Multi-line shell scripts are supported using YAML block scalars:
hooks: after_create: | git clone git@github.com:owner/repo.git . pnpm install --frozen-lockfile before_run: | git fetch origin main git checkout main git reset --hard origin/main after_run: | git status --short before_remove: | tar -czf ../workspace-backup.tgz . timeout_ms: 120000sessions
Section titled “sessions”Which Claude Code and Codex sessions started by hand on the daemon’s host the Sessions panel lists — read-only, with their transcript and whether their CLI is still running — and whether the panel may control sessions running in tmux. Read at startup.
| Field | Type | Default | Description |
|---|---|---|---|
external | bool | true | Discover hand-started sessions from ~/.claude/projects/**/<id>.jsonl and ~/.codex/sessions/**/rollout-*.jsonl ($CLAUDE_CONFIG_DIR / $CODEX_HOME respected). false lists only itervox’s own sessions. |
external_window_hours | int | 24 | Only sessions whose transcript was written to within this many hours are listed. Zero or negative falls back to the default. |
external_scope | string | project | project: only sessions whose working directory is inside the WORKFLOW.md directory or one of external_roots — sessions from unrelated directories are never read or shown. all: every recent session of the daemon’s user. Any other value falls back to project. Sessions under the itervox workspace root are never listed either way. |
external_roots | []string | [] | Extra directories (absolute, ~, $VAR, or relative to the WORKFLOW.md directory) whose sessions the project scope lists, e.g. a sibling checkout. |
steering_phrases | list | six defaults | One-click steering chips in the Sessions composer and the issue steer box (#218). Each entry is {label, message}, or a bare string (a default’s label keeps that default’s message). [] shows none. Labels up to 40 bytes, messages up to 1 KiB, at most 20 entries. See Steering phrases. |
terminal_write | bool | false | Let an admin token type into the Sessions panel’s live terminal (a read-write tmux attach-session). This is effectively a remote shell on the daemon’s host. Off, the live terminal is read-only for operator and admin tokens; viewers never get one. It reaches only the sessions tmux_control and New session already allow. Read at startup; ignored on Windows. |
tmux_control | bool | false | Let the Sessions panel show the screen of, and type into, a hand-started session running in a tmux pane (Sessions in tmux). Anyone holding the dashboard token can then type into those sessions; every write is audited (sessions: tmux send, never the text). Sessions itervox starts with New session are controllable either way. Read at startup. Not available on Windows, where tmux does not run: true there stops the workflow from loading (Running on Windows). |
sessions: external_window_hours: 12 external_roots: - ~/src/app-docsA remote daemon lists the sessions on its own host. Transcripts are served only with the daemon’s API token, like logs.
guardrails
Section titled “guardrails”Limits on what agents Itervox starts may do with git, the GitHub and GitLab CLIs and deploy commands. They apply to dispatched runs on the daemon’s host and to tmux sessions started with New session; never to sessions you started by hand. See the Guardrails guide for how they work and what they cannot stop. Read at startup.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Turn the guardrails on. On, an agent may push only to its issue branch (no tag pushes, no pushes to main, master, develop or the base branch), never runs gh pr merge, glab mr merge or a merge API call, never merges into the default branch, and waits for a human approval before a command in approval_commands runs. |
allow_force_push | bool | false | Let an agent force-push (--force, --force-with-lease) and delete its own issue branch. Pushes to other branches and tags stay refused. |
approval_commands | []string | vercel --prod, fly deploy, kubectl apply, terraform apply, gcloud deploy, npm publish, cargo publish | Commands that need a human approval. Each is a sequence of glob tokens (* matches anything, / included): the first matches the program name, the rest must each match an argument, in order, with other arguments allowed between them — kubectl apply matches kubectl -n prod apply -f k8s/, gcloud deploy matches gcloud run deploy, and a flag token also matches the flag with a value (--prod matches --prod=true). A list replaces the defaults, so write them out to keep them; [] turns approvals off. The program must be a bare name: a path or glob in the first token cannot be intercepted (a warning is logged). |
approval_commands[].match, approval_commands[].when_env | object entry | none | An environment-scoped approval command: {match: "terraform apply", when_env: {TF_WORKSPACE: "prod*"}} holds match (plain-entry syntax) only when every when_env variable’s value matches its glob (*, ?; a leading ! negates; unset is the empty string) in the environment the command runs with — checked at exec time by the shim, and from the session’s environment and the command’s VAR=value prefix by itervox hook. Mix freely with plain strings, which keep matching in every environment. An object without when_env is a plain entry; one with no match, an unknown key or a when_env that is not a map of variable names to strings is a startup error. |
lanes.human | []string | .github/**, .gitlab-ci.yml, .circleci/**, .itervox/**, !.itervox/handoff/**, WORKFLOW.md, CODEOWNERS, .github/CODEOWNERS, jest.config.*, vitest.config.*, pytest.ini, .coveragerc, codecov.yml, .golangci.yml, Makefile | Files that decide how CI checks a change (Lanes): an agent’s push that changes one waits for a human approval (shown as a Pipeline change, pushed once on approve), and merge_pr never merges the issue’s pull request (lane_human). Gitignore-style patterns over repository paths: ** spans directories, a name without / matches at any depth, ! excludes. A list replaces the defaults; [] turns the lane off. A malformed pattern is a startup error. |
lanes.second_opinion | []string | none | Files whose changes need a second opinion: the push goes through, and merge_pr refuses (lane_second_opinion) until a reviewer on a different backend than the writer’s has approved after the last such push. |
guardrails: enabled: true allow_force_push: false approval_commands: - "vercel --prod" - "fly deploy" - "kubectl apply" - "terraform apply" - "gcloud deploy" - "npm publish" - "cargo publish" - "helm upgrade *-prod" # your own # - match: "terraform apply" # instead of the plain entry: # when_env: {TF_WORKSPACE: "prod*"} # held for prod workspaces only lanes: # optional; absent = the default human lane second_opinion: ["internal/auth/**", "migrations/**"]itervox init writes this block; itervox init --update adds it, with the defaults, to a workflow that has none. An approval reply whose first word is approve, approved, yes, y, ok, okay or allow approves the command once; any other reply rejects it and is passed to the agent as the reason. Runs on SSH worker hosts are not guarded in v1 (a warning is logged at startup and per run).
memory
Section titled “memory”How much managed memory each run gets. Read at startup (changing it needs a restart; the memory files themselves are read again for every run).
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Give runs a ## Memory block. false: no run gets memory; the Memory page can still edit the files. |
token_budget | int | 2000 | The most tokens (estimated at four bytes each) the memory block may take. Pinned entries are always included; the rest fill what is left, best match first, and the first that does not fit ends the block, so the lowest-ranked are dropped first. Zero or negative falls back to the default. |
prompt_share_tokens | int | 8000 | The most tokens the rules block and the memory block add to a prompt together. Memory gets what the rules leave, up to token_budget; rules are never cut. Pinned entries are the one exception: they are kept even past the share (a warning is logged). Zero or negative falls back to the default. |
memory: token_budget: 1000memory.lessons
Section titled “memory.lessons”Lessons Itervox proposes itself (see the Memory guide): from a human’s correction in an input-required reply or a steering message, from a run that failed or stalled followed by a successful run on the same issue after a change, from a change reviewers asked for at least twice, from a merged agent PR that was reverted, and from a hard-won success (a recipe). A proposal is a lesson entry with status: proposed; no run uses it until someone approves it. Read at startup. Lessons need memory.enabled.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Propose lessons. |
profile | string | the reviewer profile | The agent profile whose backend drafts a lesson’s wording, in one short call with no tools in an empty temporary directory (sandbox permission mode). Empty: agent.reviewer_profile when one is set. template, or no profile: every lesson is filled in from a template (“When …, do … Instead of: …”) from the correction text, with no agent call. A failed, over-budget or unusable call also falls back to the template. |
scope | private | project | private | The memory file proposals are written to. private falls back to the project file when private memory is off. |
auto_approve | bool or map | false | Approve proposals at once instead of queueing them. true covers both scopes; a map sets them one by one (auto_approve: {private: true, project: false}); it applies to the scope a proposal lands in. |
max_per_issue | int | 3 | The most lessons one issue may propose within rate_window_hours. A proposal that only bumped an existing lesson, or that was suppressed as rejected, does not count. |
rate_window_hours | int | 24 | The per-issue rate-limit window. |
draft_token_budget | int | 6000 | The most tokens (input plus output, as the agent reports them) the drafting call may use; past it the call is stopped and the template is used. |
draft_timeout_ms | int | 60000 | The drafting call’s time limit; past it the template is used. |
stale_after_runs | int | 20 | An approved lesson that none of the last this-many runs (since its approval) used is listed under Not helping, as is one whose recent runs mostly failed. |
enforce_threshold | int | 3 | Once a lesson has been seen this many times (its evidence count), Itervox suggests the strongest enforcement it can draft: a lint rule, a type, a test, a CLAUDE.md or AGENTS.md rule, or an Itervox rule. Drafted by the same budgeted call as the lesson (template fallback). |
enforce_issue_state | string | first backlog state, else first active state | The tracker state an accepted enforcement suggestion’s “Enforce: …” issue is created in. |
recipe_min_failed_runs | int | 2 | A worker run that succeeds after at least this many failed or stalled runs is a hard-won success and proposes a recipe lesson (what worked and how it was verified), unless a failed-then-succeeded lesson already explains it. |
recipe_min_turns | int | 40 | A successful run with at least this many turns is also hard-won, as is one that got a steering message. |
Zero or negative limits fall back to their defaults.
memory: lessons: profile: template # never call an agent to draft auto_approve: private: true # your own lessons apply at onceThe machine’s itervox hub (#228): the first daemon started on a machine serves
one URL, a scoped API proxy and a merged event feed for every project on it.
Guide: The itervox hub. Every key is read at startup (a
WORKFLOW.md reload does not move the hub). The hub is machine-wide, so the
natural home for them is the user settings file, ~/.itervox/settings.jsonc;
the daemon that wins the hub election uses its own values.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Take part in the hub: become it (the first daemon) or join it as a member. false is the same as itervox --no-hub. |
port | int | 8089 | The hub’s port when this daemon serves it. A busy port moves to the next free one (up to 10 tried), recorded in ~/.itervox/daemons/hub.lock. 0 lets the OS pick. |
bind | string | "127.0.0.1" | The hub’s listen address: an IP address or localhost. Every hub route except the health probe needs a hub token (itervox token create --hub), so 0.0.0.0 or a Tailscale address is safe with tokens only; the hub serves plain HTTP, so put TLS in front of it on a network you do not control. |
slack | object | — | The hub’s Slack channel (#230), through your own Slack app over Socket Mode: enabled (default false), allowed_users (Slack user IDs that may reply, approve, reject and steer; empty: nobody, alerts only), channels (hub project name → channel ID, or a user ID for a DM) and default_channel. IDs are checked at load. The app and bot tokens are not settings: itervox hub slack setup stores them in ~/.itervox/hub/.env. Guide: Slack. |
{ "hub": { "enabled": true, "port": 8089, "bind": "127.0.0.1" }}server
Section titled “server”Controls the built-in HTTP server that serves the web dashboard and REST API.
| Field | Type | Default | Description |
|---|---|---|---|
host | string | "127.0.0.1" | Interface the server listens on. Change to "0.0.0.0" to expose on all interfaces. ITERVOX_SERVER_HOST overrides it (see “Bind overrides from the environment”). |
port | int | 8090 | TCP port. 0 = the OS picks a free port (for several daemons on one machine). If the port is in use, startup fails naming the holder. ITERVOX_SERVER_PORT, then PORT, override it. |
allow_unauthenticated | bool | false | By default Itervox requires bearer-token auth on every request, on every bind — including loopback — and auto-generates an ephemeral ITERVOX_API_TOKEN if none is set. Set to true only for trusted, fully local deployments where the daemon is physically unreachable from anyone else — this has an effect on every bind, including loopback, since a loopback daemon behind a tunnel or reverse proxy is exactly as reachable as one bound to 0.0.0.0. Renamed from allow_unauthenticated_lan; the old key still parses and works identically but logs a deprecation warning at startup. State-changing requests from another origin are still refused with 403 (see Authentication below). |
allowed_hosts | list of strings | [] | Extra Host header names the dashboard answers when allow_unauthenticated: true (DNS-rebinding protection). Without a token every route refuses a request whose Host is a DNS name other than localhost, the configured host, or one listed here, with 403 host_not_allowed; IP addresses are always accepted. List the reverse-proxy, tunnel, Tailscale MagicDNS or container service hostname you browse to, without scheme (a :port is ignored). Ignored in token mode. |
allowed_origins | list of strings | [] | CORS allow-list (#231): origins (https://host[:port], no path) whose pages may call this daemon’s API — and the hub’s, when this daemon serves it — cross-origin with a bearer token, such as a dashboard you host elsewhere (see Your phone). A listed origin gets Access-Control-Allow-Origin for itself (never *, never credentials) and its preflights are answered; with the default, an empty list, every page is same-origin only: no CORS header is sent and every cross-origin preflight is refused with 403 origin_not_allowed. Entries are lower-cased and a default port is dropped; one that could never match (no scheme, a path, a wildcard, userinfo) fails config load. Read at startup. |
metrics.enabled | bool | false | Serve Prometheus metrics at GET /metrics (text format) on the dashboard listener. Requires the same bearer token as /api/v1/*; off, /metrics answers 404. Families, labels and semantics: API reference, “Metrics”. Read at startup. |
server: host: 127.0.0.1 port: 8090Bind overrides from the environment
Section titled “Bind overrides from the environment”Containers need 0.0.0.0 and PaaS platforms (Cloud Run, Heroku, Render, …)
inject the port as $PORT, so the bind can come from the environment:
| Value | Precedence, highest first |
|---|---|
| host | ITERVOX_SERVER_HOST → server.host → 127.0.0.1 |
| port | ITERVOX_SERVER_PORT → PORT → server.port → 8090 |
- There is no daemon command-line flag for the host or port.
0means “the OS picks a free port” in an env var as inserver.port; an explicitserver.port: 0still holds when no env var is set.- A variable that is set but invalid — empty, not an integer, outside
0–65535, a host with a scheme (
http://…), a path, whitespace or ahost:portpair — fails startup with an error naming the variable. It is never silently ignored. An IPv6 literal (::,[::1]) or a host name is accepted. - Beware a shell that exports
PORTfor another project: it moves the daemon’s bind. TheHTTP server listeninglog line names the winning source (host_source,port_source). - The environment is fixed when the process starts: a
WORKFLOW.mdreload re-reads the same values, so changing the bind through the environment needs a restart. - The host override feeds the same
server.hosteverything else uses, so the unauthenticated-mode Host guard accepts the env host by name exactly as it would the YAML one, and the dashboard URL written to.itervox/dashboard_urluses the bound address. The cross-origin guard comparesOriginwith the request’sHost, so it is unaffected.
Authentication
Section titled “Authentication”Every bind — including loopback — requires Authorization: Bearer <token> on every HTTP request and SSE stream, unless server.allow_unauthenticated: true is set. Itervox reads the token from the ITERVOX_API_TOKEN environment variable; when unset, the daemon generates a random ephemeral token at startup, installs it, and logs the tokened dashboard URL to stderr once — only when stderr is a terminal or ITERVOX_PRINT_TOKEN=1 (--no-print-token always suppresses it). Headless (systemd, containers, redirected stderr), an auto-generated token is written to <logs-dir>/api-token (mode 0600, rewritten on every start) instead, and the log line carries only its path and a sha256: fingerprint. The dashboard prompts for the token on first load and persists it (session-only by default, or via the “Remember” checkbox in localStorage). The GET /api/v1/health (static liveness) and GET /api/v1/ready (event-loop readiness) probes are auth-exempt so load balancers, uptime monitors and container health checks can use them without a token — they are the only auth-exempt routes. GET /metrics (opt-in via server.metrics.enabled) always needs the token.
Cross-origin guard in unauthenticated mode. With server.allow_unauthenticated: true there is no bearer check, so Itervox instead refuses cross-origin state-changing requests, which stops a malicious web page in the operator’s browser from driving the daemon. A POST, PUT, PATCH or DELETE to /api/v1/* gets 403 with code cross_origin_forbidden when the browser sends Sec-Fetch-Site: cross-site or same-site, or, for a browser that sends no Sec-Fetch-Site, an Origin whose host and port differ from the request’s Host header (Origin: null never matches). Only host and port are compared, not the scheme, so a TLS-terminating proxy in front of a plain-HTTP daemon keeps working. Requests with neither header (curl, scripts, the terminal commands) pass, as do GET requests and the SSE streams. The Vite dev server (page on :5173, proxying to the daemon) passes on any browser that sends Sec-Fetch-Site, which all have since 2023. To call the API from a web page on another origin, run with a token instead: token mode has no origin check, because a browser never attaches the bearer token cross-site. The guard is not access control: anyone who can reach the port with curl still has full access.
Host guard (DNS rebinding) in unauthenticated mode. The cross-origin guard cannot stop DNS rebinding: a page on a hostname the attacker controls re-points that name at your daemon’s address and then talks to it same-origin, so it could otherwise store a profile with an arbitrary command, rewrite settings, or read state and logs. With server.allow_unauthenticated: true, every route — API, SSE, the dashboard and static files — therefore requires the request’s Host (port and IPv6 brackets stripped, case-insensitive) to be localhost, an IP address, the configured server.host, or a name in server.allowed_hosts; anything else gets 403 with code host_not_allowed. IP addresses always pass because a rebinding attack needs a DNS name — so browsing to http://192.168.1.20:8090 with host: 0.0.0.0, container probes by pod IP, and SSH tunnels to localhost all keep working, as does the Vite dev proxy (it forwards Host: localhost:<port>). GET /api/v1/health is exempt because it returns a constant, and GET /api/v1/ready because it returns only booleans and the tracker’s rate-limit reset and is probed by whatever name the platform uses. If you reach an unauthenticated daemon through a reverse proxy, tunnel, MagicDNS or container service hostname, add that name to server.allowed_hosts. Token mode has no Host check: a rebound page never holds the bearer token.
See the Remote access guide for setting up persistent tokens and reverse-proxy TLS.
Daemon lifecycle: shutdown, reload and logs
Section titled “Daemon lifecycle: shutdown, reload and logs”Graceful drain on SIGTERM / SIGINT
Section titled “Graceful drain on SIGTERM / SIGINT”The first SIGTERM or SIGINT starts a drain:
- The daemon stops admitting work: no new dispatch, no retry, no
pending-input resume, no automation start (automations are queued and
persisted), no reviewer.
resume,reanalyze,ai-reviewandprovide-inputanswer409 draining. GET /api/v1/readyanswers503with"draining": true, so a load balancer stops routing to the daemon. The dashboard and API stay up.- In-flight agent turns keep running on an uncancelled context and finish normally; their tracker writes and handoffs happen as usual.
- When the last turn finishes — or
--shutdown-grace(default30s) expires, or a secondSIGTERM/SIGINTarrives — the daemon cancels whatever is still running (the agent’s process group is killed), waits for the orchestrator to record the exits, flush its ledgers and join its workers (at most ~30 s more), removesdaemon.pid/dashboard_url/HEARTBEAT.md, and exits0. A third signal exits without waiting.
The log shows shutdown: draining …, then shutdown: drain complete /
shutdown: drain grace expired, forcing stop / shutdown: received second signal, forcing immediate stop. Whether a turn cancelled at grace expiry
resumes its agent session after the restart is not verified for either CLI —
size --shutdown-grace to your longest normal turn. Under a service manager,
its stop timeout must exceed --shutdown-grace (for systemd:
TimeoutStopSec, with KillMode=mixed so only the daemon receives the
signal), and itervox stop --grace must exceed it too, or the drain is cut
short by a SIGKILL.
What an edit to WORKFLOW.md or a settings file does
Section titled “What an edit to WORKFLOW.md or a settings file does”The file watcher watches WORKFLOW.md and the user, project and local
settings files (~/.itervox/settings.jsonc or $ITERVOX_USER_SETTINGS,
.itervox/settings.jsonc, .itervox/settings.local.jsonc) as one set
(#245): a change to any of them starts the same 2-second quiet period, and an
edit that touches several at once (itervox init --update moving keys out of
WORKFLOW.md) reloads once. A settings file that does not exist yet is
watched by its path, so creating it — .itervox/ included — is picked up;
deleting one reloads without that layer. itervox doctor lists the watched
files (watched: …).
Settings saved from the dashboard never reload: each is written as the
daemon’s own write and applied in memory (a setting without a runtime setter
is reported as needing a restart). itervox config set and itervox init --update run as separate processes, so a running daemon reloads exactly once
for their write. An operator edit (your editor, git pull, a deploy) is
detected by the file watcher and applied with drain, then reload: admission stops exactly as for a shutdown, in-flight
turns finish (bounded by the same --shutdown-grace; past it the remaining
turns are cancelled), and then the new generation loads the file and starts
dispatching again. /ready reports draining meanwhile. A signal during a
reload drain turns it into a shutdown. Edits made while draining are picked
up by the same reload.
Why not the alternatives: reload-and-cancel (the old behaviour) kills every running turn on any edit, and whether a killed turn resumes is unverified; apply without cancelling would need every load-time field to be hot-swappable, while only the fields on the runtime-mutable list can be changed safely under a running generation. Draining keeps the one-generation- at-a-time invariant and loses no work; the cost is that an edit takes effect only after the current turns end (or the grace expires), and no new work starts in between.
Before it drains, the daemon loads and validates the edited files off to the
side. An edit that does not load — to WORKFLOW.md or any settings file —
does not drain: the running generation keeps its config, the log gets one
error naming the file (and the line, for a settings file that does not parse
or sets a section of the wrong shape), and the dashboard shows the “config
invalid” banner naming the file until an edit fixes it, which then reloads.
If a file becomes invalid between that check and the reload, the reload waits
for a fix with the banner up, as before.
Log format
Section titled “Log format”--log-format text|json (or ITERVOX_LOG_FORMAT; the flag wins) selects
the format of the rotating log file and of stderr — one JSON object per
log record, for platforms that collect stdout/stderr. Both
sinks go through the same secret redaction (Bearer tokens, lin_api_…,
ghp_…, sk-ant-… are written as ***). Lines printed before logging
starts or outside it (usage text, fatal start-up errors) are plain text in
either format.
GitHub state labels: itervox doctor --fix
Section titled “GitHub state labels: itervox doctor --fix”The GitHub tracker maps every state to an issue label: active_states,
working_state, completion_state, terminal_states (except closed,
GitHub’s native state), backlog_states and failed_state. A state whose
label does not exist on the repository matches no issue, so nothing is
dispatched or moved and nothing reports why.
itervox doctor reads the repository’s labels with tracker.api_key and
lists each missing one with the command that creates it:
ERROR: 2 state label(s) missing on owner/repo — issues in those states are never dispatched or moved. Create them with `itervox doctor --fix`, or: gh label create "in-review" --color "d93f0b" --repo owner/repo gh label create "backlog" --color "f9f9f9" --repo owner/repoMissing labels make doctor exit 1. If the API cannot be reached or rejects
the token, doctor prints github labels: could not check … and the exit code
is unaffected. When tracker.api_key is empty it prints github labels: not checked instead: plain doctor does not load .itervox/.env, so keep the token
in the environment or run itervox doctor --deploy, which loads that file first.
Linear workflows skip the check.
itervox doctor --fix creates the missing labels after asking
Create N label(s) on owner/repo …? [y/N]. Any answer other than y/yes,
including no input at all, creates nothing. Pass --yes (or -y) to skip the
prompt in CI. The token needs write access to the repository.
Tracker sync status in itervox doctor
Section titled “Tracker sync status in itervox doctor”When a live daemon owns this project’s .itervox/HEARTBEAT.md, itervox doctor prints its tracker sync status (#117) from the heartbeat’s ## Sync
section — no API token needed:
sync: store · last pull 2026-10-14T10:00:00Z (42s ago) · warns after 5m0s · pending writes 3 (urgent 1, batched 2, retrying 0, degraded 0, rate limited 0) · next push 2026-10-14T10:00:08ZThe lag is computed at doctor’s own clock. Past the threshold it prints
WARNING: tracker sync lag 12m0s is past 5m0s — the board and dispatch are working from tracker data that old; last sync error: network at …: tracker unreachable (network error). It warns, too, when the daemon has never pulled
and its pulls are failing. The threshold is three pull intervals and at least
five minutes: 5 minutes at the default tracker.store.sync_interval_ms
(60 s), 30 minutes with tracker.webhooks (10-minute safety net), and
polling.interval_ms × 3 (at least 5 minutes) without the tracker store. It
is not configurable. A lagging sync is a warning only: it does not change the
exit code. The error is classified (rate_limited, auth, not_found,
api_status, graphql, timeout, network, canceled, unknown) with a
fixed summary, never the tracker’s response. The heartbeat is rewritten when
the sync status changes (a pull, a queued or delivered write), so its last
pull time is at most one heartbeat interval (15 s) behind. The same status is
on the dashboard’s LiveOps strip and in GET /api/v1/state as syncStatus.
Deployment preflight: itervox doctor --deploy
Section titled “Deployment preflight: itervox doctor --deploy”itervox doctor --deploy [--workflow PATH] runs the normal doctor checks
plus non-mutating deployment probes and prints one
[ok] / [warn] / [fail] / [skipped] line each; it exits 1 if any
line is [fail]:
| Probe | How |
|---|---|
claude credentials | ANTHROPIC_API_KEY, CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_AUTH_TOKEN set (Bedrock/Vertex env accepted), else ~/.claude/.credentials.json (or $CLAUDE_CONFIG_DIR) with its expiry; an expired access token with a refresh token is fine. On macOS the login lives in the Keychain, which doctor does not read ([warn]). |
codex credentials | CODEX_API_KEY / OPENAI_API_KEY set, else the read-only codex login status. |
| per SSH host | With agent.ssh_hosts, one [skipped] line per host and backend: only this machine is probed. |
gh auth | gh auth status (missing gh is a [warn]: PR detection and merges will not work). |
git push auth | git push --dry-run origin HEAD:refs/heads/itervox-doctor-probe in the WORKFLOW.md directory, with prompts disabled. The dry run never creates the ref; it proves the credentials, not branch protection or receive hooks. |
tracker API | Linear: one { viewer { id name } } query. GitHub: GET /repos/{owner}/{repo}, reporting whether the token may push (write labels/states). Through the same client code as the daemon. |
daemon /ready | GET /api/v1/ready on the URL in .itervox/dashboard_url; [warn] when no daemon runs here. |
Probes only backends the configuration uses, loads .itervox/.env first like
the daemon, runs each probe with a 10 s timeout, and prints one redacted line
of any CLI output — never raw tokens. It does not check HEARTBEAT.md: the
heartbeat is rewritten only when state changes, so its age is not a liveness
signal. Unknown doctor flags are now an error (exit 2) instead of being
ignored.
Secret resolution
Section titled “Secret resolution”Any string field value that matches the pattern $VAR_NAME (a dollar sign followed by a valid environment variable name) is resolved to the value of that environment variable at startup. This is the recommended way to supply API keys and tokens.
tracker: api_key: $LINEAR_API_KEY # reads process env LINEAR_API_KEYworkspace: root: $ITERVOX_WORKSPACE # reads process env ITERVOX_WORKSPACE.env file loading: Itervox automatically loads environment variables from .env files before reading WORKFLOW.md. The search order is:
.itervox/.env(relative to the current working directory).env(relative to the current working directory)
Only the first file found is loaded. Existing environment variables (already set in the shell) are never overwritten. The .itervox/.env file is created and git-ignored automatically by itervox init.
A typical .itervox/.env looks like:
LINEAR_API_KEY=lin_api_xxxxxxxxxxxxGITHUB_TOKEN=ghp_xxxxxxxxxxxxSettings files (JSONC layers)
Section titled “Settings files (JSONC layers)”Settings in the agent, automations, dependencies, hooks, hub, polling, server, tracker and workspace sections live in three JSONC files, so a default you use everywhere is set once (tracker, hooks, dependencies and automations joined the layered sections in #239):
| Layer | File | Wins over |
|---|---|---|
default | built in | — |
user | ~/.itervox/settings.jsonc (or the path in ITERVOX_USER_SETTINGS; off disables it): your personal defaults for every project | defaults |
workflow | WORKFLOW.md front matter (deprecated for these sections) | user |
project | .itervox/settings.jsonc next to WORKFLOW.md (committed) | workflow |
local | .itervox/settings.local.jsonc next to WORKFLOW.md (gitignored: your own overrides for this project) | project |
WORKFLOW.md keeps the prompt. Its body is the Liquid prompt template, and it stays the import and export format (itervox import, itervox export --symphony). Its front matter keeps the schema marker, the sections that are not layered (guardrails, memory, sessions, pr_events) and three keys whose editors write them there: agent.profiles (the profile editor), agent.available_models (itervox models refresh) and the legacy agent.reviewer_prompt.
Front matter still works. A layered key set in the front matter still applies. itervox doctor lists each one as deprecated:, naming .itervox/settings.jsonc as where it moves, and the daemon’s startup log names them once. When the project or local settings file sets the same key, that file wins, and the conflict is reported once (a WARNING: line in itervox doctor, one startup-log line per key however often the workflow reloads). A user-file value under the front matter is a personal default the project overrides, not a conflict. itervox init --update moves the keys for you, with a WORKFLOW.md.bak first and --dry-run to preview; see Moving settings out of WORKFLOW.md.
Secrets stay out of settings files. A secret key (tracker.api_key, tracker.webhooks.secret, any *_token, *secret, *password) holds a $VAR reference such as "$LINEAR_API_KEY"; the value stays in the environment or .itervox/.env. The writers (the Settings page, itervox config set) refuse an inline secret, and itervox init --update leaves a key holding one in WORKFLOW.md and says which.
itervox init (and itervox init --update) adds .itervox/settings.local.jsonc to the ignore lists, and a save to the local layer from the dashboard or itervox config set --local makes sure .itervox/.gitignore ignores it.
The keys are the same as in the front matter. Maps merge key by key (a user file can set agent.max_turns while the project file sets agent.max_concurrent_agents); any other value, a list included, is replaced whole by a higher layer — automations is a list, so a layer that sets it sets the whole list. A settings file that sets a section that is not layered, or does not parse, stops the load with an error naming the file.
{ "$schema": "https://itervox.dev/schema/settings.schema.json", "tracker": { "kind": "linear", "api_key": "$LINEAR_API_KEY", // the value lives in .itervox/.env "project_slug": "core", "active_states": ["Todo", "In Progress"], }, "hooks": {"after_create": "pnpm install --frozen-lockfile\n", "timeout_ms": 90000}, "dependencies": {"analysis_mode": "manual"}, "agent": { "max_concurrent_agents": 2, // this laptop "max_turns": 40, }, "polling": {"interval_ms": 60000},}itervox init (every template, and itervox quickstart) writes these keys to .itervox/settings.jsonc and leaves WORKFLOW.md with the schema marker, the non-layered sections, the profiles and the prompt, so a new project starts with nothing deprecated. For an older project, run itervox init --update once to move them.
The settings schema. Every key of these sections is described by a JSON Schema generated from Itervox’s config registry, with a label, a description, its type, enum values, minimum and default: https://itervox.dev/schema/settings.schema.json (site/public/schema/settings.schema.json, printed by itervox config schema). Point "$schema" at it for completion and checks in your editor; a settings file may carry that "$schema" key. A test fails when the loader reads a layered key that has no schema entry, and when the published file is stale (make settings-schema regenerates it).
The Settings page. The dashboard’s Settings page has an All settings section rendered from that schema: every layered setting, grouped by section and topic, with a control for its type (a toggle, a number, a choice, a one-per-line list, key = value lines for a map; a value with its own shape, such as agent.profiles or agent.backend_fallback, is shown read-only and edited on its own page or in the JSON view). Each field shows whether this layer sets it or which layer it inherits from, and whether a change applies at once or after a restart. A tab picks the layer every save writes — User, Project or Project local — and a JSON view shows that layer’s file as text, comments included, checked against the schema as you type. Saves go through the same comment-preserving writer as itervox config set (the JSON view’s text is written as typed). A save to the project or local layer also moves the keys it sets out of WORKFLOW.md (a copy left there would only be reported as a conflict); a user-layer save never edits the project, and the page says when a higher layer — WORKFLOW.md included — still overrides the value. Settings with a runtime setter (max workers, max retries, the switch budget and window, inline input, dispatch strategy, the reviewer profile and auto-review, the dependency analyzer profile, SSH hosts and their descriptions, available models, workspace auto-clear, the tracker’s active, terminal, completion and failed states, and dependencies.analysis_mode) apply to the running daemon at once; the rest apply at the next restart or reload (a save is the daemon’s own write, so it does not reload by itself), and the save says which. A save made against a file someone else changed meanwhile is refused and the page reloads the file.
Moving between Symphony and Itervox. itervox import WORKFLOW.md converts a Symphony workflow, or an Itervox v0.x one, into this layout (settings to .itervox/settings.jsonc, profile prompts to prompt files, a WORKFLOW.md.bak, and a list of every key it could not map); itervox export --symphony writes a Symphony WORKFLOW.md with the Symphony core keys and the worker prompt and lists the Itervox-only features it dropped. See the CLI reference.
Dashboard saves. A setting saved from the dashboard in one of these sections (max workers, max retries, the switch budget, dispatch strategy, inline input, the reviewer profile and auto-review, SSH hosts, workspace auto-clear, and since #239 the tracker states, the failed state, the project filter, the tracker scope and filter, dependencies.analysis_mode and the automations) is written to .itervox/settings.jsonc — or to .itervox/settings.local.jsonc when that file already sets the key, so the save is never shadowed — which keeps its comments and is created if it is missing. If WORKFLOW.md also sets that key (under either spelling, for server.allow_unauthenticated), the same save removes it from WORKFLOW.md — only that key’s lines; comments, order and the rest of the file stay as they were. A scope save removes the keys it clears (it used to comment them out in WORKFLOW.md). If the WORKFLOW.md step fails, the settings file is put back and nothing changes. The save applies at once and does not reload the daemon. Agent profiles are saved to WORKFLOW.md, and itervox models refresh writes agent.available_models to the settings file that sets it, else to WORKFLOW.md.
See where each value comes from. itervox config show prints every setting Itervox reads, its effective value and its layer (with the file for user and project), plus environment (and the variable) for a server bind set by ITERVOX_SERVER_HOST, ITERVOX_SERVER_PORT or PORT; --json for scripts. A key a layer sets that Itervox does not read is listed with a note, and so is a value of the wrong type that was ignored for the default. Secrets such as tracker.api_key are shown as (set, hidden), and a password inside a URL as hidden.
Edit a file. itervox config set agent.max_turns 40 writes .itervox/settings.jsonc (--user writes the user file, --local the project-local one) and itervox config unset KEY removes a key. Comments, and every other key, are kept; the file is laid out again on each write. The value is read as JSON (40, true, ["a","b"], "text") or else as text. A value of the wrong type for the key (agent.max_turns lots), or a change the workflow then fails to load with, is refused and the file is left as it was. set warns when a higher layer also sets the key (so the change has no effect), notes when WORKFLOW.md’s front matter also sets it (the file wins; remove the copy), and warns when Itervox does not read the key at all (a typo). A running daemon applies a settings-file change the next time it loads WORKFLOW.md: restart it, or save WORKFLOW.md.
Rules (layered JSONC)
Section titled “Rules (layered JSONC)”Rules are short instructions every agent run follows: “always use pnpm”, “keep pull requests small”. Write one once and it reaches every worker, reviewer and dependency-analyzer run, on every project and daemon that reads the file. They come from three JSONC files (comments and trailing commas are fine):
| Layer | File | Committed |
|---|---|---|
user | ~/.itervox/rules.json (or the path in ITERVOX_USER_RULES; off disables it) | never |
project | .itervox/rules.json next to WORKFLOW.md | yes |
local (project local) | .itervox/rules.local.json next to WORKFLOW.md | no (gitignored) |
{ "$schema": "https://itervox.dev/schema/rules.schema.json", "rules": [ {"id": "pnpm", "severity": "must", "text": "Use pnpm, never npm or yarn."}, { "id": "small-prs", "severity": "should", "text": "Keep each pull request under about 400 changed lines.", "description": "Reviews of large PRs stall.", // shown in the editor, not sent to the agent "scope": {"profiles": ["implementer"], "backends": ["claude", "codex"]}, }, ],}Each rule has:
| Field | Required | Meaning |
|---|---|---|
id | yes | Letters, digits, ., _, - (64 at most), unique within the file (case-insensitive). A later layer’s rule with the same id replaces this one. |
severity | yes | must (a requirement) or should (a strong default the agent may depart from with a stated reason). |
text | yes | The instruction the agent is given. |
description | no | Why the rule exists. Shown in the editor; not sent to the agent. |
scope.projects | no | The project: the name of the directory holding WORKFLOW.md, or a tracker.project_slug entry. |
scope.profiles | no | Agent profile names. A run without a named profile is default. |
scope.backends | no | Agent backends (claude, codex). |
A missing or empty scope list matches every run; entries match case-insensitively and may use * and ? ("projects": ["web-*"]). A rule applies when all its lists match. The JSON Schema is published at https://itervox.dev/schema/rules.schema.json (site/public/schema/rules.schema.json); point $schema at it for completion and checks in your editor.
Merging. At every dispatch the daemon reads the three files again, so an edit applies to the next run with no restart. Layers merge in the order user < project < local: a rule replaces a lower layer’s rule with the same id, in place. A user must rule is the exception: no later layer can override it. A project or local rule with its id is ignored, and the conflict is reported in the run’s log (rules: the project rule "pnpm" was ignored: …), in the daemon log, and in the editor’s preview. A file that does not parse, or breaks a rule above, is skipped with the same reports, and the other layers still apply.
Injection. The rules in scope for the run’s project, profile and backend are rendered as one block, must rules first:
## Rules
The operator set these rules for every run. A must rule is a requirement. A should rule is a strong default: depart from it only with a reason you state in your handoff.
### Must
- Use pnpm, never npm or yarn. (pnpm)
### Should
- Keep each pull request under about 400 changed lines. (small-prs)It goes ahead of the profile’s SOUL.md and INSTRUCTIONS.md, for workers, reviewers and automation runs, and at the top of the dependency analyzer’s prompt. With no rule in scope, nothing is added.
Placing the rules yourself. A template can print the rules where it wants them: {{ rules }} prints the whole block, {{ rules.must }} and {{ rules.should }} print just that severity’s list, and rules.ids and rules.hash describe the set. When the workflow prompt (or the reviewer prompt), the profile’s SOUL.md or INSTRUCTIONS.md, or an automation’s instructions print rules or one of its fields, the run gets no automatic block, so the rules never appear twice. (The dependency analyzer’s files are not rendered as Liquid; it always gets the block.)
Per-run record. Each run records the rule set it used: rulesHash (a hash of the rules’ ids, severities and texts, in prompt order) and ruleIds on its running row and in run history (/api/v1/state), empty when no rule applied. Two runs with the same hash were given the same rules.
Rules editor. The dashboard’s Rules page has a tab per layer. The form view edits rules field by field; its save rewrites only the rules and fields that changed, through the same comment-preserving JSONC writer as the settings files, so comments elsewhere in the file stay. The JSON view edits the file as text, checks it against the schema as you type, and saves it exactly as written. A missing file is created on the first save. A save made after the file changed on disk (another tab, an editor) is refused and the page reloads the file. The preview panel shows the effective rules for a profile and an issue (the issue’s profile and backend overrides apply), with conflicts and broken layers.
Git. itervox init and itervox init --update keep .itervox/rules.json committable (a !/rules.json carve-out in .itervox/.gitignore, and !.itervox/rules.json in a root .gitignore that hides .itervox/) and add .itervox/rules.local.json to the root .gitignore.
Memory files
Section titled “Memory files”Memory is what Itervox carries from one run to the next: a correction you made once (“this repo uses pnpm, not npm”), a fact (“the staging DB is read-only on Fridays”), a decision, or a lesson. Unlike rules, entries are ranked against each issue and only the best matches go into the prompt, within a budget (see memory). Two JSON files hold them:
| Scope | File | Committed |
|---|---|---|
private | ~/.itervox/memory.json (or the path in ITERVOX_USER_MEMORY; off disables it). On a remote daemon this is the daemon user’s home, like the user rules. | never |
project (project shared) | .itervox/memory.json next to WORKFLOW.md | yes |
{ "$schema": "https://itervox.dev/schema/memory.schema.json", "memories": [ { "id": "m-3f9a1c2b7d", "type": "fact", "text": "This repo uses pnpm, never npm.", "scope": "project", "tags": ["tooling"], "pinned": true, "status": "active", "source": {"kind": "manual", "issue": "ENG-7", "links": ["https://github.com/acme/app/pull/3"]}, "created": "2026-10-01T12:00:00Z", "updated": "2026-10-01T12:00:00Z", "lastUsed": "2026-10-02T09:00:00Z", "useCount": 4 } ]}| Field | Required | Meaning |
|---|---|---|
id | yes | Letters, digits, ., _, - (64 at most), unique across both files. The dashboard generates m-<hex> ids. |
type | yes | preference, fact, decision or lesson. |
text | yes | What the agent is told. At most 2000 bytes; a longer entry is rejected, never cut. |
scope | no | Written for reference; the file that holds the entry decides it. |
profiles | no | Agent profiles the entry is used for (* and ? globs; a run without a named profile is default). Empty: every run. |
tags | no | Free-form. A tag naming one of the issue’s labels, or a word of the issue, ranks the entry higher. |
pinned | no | Always included in the run’s memory block. |
status | yes | active (used), proposed (a lesson waiting for approval: never used until approved) or archived (kept, not used). |
source | no | Provenance: kind (manual, lesson, …), issue, runIds, links (PRs, comments). |
created, updated | no | Set by the daemon. |
lastUsed, useCount | no | Maintained by the daemon: each run whose prompt carried the entry bumps them. |
lesson | no | A lesson’s review record, written when Itervox proposes it (#203): trigger (input_reply, steering, failed_then_succeeded, reviewer_ask, reverted_pr or recipe), situation, wentWrong, worked, correction (the human’s words, redacted), confidence (0 to 1), evidence (times seen), draftedBy (template or profile:<name>) and approvedAt; since #217 also verification (a recipe’s check), rule (layer, id, at: the rule it was promoted to) and enforcement (kind, status, title, draft, draftedBy, suggestedAt, decidedAt, issue, issueUrl). |
Lists hold at most 32 items of at most 512 bytes; a file holds at most 1000 entries. The JSON Schema is published at https://itervox.dev/schema/memory.schema.json (site/public/schema/memory.schema.json).
Secrets. Every save (the dashboard, the API, a promote) runs the entry through the same redaction as the daemon log, so tokens, keys and passwords are replaced by *** before anything is written. The rendered block is redacted again, so a secret typed into a file by hand never reaches a prompt either.
Selection. At every dispatch the daemon reads both files again, keeps the active entries whose profiles match the run, and ranks them by how many of their words and tags also appear in the issue’s title, description and labels and the profile name (no embeddings; ties go to the more used, then the more recently updated entry). Pinned entries come first and are always included; the rest are added in rank order within the budget. A file that does not parse contributes nothing (the run’s log and the daemon log say why) and the dashboard will not rewrite it until it is fixed. The daemon rewrites these files to record usage, so comments are not kept.
Prompt. The selection is rendered after the ## Rules block and ahead of the profile’s SOUL.md and INSTRUCTIONS.md:
## Memory
What earlier runs and the people you work with want remembered. Treat each item as context, not as a rule. If one is wrong or out of date for this task, say so in your handoff.
- [fact] This repo uses pnpm, never npm. (m-3f9a1c2b7d)Per-run record. Each run records the ids of the entries its prompt carried as memoryIds in run history, and the memory is part of its prompt version (promptParts.memory): editing an entry’s text changes the version, bumping its usage does not. Once the block has reached the agent, the entry’s lastUsed and useCount are updated through the orchestrator’s event loop.
Git. itervox init, itervox init --update and the daemon’s startup keep .itervox/memory.json committable (!/memory.json in .itervox/.gitignore, and !.itervox/memory.json in a root .gitignore that hides .itervox/); itervox doctor’s repo readiness checks the carve-out. See the Memory guide for the dashboard page.
.itervox project files
Section titled “.itervox project files”itervox init creates .itervox/.gitignore, .itervox/.env, starter profile files and the task-type playbooks in .itervox/playbooks/ (#218). Commit .itervox/agents/** and .itervox/playbooks/**: those files are project agent definitions. .itervox/playbook_overrides.json (the per-issue playbook choices) and .itervox/issue_profiles.json (the per-issue profile overrides) are runtime state and stay ignored. Do not commit .itervox/.env, .itervox/HEARTBEAT.md, logs, runtime queue files, or other generated daemon state.
On startup the daemon writes .itervox/HEARTBEAT.md atomically with the current workflow path, schema version, dashboard URL, tracker/project, tracker sync status (## Sync: mode, last pull, lag, pending writes, next push, last sync error), capacity, automation queue pressure, dependency audit summary, input-required count, retry count, and last notable error. Agents can read it when they need current daemon state; it is generated runtime state, not prompt text.
Liquid template variables
Section titled “Liquid template variables”The body of WORKFLOW.md (everything after the closing ---) is a Liquid template. Itervox renders it once per issue dispatch to produce the agent’s prompt.
Issue variables
Section titled “Issue variables”| Variable | Type | Description |
|---|---|---|
issue.identifier | string | Tracker-specific issue ID (e.g. "ENG-42" for Linear, "#123" for GitHub). |
issue.title | string | Issue title. |
issue.description | string | Issue body/description. When empty it prints as nothing, and {% if issue.description %} skips its block. |
issue.url | string | Full URL to the issue in the tracker. |
issue.branch_name | string | Suggested git branch name derived from the issue (e.g. "eng-42-fix-login-bug"). May be empty for GitHub issues; empty prints as nothing. |
issue.labels | string[] | Labels attached to the issue. Iterable with {% for label in issue.labels %}. |
issue.priority | number | Priority number (Linear 0 none, 1 urgent … 4 low; GitHub p0–p3 as 0–3). Unset when the tracker gives none (a GitHub issue without a p label), and printing it then fails under strict variables: use {{ issue.priority | default: "none" }}. |
issue.comments | object[] | Comments on the issue. Each comment has author_name, body, and created_at fields. |
id | string | Internal tracker issue ID. |
state | string | Current issue state (e.g. "Todo", "In Progress"). |
blocked_by | object[] | List of blocking issues. Each entry has id, identifier, and state fields. |
created_at | string | Issue creation timestamp (ISO 8601). |
updated_at | string | Issue last update timestamp (ISO 8601). |
attempt | int|null | Current retry attempt number. null on the first attempt. |
rules | object | The run’s rules. {{ rules }} prints the ## Rules block; rules.must and rules.should print one severity’s list; rules.ids and rules.hash describe the set. Printing it turns off the automatic block. Also available in SOUL.md, INSTRUCTIONS.md and automation instructions. |
Example template
Section titled “Example template”You are an expert engineer working on this project.
## Issue {{ issue.identifier }}: {{ issue.title }}
{% if issue.priority %}Priority: {{ issue.priority }}{% endif %}
{% if issue.description %}{{ issue.description }}{% endif %}
{% if issue.labels.size > 0 %}Labels: {{ issue.labels | join: ", " }}{% endif %}
{% if issue.comments %}## Discussion{% for comment in issue.comments %}**{{ comment.author_name }}**: {{ comment.body }}{% endfor %}{% endif %}
Issue URL: {{ issue.url }}
---
Create a branch named `{{ issue.branch_name | default: issue.identifier | downcase }}`,implement the change, run tests, then open a PR that closes {{ issue.url }}.Asking for human input
Section titled “Asking for human input”When the agent genuinely cannot continue without a human answer, the preferred
contract is to end its final message with the literal marker
<!-- itervox:needs-input --> on its own line, followed by the actual
question or confirmation prompt. That marker is deterministic and lets Itervox
pause the issue immediately without any ambiguity.
Itervox also has a deterministic fallback for successful turns that end in a real
blocking question, such as a choice between two options or a confirmation
request. That means plain-English messages like “Which option should I take?”
or “Type discard to confirm” can still move the issue into input_required.
The fallback is backup behavior, not the recommended path:
- The explicit marker is more reliable.
- The fallback is heuristic and tuned for common English phrasing.
- The explicit marker makes prompt and skill behavior easier to reason about.
When the user replies from the dashboard or tracker, Itervox resumes the agent with that reply as the next user message — normally in the same session; after a daemon restart that had to rebuild the entry from tracker comments, a fresh session starts with the question and the reply as context.