Your first workspace
Create a workspace, tell it which repo to work on and which commands check it, and confirm it loads.
Before Astranize can work on your code, it needs to know where the code is and how to check it. You tell it in a workspace. A workspace is one project: the repos a task may touch, the commands that prove a change is good, and the steps every task follows. If you work for three clients, you would usually have three workspaces.
The examples use a notes app with a single repo, web, checked out at ~/code/notes/web. Swap in your own repo as you go. In the CLI tabs, astranize is the alias from Installation.
Create the workspace
Section titled “Create the workspace”The desktop app creates a workspace with a wizard of six steps, and you never write YAML. The first time you open the app there is no workspace yet, so it opens straight on this wizard, titled “Welcome to Astranize”. Later you reach it from the workspace menu at the top left, with New workspace….
-
Name. Type a Display name, such as “Notes”. The Technical name follows it as you type (
notes) and names the workspace folder; it takes lowercase letters, digits and dashes. A logo is optional: without one, the top bar shows the initials.
Step 1 of 6. The technical name follows the display name until you change it. -
Repos. Type the path of your repo,
~/code/notes/web, or pick it with Choose folder…. The path is checked right away, without running anything from the repo: a git repository reads “Git repository · branch main”, and a folder that isn’t one shows the problem and keeps Next off. The Repo name comes from the folder name, and Base branch from the repo’s default branch. Add repo adds another one. You can also go on with no repo and add it later in Settings. -
Gates. Astranize reads each repo’s
package.jsonand suggests a gate for everytest,lint,typecheckandbuildscript it finds, with a checkbox and an editable command, such aspnpm run test. Uncheck the ones you don’t want. A checked gate with an empty command reads “Write the command or uncheck the gate.” -
Video. The proof video is an optional add-on and is off by default. Click Set up later to leave it off, or Turn video on and fill in the Base URL and the Playwright repo. Only repos with a web app are offered.
-
Permission and commits. Pick the permission mode, Ask by default, and the commit policy, one commit per dev cycle by default. Leave both alone for your first workspace.

