Skip to content

Workspace and tasks

The commands you use to set up a workspace and take a task from idea to delivery, each with its usage, output, flags and errors.

29 min read8 pages in CLI reference

These are the commands you use every day. They create and manage a workspace, add tasks, move each task through its flow (spec, approval, development, validation), let you look at what a task produced and clean up after it. They follow the order of a task’s life, from workspace create to import-shortcut.

The task commands need --workspace <name>. The commands that manage workspaces themselves, workspace, repo check and migrate-yaml-keys, take the name as an argument, or not at all. The examples use a workspace called notes, and long lines are cut with …. The rules every command shares, such as the output format, --follow, --fake and the exit codes, are on the CLI reference page.

The “Runs” column says whether a command goes through the daemon, and so accepts --follow, or runs locally in your terminal.

Command Runs What it is for
workspace create local Create a workspace, with its config.yaml, flows and prompts.
workspace rename, workspace delete local Rename a workspace, or move it to the trash.
repo check local Check a folder before adding it as a repo, and get gate suggestions.
init local Create a workspace by copying an existing folder.
migrate-yaml-keys local Rewrite old camelCase keys as snake_case.
create daemon Add a task to the backlog.
edit daemon Change a task’s title, description or commit override.
list local Print every task.
status local Print one task.
ideate daemon Ask the ideator to write the spec.
approve daemon Approve the spec and start development.
adjust daemon Send the spec back to the ideator with a comment.
decide daemon Answer a question that paused a task.
decisions local Print the open and resolved decisions.
instruct local Leave a note for an agent’s next turn.
run daemon Put a running task back on the queue.
retry daemon Resume a blocked task.
validate daemon Give your verdict on the delivery.
archive daemon Put away a task that is not running.
delete daemon Move an archived task to the trash.
stop daemon Stop a running or queued task.
changes local Print the diff in each repo.
files local List or read a task’s files.
summaries local Print the numbers the board shows for each task.
flow local Print the default flow’s steps.
map local Regenerate the repo maps agents read.
step-defaults local Print the model and effort each agent step will use.
policies local Print or change limits, budgets and profiles.
import-shortcut local Create a task from a Shortcut story.

workspace create makes a new workspace that is ready to load: config.yaml, the default flow, the prompts, an empty rules.md and the missions/ and probes/ folders. It is what the New workspace wizard of the desktop app runs.

Terminal window
astranize workspace create notes
{"type":"workspace_created","workspace":"notes","path":"~/.astranize/workspaces/notes"}

The new config.yaml has no repos yet, repos: {}, which loads with the warning Nenhum repo ainda. To write the repos, gates and anything else in the same step, pass --patch, a list of changes to apply to config.yaml. The file is validated with the changes before anything is written:

Terminal window
astranize workspace create notes --display-name "Notes" --patch '[{"op":"set","path":["repos","web"],"value":{"path":"~/code/notes/web","base_branch":"main","gates":[{"name":"test","command":"pnpm run test"}]}}]'
config.yaml
repos: {web: {path: ~/code/notes/web, base_branch: main, gates: [{name: test, command: pnpm run test}]}}
display_name: Notes
Argument or flag Type Required Effect
<name> lowercase letters, digits and dashes yes The workspace name and folder.
--display-name text, 1 to 60 characters, one line no Written as display_name.
--logo path no A png, svg, jpg, jpeg or webp file up to 1 MB, copied into the workspace.
--patch JSON list of { op, path, value } no Changes to config.yaml. op is set, remove or insert; path is a list of snake_case keys.
Error Cause
O workspace "notes" já existe The folder exists.
Nome de workspace inválido: "Notes"; use letras minúsculas, dígitos e hífens A name outside the pattern.
invalid: o documento não é válido The patch makes config.yaml invalid. The line carries a validation object with each error and its line, such as nome de repo inválido "Api X": use letras, números, _ . e -. Nothing is created.

workspace only runs on this machine: with --machine it fails with workspace only runs on this machine.

workspace rename gives a workspace a new name, and moves its tasks, policies and settings with it. workspace delete moves the whole workspace folder to ~/.astranize/trash/; nothing is erased. In the app, they are Rename workspace and Move to trash, in the danger zone of Settings, Workspace.

Terminal window
astranize workspace rename notes notes-old
astranize workspace delete notes-old
{"type":"workspace_renamed","from":"notes","to":"notes-old"}
{"type":"workspace_deleted","workspace":"notes-old","trash":"~/.astranize/trash/notes-old-2026-11-22T043944.753Z"}

