Steps
The Bash and Prompt steps an automation runs, and the settings that apply to its agent.
An automation runs a list of steps. They run in order, in one sandbox, so a later step can read the files an earlier step wrote.
- A Bash step runs shell commands. Use it when you know the command and what its exit status means, like running a test suite.
- A Prompt step starts the agent with a prompt. Use it for work that needs judgment, like explaining a failing test. Later Prompt steps continue the same agent session.
Write steps
Section titled “Write steps”apiVersion: v2kind: Automationname: Lint reviewrun_context: tasktimeout: 30magent: thinking_level: lowtriggers: - uses: pull_request_updatedsteps: - name: Run the linter working_directory: web bash: | npm run lint > /tmp/lint.log 2>&1 || true - name: Summarize the findings prompt: | Read /tmp/lint.log. Record a check on this task with the key lint, and explain each finding.Each step has a name and either bash or prompt. working_directory sets where the step runs. A Bash step can also list secrets by name. See Secrets.
Automation settings
Section titled “Automation settings”| Field | What it sets |
|---|---|
timeout | How long one automation run can take, from 0s to 24h in whole seconds. The default is one hour. |
agent.model | The model for Prompt steps. Choose one from the workspace’s model list. |
agent.thinking_level | How much the model reasons before it acts: minimal, low, medium, high, or xhigh. |
agent.skip_repository_checkout | Start without cloning the repositories, for jobs that don’t need the code. |
agent.skip_setup_commands | Start without running the workspace’s setup steps. |
Every agent also starts from the workspace’s Agent settings: repositories, setup steps, MCP servers, and skills.
- If a step fails, the automation run stops and fails. To keep going after a failing command, save its status and fail a later step instead. See the Automations example.
- Use only Bash steps, only Prompt steps, or mix them.
- Only Bash steps can name secrets.