Skip to content

Your first task

Take one task from a one-line idea to a validated branch in the desktop app, with the matching CLI command next to every step and a final review.

16 min read5 pages in Getting started

This is where you see Astranize do its job. You write one sentence about a change you want, approve the plan an agent writes for it, and come back to a branch and a final review: a summary, the code and the criteria, with a guide to test it by hand. You make two decisions along the way, and Astranize does the rest.

The example adds a search box to the notes app. Every step shows how to do it in the desktop app first, and the matching CLI command in the CLI tab, for when you script it. Both read the same data, so you can mix them: create a task in the terminal and validate it in the app.

Check these before you create the task. Each one takes a minute, and each one is a common reason a first task stops halfway.

  • You have the notes workspace from Your first workspace, and the app shows it. Pick it in the workspace menu at the top left, or open the app with ASTRANIZE_WORKSPACE=notes pnpm dev.
  • The CLI of your agent works and you are logged in. Today that is claude --version for Claude Code. The agent steps call it, and real runs spend tokens on your account.
  • The video is optional and the default flow has no video step, so there is nothing to set up for it. If you added a video step, the web repo needs Playwright with a Chromium browser (npx playwright install chromium), and your app must answer at the video.base_url you set. See Proof video.
  • The web repo has a commit on main. Tasks branch from it.

If you follow the CLI tabs, astranize is the alias from Installation, and ASTRANIZE_HOME is not left pointing at a temporary folder. Every command takes --workspace notes. Task ids look like t-0001, and decision ids like D-1.

Start by telling Astranize what you want, in your own words. You need a short title and a description. You don’t need a detailed spec: writing that is the ideator’s job.

On the Tasks board, click New task. Write the title, “Search notes”, and the description, “Add a search box to the notes list”, then click Create task.

The task appears as a card in the Ideating column, marked “Waiting to ideate”. It is on the board, but nothing has run yet.

The dialog also has an Advanced section. Leave it closed for now: “Left alone, the task follows the workspace commits.” It is where one task can commit differently from the rest of the workspace, for example never, so its changes stay uncommitted in the worktree. Commits explains the four fields.

Made a typo? Open the task and click Edit. The title changes at any time, and the description until you approve the spec.

Now hand the task to the ideator, the agent that reads your repo and turns your sentence into a plan. It writes the spec, the acceptance criteria the rest of the work is held to, and any questions it needs you to answer.

Click the play button on the card. The card changes to “Writing the spec and criteria” while the ideator works. You can also open the task and click Ideate.

With real agents this takes a few minutes. When it is done, the card moves to the For you column with “Answer 1 question and approve the spec”, the “need you” counter in the top bar goes up, and a desktop notification tells you the spec is ready.

In this example the ideator wrote two acceptance criteria, AC-1 “A search box appears above the notes list” and AC-2 “Typing filters the list by title”. Each one says how it will be proven: by a unit test, an integration test, or by hand (manual, the default when the flow has no video step). With the video add-on, it can also be video. It also asked one question, Q1: “Should the search also match the note body?”, with the options “Title only” and “Title and body”.

Read the spec before you approve it: this is your chance to fix the plan before any code is written. If it looks right, answer the questions and approve it.

A task overview waiting for approval, with the notice Answer 2 questions and approve the spec and the Answer button, the spec on the left and the acceptance criteria on the right.
A task waiting for your approval. The notice at the top says what to do.

Click the card to open the task. The overview shows the spec, the original request and the criteria, with the notice “Answer 1 question and approve the spec” at the top. Click Answer.

A panel opens with the spec and the questions. Pick “Title only” for Q1, or write a different answer, then click Approve. The app takes you to the task’s session, and the work starts.

You don’t do anything else to start the work: from here the developer, your checks, the reviewer and the summary run one after another.

If the spec is wrong or missing something, send it back instead of approving. The ideator runs again with your comment and asks for your approval again when it is done.

In the approval panel, click Request changes, say what to change, and click Send request.

The task now goes through the developer, your gates, the reviewer and the summary. You don’t have to watch, but the first time it is worth it.

The live session of a running task while the gates run: an instruction queued for the Dev, the gates output with pnpm test and pnpm lint passed, the Summary panel with the current step, cycle and criteria, and the composer at the bottom with the pills To Dev, Opus High and Commit Per cycle.
The session while the gates run. The pills under the message box pick who gets it, the model, and when this task commits.

The session shows each step as it starts and finishes: the developer reading and editing files, your npm test gate passing, the reviewer reading the diff, the summary agent writing. The Summary panel on the right shows the current step, the cycle, the returns and how many criteria have a test and a reviewer approval.

The box at the bottom sends the agent an instruction, which it picks up on its next turn. Send instructions mid-run covers it. Stop at the top right stops the run.

The Commit pill under the box shows when this task commits its work, “Per cycle” by default: one commit on the task’s branch after every developer cycle. Pick Per task to get a single commit when you approve the validation, or Never to keep the changes uncommitted. On a running task the change applies from the next cycle, and Workspace default puts the task back on the workspace’s policy.