delete also takes the workspace’s policies out of settings.yaml and keeps them inside the trash folder.

Error Cause
O workspace "notes-old" não existe No such workspace.
O workspace "notes-2" já existe rename to a name that is taken.
Há uma tarefa rodando: t-0003 (or na fila: …) A task of the workspace runs or waits in the queue.
Antes de renomear, arquive e apague as tarefas: t-0001, t-0002 Some tasks still have worktrees. Archive and delete them first. delete says Antes de apagar.
Mova os segredos do Vault deste workspace antes de renomear The Vault has secrets scoped to this workspace.
workspace takes create <name> [--display-name=<text>] [--logo=<file>] [--patch=<json>], rename <from> <to> or delete <name> Wrong arguments.

repo check looks at a folder and tells you whether it can be a repo of a workspace. It reads only: nothing from the repo runs, not even its git hooks. The app runs it as you type a path.

Terminal window
astranize repo check --path=~/code/notes/web
{"type":"repo_check","path":"~/code/notes/web","isRepo":true,"topLevel":"~/code/notes/web","defaultBranch":"main","suggestedName":"web","gates":[{"name":"test","command":"pnpm run test"},{"name":"lint","command":"pnpm run lint"},{"name":"build","command":"pnpm run build"}],"webApp":{"devScript":"dev"},"problem":null,"warnings":[]}
Field Meaning
isRepo, topLevel Whether the folder is in a git repository, and that repository’s root.
defaultBranch origin’s default branch, or the current branch when there is no remote.
suggestedName The folder name, as a repo name.
gates One suggestion per test, lint, typecheck and build script in package.json, run with pnpm run when there is a pnpm-lock.yaml, yarn with a yarn.lock, and npm run otherwise.
webApp Set when package.json depends on a web framework such as Vite, Next, Nuxt, Astro or SvelteKit. devScript is its dev or start script.
problem Why the folder cannot be used, or null.
warnings Problems reading package.json, which is then ignored.

A folder that cannot be used still exits with 0; read problem:

problem Cause
Pasta não encontrada The path does not exist.
Esta pasta não é um repositório git Not inside a git repository.
Esta pasta fica dentro do repo ~/code/notes/web; use a raiz A subfolder of a repository.

repo check needs --path; anything else fails with repo takes check --path=<folder>.

init is the older way to create a workspace. Use it when you want to start from a folder you already have, such as one of the examples:

Terminal window
astranize init --workspace notes --from examples/web-app
{"type":"initialized","workspace":"notes","path":"~/.astranize/workspaces/notes"}

The folder’s files, such as config.yaml and scripts/, are copied first. Then init fills in what is missing: workflow.yaml, prompts/, an empty rules.md, the missions/ and probes/ folders, and a config.yaml with repos: {} when none was copied. Files that already exist are kept, so running init again is safe.

Flag Type Required Default Effect
--from path no none Copy this folder into the workspace first. Existing files are not overwritten.

migrate-yaml-keys rewrites the keys of your YAML files from the old camelCase spelling to snake_case, such as baseBranch to base_branch. Files with old keys keep loading with a warning, so you run this once, when it suits you. It is what Convert runs in the app.

Terminal window
astranize migrate-yaml-keys --workspace notes
{"type":"yaml_keys","file":"~/.astranize/workspaces/notes/config.yaml","renamed":[{"from":"baseBranch","to":"base_branch"}],"status":"migrated"}
{"type":"yaml_keys","file":"~/.astranize/workspaces/notes/workflow.yaml","renamed":[],"status":"unchanged"}
{"type":"yaml_keys","file":"~/.astranize/workspaces/notes/flows/default.yaml","renamed":[],"status":"unchanged"}
{"type":"yaml_keys_summary","dryRun":false,"migrated":1,"unchanged":2,"skipped":0,"backup":"~/.astranize/workspaces/notes/.history/migrate-yaml-keys/2026-11-22T043945.732Z"}

With --workspace, it covers that workspace’s config.yaml, workflow.yaml, flows/, missions/, probes/ and tasks/, plus the machine’s settings.yaml. Without it, only settings.yaml. Each file is converted, checked with the same validation that loads it, and only then written; comments and layout are kept. A copy of every file it changes goes to backup first. A file it cannot convert is reported with "status":"skipped" and a reason, and left as it is.

Flag Type Default Effect
--workspace name none Also convert this workspace’s files.
--dry-run switch off Report what would change, and write nothing.

Without --dry-run, the daemon must be idle. A workspace that does not exist fails with Workspace "notes" not found at ….

