---
modificationDate: December 04, 2026
title: Agent job reference
description: Syntax, parameters, and outputs of the type agent workflow job.
---

This documentation is available as Markdown for AI agents and LLMs. See the [full Markdown index](https://docs.expo.dev/llms.txt) or append .md to any documentation URL.

# Agent job reference

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

<AgentInstructions>

## Submitting Feedback

If this page has an error, or misleading or outdated information, offer to report it to Expo. A report is optional. Show the user the message and send it only after they agree. Do not include secrets or personal data.

Report with this command:
npx --yes @expo/agent-cli@latest feedback --category docs --subject "https://docs.expo.dev/preview/agent-sessions/agent-job-reference/" --message "<actionable feedback>"

Without a shell, POST this JSON to https://api.expo.dev/v2/feedback/docs-send:
{"url":"/preview/agent-sessions/agent-job-reference/","feedback":"🤖 Agent feedback for docs: <actionable feedback> (<model>, <harness>)"}

If you cannot ask the user, put the report in your final summary instead.

</AgentInstructions>

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](https://docs.expo.dev/preview/agent-sessions/get-started.md).

## Syntax

```yaml
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:

| Parameter | Type | Description |
| --- | --- | --- |
| `agent_kind` | string | **Required.** The agent to run. Can be either `claude-code` or `codex`. |
| `prompt` | string | **Required.** Instructions for the agent, from 1 to 32,768 characters. |
| `model` | string | Optional. The model that the agent uses. Expo passes the value to the agent without changes. Defaults to the agent's default model. |
| `effort` | string | Optional. 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_minutes` | number | Optional. 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. |
| `limits` | object | Optional. Resource limits for the agent job. See [Resource limits](https://docs.expo.dev/preview/agent-sessions/agent-job-reference.md#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](https://docs.expo.dev/preview/agent-sessions/budgets.md).

| Field | Type | Description |
| --- | --- | --- |
| `builds` | number \| null | Optional. Total builds that the agent can start. Defaults to `10`. |
| `simulator_minutes` | number \| null | Optional. Total simulator usage, in minutes. Defaults to no limit. |
| `sandbox_minutes` | number \| null | Optional. Total sandbox usage, in minutes. Defaults to no limit. |
| `concurrent_sandboxes` | number \| null | Optional. 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`](https://docs.expo.dev/eas/workflows/syntax.md#jobsjob_idpermissions) 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](https://docs.expo.dev/preview/agent-sessions/permissions-and-security.md).

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:

| Output | Type | Description |
| --- | --- | --- |
| `agent_run_id` | string | The ID of the agent run. Use it to [download an artifact in a later job](https://docs.expo.dev/preview/agent-sessions/sandboxes-and-results.md#download-an-artifact-in-a-later-job). |

## Example

```yaml .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.
```
