Skip to content

YAML keys

Every key you can write in Astranize's YAML files, with its type, default and allowed values.

22 min read3 pages in Reference

You configure Astranize with a handful of YAML files: where your repos are, what steps a task goes through, what a mission does, when a probe fires and how the machine shares its resources. This page lists every key each file accepts, with its type, default and allowed values.

The files are, in order: config.yaml, workflow.yaml, flows/<name>.yaml, missions/<name>.yaml, probes/<name>.yaml and settings.yaml. Each section opens with a minimal working file, then the tables. To learn how to use them, start with the config.yaml guide and Build a flow.

Write keys in snake_case, such as base_branch. Everything Astranize writes itself, from the app’s forms to task files, is snake_case. It still reads the older camelCase spelling, such as baseBranch, so old files keep working:

  • A file with camelCase keys loads, and you get one warning per file: warning: <file>: camelCase keys are deprecated, use snake_case (baseBranch → base_branch).
  • Writing both spellings of the same key in one map is an error: <file>: repos.api: use either base_branch or baseBranch, not both.
  • Keys that are names you choose are never touched: repo names, service names, slot names, cli.*.env variable names, route names, outcome names, when facts, triage profile names, hooks.on_step step ids, step env names and probe watch.env and watch.fields.

To convert old files once and for all, click Convert on the “This file uses the old key format” notice in the app, or run migrate-yaml-keys. Both rewrite the workspace’s config.yaml, flows, Missions, Probes and task files, plus the machine’s settings.yaml, keep your comments, and put a copy of each file in .history/migrate-yaml-keys/ first.

The tables show the snake_case form, with the camelCase alias in parentheses where it differs.

Almost everywhere, an unknown key is an error, so a typo does not go unnoticed. Errors list every problem with its path, for example ~/.astranize/workspaces/notes/config.yaml: invalid workspace config\nvideo.playwright_repo: unknown repo "web".

config.yaml tells a workspace where your repos are and how to check, run, record and commit them. There is one per workspace, at workspaces/<name>/config.yaml, and no workspace command runs without it. Creating a workspace writes a first one, and Settings, Workspace in the app edits it; see Write config.yaml.

This is the smallest useful one: one repo with one gate, and the video recorded against a local server.

config.yaml
repos:
api:
path: ~/code/notes/api
base_branch: main
gates:
- name: test
command: npm test
video:
base_url: http://localhost:3000
playwright_repo: api

When a path cited in config.yaml (a repo’s path, or a {workspaceDir}/... path) does not exist, every command prints warning: <file> cites a path that does not exist: <path>.

Key Type Default Notes
repos map of repo name to repo required The repos tasks may touch. May be empty, {}, which loads with the warning Nenhum repo ainda. Repo names take letters, digits, ., _ and -.
video video none Used by the optional video step. Without it, the flow loads with a warning, and a task that reaches that step asks you to skip the video or configure it.
commit commit the defaults below When and how a task’s work is committed.
default_flow (defaultFlow) flow name default The flow new tasks use. Make default on the Trajectories screen writes it. The flow file must exist, or create fails.
cli cli {} How to call the agent CLIs.
shell bash, powershell or cmd the platform’s default The shell for gates, services and hooks.
display_name (displayName) string, 1 to 60 characters the workspace name The name the app shows for the workspace.
logo string none Path to an image the app shows for the workspace.
error_tail_lines (errorTailLines) positive integer 80 How many output lines of a failed gate, hook or command are kept.
slots map of slot name to positive integer {} Named capacity for this workspace’s heavy jobs, such as video: at most N jobs hold a slot at once.
policies { providers?, budgets? } none Replaces the machine’s provider limits and budgets for this workspace.

Each entry under repos is one repository, named by its key.

Key Type Default Notes
path string required The repo’s checkout. ~ is expanded.
base_branch (baseBranch) string required The branch a task’s branch starts from and is compared with.
setup string none A command run once in each new worktree.
copy list of strings [] Files copied from the checkout into each worktree, such as .env.
gates list of gates [] The commands the check step runs.
services map of service name to service {} Processes the video step starts. Service names must be unique across repos.