create adds a task to the backlog. It only writes the task down; the ideator starts when you run ideate.

Terminal window
astranize create --workspace notes --title "Filter notes by tag" --description "Add a tag filter to the notes list"
{"type":"task_updated","task":{"id":"t-0001","title":"Filter notes by tag","namePrefix":"astra","status":"backlog","currentStep":null,"currentStepType":null,"returns":0,"humanRounds":0,"repos":[],"acceptanceCriteria":[],"questions":[],"history":[{"at":"2026-11-20T02:17:35.498Z","event":"created"}],"videoCaughtMiss":false,"body":{"description":"Add a tag filter to the notes list","spec":"","answers":"","validation":""}}}

The new task has status backlog. Ids count up per workspace: t-0001, t-0002, and so on.

Flag Type Required Effect
--title string yes The task’s title.
--description string yes What you want, in your own words. It becomes the ## Description section of the task file.
--commit JSON object no This task’s commit override: any of when, hooks, stage and message. An empty object writes nothing.

An empty or missing flag fails with Missing required option --description (or --title). A bad --commit fails with --commit não é JSON válido, or with --commit inválido followed by the problem, such as message: unknown placeholder {ticket}; use {task_id}, {cycle}.

Terminal window
astranize create --workspace notes --title "Tag colors" --description "Each tag gets a color" --commit '{"when":"never"}'
{"type":"task_updated","task":{"id":"t-0001","title":"Tag colors",…,"commit":{"when":"never"}}}

When config.yaml sets default_flow, the new task records that Trajectory in its flow field. If that flow file is missing, create fails with A Trajetória padrão "<name>" (default_flow no config.yaml) não existe: crie flows/<name>.yaml ou mude o default_flow.

edit changes a task you already created: its title at any time, its description until the spec is approved, and its commit override. It is what Edit on a task, and the Commit pill in the session, run in the app.

Terminal window
astranize edit t-0001 --workspace notes --title "Colored tags"
{"type":"task_updated","task":{"id":"t-0001","title":"Colored tags",…,"editRevision":1}}

Every edit adds 1 to editRevision. When you pass --if-revision, the edit is refused if the task’s revision is no longer that number, so you never overwrite a change you have not seen.

--commit replaces the whole override with the object you pass, and --commit null removes it:

Terminal window
astranize edit t-0001 --workspace notes --commit '{"when":"per_task","message":"feat(notes): {task_id}"}'
astranize edit t-0001 --workspace notes --commit null
Flag Type Effect
--title string The new title, up to 200 characters, on one line.
--description string The new description, up to 30,000 characters.
--commit JSON object or null The new commit override. null or {} removes it.
--if-revision whole number Refuse the edit unless editRevision is this number.
Error Cause
Nada para editar: use --title, --description ou --commit No flag to change.
O título não pode ficar vazio An empty title. A title over 200 characters, or with a line break, is refused too.
A descrição fica travada depois da aprovação: a spec aprovada é a fonte de verdade The spec was approved.
A descrição fica travada depois que a tarefa começou: este fluxo não tem etapa de aprovação The task’s flow has no approval step, and the task already started.
A tarefa mudou enquanto você editava: recarregue e tente de novo --if-revision did not match.
--if-revision precisa ser um número inteiro de 0 em diante A bad --if-revision.

list prints every task in the workspace, one task_updated line per task, in id order.

Terminal window
astranize list --workspace notes

Archived tasks are left out. To see only the archived ones, add --archived.

Flag Type Default Effect
--archived switch off Print only archived tasks instead of only the others.

When a task file cannot be read, you get {"type":"error","message":"<file>: <problem>"} after the tasks, and the command still exits with 0.

status prints one task.

Terminal window
astranize status t-0003 --workspace notes
{"type":"task_updated","task":{"id":"t-0003","title":"Export notes as Markdown","status":"blocked","currentStep":null,"blockedReason":"agent_crashed:ideator",…}}

Every field of the task is described in Events.

ideate asks the ideator to read your description and write a spec, questions and acceptance criteria. The task waits in the queue until the daemon has room for it.

Terminal window
astranize ideate t-0001 --workspace notes
{"type":"task_updated","task":{"id":"t-0001","status":"queued",…}}
{"type":"queued","taskId":"t-0001","position":1}

The task is now queued, first in line. To watch the ideator work until the spec is ready, add --follow:

