Skip to content

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.
apiVersion: v2
kind: Automation
name: Lint review
run_context: task
timeout: 30m
agent:
thinking_level: low
triggers:
- uses: pull_request_updated
steps:
- 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.

FieldWhat it sets
timeoutHow long one automation run can take, from 0s to 24h in whole seconds. The default is one hour.
agent.modelThe model for Prompt steps. Choose one from the workspace’s model list.
agent.thinking_levelHow much the model reasons before it acts: minimal, low, medium, high, or xhigh.
agent.skip_repository_checkoutStart without cloning the repositories, for jobs that don’t need the code.
agent.skip_setup_commandsStart 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.