A gate is a command that must pass before the task moves on, such as your tests or linter.

Key Type Default Notes
name string required Shown in the app and in gate_result.
command string required Must exit with 0 to pass.
timeout_seconds (timeoutSeconds) positive integer 900 After this, the gate fails as timed out.

A service is a process the video needs running, such as your API or web server. Each task gets its own environment for it.

Key Type Default Notes
start string required Starts the service.
health string required A URL checked until it answers.
url string the origin of health The base URL handed to the video. Required when health is not an absolute URL.
setup string none Runs before the first start of a task’s environment.
seed string none Loads base data, once per task environment, after the service is healthy.
run_data (runData) string with {file} none Runs the data script the video agent writes, before the video. Only one service in the workspace may set it.
data_extension (dataExtension) lowercase letters and digits none A fixed extension for the data script, such as php, mjs or rb.
data_file (dataFile) file name none A fixed file name for the data script, such as AstraVideoSeeder.php. Wins over data_extension.
stop string none Stops the service.
cleanup string none Removes the task’s environment.
depends_on (dependsOn) list of service names [] Services started first. Each name must exist.
start_timeout_seconds (startTimeoutSeconds) positive integer 90 How long health may take to answer.

video says where the app under test is and how to record it.

Key Type Default Notes
base_url (baseUrl) string required Where the app under test is. Placeholders such as {ports.web} are filled in per task.
playwright_repo (playwrightRepo) repo name required The repo whose Playwright install records the video. Must be in repos.
login string none A command run in the Playwright repo before recording. It should write a storage state to {storageState}.
session string none The name of a login_session secret in the Vault, a saved Playwright storage state. Use login or session, not both.
slow_mo_ms (slowMoMs) integer, 0 or more 700 The delay between Playwright actions, so you can follow the video.
hold_ms (holdMs) integer, 0 or more 1500 The pause at the end of each criterion.
data environment or mock environment environment: criteria use the running services’ data (seed, run_data). mock: for frontend-only projects; the spec mocks the API with page.route.

commit is the workspace’s commit policy. Every key is optional, and a task can override any of them in its own commit block. Commits explains each one.

config.yaml
commit:
when: per_task
hooks: run
stage: tracked
message: "feat(notes): {task_id}"
Key Type Default Notes
when per_cycle, per_task or never per_cycle One commit per developer cycle, a single commit when you approve the validation, or no commit.
hooks skip or run skip run runs the repo’s git hooks, up to 10 minutes per commit. A failing hook becomes a decision.
stage all or tracked all git add -A or git add -u.
message non-empty string chore(astra): {task_id} cycle {cycle} Placeholders: {task_id} and {cycle}. Any other one is an error.

With when: per_task and a flow that has no validation step, the file loads with a warning: the commit happens when the task is done.

cli.claude and cli.codex say how to start each agent CLI. Both take the same keys.

Key Type Default Notes
command string claude / codex The binary to run. ~ is expanded.
env map of name to string {} Extra environment variables for the agent’s process.

workflow.yaml is the first version of the flow format, and the file init copies into every new workspace. It describes the standard flow with just the agent steps. Astranize turns it into the full default flow: ideator, approval, developer, gates, reviewer, video and summary when the file names them, and validation. The default workflow.yaml names summary and no video.

workflow.yaml
version: 1
max_returns: 3
steps:
ideator: { agent: claude, prompt: prompts/ideator.md, tools: [Read, Grep, Glob] }
developer: { agent: claude, prompt: prompts/developer.md, tools: [Read, Grep, Glob, Edit, Write], model: sonnet }
reviewer: { agent: claude, prompt: prompts/reviewer.md, tools: [Read, Grep, Glob], model: opus }

It is only used when flows/default.yaml does not exist.

Key Type Default Notes
version 1 required
max_returns (maxReturns) integer, 0 or more required How many returns are allowed before the task blocks.
steps.ideator agent step required
steps.developer agent step required
steps.reviewer agent step required
steps.video agent step none Without it, the flow has no video step.