You can close the session, or even the app. The task keeps running in the background, and its card on the board shows where it is, such as “Gates for cycle 1”.

Read it as a story. The developer implemented the spec in its own worktree, and Astranize committed that cycle’s work to the task’s branch. Your npm test gate ran there and passed. The reviewer read the diff and approved it. The summary agent wrote what was done and how to test it. Then the task stopped to wait for your final review.

If a gate had failed or the reviewer had rejected the change, the task would go back to the developer for a new cycle. That happens by itself, up to 3 times.

Your first task may run straight through, but sooner or later an agent will need something only you know, or a task will get stuck. When that happens, the task stops with a decision: a short question with options to pick from, each with its consequence and one marked as recommended.

The card moves to For you with “Answer the Dev’s decision”, and a desktop notification appears. Open For you in the side rail, pick an option on the card, and click Confirm. The task goes back to running and the agent continues with your answer.

A task that got stuck, for example after going back to the developer more than 3 times, shows up in the same place with the options Try again, Request changes and Archive.

Decisions describes every kind.

When the summary is done, the task moves to For you, waiting for your final review. Now you decide, criterion by criterion, whether the change does what the spec promised. The final review is always the last screen before a task is done.

The final review screen with the tabs Summary, How to test, Code, Criteria and Gates, and the Request changes and Approve task buttons at the bottom.
The final review screen. The decision bar stays visible on every tab.

Open the task and click Validate, or click Validate delivery on its card in For you. The final review opens on its tabs:

  • Summary says what was done, how, and what to watch out for, with the reviewer’s closing note. If the summary agent failed, it says the summary is unavailable and the other tabs still work.
  • How to test is a short step-by-step guide to try this exact task by hand, with a setup block and one gesture per step. The checkboxes are for you while you test; they are not saved.
  • Code shows the changed files and the diff. Pick All for the final diff, or one commit. When the task has no commits, you pick a round instead.
  • Criteria has one card per criterion, with ✓ test or — no test, the reviewer’s mark and the proof. Click Approve or Reject on each one. A rejection asks “Why isn’t it approved?”. Approve all approves the ones still pending and does not undo a rejection.
  • Gates shows the output of your checks.
  • Video appears only when the video add-on ran.

When every criterion is approved, Approve task turns on. Click it and the task moves to Done. Until then, the bar tells you what is missing.

If something is wrong, click Request changes. The text box is prefilled with the criteria you rejected and why. Astranize suggests where the task goes back to, the dev or the ideator, and you can switch it before sending. The task goes through the loop again and comes back to you for the final review.

The code is on the branch astra/t-0001-search-notes, checked out in ~/.astranize/workspaces/notes/worktrees/t-0001/web, with one commit per developer cycle. Nothing has been pushed. Open that folder to run the app or read the code yourself. With a task set to never commit, the changes are in that folder too, only uncommitted, and the validation screen marks the delivery “no commit”.

Everything else the task produced is in ~/.astranize/workspaces/notes/runs/t-0001/:

  • summary.json is what the summary agent wrote: what was done, how, points of attention and the test guide.
  • report.json has one row per criterion: whether a test cites it (cited or missing), what the reviewer said, and your verdict. With the video add-on, it also says whether the video passed.
  • diff.patch is the full change, summary.md is a readable overview of the task with the same criteria table, and cycle-1/gates/ has the output of your checks.
  • With the video add-on, video/video.webm is the recording, and video/frames/ holds a frame per criterion.

Archiving takes a finished task off the board. Its history, files and branch stay where they are. The app keeps finished tasks in the Done column and only offers Archive for a stuck task in For you, so archive a finished task from the CLI:

Terminal window
astranize archive t-0001 --workspace notes
{"type":"task_updated","task":{"id":"t-0001","title":"Search notes","status":"archived",...}}

astranize list --workspace notes --archived lists archived tasks. Once a task is archived, its overview in the app also has Delete, which moves the task, its run folder and its worktrees to the Astranize trash; see Tasks. That’s it: you have taken a task from one sentence to a validated branch.

Step In the app In the CLI Task status after it
Create New task, then Create task create --title --description backlog
Ideate The play button on the card, or Ideate ideate <id> waiting_you at approval
Approve Answer, then Approve approve <id> --answers '<json>' running, then waiting_you at validation
Answer a decision For you, pick an option, Confirm decide <id> <D-n> --option <id> running again
Validate Validate, approve each criterion, Complete task validate <id> --file verdict.json done, or running again
Edit Edit on the task edit <id> --title ... unchanged
Archive Only for a stuck task, from For you archive <id> archived
Delete Delete on an archived task delete <id> gone, in the trash

You may notice a run command in the CLI reference. You rarely need it, because approving, answering, retrying and validating queue the work themselves. run t-0001 only restarts a task that is in running status but isn’t executing; the app shows that case as “The task stopped with no process running”, with a Run button. Any other status gives Cannot run task t-0002 in status "waiting_you".

  • Tasks explains every status a task can be in.
  • Gates explains what happens when a check fails.
  • Proof video sets up the optional video add-on, with services, login and data, so it records the task’s own code.
  • Mid-run instructions shows how to steer an agent while it works.