Step 5 of 6. The defaults are what Astranize did before these settings existed. -
Summary. Check the name, repos, gates, video, permission and commit, then click Create workspace. The steps at the top take you back to any step, and what you typed is still there.
The app opens the new workspace on an empty Tasks board, with a “Workspace ready” notice and the New task button highlighted. Everything you picked can change later in Settings, under Workspace.
First check the folder. repo check says whether it is a git repository, which branch it defaults to and which gates its package.json suggests. It only reads: nothing from the repo runs.
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":[]}The gate commands use pnpm run because the repo has a pnpm-lock.yaml; with a yarn.lock they use yarn, and otherwise npm run. webApp is set when the repo depends on a web framework such as Vite or Next.
Then create the workspace. --patch writes the repo into config.yaml in the same step, as a list of changes:
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"},{"name":"lint","command":"pnpm run lint"}]}}]'{"type":"workspace_created","workspace":"notes","path":"~/.astranize/workspaces/notes"}Without --patch, the workspace starts with no repos (repos: {}), and you add them later in the app or by editing config.yaml. The CLI reference lists every flag.
Both paths write the same files:
Directory~/.astranize/workspaces/notes/
- config.yaml your repos, gates and video
- workflow.yaml
Directoryflows/
- default.yaml the default flow
Directoryprompts/
- ideator.md
- developer.md
- reviewer.md
- video.md
- rules.md rules every agent reads, empty at first
Directorymissions/
- …
Directoryprobes/
- …
The config.yaml holds what you picked. The video stayed off, so there is no video section, and the commit policy stayed on its defaults, so there is no commit section either:
repos: {web: {path: ~/code/notes/web, base_branch: main, gates: [{name: test, command: pnpm run test}, {name: lint, command: pnpm run lint}]}}display_name: NotesThe repos come out in YAML’s compact form, on one line. It means the same as the indented form the rest of these docs use, and once you edit the file, by hand or from a form in Settings, your layout and comments are kept.
The workspace has one repo, web. Every task branches off main, in a separate worktree, so your own checkout is never touched. Two commands decide whether a change is good, pnpm run test and pnpm run lint. These are the gates: they run in the task’s worktree after the developer finishes, and a failure sends the task back to the developer with the output.
Check that it loads
Section titled “Check that it loads”In the app, open Settings and look at Workspace. When config.yaml has a problem, the section opens on the YAML tab with the error marked on its line. Otherwise you see the Repos tab with each repo checked: “Git repository · branch main”.
From the CLI, the flow command loads the config and the flow and prints the steps. It is the quickest way to know the workspace is valid.
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":"summary","type":"summary","actor":"agent"},{"id":"validation","type":"validation","actor":"you"}]}}Each step has an actor that tells you who acts: an agent, you, or a check that runs your commands. If you see this line, the workspace is ready for a task.
When something in the config is wrong, you get an error that names the file and the exact key instead. For example, a misspelled baseBrnch:
{"type":"error","message":"~/.astranize/workspaces/notes/config.yaml: invalid workspace config\nrepos.web.baseBranch: Required\nrepos.web: Unrecognized key(s) in object: 'baseBrnch'"}Try your services
Section titled “Try your services”This section only applies once your repos define services, the processes a task starts for itself, like a dev server. services-check starts them the way a task would, waits for each one to be healthy, prints the addresses, then stops them and cleans up. --repos takes a comma-separated list.
astranize services-check --workspace notes --repos webWith a web service whose start is node server.mjs {ports.web}:
{"type":"services","urls":{"web":"http://127.0.0.1:51798"}}With no services configured, as in the config above, it prints {"type":"services","urls":{}}. A repo that isn’t in the workspace gives repos not in workspace: api.
Build the repo map
Section titled “Build the repo map”Agents work better when they don’t have to rediscover your repo on every task. So Astranize writes a short summary of each repo, with its architecture, folders, commands and conventions, and puts it at the top of every agent prompt. That summary is called a repo map.
You don’t have to do anything: Astranize builds a missing map by itself before the ideator and the developer run, and rebuilds it after the base branch moves 50 commits. In the app, the maps show up in Settings, Instructions, under Repo maps, where you can edit one or click Regenerate. From the CLI, map builds them now:
astranize map --workspace notes{"type":"maps","repos":[{"repo":"web","status":"generated"}]}map calls claude with Sonnet and read-only tools, so it costs tokens. --repo web maps a single repo. The status is generated, fresh, skipped (no agent, or the base branch has no commit) or failed. Maps are saved as context/<repo>.md in the workspace and are capped in size.
Pick a language
Section titled “Pick a language”Agents write the spec, questions, criteria, summaries and chat in one language, and the desktop app uses the same one. It is a setting for the whole machine, English by default. In the app, change it in the avatar menu at the top right, Language / Idioma. From the CLI, settings shows it. It still needs --workspace, but any valid name works.
astranize settings --workspace notes{"type":"settings","language":"en"}set-language changes it. It takes en or pt-BR.
astranize set-language pt-BR --workspace notes{"type":"settings","language":"pt-BR"}Anything else gives Unsupported language "fr": use en or pt-BR. Code, identifiers and commit messages stay in English either way.
Good to know
Section titled “Good to know”Workspace names
Section titled “Workspace names”The technical name names the folder, so it takes lowercase letters, digits and dashes, starting with a letter or digit. A name that is taken or malformed is refused before anything is written: O workspace "notes" já existe or Nome de workspace inválido: "Notes"; use letras minúsculas, dígitos e hífens. The display name is free text up to 60 characters, and the logo is a png, svg, jpg or webp file up to 1 MB.
Rename or remove a workspace later
Section titled “Rename or remove a workspace later”Settings, Workspace, ends with a danger zone. Rename workspace moves the tasks, policies and settings to the new name. Move to trash moves the whole folder to ~/.astranize/trash/, so nothing is deleted. Both are refused while a task of the workspace runs, waits in the queue or still has worktrees. Write config.yaml has the details.
Start from an existing folder
Section titled “Start from an existing folder”init is the older way to create a workspace from the CLI, and it is still there for one job: copying a folder you already have. init --from <dir> copies that folder into the new workspace first, then fills in what it doesn’t have. The Astranize repo ships an example you can start from:
astranize init --workspace demo --from ~/code/astranize/examples/web-appFiles from --from win over the defaults. Files already in the workspace win over both, so running init again is safe.
The keys in this config
Section titled “The keys in this config”| Key | Required | Meaning |
|---|---|---|
display_name |
no | Name shown in the app, up to 60 characters. |
repos.<name>.path |
yes | The repo checkout. ~ is expanded. It must be a git repo. |
repos.<name>.base_branch |
yes | The branch task branches start from. |
repos.<name>.setup |
no | Command run once in each new worktree, like npm ci. |
repos.<name>.copy |
no | Files copied from the checkout into each worktree, like [".env"]. |
repos.<name>.gates |
no | Commands that must pass. Each has name, command and timeout_seconds (default 900). They run in the task worktree. |
repos.<name>.services |
no | Processes started per task, with their own ports. See config.yaml. |
video.base_url |
for the optional video step | Where the Playwright test opens the app. Usually {services.<name>.url}. |
video.playwright_repo |
for the optional video step | The repo where npx playwright test runs. It must be one of repos. |
commit |
no | When and how task work is committed. See Commits. |
Keys are snake_case. camelCase still loads with a warning, an unknown key is an error, and writing both forms of the same key is an error. YAML keys lists every key, and the config.yaml guide covers services, placeholders like {ports.web} and {worktree}, login for the video, shells and per-step slots.
The flow comes from flows/default.yaml when that file exists, otherwise from workflow.yaml. Build a flow shows how to change it.
Next steps
Section titled “Next steps”- Your first task runs a task through this workspace.
- config.yaml walks through every tab of the workspace settings, and adds services so the video records the task’s own code.
- Commits explains when Astranize commits a task’s work.
- Gates explains what happens when a check fails.