An agent step with agent: claude takes:

Key Type Default Notes
agent claude required
prompt string required A path relative to the workspace.
tools list of strings required Claude Code tool rules. Anything containing dangerously-skip-permissions is refused.
model string none
max_attempts (maxAttempts) positive integer 2

An agent step with agent: codex takes agent, prompt, sandbox (read-only or workspace-write, required) and max_attempts.

A version 2 flow lists every step a task goes through, in order, and where it goes when a step fails or you reject it. flows/default.yaml is the workspace’s default flow and wins over workflow.yaml. Other files are named flows that a probe can start with fires.flow.

This flow writes a spec, asks for your approval, develops, runs the gates and asks for your validation:

flows/default.yaml
version: 2
name: default
subject: task
max_returns: 3
steps:
- id: ideator
type: ideate
- id: approval
type: approval
routes: { adjust: ideator }
- id: developer
type: develop
model: sonnet
- id: gates
type: check
on_fail: developer
- id: validation
type: validation
routes: { reject: developer, rethink: ideator }

When the gates fail, the task goes back to the developer. That choice is called a route, and on_fail: developer sets it. The file name must match ^[a-z][a-z0-9-]*$, name must be the file name (name: o nome "x" não bate com o arquivo: use "default"), and any version other than 2 fails with unsupported flow version.

The app calls a flow a Trajectory. Its Trajectories screen creates, edits, duplicates and deletes these files, with a form per step and a YAML tab.

Key Type Default Notes
version 2 required
name ^[a-z][a-z0-9-]*$ required
label string name
description string none
subject task or mission task Missions live in missions/; see missions/<name>.yaml.
max_returns (maxReturns) integer, 0 or more required for tasks How many returns before the task blocks.
confirm boolean false for tasks, true for missions Ask before running.
limits { max_minutes?, max_cost_usd? } none Positive numbers (maxMinutes, maxCostUsd).
repeat { goal, done_when, max_rounds? } none In practice, for missions only. done_when is a command or agent step. max_rounds defaults to 10.
context list of strings none Not supported yet: the file saves with the warning context ainda não suportado; a etapa roda sem isso.
hooks hooks none
steps list of steps, at least 1 required Ids must be unique, including inside parallel groups.

Each step has a type, which decides who acts and what the step does.

Type Who acts What it does
ideate agent Writes the spec, questions and acceptance criteria.
approval you You approve or adjust the spec. Cannot be skipped.
develop agent Changes the code in the worktrees.
check check Runs the repos’ gates.
review agent Reviews the diff against the criteria.
summary agent Writes the final summary and test guide. Never fails the task. Goes right before validation.
video agent Optional add-on. Records a Playwright video per criterion. Needs an ideate step before it, and goes before summary.
validation you The final review: your verdict on the delivery. Cannot be skipped.
agent agent A general agent step. Needs prompt. Read-only unless writes: true.
action external Calls a provider, set with action.
wait external Waits on a provider, set with on, until an outcome matches.
handoff external Hands the task to another flow, set with to.
parallel Runs its child steps at the same time.
triage agent Sorts the task into a class (classes or profiles). Default model haiku.

The third column says which step types accept the key.

