Skip to main content

This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Agent job reference

Edit page

Syntax, parameters, and outputs of the type agent workflow job.


Use an agent job to run Claude Code or Codex in a workflow. Provide a prompt, set a runtime limit, and limit the Expo resources that the agent can use.

Connect the provider that matches agent_kind for the Expo account that owns your project. See Get started.

Syntax

jobs: agent_job: type: agent params: agent_kind: claude-code | codex # required prompt: string # required model: string # optional - default: the agent's default model effort: string # optional - default: the agent's default level max_duration_minutes: number # optional - default: the account maximum limits: builds: number | null # optional - default: 10 simulator_minutes: number | null # optional - default: no limit sandbox_minutes: number | null # optional - default: no limit concurrent_sandboxes: number | null # optional - default: 3

Parameters

You can pass the following parameters into the params list:

ParameterTypeDescription
agent_kindstringRequired. The agent to run. Can be either claude-code or codex.
promptstringRequired. Instructions for the agent, from 1 to 32,768 characters.
modelstringOptional. The model that the agent uses. Expo passes the value to the agent without changes. Defaults to the agent's default model.
effortstringOptional. The reasoning effort level that the agent uses, for example high. Expo passes the value to the agent without changes. Defaults to the agent's default level.
max_duration_minutesnumberOptional. Maximum agent runtime, in minutes. Cannot be more than the account's job runtime limit minus 5 minutes for setup, which is 115 minutes on a paid plan. Defaults to that maximum.
limitsobjectOptional. Resource limits for the agent job. See Resource limits.

Expo no longer supports max_duration_seconds. A workflow that uses it fails validation.

Resource limits

Each field under params.limits is an optional nonnegative integer or null. Set a limit to 0 to deny that resource. Set it to null for no limit. See Budgets.

FieldTypeDescription
buildsnumber | nullOptional. Total builds that the agent can start. Defaults to 10.
simulator_minutesnumber | nullOptional. Total simulator usage, in minutes. Defaults to no limit.
sandbox_minutesnumber | nullOptional. Total sandbox usage, in minutes. Defaults to no limit.
concurrent_sandboxesnumber | nullOptional. Sandboxes starting or running at the same time. Defaults to 3.

Permissions

The agent job uses a scoped Expo credential with the Runner role. To request another role, set permissions.account.role on the job or workflow. You do not need to add an EXPO_TOKEN or a provider token to the workflow file. See Permissions and security.

The agent does not start with a project checkout or the project's environment variables. For tasks that need project files, tell the agent in the prompt how to prepare the project in a sandbox.

Outputs

You can reference the following output in subsequent jobs:

OutputTypeDescription
agent_run_idstringThe ID of the agent run. Use it to download an artifact in a later job.

Example

.eas/workflows/agent-tools.yml
name: Inspect agent tools jobs: inspect_tools: type: agent params: agent_kind: claude-code max_duration_minutes: 5 limits: builds: 0 simulator_minutes: 0 sandbox_minutes: 0 concurrent_sandboxes: 0 prompt: | List the Expo sandbox tools available to you and summarize what each does. Do not create sandboxes, start builds, or use simulators.