Check your email to confirm your subscription—don’t forget to check your spam folder too!
Use secrets and prerequisites in flows
RocketSim flows take parameters, keep secrets out of every file and log, and start with other flows as prerequisites. One login flow then serves every flow that needs a signed-in app, without your agent signing in twice.
Coming soon in RocketSim 17. The commands in this tutorial are not available in the current release.
-
Ask for a secret parameter
A parameter lives in the flow header. A secret reads from an environment variable at run time, and its value is never written to the flow, a log, or a failure reply.
Prompt Save the login as a flow. Make the email a parameter and the password a secret parameter read from $TEST_PASSWORD.Parameter declarations param: user # required param: user = default # literal default param: user = $ENV_VAR # default from the environment param: password secret = $TEST_PASSWORD # secret, never persistedYou should see Steps use
{name}, such astype '{password}'. RocketSim resolves each value from--param, then the environment, then the default. -
Set the values in your shell
This is the one step you do yourself. Export the values where your agent runs, so a secret never lands in a transcript. The agent then passes them by shell expansion.
What your agent runs
Setting values and replaying a flow with parameters # You set these export TEST_USER=alice TEST_PASSWORD=...# The agent replays with them rocketsim flow login --param user=$TEST_USER --param password=$TEST_PASSWORD -
Chain flows with a prerequisite
Leading
flowlines before the first real step are prerequisites. Ask your agent to build the next flow on top of the login.Prompt Save a flow that opens the Settings screen. It should start with the login flow.A flow with a prerequisite name: open-settings about: Open the settings screen from home flow login tap --label 'Settings' expect --identifier settings.title -
Replay without signing in twice
Ask for the flow. RocketSim skips the prerequisite when that flow's final check already holds, such as being on the home screen after sign-in.
What your agent runs
Replaying a flow with a prerequisite rocketsim flow open-settingsYou should see Login runs only when you are signed out. Any
flowline after the first real step always runs. -
Share flows with your team
Keep the
.rsflowfiles in your repository, and tell your agent to load them in a fresh checkout or a new worktree. The sync skips flows that did not change. Put the instruction in your AGENTS.md, so every agent follows it.A line for AGENTS.md - At the start of a task, run `rocketsim flow sync --dir flows` to load the project's flows into RocketSim.
Up next · Flows
Keep flows working when your UI changes
Catch drift early, repair a stale flow, and resume after a blocker.
Learn it in minutes.
Use it on every task.
No signup. Works with Xcode 16+ and Xcode 27's Device Hub.