Terminal window
astranize ideate t-0001 --workspace notes --follow
{"type":"task_updated","task":{"id":"t-0001","status":"running","currentStep":"ideator",…}}
{"type":"step_started","taskId":"t-0001","step":"ideator","cycle":0,"at":"2026-11-20T02:17:48.076Z"}
{"type":"step_agent","taskId":"t-0001","step":"ideator","cycle":0,"note":{"executor":"claude","model":null,"effort":null,"downgraded":false,"overridden":false,"switchedFrom":null,"permissionMode":"ask"},"at":"2026-11-20T02:17:48.079Z"}
{"type":"task_updated","task":{"id":"t-0001","status":"waiting_you","currentStep":"approval",…}}
{"type":"decision_opened","taskId":"t-0001","decision":{"kind":"approval","step":"approval","cycle":null,"title":"The spec for Filter notes by tag is ready","context":"0 questions and 1 acceptance criteria.","options":[],"allowFreeText":true,"evidence":[],"urgency":"normal","id":"D-1","taskId":"t-0001","status":"open","createdAt":"2026-11-20T02:17:48.083Z"},"at":"2026-11-20T02:17:48.083Z"}
{"type":"step_finished","taskId":"t-0001","step":"ideator","cycle":0,"outcome":"passed","at":"2026-11-20T02:17:48.085Z"}

The task ends waiting_you, with an approval decision open. That is your cue to approve or adjust.

Flag Type Effect
--follow switch Stream the task’s events until the job ends.
--fake path Use a fake agent.

ideate works on a task in backlog or queued, and on a task that says it is ideating but has no live process. If the task is already queued or running, you get its position instead: {"type":"queued","taskId":"t-0001","position":1}. Any other status fails with Cannot ideate task t-0001 in status "done".

approve says yes to the spec. It records your answers to the ideator’s questions and starts the development cycle: developer, gates, reviewer and video.

Terminal window
astranize approve t-0001 --workspace notes
{"type":"task_updated","task":{"id":"t-0001","status":"running","currentStep":"developer",…}}
{"type":"decision_resolved","taskId":"t-0001","decision":{"id":"D-1","kind":"approval","status":"resolved",…},"at":"…"}
{"type":"queued","taskId":"t-0001","position":1}

The approval decision is resolved and the task is on the queue for the developer.

When the ideator asked questions, answer them with --answers, a JSON object from question id to answer. You can also narrow the repos the task works in with --repos:

Terminal window
astranize approve t-0001 --workspace notes --answers '{"Q-1":"Only active notes"}' --repos api
Flag Type Required Default Effect
--answers JSON object no {} Question id to answer text.
--repos comma list no the ideator’s repos Repos the task works in. Must not be empty, and each must be in config.yaml.
--follow switch no off Stream the task’s events until the job ends.
--fake, --fake-playwright path no none Use fake agents and a fake Playwright run.
Error Cause
--answers is not valid JSON: … The value does not parse.
--answers must be a JSON object of question id to answer text It parses, but it is not an object of strings.
Unknown question id: Q-9 The task has no such question.
repos override must not be empty --repos "", or only commas.
repos not in workspace: web A repo that config.yaml does not list.

adjust sends the spec back to the ideator with a comment on what to change. The ideator runs again in the background.

Terminal window
astranize adjust t-0002 --workspace notes --comment "Also cover pinned notes"
{"type":"task_updated","task":{"id":"t-0002","status":"running","currentStep":"ideator",…}}
{"type":"decision_resolved","taskId":"t-0002","decision":{"id":"D-1","kind":"approval","status":"resolved","answer":{"optionId":"adjust"},…},"at":"…"}
{"type":"queued","taskId":"t-0002","position":1}

The approval decision is resolved with the answer adjust, and the task is back with the ideator.

Flag Type Required Effect
--comment string yes What the ideator should change.
--follow switch no Stream the task’s events until the job ends.
--fake path no Use a fake agent.

decide answers a question that paused a task: an agent asking you to choose, an action waiting for your go-ahead, or a wait. You pass the task id, the decision id and the option you pick.

Terminal window
astranize decide t-0002 D-3 --workspace notes --option O-1
{"type":"decision_resolved","taskId":"t-0002","decision":{"id":"D-3","kind":"agent","title":"Pick a filter","status":"resolved",…},"at":"…"}
{"type":"task_updated","task":{"id":"t-0002","status":"running","currentStep":"developer",…}}
{"type":"queued","taskId":"t-0002","position":1}

The decision is resolved and the task goes back on the queue. It goes in with “returning” priority, ahead of new work.

When the decision allows free text, answer with --text instead of --option. When an option is editable, send the edited text with --text next to --option.

Approvals have their own commands, approve and adjust, and so do validations, with validate. Mission and probe decisions use decide with --mission or --probe; see decide –mission and decide –probe.