Key Type Valid on Notes
id ^[a-z][a-z0-9-]*$ all Required.
type step type all Required.
label string all
on_fail (onFail) step id or { goto, max? } all Where a failure goes. Short for routes.fail. max, a whole number above zero, caps how many times the route is taken; past it, the task blocks with route "fail" of step "gates" reached its max of 2.
on_reject (onReject) step id or { goto, max? } all Short for routes.reject.
routes map of route name to step id or { goto, max? } all For example adjust on approval, and reject and rethink on validation. Targets must be top-level step ids.
context list of strings all Not supported yet; saves with a warning, like skills.
mcp list of server names all MCP servers from the workspace’s mcp.yaml that this step’s agent may use.
skills list of strings all Not supported yet: the file saves with the warning skills ainda não suportado; a etapa roda sem isso.
skip_when (skipWhen) { changed_only?, repos_only?, triage? } all but approval, validation and parallel children Each one a non-empty list.
executor claude or codex agent types Default claude. codex is refused for now: O Codex ainda não está disponível.
prompt string agent types Default per type: prompts/ideator.md, prompts/developer.md, prompts/reviewer.md, prompts/video.md, prompts/triage.md. Required on agent.
tools list of strings agent types, on claude Default per type: read tools, and for the developer also Edit, Write and npm, pnpm, npx, git status and git diff.
model string agent types
effort string agent types
max_attempts (maxAttempts) positive integer agent types Default 2.
permissions ask, worktree or free agent types This step’s permission mode.
fallback_executor (fallbackExecutor) claude or codex agent types Used when the first executor is over its limit. codex is refused for now.
can_write (canWrite) boolean ideate Default false: the ideator is denied Edit, Write, NotebookEdit and Bash, in every permission mode. true lets it change the repos, with a warning.
downgrade { model?, effort? } agent types What to switch to when the provider is near its limit.
contract string agent types
subagents boolean agent types, on claude Let the agent start subagents. Default true on develop, false elsewhere.
sandbox read-only or workspace-write agent types, on codex Required for a codex develop step.
writes boolean agent Default false. Adds Edit and Write.
input string agent, in missions only Text handed to the agent, for example "{steps.collect.output}".
action { provider, do, ...params } action Required. Providers: command (do: run), github (pr.listMerged, release.create), slack (message.post), manual.
mode execute, prepare or notify action Inside parallel, only execute.
on { provider, watch, every?, ...params } wait Required. every is in seconds.
outcomes map of name to { when?, goto?, feedback? } wait Required, at least one. when maps facts to a value or a list of values.
to flow name handoff Required.
steps list of steps, at least 1 parallel Children may be review, check, agent (not writing) or action (in execute mode).
classes list of strings triage
profiles map of class to profile name triage The classes default to its keys.

A key on the wrong type of step fails. An agent key on another step fails with step "gates": model is only valid on agent steps, and a key that belongs to one type fails elsewhere with step "x": outcomes is only valid on wait steps.

Hooks run your own commands at fixed moments of a task, such as posting to chat when it is done. Each hook is a command string, or { run, required? }. required defaults to false; when a required hook fails, the task stops.

Key Runs
before_run (beforeRun) Before the task’s job starts.
before_step (beforeStep) Before every step.
after_step (afterStep) After every step.
on_blocked (onBlocked) When the task blocks.
on_done (onDone) When the task is done.
on_step (onStep) A map of step id to hooks for that step only. The ids must exist.

A mission file describes a job that is not a code task, such as a nightly check. It is a version 2 flow with a few differences.

missions/nightly-check.yaml
version: 2
name: nightly-check
label: Nightly check
confirm: false
limits: { max_minutes: 10 }
steps:
- id: count
type: command
run: echo 3 notes changed
timeout_seconds: 30

How a mission file differs from a flow:

  • The name always comes from the file name, and subject is always mission, so you can leave both out.
  • The allowed step types are agent, action, wait, approval and parallel, plus the shorthand command.
  • confirm defaults to true, so a mission asks before it runs unless you say otherwise.
  • repeat.done_when must be a command or an agent step.

The command shorthand runs one shell command. It is the same as an action step with provider: command, do: run and mode: execute, and it takes these keys:

Key Type Notes
run string The command. Placeholders such as {workspaceDir} and {lastRun.at} are filled in.
cwd string The working directory.
env map of name to string vault:<name> takes the value from the Vault.
timeout_seconds (timeoutSeconds) positive integer

A probe starts work for you. It either runs on a schedule and fires a mission, or watches a source and fires a mission or a flow when a new item matches its rule. Use schedule or watch, not both.

This probe fires the nightly check at 22:00 on weekdays:

