/migrate command tells Astro to automatically convert your agent from the old agent loop to the new loop. The new loop uses only iris (AI task) and output nodes, removing legacy node types like url, playwright_script, and api.
When to Migrate
Migrate if your agent was built before the new loop was introduced and contains any of these legacy node types:url— standalone URL navigation nodesplaywright_script— raw Playwright script nodesapi— direct API call nodes
How to Use /migrate
Open Astro on your agent’s Builder page and type:What Gets Changed
new_agent_loop flag
new_agent_loop flag
Sets
new_agent_loop: true in the agent’s config.yaml settings block.URL nodes removed
URL nodes removed
Each
url node is removed. Its target URL is merged into the nearest downstream iris node as a “go to <url>” instruction at the start of that node’s prompt.Playwright script nodes replaced
Playwright script nodes replaced
Each
playwright_script node is replaced by an iris node whose prompt describes the same action in the iris scripted-node format.API nodes removed
API nodes removed
Each
api node is removed. The nearest relevant iris node is updated with an instruction to call the API via bash instead.Tool list trimmed
Tool list trimmed
On every
iris node, all tools are removed except dom_browser_interaction, browser_run_code, and generate_totp_secret (only kept if that node genuinely needs it).Routing terminology updated
Routing terminology updated
All uses of “routing” and “interrupting” are replaced with “hand off”.
Scratchpad replaced with output variables
Scratchpad replaced with output variables
Scratchpad read/write operations are replaced with output variable operations — for example, “place the result on the scratchpad” becomes “pass the result as an output variable”.
Failure handling moved to output nodes
Failure handling moved to output nodes
Outcome-selection logic (e.g. “hand off with outcome ‘success’ if X, ‘failure’ if Y”) is moved out of
iris node instructions and into the corresponding output node’s instructions.md, with instructions_enabled: true set on that output node.query_context tool removed
query_context tool removed
Any
iris node using the query_context tool has that tool removed. The node is updated to read the value from the execution data variable directly, and the upstream node is updated to output that value explicitly.After Migration
Once Astro saves the draft, review the changes in the Builder before publishing:- Confirm no
url,playwright_script, orapinodes remain - Check that each
irisnode’s prompt accurately describes the intended behaviour - Verify that output nodes have the correct outcome-selection criteria in their instructions
- Run a test execution to confirm the agent behaves as expected