Flag Type Required Effect
--option string one of the two The option id from the decision, such as O-1, retry or allow_always.
--text string one of the two Free text, when the decision allows it, or the edited text for an editable option.
--mission string no Answer a mission decision instead.
--probe string no Answer a probe decision instead.
--follow switch no Stream the task’s events until the job ends.
--fake path no Use a fake agent.

Two answers have side effects. Answering a permission decision with allow_always adds its rules to the workspace’s permission rules. Answering a budget decision with stop blocks the task with reason budget_stopped.

Error Cause
decide needs --option <id> or --text <text> Neither flag.
Invalid decision id "3": expected the format D-1 Bad id.
Decision not found: D-9 No such decision on the task.
Decision D-1 is not an agent decision The decision is an approval, a validation or a blocked one.
Decision D-3 is already resolved It was answered before with a different answer. Sending the same answer again is accepted, so you can safely repeat a decide that crashed.
Unknown option O-9 for decision D-3 The option is not on the decision.
Decision D-3 does not accept free text --text on a decision without free text.
Decision D-3 needs the edited text in --text The option is editable and --text is missing.
Task t-0002 is not awaiting a decision (status "running") The task is not paused.

decisions prints the decisions of the workspace: every non-archived task plus every mission. Both open and resolved decisions are listed, so filter on status to find the ones waiting for you.

Terminal window
astranize decisions --workspace notes
{"type":"decisions","decisions":[{"id":"D-1","taskId":"t-0001","kind":"approval","step":"approval","cycle":null,"title":"The spec for Filter notes by tag is ready","context":"0 questions and 1 acceptance criteria.","options":[],"allowFreeText":true,"evidence":[],"urgency":"normal","status":"open","createdAt":"2026-11-20T02:17:48.083Z"}]}

To see one task only, add --task:

Terminal window
astranize decisions --workspace notes --task t-0002
Flag Type Default Effect
--task task id all tasks Only this task’s decisions. Mission decisions are left out.

Before reading, the command makes sure each paused task agrees with its decision files. A task whose decisions cannot be read adds an error line and is skipped. Every field of a decision is described in Events.

instruct leaves a note for an agent step, such as “sort newest first” for the developer. The agent gets it on its next turn; a turn that is already running is not interrupted.

Terminal window
astranize instruct t-0004 --workspace notes --to developer --text "Sort newest first" --model opus --effort high
{"type":"instruction_added","taskId":"t-0004","instruction":{"id":"I-1","text":"Sort newest first","target":"developer","attachments":[],"createdAt":"2026-11-20T02:43:38.623Z","status":"pending","model":"opus","effort":"high"},"at":"2026-11-20T02:43:38.623Z"}

The instruction is pending until an agent reads it. --model and --effort are optional: they ask the step to use this model and effort on its next round, and they only apply when the step runs on Claude. Without them, the step keeps its usual model and those two fields are left out.

You can attach files with --attach, once per file:

Terminal window
astranize instruct t-0004 --workspace notes --to developer --text "See attached" --attach /abs/path/note.txt
{"type":"instruction_added","taskId":"t-0004","instruction":{"id":"I-2","text":"See attached","target":"developer","attachments":["attachments/I-2-note.txt"],"createdAt":"2026-11-20T02:43:39.228Z","status":"pending"},"at":"2026-11-20T02:43:39.228Z"}

An instruction sent to the ideator while the task waits for your approval, or is blocked, works as an adjustment: the ideator runs again with it.

Flag Type Required Default Effect
--to step id yes none The step that gets the note. Must be an ideate, develop or review step of the task’s flow.
--text string yes none The instruction. Spaces around it are trimmed.
--model string no the step’s default fable, opus, sonnet or haiku. Must come with --effort.
--effort string no the step’s default low, medium, high, xhigh or max. Must come with --model.
--attach absolute path, repeatable no none A regular file of at most 25 MB, copied to runs/<task>/attachments/I-<n>-<name>.
Error Cause
Instruction text is required --text is empty.
Invalid instruction target "nobody" --to is not an ideate, develop or review step.
Model and effort must be sent together Only one of the two.
Unknown model "gpt" / Unknown effort "huge" A value outside the lists above.
Attachment must be an absolute path: note.txt A relative path. Attachments are also refused when the file is missing, is a symbolic link, is not a regular file or is larger than 25 MB.
Task t-0001 is done Done tasks take no instructions.

instruct runs locally and appends its event to runs/<task>/events.jsonl. The Mid-run instructions guide shows it in use.