probes/weeknights.yaml
label: Weeknights
schedule:
days: [mon, tue, wed, thu, fri]
at: "22:00"
fires:
mission: nightly-check
Key Type Default Notes
version 2 none Optional.
subject probe none Optional.
label string the file name
enabled boolean true
schedule { days, at } or { every } none days: mon to sun, one or a list. at: HH:MM, one or a list. every: <n>m or <n>h, at least 15 minutes. A schedule probe can only fire a mission.
watch { provider, source, every?, token?, ...params } none The source, as provider.source; today only shortcut.stories. every defaults to 30m, at least 5 minutes. token: vault:<name> picks the integration token, Shortcut by default.
rule.text string required with watch The rule, in words.
rule.filters list of { field, op, value } [] op: is, is_not, in, not_in, has, has_not, gte, lte, before, after. in and not_in take a non-empty list; the others take one value. Written by probe rule.
rule.residual string or null null The part of the rule the filters cannot express. An agent checks it.
rule.compiled { text_sha, filters_sha } none Written by probe rule, to notice when you edit the rule later.
fires.mission mission name The mission must exist.
fires.flow flow name Creates a task in that flow. Use mission or flow, not both.
fires.on_new (onNew) triage, backlog or ideate triage With fires.flow only: what happens to the new task.
limits.max_per_hour (maxPerHour) 1 to 60 3 Fires beyond this are held for you to decide.
dedupe_by (dedupeBy) list of strings, at least 1 none The fields that make two items the same.
group_window_minutes (groupWindowMinutes) positive integer none Group the items found within this window.

settings.yaml holds the settings for the whole machine: how much memory to keep free, how many jobs to run, provider limits, budgets and profiles. It lives at $ASTRANIZE_HOME/settings.yaml. Every key is optional, and queue limit and policies set write it for you.

settings.yaml
memory_floor_gb: 3
max_running: 2
providers:
claude:
queue_limit: { weekly: 80 }
workspaces:
notes:
profile: economico
permission_mode: worktree

This keeps 3 GB free, runs at most two jobs at once, holds new Claude jobs once 80% of the week is used, and gives the notes workspace the economico profile and the worktree permission mode.

Key Type Default Notes
memory_floor_gb number, 0 or more 2 Memory the daemon always leaves free when it starts jobs.
documents.history_keep positive integer 20 How many earlier versions of each file the app and doc keep in .history/.
max_running positive integer none How many jobs run at once. Written by queue limit.
video_slots positive integer 1 How many video jobs run at once across the machine.
providers.<claude|codex>.queue_limit { five_hour?, weekly? }, percent 0 to 100 90 / 85 Above this usage, new jobs for the provider wait.
providers.<claude|codex>.downgrade_at { five_hour?, weekly? }, percent 0 to 100 75 / 70 Above this usage, steps switch to their downgrade.
budgets.task.<provider> { usd?, tokens? } claude usd: 6, codex tokens: 2000000 The budget per task. A bare { usd } means claude.
budgets.steps.<step id>.<provider> { usd?, tokens? } developer: claude usd: 3, codex tokens: 1000000 The budget per step.
profiles.<name> { label?, steps: { <step type>: { executor?, model?, effort? } } } built-ins economico, padrao, maximo Your own profiles. The built-in names cannot be redefined.
workspaces.<name>.profile profile name padrao
workspaces.<name>.permission_mode ask, worktree or free ask
spare_window.lead_minutes positive number 60
spare_window.night_from, night_to HH:MM null
spare_window.default_for list of step types []
telemetry.triggers.<id>.threshold number, 0 or more per trigger indexing 25, co-change 3, handoff 0.5, learning 3, model-ranking 20. handoff is a share from 0 to 1, which the app shows as a percentage; model-ranking goes up to 100.
telemetry.triggers.<id>.min_sample positive integer per trigger indexing 15, co-change 20, handoff 15, learning 3, model-ranking 20.

The telemetry section is what Settings, Telemetry, Thresholds edits in the app. There, a value out of range is refused before saving, and each change keeps the previous version in ~/.astranize/.history/telemetry/. The app’s YAML tab for it is read-only.

Unlike the other files, settings.yaml does not fail to load on a bad value: an invalid value falls back to its default, and an unreadable file counts as empty.

settings.json, which holds the language and worktrees_root, is JSON, not YAML; see Files and directories.