run puts a task that is already running back on the queue. You need it when a task’s job was lost, for example after the daemon restarted.

Terminal window
astranize run t-0002 --workspace notes
{"type":"queued","taskId":"t-0002","position":1}

run does not start tasks from the backlog (use ideate) or resume blocked ones (use retry). Any other status fails with Cannot run task t-0003 in status "backlog".

Flag Type Effect
--follow switch Stream the task’s events until the job ends.
--fake, --fake-playwright path Use fake agents and a fake Playwright run.

retry resumes a blocked task, usually from the step where it stopped.

Terminal window
astranize retry t-0003 --workspace notes
{"type":"task_updated","task":{"id":"t-0003","status":"running","currentStep":"ideator",…}}
{"type":"queued","taskId":"t-0003","position":1}

This task had blocked in the ideator, so the ideator runs again.

Sometimes the blocked step cannot simply run again: it is a step for you, or the reason it blocked only allows a fresh start. Then retry goes back to where the cycle starts, which is the developer when the spec was approved and the first step otherwise. To always go back to that start, add --restart.

Flag Type Default Effect
--restart switch off Go back to the start of the cycle instead of the blocked step.
--follow switch off Stream the task’s events until the job ends.
--fake, --fake-playwright path none Use fake agents and a fake Playwright run.

A task that is not blocked fails with Invalid transition: event "retry" is not allowed from status "waiting_you".

validate gives your verdict on the delivery. You approve or reject each acceptance criterion in a JSON file, and say where a rejection should go.

Terminal window
astranize validate t-0001 --workspace notes --file verdict.json
{"type":"task_updated","task":{"id":"t-0001","status":"done","currentStep":null,…}}
{"type":"decision_resolved","taskId":"t-0001","decision":{"id":"D-2","kind":"validation","status":"resolved",…},"at":"…"}

Every criterion was approved, so the task is done. When you reject one or more criteria, the task goes back to the developer or the ideator and joins the queue.

Here is a verdict file that approves one criterion, rejects another and reports one extra problem:

verdict.json
{
"criteria": [
{ "id": "AC-1", "verdict": "approved", "videoAtMs": 0 },
{ "id": "AC-2", "verdict": "rejected", "reason": "The filter ignores archived notes", "videoAtMs": 4200 }
],
"extraFindings": [{ "text": "The tag chip overflows on mobile" }],
"route": "developer"
}
Flag Type Required Effect
--file path yes The JSON file with the verdict.
--commit-hooks skip no With a per_task commit policy, make the delivery commit without hooks. Use it after a hook refused the delivery commit.
--follow switch no Stream the task’s events until the job ends.
--fake, --fake-playwright path no Use fake agents and a fake Playwright run.

The file accepts these keys:

Key Type Required Values
criteria[].id string yes The criterion id, AC-n.
criteria[].verdict string yes approved or rejected.
criteria[].reason string no Why, for a rejection.
criteria[].videoAtMs number no Where in the video you saw it.
extraFindings list no, default [] { text, videoAtMs? } for problems outside the criteria.
route string yes developer or ideator: who gets the task back on a rejection.

With a per_task commit policy, approving every criterion first commits the work. When a hook refuses that commit, the command fails with commit-hook-failed: web: cycle-2/commit-hook.log, the task stays in validation, and the hook’s output is in that file of the run folder; send the verdict again, or add --commit-hooks=skip. When git refuses for another reason, it fails with commit-failed: web: cycle-2/commit.log.

A file with problems fails with all of them listed: verdict.json: invalid verdict\ncriteria.0.verdict: Invalid enum value. Expected 'approved' | 'rejected', received 'maybe'.

archive puts a task away. It works in any status except running and archived, and it also takes the task off the queue.

Terminal window
astranize archive t-0001 --workspace notes
{"type":"task_updated","task":{"id":"t-0001","status":"archived","currentStep":null,…}}

Archived tasks only show up in list --archived, and only archived tasks can be deleted. Archiving the same task twice fails with Invalid transition: event "archive" is not allowed from status "archived".

delete removes an archived task from the workspace by moving it to the Astranize trash. The task file, its run folder and its worktrees go to ~/.astranize/trash/, and the commits stay on the task’s branch. It is what Delete on an archived task runs in the app.

Terminal window
astranize delete t-0001 --workspace notes
{"type":"task_deleted","taskId":"t-0001","trash":"~/.astranize/trash/notes-t-0001-2026-11-22T043916.314Z"}

When a worktree still has uncommitted work, delete stops before moving anything. It prints a task_delete_dirty line with the repos and files, then an error:

O worktree tem trabalho sem commit: web (3 arquivos). Use --force para mandar tudo para o lixo mesmo assim

For a task with commit: never the message adds that the worktree holds all of its work. With --force, the uncommitted diff of each repo is saved as uncommitted-<repo>.patch in the trash folder, next to run/ and worktrees/, and the worktrees are unregistered from git.

Flag Type Effect
--force switch Delete even when a worktree has uncommitted work.
Error Cause
Só dá para apagar tarefa arquivada The task is not archived. Archive it first.
O worktree tem trabalho sem commit: … Uncommitted work; see above.
O git não conseguiu ler o worktree de web: … Git cannot read a worktree, for example because its repo was moved. --force still moves the folder to the trash.

When git cannot clean up a worktree’s registration, the task is still deleted and a warning: line on stderr tells you to run git worktree prune in that repo.

stop stops a task’s job.

Terminal window
astranize stop t-0003 --workspace notes
{"type":"stopping","taskId":"t-0003"}

What happens next depends on where the job was:

  • A running job is aborted and its processes are killed. The task ends blocked with reason stopped_by_you.
  • A queued job is taken off the queue, and the task goes back to backlog.

A task with no job fails with Task t-0003 is not running in workspace notes. To stop everything at once, use queue stop-all.

changes shows what a task changed: for each of its repos, the branch, the branch it started from and the diff between them.

Terminal window
astranize changes t-0001 --workspace notes
{"type":"changes","taskId":"t-0001","repos":[{"repo":"api","branch":"astra/t-0001-filter-notes-by-tag","baseBranch":"main","files":[],"patch":""}]}

This task has not changed anything yet, so files is empty. Each entry of files is { path, status, added, removed }, with status A (added), M (modified) or D (deleted). patch is the unified diff text.

files lists or reads the files of a task: its worktree, where the code changes are, or its run folder, where Astranize keeps logs, reports and videos.

Terminal window
astranize files t-0001 --workspace notes --root run
{"type":"files","entries":[{"path":"cycle-1","kind":"dir","size":0},{"path":"cycle-1/developer-input.md","kind":"file","size":72},{"path":"decisions.json","kind":"file","size":885},…]}

To read one file, add --path:

Terminal window
astranize files t-0001 --workspace notes --root worktree --path feature.txt
{"type":"file","path":"feature.txt","content":"AC-1"}
Flag Type Required Effect
--root worktree or run yes worktree is worktrees/<task>/ (or the same under worktrees_root when settings.json sets it). run is runs/<task>/.
--path relative path no Read this file instead of listing.

Reads stay inside the folder: a path that leaves it, through .., an absolute path or a symbolic link, is refused.

Error Cause
files needs --root worktree or --root run No --root, or another value.
file path "../../config.yaml" is outside the task folder The path leaves the folder.

summaries prints the numbers the board shows for each task: cost, tokens, working time, files, returns, help requests and video time.

Terminal window
astranize summaries --workspace notes
{"type":"summaries","maxReturns":3,"tasks":[{"id":"t-0001","branch":"astra/t-0001-filter-notes-by-tag","costUsd":null,"tokens":null,"workMs":134,"files":{"count":0,"added":0,"removed":0},"returns":[],"helpCount":0,"videoCaught":0,"videoMs":100,"activeSince":null,"waitingSince":"2026-11-20T02:17:58.173Z","blockedStep":null,"doneAt":null}]}

costUsd and tokens stay null until a step reports usage. Every task is included, archived ones too.

flow prints the workspace’s default flow the way the app draws it: the steps in order, with their type and who acts on each.

Terminal window
astranize flow --workspace notes
{"type":"flow","flow":{"name":"default","label":"Default","subject":"task","maxReturns":3,"steps":[{"id":"ideator","type":"ideate","actor":"agent"},{"id":"approval","type":"approval","actor":"you"},{"id":"developer","type":"develop","actor":"agent"},{"id":"gates","type":"check","actor":"check"},{"id":"reviewer","type":"review","actor":"agent"},{"id":"video","type":"video","actor":"agent"},{"id":"validation","type":"validation","actor":"you"}]}}

actor is agent, check, you or external.

Pass a task id to see the flow that task runs on. A running task keeps the version of the flow it started with, so this can differ from the default. The line then also carries "taskId":"t-0001".

Terminal window
astranize flow t-0001 --workspace notes

map rewrites the repo maps: one short Markdown guide per repo, in context/<repo>.md, that agents read to find their way around the code. It uses the claude CLI to write them.

Terminal window
astranize map --workspace notes
{"type":"maps","repos":[{"repo":"api","status":"generated"}]}
Flag Type Default Effect
--repo repo name all repos Map only this repo. An unknown name fails with Unknown repo "web".
--fake path none Let the fake agent’s map turns write the maps.

step-defaults tells you which executor, model and effort each agent step will use for a task once your policies and profiles apply. It covers the steps you can send instructions to: ideate, develop and review.

Terminal window
astranize step-defaults t-0001 --workspace notes
{"type":"step_defaults","taskId":"t-0001","steps":{"ideator":{"executor":"claude","model":null,"effort":null},"developer":{"executor":"claude","model":"sonnet","effort":null},"reviewer":{"executor":"claude","model":"opus","effort":null}},"at":"2026-11-20T02:17:52.308Z"}

null means the agent CLI’s own default.

policies prints the rules that decide how much work runs and what it may spend: provider limits, budgets, profiles, the permission mode and the spare window. With set, it changes them.

Terminal window
astranize policies --workspace notes
{"type":"policies","providers":{"claude":{"queueLimit":{"fiveHour":90,"weekly":85},"downgradeAt":{"fiveHour":75,"weekly":70}},"codex":{…}},"budgets":{"task":{"claude":{"usd":6},"codex":{"tokens":2000000}},"steps":{"developer":{"claude":{"usd":3},"codex":{"tokens":1000000}}}},"profiles":[{"name":"economico","label":"Econômico","builtIn":true,"steps":{"ideate":{"model":"sonnet","effort":"low"},"develop":{"model":"sonnet","effort":"low"},"review":{"model":"opus"}}},{"name":"padrao","label":"Padrão","builtIn":true,"steps":{}},{"name":"maximo",…}],"workspace":{"profile":"padrao","permissionMode":"ask"},"spareWindow":{"leadMinutes":60,"nightFrom":null,"nightTo":null,"defaultFor":[]}}

policies set takes a partial JSON patch and merges it into settings.yaml. You write the patch keys in camelCase, and they are saved in snake_case. For example, this switches the workspace to the worktree permission mode and lowers the weekly Claude limit to 80%:

Terminal window
astranize policies set --workspace notes --patch '{"workspace":{"permissionMode":"worktree"},"providers":{"claude":{"queueLimit":{"weekly":80}}}}'

It writes:

settings.yaml
providers:
claude:
queue_limit:
weekly: 80
workspaces:
notes:
permission_mode: worktree
Flag Type Required Effect
--patch JSON object with set The partial policies to merge.

The patch accepts four top-level keys:

Key Shape Notes
providers { claude?: { queueLimit?: { fiveHour?, weekly? }, downgradeAt?: {…} }, codex?: … } Percentages from 0 to 100, else Limits must be between 0 and 100.
budgets { task?: { claude?: { usd?, tokens? }, codex?: … }, steps?: { <step id>: … } } Positive numbers.
workspace { profile?, permissionMode? } Saved for this workspace only. profile must exist (Unknown profile "turbo"). permissionMode is ask, worktree or free.
spareWindow { leadMinutes?, nightFrom?, nightTo?, defaultFor? } Times as HH:MM. defaultFor is a list of step types.
Error Cause
policies set needs --patch <json> No --patch.
--patch is not valid JSON The value does not parse.
--patch must be a JSON object It parses, but it is not an object.
Unknown permission mode "x" A mode other than ask, worktree or free.

A policies block in the workspace’s config.yaml takes precedence over providers and budgets when they are read. Permission modes and Economy and limits explain what each policy does.

import-shortcut turns a Shortcut story into a task. It copies the title, description, comments, links and attachments (up to the media limit), so the ideator sees the whole story.

Terminal window
astranize import-shortcut sc-123 --workspace notes

The command prints the task_updated line of the new task. Media are saved to runs/<task>/, and the links in the description point there.

To fill a task you already created instead of making a new one, add --task:

Terminal window
astranize import-shortcut sc-123 --workspace notes --task t-0004
Argument or flag Type Required Effect
<story> number, sc-<number> or story link yes Exactly one story.
--task task id no Fill this task instead of creating one.

The command reads Shortcut with the integration token named Shortcut in the Vault. Add it first in Settings, under Vault.

Error Cause
import-shortcut takes one Shortcut story: its number, sc-<number> or link No story, or more than one.
No integration token named "Shortcut" in the Vault: add one under Ajustes → Vault (type "integration token") The token is missing.
Shortcut refused the token (HTTP 401): … Shortcut rejected the token.