Read session records through [List records](/docs/api/sessions/get-sessions-id-records) or receive them in a live stream's `records` frames. Open an event to see its example JSON and detailed field specification. Events are grouped by producer and ordered roughly from a message's receipt through environment preparation to its end.

The session's own `event` field is the webhook that started it, as the integration sent it. The records on this page describe activity throughout that session. See [Sessions](/docs/sessions#inspect-the-result) for `source` and `event` fields.

Examples are illustrative, independent messages, not a consecutive transcript. Optional native fields vary by harness version. Platform and transport types are listed in full; native harnesses can also send additional types through [unknown records](#unknown-records).

- [Platform](#platform), the message, environment, and session events.
- [Claude Code](#claude-code): native messages and turn results.
- [Codex](#codex): native app-server notifications.
- [Gemini CLI](#gemini-cli) (native stream-json events).
- [WebSocket frames](#websocket-frames): delivery, live output, and connection state.
- [Historical formats](#historical-formats): records retained from older sessions.

For how a session reports progress, and how to know when your message is answered, start with [Lifecycle](/docs/sessions/lifecycle).

## Read an event

| Field                  | How to use it                                                                                                        |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `kind`                 | Select the typed record variant, one of `platform`, `claude_code`, `codex_app_server`, `gemini`, `claude_sdk`, `codex`, or `unknown`. |
| `source`               | Identify the producer, one of `lifecycle`, `claude_code`, `codex`, or `gemini`.                                         |
| `record_format`        | Select the payload version; existing history retains its original format.                                            |
| `record_type`          | Identify the event within its format.                                                                                |
| `payload`              | Read the platform fields or the unchanged native message.                                                            |
| `feed_seq`             | Order records within a session and resume the stream after this position.                                            |
| `message_id`           | Correlate records with the message they belong to. Environment records carry the message they prepare for.           |

Use `kind` and `record_type` to narrow platform records. For native records, narrow `kind` first, then `payload.type` (Claude, Gemini CLI, and historical Codex) or `payload.method` (current Codex). Native payloads can have their own `kind` field, such as `"push"` in a Claude Git notification; it is event data, not the envelope's record variant. Claude rate limits are the exception: `record_type` is `rate_limit`, while `payload.type` is `rate_limit_event`.

The field specifications below come from the SDK schema. **Required** means the field must be present; `null` in its type means its value can be null. Expand nested fields to inspect their properties and variants. Required fields within a variant apply when that variant is used. Examples show one possible payload; optional native fields may be absent.

Both SDKs expose `SessionRecord` and `StreamFrame`:

```python
from ellipsis import SessionRecord
from ellipsis.frames import StreamFrame
```

```typescript
import type { SessionRecord, StreamFrame } from '@ellipsis-dev/sdk';
```

## Platform

These records use `kind: "platform"`, `source: "lifecycle"`, and `record_format: "ellipsis_lifecycle@1"`. Events describe individual changes. Not every session produces every type. Every record that belongs to a message carries its `message_id`. Environment records carry the message they prepare for. Older sessions can contain platform record types that are no longer produced. They arrive as [unknown records](#unknown-records).

<a id="message"></a>

### message

A message was sent to the session. The payload is the same object `POST /v1/sessions/{id}/messages` returns.

Match a native user echo to this record by `message_id` so the message renders once. The message is answered when its `message_ended` record arrives. See [Lifecycle](/docs/sessions/lifecycle#wait-for-the-answer).

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "message",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 1,
  "payload": {
    "id": "message_example",
    "session_id": "session_example",
    "index": 0,
    "body": "Run the tests and report failures.",
    "images": [],
    "author": "priya-shah",
    "created_at": "2026-09-10T14:00:00Z"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "message". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.author` | `string \| null` | Required | Display attribution of the message's sender. |
| `payload.body` | `string` | Required | The message text, with one `[Image #N]` placeholder per attached image. |
| `payload.created_at` | `string` | Required | When the message was received. Format: date-time. |
| `payload.id` | `string` | Required | Unique identifier of the message. |
| `payload.images` | `array<object>` | Required | Images attached to the message, metadata only: index, media type, size. The bytes go to the model, never over the stream. |
| `payload.images.[]` | `object` |  | Additional properties are allowed. |
| `payload.images.[].id` | `string \| null` | Optional | The image's ID. `GET /v1/sessions/{session_id}/images/{id}` returns its bytes. Null when the image can't be fetched. |
| `payload.images.[].index` | `integer` | Required | 1-based position: the N in `[Image #N]`. |
| `payload.images.[].media_type` | `string` | Required | The image's MIME type. |
| `payload.images.[].size_bytes` | `integer` | Required | Size of the decoded image, in bytes. |
| `payload.index` | `integer` | Required | Position in the session, starting at 0. |
| `payload.session_id` | `string` | Required | Identifier of the session the message belongs to. |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="environment_phase"></a>

### environment_phase

A phase of environment preparation started, completed, or failed, with an optional `step`, timing, and details.

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "environment_phase",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 2,
  "payload": {
    "phase": "setup",
    "status": "completed",
    "step": "after_checkout",
    "duration_ms": 2400,
    "detail": null
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:03Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "environment_phase". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.detail` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.duration_ms` | `integer \| null` | Optional |  |
| `payload.phase` | `string` | Required |  |
| `payload.status` | `string` | Required |  |
| `payload.step` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="environment_output"></a>

### environment_output

A chunk of output from environment preparation, including your hooks; many arrive per turn, and `chunk` orders them within a step.

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "environment_output",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 3,
  "payload": {
    "phase": "clone",
    "step": "your-org/api-repo",
    "stream": "stdout",
    "chunk": 0,
    "lines": ["Cloning into 'api-repo'..."]
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:01Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "environment_output". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.chunk` | `integer` | Required |  |
| `payload.lines` | `array<string>` | Required |  |
| `payload.lines.[]` | `string` |  |  |
| `payload.phase` | `string` | Required |  |
| `payload.step` | `string \| null` | Optional |  |
| `payload.stream` | `string` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="environment_ready"></a>

### environment_ready

The environment is prepared for the listed repositories and the agent is about to start.

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "environment_ready",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 4,
  "payload": {
    "repositories": ["your-org/api-repo"],
    "duration_ms": 8400
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:08Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "environment_ready". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.duration_ms` | `integer \| null` | Optional |  |
| `payload.repositories` | `array<string>` | Required |  |
| `payload.repositories.[]` | `string` |  |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="message_queued"></a>

### message_queued

The message waits because the account already has its limit of sessions alive.

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "message_queued",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 2,
  "payload": {
    "message_id": "message_example",
    "sessions_alive": 32,
    "limit": 32
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:01Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "message_queued". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.limit` | `integer` | Required |  |
| `payload.message_id` | `string` | Required |  |
| `payload.sessions_alive` | `integer` | Required |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="message_started"></a>

### message_started

The agent started on the message and the session is now `running`.

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "message_started",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 5,
  "payload": {
    "message_id": "message_example"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:09Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "message_started". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.message_id` | `string` | Required |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="message_ended"></a>

### message_ended

The message was answered, or its answer failed, was stopped, or was cancelled. `error` is the same object as the session's `error`, null when the message was answered. `cost` and `tokens` are what answering it spent, reported once on the last of the messages answered together.

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "message_ended",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 7,
  "payload": {
    "message_id": "message_example",
    "status": "completed",
    "error": null,
    "duration_ms": 4200,
    "cost": {
      "llm": {
        "all": {
          "platform": 1520,
          "claude_subscription": 0,
          "codex_subscription": 0,
          "total": 1520
        },
        "by_model": []
      },
      "cpu": 40,
      "memory": 0,
      "fee": 0,
      "charged": 1560,
      "total": 1560
    },
    "tokens": {
      "all": {
        "input": 12,
        "output": 85,
        "cache_read": 20100,
        "cache_creation": 900,
        "total": 21097
      },
      "by_model": []
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:13Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "message_ended". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.cost` | `object` | Optional | Additional properties are allowed. |
| `payload.cost.charged` | `integer` | Required | What Ellipsis charged to credit, in millicents. It is everything except subscription tokens. |
| `payload.cost.cpu` | `integer` | Required | CPU spend in millicents. |
| `payload.cost.fee` | `integer` | Required | Platform fee in millicents. |
| `payload.cost.llm` | `object` | Required | LLM token cost, in total and by model, split by who paid. Additional properties are allowed. |
| `payload.cost.llm.all` | `object` | Required | Token cost across every model. Additional properties are allowed. |
| `payload.cost.llm.all.claude_subscription` | `integer` | Required | Token cost paid by a Claude subscription, at Ellipsis rates, in millicents. |
| `payload.cost.llm.all.codex_subscription` | `integer` | Required | Token cost paid by a Codex subscription, at Ellipsis rates, in millicents. |
| `payload.cost.llm.all.platform` | `integer` | Required | Token cost charged to Ellipsis credit, in millicents. |
| `payload.cost.llm.all.total` | `integer` | Required | All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription. |
| `payload.cost.llm.by_model` | `array<object>` | Required | Token cost for each model that used tokens. |
| `payload.cost.llm.by_model.[]` | `object` |  | Additional properties are allowed. |
| `payload.cost.llm.by_model.[].claude_subscription` | `integer` | Required | Token cost paid by a Claude subscription, at Ellipsis rates, in millicents. |
| `payload.cost.llm.by_model.[].codex_subscription` | `integer` | Required | Token cost paid by a Codex subscription, at Ellipsis rates, in millicents. |
| `payload.cost.llm.by_model.[].model` | `string` | Required | The model that used these tokens. |
| `payload.cost.llm.by_model.[].platform` | `integer` | Required | Token cost charged to Ellipsis credit, in millicents. |
| `payload.cost.llm.by_model.[].total` | `integer` | Required | All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription. |
| `payload.cost.memory` | `integer` | Required | Memory spend in millicents. |
| `payload.cost.total` | `integer` | Required | Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee, and it is what the budget caps. |
| `payload.duration_ms` | `integer \| null` | Optional |  |
| `payload.error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.error.detail` | `string \| null` | Required | A human-readable explanation. |
| `payload.error.reason` | `string` | Required | What went wrong. Allowed values: "error", "tool_call_failed", "budget_hit", "payment_required", "blocked", "contact_email_required", "lifecycle_hook_failed", "missing_repo_access", "missing_token_permissions", "missing_environment_variables", "missing_github_integration", "agent_unavailable", "upstream_unavailable", "unsupported_configuration", "execution_disabled", "interrupted", "stopped", "timeout". |
| `payload.message_id` | `string` | Required |  |
| `payload.status` | `string` | Required |  |
| `payload.tokens` | `object` | Optional | Additional properties are allowed. |
| `payload.tokens.all` | `object` | Required | Token counts across every model. Additional properties are allowed. |
| `payload.tokens.all.cache_creation` | `integer` | Required | Tokens written to the prompt cache. |
| `payload.tokens.all.cache_read` | `integer` | Required | Tokens read from the prompt cache. |
| `payload.tokens.all.input` | `integer` | Required | Input tokens used. |
| `payload.tokens.all.output` | `integer` | Required | Output tokens used. |
| `payload.tokens.all.total` | `integer` | Required | All tokens used, including prompt cache reads and writes. Token cost is priced on this. |
| `payload.tokens.by_model` | `array<object>` | Required | Token counts for each model that used tokens. |
| `payload.tokens.by_model.[]` | `object` |  | Additional properties are allowed. |
| `payload.tokens.by_model.[].cache_creation` | `integer` | Required | Tokens written to the prompt cache. |
| `payload.tokens.by_model.[].cache_read` | `integer` | Required | Tokens read from the prompt cache. |
| `payload.tokens.by_model.[].input` | `integer` | Required | Input tokens used. |
| `payload.tokens.by_model.[].model` | `string` | Required | The model that used these tokens. |
| `payload.tokens.by_model.[].output` | `integer` | Required | Output tokens used. |
| `payload.tokens.by_model.[].total` | `integer` | Required | All tokens used, including prompt cache reads and writes. Token cost is priced on this. |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="message_requeued"></a>

### message_requeued

The agent was interrupted before answering, so the message goes back to the inbox and starts again on a fresh environment.

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "message_requeued",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 8,
  "payload": {
    "message_id": "message_example"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:13Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "message_requeued". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.message_id` | `string` | Required |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="session_closed"></a>

### session_closed

The session closed permanently, after the first message of a session that runs once or after a closing message.

**Example JSON**

```json
{
  "kind": "platform",
  "source": "lifecycle",
  "record_format": "ellipsis_lifecycle@1",
  "record_type": "session_closed",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": null,
  "feed_seq": 10,
  "payload": {},
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:14Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "platform". |
| `source` | `string` | Required | Must be "lifecycle". |
| `record_format` | `string` | Required | Must be "ellipsis_lifecycle@1". |
| `record_type` | `string` | Required | Must be "session_closed". |
| `payload` | `object` | Required | Additional properties are allowed. |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

`environment_phase.phase` names a stage of preparation, one of `image` (the base image), `clone` (the repositories), `setup` (the environment's `build_base` and `after_checkout` hooks, named in `step`), `snapshot` (saving the prepared environment for reuse), `restore` (bringing a saved environment back for a later message), and `hooks` (the `before_start` hook, which runs each time an environment is prepared, before the agent starts). `status` is `started`, `completed`, or `failed`. Phases, steps, and statuses are open vocabularies, so render values you don't recognize as they are. `environment_output` carries the same `phase` and `step`. a `clone` chunk names the repository in `step`. A reused environment skips its build steps.

How a message ended also reaches the [`session` frame](#session) as `status` and `error`. `message_ended` is the record of the same change. There are no separate session-level success, failure, or stop records. The session reports only `session_closed`.

## Claude Code

Current Claude records use `kind: "claude_code"`, `source: "claude_code"`, and `record_format: "claude_jsonl@1"`. A native `result` ends a harness turn, not necessarily the whole session.

<a id="claude-system"></a>

### system

Reports harness metadata, including initialization, status, compaction, hooks, and background-task activity through `subtype`.

**Example JSON**

```json
{
  "kind": "claude_code",
  "source": "claude_code",
  "record_format": "claude_jsonl@1",
  "record_type": "system",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "system",
    "subtype": "init",
    "model": "claude-opus-5-5",
    "tools": ["Bash", "Read"],
    "cwd": "/workspace",
    "session_id": "11111111-1111-4111-8111-111111111111",
    "uuid": "22222222-2222-4222-8222-222222222222"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_code". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "system". |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.subtype` | `string` | Required |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-vcs-state-changed"></a>

### system

Reports a Git state change through `subtype: vcs_state_changed`; `payload.kind` identifies the operation, such as a push.

This notification is part of the current turn's activity. It does not complete or fail the turn. Its native `kind`, `cwd`, and other fields are preserved in `payload`; `record_type` remains `system`.

**Example JSON**

```json
{
  "kind": "claude_code",
  "source": "claude_code",
  "record_format": "claude_jsonl@1",
  "record_type": "system",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "system",
    "subtype": "vcs_state_changed",
    "kind": "push",
    "cwd": "/workspace",
    "session_id": "11111111-1111-4111-8111-111111111111",
    "uuid": "22222222-2222-4222-8222-222222222222"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_code". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "system". |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.subtype` | `string` | Required |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-user"></a>

### user

Carries a user-message echo or tool results supplied back to Claude; this example is a tool result.

**Example JSON**

```json
{
  "kind": "claude_code",
  "source": "claude_code",
  "record_format": "claude_jsonl@1",
  "record_type": "user",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "user",
    "message": {
      "role": "user",
      "content": [
        {
          "type": "tool_result",
          "tool_use_id": "tool_example",
          "content": "12 passed",
          "is_error": false
        }
      ]
    },
    "parent_tool_use_id": null,
    "session_id": "11111111-1111-4111-8111-111111111111",
    "uuid": "22222222-2222-4222-8222-222222222222"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_code". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "user". |
| `payload.isReplay` | `boolean \| null` | Optional |  |
| `payload.message` | `object` | Required | Additional properties are allowed. |
| `payload.message.content` | `string \| array<object>` | Required | Matches at least one variant below. |
| `payload.message.content.variant 1` | `string` |  |  |
| `payload.message.content.variant 2` | `array<object>` |  |  |
| `payload.message.content.variant 2.[]` | `object` |  | Matches exactly one variant below. |
| `payload.message.content.variant 2.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.message.content.variant 2.[].type = "text".text` | `string` | Required |  |
| `payload.message.content.variant 2.[].type = "thinking"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "thinking".type` | `string` | Required | Must be "thinking". |
| `payload.message.content.variant 2.[].type = "thinking".signature` | `string` | Required |  |
| `payload.message.content.variant 2.[].type = "thinking".thinking` | `string` | Required |  |
| `payload.message.content.variant 2.[].type = "tool_use"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "tool_use".type` | `string` | Required | Must be "tool_use". |
| `payload.message.content.variant 2.[].type = "tool_use".id` | `string` | Required |  |
| `payload.message.content.variant 2.[].type = "tool_use".input` | `object` | Optional | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "tool_use".name` | `string` | Required |  |
| `payload.message.content.variant 2.[].type = "tool_result"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "tool_result".type` | `string` | Required | Must be "tool_result". |
| `payload.message.content.variant 2.[].type = "tool_result".content` | `string \| array<object> \| null` | Optional | Matches at least one variant below. |
| `payload.message.content.variant 2.[].type = "tool_result".content.variant 1` | `string` |  |  |
| `payload.message.content.variant 2.[].type = "tool_result".content.variant 2` | `array<object>` |  |  |
| `payload.message.content.variant 2.[].type = "tool_result".content.variant 2.[]` | `object` |  | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "tool_result".is_error` | `boolean \| null` | Optional |  |
| `payload.message.content.variant 2.[].type = "tool_result".tool_use_id` | `string` | Required |  |
| `payload.message.content.variant 2.[].type = "server_tool_use"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "server_tool_use".type` | `string` | Required | Must be "server_tool_use". |
| `payload.message.content.variant 2.[].type = "server_tool_use".id` | `string` | Required |  |
| `payload.message.content.variant 2.[].type = "server_tool_use".input` | `object` | Optional | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "server_tool_use".name` | `string` | Required |  |
| `payload.message.content.variant 2.[].type = "server_tool_result"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "server_tool_result".type` | `string` | Required | Must be "server_tool_result". |
| `payload.message.content.variant 2.[].type = "server_tool_result".content` | `object` | Optional | Additional properties are allowed. |
| `payload.message.content.variant 2.[].type = "server_tool_result".tool_use_id` | `string` | Required |  |
| `payload.message.role` | `string` | Required | Must be "user". |
| `payload.parent_tool_use_id` | `string \| null` | Optional |  |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-assistant"></a>

### assistant

Carries completed assistant content, including text, thinking, and tool calls.

**Example JSON**

```json
{
  "kind": "claude_code",
  "source": "claude_code",
  "record_format": "claude_jsonl@1",
  "record_type": "assistant",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "assistant",
    "message": {
      "type": "message",
      "role": "assistant",
      "id": "message_native",
      "model": "claude-opus-5-5",
      "content": [
        {
          "type": "text",
          "text": "I will run the tests."
        },
        {
          "type": "tool_use",
          "id": "tool_example",
          "name": "Bash",
          "input": {
            "command": "pytest -q"
          }
        }
      ],
      "usage": {
        "input_tokens": 1200,
        "output_tokens": 80,
        "cache_read_input_tokens": 0,
        "cache_creation_input_tokens": 0
      },
      "stop_reason": "tool_use"
    },
    "parent_tool_use_id": null,
    "session_id": "11111111-1111-4111-8111-111111111111",
    "uuid": "22222222-2222-4222-8222-222222222222"
  },
  "tools": ["Bash"],
  "tokens_info": {
    "input_tokens": 1200,
    "output_tokens": 80,
    "cache_read_input_tokens": 0,
    "cache_creation_input_tokens": 0,
    "num_turns": 0,
    "cost_usd": 0
  },
  "cost": null,
  "duration": null,
  "model": "claude-opus-5-5",
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_code". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "assistant". |
| `payload.error` | `string \| null` | Optional |  |
| `payload.message` | `object` | Required | Additional properties are allowed. |
| `payload.message.type` | `string` | Required | Must be "message". |
| `payload.message.content` | `array<object>` | Required |  |
| `payload.message.content.[]` | `object` |  | Matches exactly one variant below. |
| `payload.message.content.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.message.content.[].type = "text".text` | `string` | Required |  |
| `payload.message.content.[].type = "thinking"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.[].type = "thinking".type` | `string` | Required | Must be "thinking". |
| `payload.message.content.[].type = "thinking".signature` | `string` | Required |  |
| `payload.message.content.[].type = "thinking".thinking` | `string` | Required |  |
| `payload.message.content.[].type = "tool_use"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.[].type = "tool_use".type` | `string` | Required | Must be "tool_use". |
| `payload.message.content.[].type = "tool_use".id` | `string` | Required |  |
| `payload.message.content.[].type = "tool_use".input` | `object` | Optional | Additional properties are allowed. |
| `payload.message.content.[].type = "tool_use".name` | `string` | Required |  |
| `payload.message.content.[].type = "tool_result"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.[].type = "tool_result".type` | `string` | Required | Must be "tool_result". |
| `payload.message.content.[].type = "tool_result".content` | `string \| array<object> \| null` | Optional | Matches at least one variant below. |
| `payload.message.content.[].type = "tool_result".content.variant 1` | `string` |  |  |
| `payload.message.content.[].type = "tool_result".content.variant 2` | `array<object>` |  |  |
| `payload.message.content.[].type = "tool_result".content.variant 2.[]` | `object` |  | Additional properties are allowed. |
| `payload.message.content.[].type = "tool_result".is_error` | `boolean \| null` | Optional |  |
| `payload.message.content.[].type = "tool_result".tool_use_id` | `string` | Required |  |
| `payload.message.content.[].type = "server_tool_use"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.[].type = "server_tool_use".type` | `string` | Required | Must be "server_tool_use". |
| `payload.message.content.[].type = "server_tool_use".id` | `string` | Required |  |
| `payload.message.content.[].type = "server_tool_use".input` | `object` | Optional | Additional properties are allowed. |
| `payload.message.content.[].type = "server_tool_use".name` | `string` | Required |  |
| `payload.message.content.[].type = "server_tool_result"` | `object` |  | Additional properties are allowed. |
| `payload.message.content.[].type = "server_tool_result".type` | `string` | Required | Must be "server_tool_result". |
| `payload.message.content.[].type = "server_tool_result".content` | `object` | Optional | Additional properties are allowed. |
| `payload.message.content.[].type = "server_tool_result".tool_use_id` | `string` | Required |  |
| `payload.message.id` | `string \| null` | Optional |  |
| `payload.message.model` | `string` | Required |  |
| `payload.message.role` | `string` | Required | Must be "assistant". |
| `payload.message.stop_reason` | `string \| null` | Optional |  |
| `payload.message.stop_sequence` | `string \| null` | Optional |  |
| `payload.message.usage` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.message.usage.cache_creation` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.message.usage.cache_creation_input_tokens` | `integer` | Optional |  |
| `payload.message.usage.cache_read_input_tokens` | `integer` | Optional |  |
| `payload.message.usage.input_tokens` | `integer` | Optional |  |
| `payload.message.usage.output_tokens` | `integer` | Optional |  |
| `payload.parent_tool_use_id` | `string \| null` | Optional |  |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-rate_limit"></a>

### rate_limit

Reports rate-limit status and reset information; the native payload names the event `rate_limit_event`.

**Example JSON**

```json
{
  "kind": "claude_code",
  "source": "claude_code",
  "record_format": "claude_jsonl@1",
  "record_type": "rate_limit",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "rate_limit_event",
    "rate_limit_info": {
      "status": "allowed",
      "rateLimitType": "five_hour",
      "utilization": 0.25,
      "resetsAt": 1789066800
    },
    "session_id": "11111111-1111-4111-8111-111111111111",
    "uuid": "22222222-2222-4222-8222-222222222222"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_code". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "rate_limit_event". |
| `payload.rate_limit_info` | `object` | Required | Additional properties are allowed. |
| `payload.rate_limit_info.overageDisabledReason` | `string \| null` | Optional |  |
| `payload.rate_limit_info.overageResetsAt` | `integer \| null` | Optional |  |
| `payload.rate_limit_info.overageStatus` | `string \| null` | Optional |  |
| `payload.rate_limit_info.rateLimitType` | `string \| null` | Optional |  |
| `payload.rate_limit_info.resetsAt` | `integer \| null` | Optional |  |
| `payload.rate_limit_info.status` | `string` | Required |  |
| `payload.rate_limit_info.utilization` | `number \| null` | Optional |  |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-result"></a>

### result

Reports a harness turn outcome with its output, elapsed time, usage, and reported cost.

**Example JSON**

```json
{
  "kind": "claude_code",
  "source": "claude_code",
  "record_format": "claude_jsonl@1",
  "record_type": "result",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "result",
    "subtype": "success",
    "is_error": false,
    "num_turns": 1,
    "duration_ms": 4200,
    "duration_api_ms": 3100,
    "result": "All 12 tests passed.",
    "total_cost_usd": 0.01,
    "usage": {
      "input_tokens": 1200,
      "output_tokens": 80,
      "cache_read_input_tokens": 0,
      "cache_creation_input_tokens": 0
    },
    "session_id": "11111111-1111-4111-8111-111111111111",
    "uuid": "22222222-2222-4222-8222-222222222222"
  },
  "tools": null,
  "tokens_info": {
    "input_tokens": 1200,
    "output_tokens": 80,
    "cache_read_input_tokens": 0,
    "cache_creation_input_tokens": 0,
    "num_turns": 0,
    "cost_usd": 0
  },
  "cost": 1000,
  "duration": 4200,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_code". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "result". |
| `payload.duration_api_ms` | `integer` | Required |  |
| `payload.duration_ms` | `integer` | Required |  |
| `payload.errors` | `array<string> \| null` | Optional |  |
| `payload.errors.[]` | `string` |  |  |
| `payload.is_error` | `boolean` | Required |  |
| `payload.modelUsage` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.num_turns` | `integer` | Required |  |
| `payload.result` | `string \| null` | Optional |  |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.stop_reason` | `string \| null` | Optional |  |
| `payload.structured_output` | `any JSON value` | Optional |  |
| `payload.subtype` | `string` | Required |  |
| `payload.total_cost_usd` | `number \| null` | Optional |  |
| `payload.usage` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.usage.cache_creation` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.usage.cache_creation_input_tokens` | `integer` | Optional |  |
| `payload.usage.cache_read_input_tokens` | `integer` | Optional |  |
| `payload.usage.input_tokens` | `integer` | Optional |  |
| `payload.usage.output_tokens` | `integer` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-conversation_reset"></a>

### conversation_reset

Reports that Claude switched to a new native conversation identifier.

**Example JSON**

```json
{
  "kind": "claude_code",
  "source": "claude_code",
  "record_format": "claude_jsonl@1",
  "record_type": "conversation_reset",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "conversation_reset",
    "new_conversation_id": "33333333-3333-4333-8333-333333333333",
    "session_id": "11111111-1111-4111-8111-111111111111",
    "uuid": "22222222-2222-4222-8222-222222222222"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_code". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "conversation_reset". |
| `payload.new_conversation_id` | `string` | Required |  |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

`system.subtype` is an open string. Examples include `init`, `compact_boundary`, `status`, `vcs_state_changed`, `task_started`, `task_progress`, `task_notification`, `task_updated`, `hook_started`, and `hook_response`; these remain `system` records, not separate `record_type` values.

A `result.subtype` distinguishes `success` from outcomes such as `error_during_execution`, `error_max_turns`, `error_max_structured_output_retries`, and historical `error_max_budget_usd` results.

Content blocks such as `text`, `thinking`, `tool_use`, and `tool_result` are nested payloads, not separate session events. Native `stream_event` messages supply live [`delta` frames](#delta); their original per-token messages are not retained as records.

## Codex

Current Codex records use `source: "codex"` and `record_format: "codex_app_server@1"`. The modeled notifications use `kind: "codex_app_server"`; additional native notifications use `kind: "unknown"` while retaining their method and payload.

<a id="codex-remoteControl-status-changed"></a>

### remoteControl/status/changed

Reports the native app-server remote-control status as an unknown record.

**Example JSON**

```json
{
  "kind": "unknown",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "remoteControl/status/changed",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": null,
  "feed_seq": 12,
  "payload": {
    "method": "remoteControl/status/changed",
    "params": {
      "status": "disabled",
      "serverName": "sandbox",
      "installationId": "installation_example",
      "environmentId": null
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "unknown". |
| `source` | `string` | Required | Original producer. Unknown producers remain readable as unknown records. |
| `record_format` | `string` | Required | Original versioned payload format. |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-thread-started"></a>

### thread/started

Announces the native thread and its metadata.

**Example JSON**

```json
{
  "kind": "codex_app_server",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "thread/started",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "method": "thread/started",
    "params": {
      "thread": {
        "id": "thread_example",
        "cliVersion": "0.161.0",
        "modelProvider": "openai",
        "cwd": "/workspace/api-repo",
        "turns": []
      }
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex_app_server". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_app_server@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.params` | `object` | Required | Additional properties are allowed. |
| `payload.params.thread` | `object` | Required | Additional properties are allowed. |
| `payload.params.thread.cliVersion` | `string` | Required |  |
| `payload.params.thread.cwd` | `string` | Required |  |
| `payload.params.thread.id` | `string` | Required |  |
| `payload.params.thread.modelProvider` | `string` | Required |  |
| `payload.params.thread.turns` | `array<object>` | Required |  |
| `payload.params.thread.turns.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.thread.turns.[].error.additionalDetails` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].error.codexErrorInfo` | `string \| object \| null` | Optional | Matches at least one variant below. |
| `payload.params.thread.turns.[].error.codexErrorInfo.variant 1` | `string` |  |  |
| `payload.params.thread.turns.[].error.codexErrorInfo.variant 2` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].error.message` | `string` | Required |  |
| `payload.params.thread.turns.[].id` | `string` | Required |  |
| `payload.params.thread.turns.[].items` | `array<object>` | Required |  |
| `payload.params.thread.turns.[].items.[]` | `object` |  | Matches exactly one variant below. |
| `payload.params.thread.turns.[].items.[].type = "userMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "userMessage".type` | `string` | Required | Must be "userMessage". |
| `payload.params.thread.turns.[].items.[].type = "userMessage".clientId` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content` | `array<object>` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[]` | `object` |  | Matches exactly one variant below. |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "text".text` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "text".text_elements` | `array<object>` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "text".text_elements.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "localImage"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "localImage".type` | `string` | Required | Must be "localImage". |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "localImage".detail` | `string \| null` | Optional | Allowed values: "auto", "low", "high", "original". |
| `payload.params.thread.turns.[].items.[].type = "userMessage".content.[].type = "localImage".path` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "userMessage".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "agentMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "agentMessage".type` | `string` | Required | Must be "agentMessage". |
| `payload.params.thread.turns.[].items.[].type = "agentMessage".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "agentMessage".phase` | `string \| null` | Optional | Allowed values: "commentary", "final_answer". |
| `payload.params.thread.turns.[].items.[].type = "agentMessage".text` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "reasoning"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "reasoning".type` | `string` | Required | Must be "reasoning". |
| `payload.params.thread.turns.[].items.[].type = "reasoning".content` | `array<string>` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "reasoning".content.[]` | `string` |  |  |
| `payload.params.thread.turns.[].items.[].type = "reasoning".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "reasoning".summary` | `array<string>` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "reasoning".summary.[]` | `string` |  |  |
| `payload.params.thread.turns.[].items.[].type = "plan"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "plan".type` | `string` | Required | Must be "plan". |
| `payload.params.thread.turns.[].items.[].type = "plan".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "plan".text` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".type` | `string` | Required | Must be "commandExecution". |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".aggregatedOutput` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".command` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".commandActions` | `array<object>` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".commandActions.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".cwd` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".durationMs` | `integer \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".exitCode` | `integer \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".processId` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "commandExecution".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.thread.turns.[].items.[].type = "fileChange"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "fileChange".type` | `string` | Required | Must be "fileChange". |
| `payload.params.thread.turns.[].items.[].type = "fileChange".changes` | `array<object>` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "fileChange".changes.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "fileChange".changes.[].kind` | `object` | Required | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "fileChange".changes.[].diff` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "fileChange".changes.[].path` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "fileChange".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "fileChange".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.thread.turns.[].items.[].type = "webSearch"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "webSearch".type` | `string` | Required | Must be "webSearch". |
| `payload.params.thread.turns.[].items.[].type = "webSearch".action` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "webSearch".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "webSearch".query` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".type` | `string` | Required | Must be "mcpToolCall". |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".appContext` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".appContext.actionName` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".appContext.appName` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".appContext.connectorId` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".appContext.linkId` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".appContext.resourceUri` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".arguments` | `any JSON value` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".durationMs` | `integer \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".error.message` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".mcpAppResourceUri` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".pluginId` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".result` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".result._meta` | `any JSON value` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".result.content` | `array<any JSON value>` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".result.content.[]` | `any JSON value` |  |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".result.structuredContent` | `any JSON value` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".server` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.thread.turns.[].items.[].type = "mcpToolCall".tool` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "contextCompaction"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "contextCompaction".type` | `string` | Required | Must be "contextCompaction". |
| `payload.params.thread.turns.[].items.[].type = "contextCompaction".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "subAgentActivity"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "subAgentActivity".type` | `string` | Required | Must be "subAgentActivity". |
| `payload.params.thread.turns.[].items.[].type = "subAgentActivity".kind` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "subAgentActivity".agentPath` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "subAgentActivity".agentThreadId` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "subAgentActivity".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall".type` | `string` | Required | Must be "collabAgentToolCall". |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall".id` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall".prompt` | `string \| null` | Optional |  |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall".receiverThreadIds` | `array<string>` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall".receiverThreadIds.[]` | `string` |  |  |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall".senderThreadId` | `string` | Required |  |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.thread.turns.[].items.[].type = "collabAgentToolCall".tool` | `string` | Required |  |
| `payload.params.thread.turns.[].status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "interrupted". |
| `payload.method` | `string` | Required | Must be "thread/started". |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-thread-status-changed"></a>

### thread/status/changed

Reports native thread activity, such as becoming active or idle, as an unknown record.

**Example JSON**

```json
{
  "kind": "unknown",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "thread/status/changed",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": null,
  "feed_seq": 12,
  "payload": {
    "method": "thread/status/changed",
    "params": {
      "threadId": "thread_example",
      "status": {
        "type": "idle"
      }
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "unknown". |
| `source` | `string` | Required | Original producer. Unknown producers remain readable as unknown records. |
| `record_format` | `string` | Required | Original versioned payload format. |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-turn-started"></a>

### turn/started

Announces the start of a native turn.

**Example JSON**

```json
{
  "kind": "codex_app_server",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "turn/started",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "method": "turn/started",
    "params": {
      "threadId": "thread_example",
      "turn": {
        "id": "native_turn_example",
        "status": "inProgress",
        "items": [],
        "error": null
      }
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex_app_server". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_app_server@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.params` | `object` | Required | Additional properties are allowed. |
| `payload.params.threadId` | `string` | Required |  |
| `payload.params.turn` | `object` | Required | Additional properties are allowed. |
| `payload.params.turn.error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.error.additionalDetails` | `string \| null` | Optional |  |
| `payload.params.turn.error.codexErrorInfo` | `string \| object \| null` | Optional | Matches at least one variant below. |
| `payload.params.turn.error.codexErrorInfo.variant 1` | `string` |  |  |
| `payload.params.turn.error.codexErrorInfo.variant 2` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.error.message` | `string` | Required |  |
| `payload.params.turn.id` | `string` | Required |  |
| `payload.params.turn.items` | `array<object>` | Required |  |
| `payload.params.turn.items.[]` | `object` |  | Matches exactly one variant below. |
| `payload.params.turn.items.[].type = "userMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "userMessage".type` | `string` | Required | Must be "userMessage". |
| `payload.params.turn.items.[].type = "userMessage".clientId` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "userMessage".content` | `array<object>` | Required |  |
| `payload.params.turn.items.[].type = "userMessage".content.[]` | `object` |  | Matches exactly one variant below. |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text".text` | `string` | Required |  |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text".text_elements` | `array<object>` | Optional |  |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text".text_elements.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "localImage"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "localImage".type` | `string` | Required | Must be "localImage". |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "localImage".detail` | `string \| null` | Optional | Allowed values: "auto", "low", "high", "original". |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "localImage".path` | `string` | Required |  |
| `payload.params.turn.items.[].type = "userMessage".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "agentMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "agentMessage".type` | `string` | Required | Must be "agentMessage". |
| `payload.params.turn.items.[].type = "agentMessage".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "agentMessage".phase` | `string \| null` | Optional | Allowed values: "commentary", "final_answer". |
| `payload.params.turn.items.[].type = "agentMessage".text` | `string` | Required |  |
| `payload.params.turn.items.[].type = "reasoning"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "reasoning".type` | `string` | Required | Must be "reasoning". |
| `payload.params.turn.items.[].type = "reasoning".content` | `array<string>` | Optional |  |
| `payload.params.turn.items.[].type = "reasoning".content.[]` | `string` |  |  |
| `payload.params.turn.items.[].type = "reasoning".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "reasoning".summary` | `array<string>` | Optional |  |
| `payload.params.turn.items.[].type = "reasoning".summary.[]` | `string` |  |  |
| `payload.params.turn.items.[].type = "plan"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "plan".type` | `string` | Required | Must be "plan". |
| `payload.params.turn.items.[].type = "plan".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "plan".text` | `string` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "commandExecution".type` | `string` | Required | Must be "commandExecution". |
| `payload.params.turn.items.[].type = "commandExecution".aggregatedOutput` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "commandExecution".command` | `string` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution".commandActions` | `array<object>` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution".commandActions.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "commandExecution".cwd` | `string` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution".durationMs` | `integer \| null` | Optional |  |
| `payload.params.turn.items.[].type = "commandExecution".exitCode` | `integer \| null` | Optional |  |
| `payload.params.turn.items.[].type = "commandExecution".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution".processId` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "commandExecution".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.turn.items.[].type = "fileChange"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "fileChange".type` | `string` | Required | Must be "fileChange". |
| `payload.params.turn.items.[].type = "fileChange".changes` | `array<object>` | Required |  |
| `payload.params.turn.items.[].type = "fileChange".changes.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "fileChange".changes.[].kind` | `object` | Required | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "fileChange".changes.[].diff` | `string` | Required |  |
| `payload.params.turn.items.[].type = "fileChange".changes.[].path` | `string` | Required |  |
| `payload.params.turn.items.[].type = "fileChange".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "fileChange".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.turn.items.[].type = "webSearch"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "webSearch".type` | `string` | Required | Must be "webSearch". |
| `payload.params.turn.items.[].type = "webSearch".action` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "webSearch".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "webSearch".query` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "mcpToolCall".type` | `string` | Required | Must be "mcpToolCall". |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.actionName` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.appName` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.connectorId` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.linkId` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.resourceUri` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".arguments` | `any JSON value` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".durationMs` | `integer \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "mcpToolCall".error.message` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".mcpAppResourceUri` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".pluginId` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".result` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "mcpToolCall".result._meta` | `any JSON value` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".result.content` | `array<any JSON value>` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".result.content.[]` | `any JSON value` |  |  |
| `payload.params.turn.items.[].type = "mcpToolCall".result.structuredContent` | `any JSON value` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".server` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.turn.items.[].type = "mcpToolCall".tool` | `string` | Required |  |
| `payload.params.turn.items.[].type = "contextCompaction"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "contextCompaction".type` | `string` | Required | Must be "contextCompaction". |
| `payload.params.turn.items.[].type = "contextCompaction".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "subAgentActivity"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "subAgentActivity".type` | `string` | Required | Must be "subAgentActivity". |
| `payload.params.turn.items.[].type = "subAgentActivity".kind` | `string` | Required |  |
| `payload.params.turn.items.[].type = "subAgentActivity".agentPath` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "subAgentActivity".agentThreadId` | `string` | Required |  |
| `payload.params.turn.items.[].type = "subAgentActivity".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "collabAgentToolCall".type` | `string` | Required | Must be "collabAgentToolCall". |
| `payload.params.turn.items.[].type = "collabAgentToolCall".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".prompt` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".receiverThreadIds` | `array<string>` | Required |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".receiverThreadIds.[]` | `string` |  |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".senderThreadId` | `string` | Required |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.turn.items.[].type = "collabAgentToolCall".tool` | `string` | Required |  |
| `payload.params.turn.status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "interrupted". |
| `payload.method` | `string` | Required | Must be "turn/started". |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-item-started"></a>

### item/started

Announces the start of a message, command, file change, or another conversation item.

**Example JSON**

```json
{
  "kind": "codex_app_server",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "item/started",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "method": "item/started",
    "params": {
      "threadId": "thread_example",
      "turnId": "native_turn_example",
      "item": {
        "type": "commandExecution",
        "id": "command_example",
        "command": "pytest -q",
        "cwd": "/workspace/api-repo",
        "commandActions": [],
        "status": "inProgress"
      }
    }
  },
  "tools": ["Bash"],
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex_app_server". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_app_server@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.params` | `object` | Required | Additional properties are allowed. |
| `payload.params.item` | `object` | Required | Matches exactly one variant below. |
| `payload.params.item.type = "userMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "userMessage".type` | `string` | Required | Must be "userMessage". |
| `payload.params.item.type = "userMessage".clientId` | `string \| null` | Optional |  |
| `payload.params.item.type = "userMessage".content` | `array<object>` | Required |  |
| `payload.params.item.type = "userMessage".content.[]` | `object` |  | Matches exactly one variant below. |
| `payload.params.item.type = "userMessage".content.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "userMessage".content.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.params.item.type = "userMessage".content.[].type = "text".text` | `string` | Required |  |
| `payload.params.item.type = "userMessage".content.[].type = "text".text_elements` | `array<object>` | Optional |  |
| `payload.params.item.type = "userMessage".content.[].type = "text".text_elements.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "userMessage".content.[].type = "localImage"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "userMessage".content.[].type = "localImage".type` | `string` | Required | Must be "localImage". |
| `payload.params.item.type = "userMessage".content.[].type = "localImage".detail` | `string \| null` | Optional | Allowed values: "auto", "low", "high", "original". |
| `payload.params.item.type = "userMessage".content.[].type = "localImage".path` | `string` | Required |  |
| `payload.params.item.type = "userMessage".id` | `string` | Required |  |
| `payload.params.item.type = "agentMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "agentMessage".type` | `string` | Required | Must be "agentMessage". |
| `payload.params.item.type = "agentMessage".id` | `string` | Required |  |
| `payload.params.item.type = "agentMessage".phase` | `string \| null` | Optional | Allowed values: "commentary", "final_answer". |
| `payload.params.item.type = "agentMessage".text` | `string` | Required |  |
| `payload.params.item.type = "reasoning"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "reasoning".type` | `string` | Required | Must be "reasoning". |
| `payload.params.item.type = "reasoning".content` | `array<string>` | Optional |  |
| `payload.params.item.type = "reasoning".content.[]` | `string` |  |  |
| `payload.params.item.type = "reasoning".id` | `string` | Required |  |
| `payload.params.item.type = "reasoning".summary` | `array<string>` | Optional |  |
| `payload.params.item.type = "reasoning".summary.[]` | `string` |  |  |
| `payload.params.item.type = "plan"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "plan".type` | `string` | Required | Must be "plan". |
| `payload.params.item.type = "plan".id` | `string` | Required |  |
| `payload.params.item.type = "plan".text` | `string` | Required |  |
| `payload.params.item.type = "commandExecution"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "commandExecution".type` | `string` | Required | Must be "commandExecution". |
| `payload.params.item.type = "commandExecution".aggregatedOutput` | `string \| null` | Optional |  |
| `payload.params.item.type = "commandExecution".command` | `string` | Required |  |
| `payload.params.item.type = "commandExecution".commandActions` | `array<object>` | Required |  |
| `payload.params.item.type = "commandExecution".commandActions.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "commandExecution".cwd` | `string` | Required |  |
| `payload.params.item.type = "commandExecution".durationMs` | `integer \| null` | Optional |  |
| `payload.params.item.type = "commandExecution".exitCode` | `integer \| null` | Optional |  |
| `payload.params.item.type = "commandExecution".id` | `string` | Required |  |
| `payload.params.item.type = "commandExecution".processId` | `string \| null` | Optional |  |
| `payload.params.item.type = "commandExecution".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.item.type = "fileChange"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "fileChange".type` | `string` | Required | Must be "fileChange". |
| `payload.params.item.type = "fileChange".changes` | `array<object>` | Required |  |
| `payload.params.item.type = "fileChange".changes.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "fileChange".changes.[].kind` | `object` | Required | Additional properties are allowed. |
| `payload.params.item.type = "fileChange".changes.[].diff` | `string` | Required |  |
| `payload.params.item.type = "fileChange".changes.[].path` | `string` | Required |  |
| `payload.params.item.type = "fileChange".id` | `string` | Required |  |
| `payload.params.item.type = "fileChange".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.item.type = "webSearch"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "webSearch".type` | `string` | Required | Must be "webSearch". |
| `payload.params.item.type = "webSearch".action` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.item.type = "webSearch".id` | `string` | Required |  |
| `payload.params.item.type = "webSearch".query` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "mcpToolCall".type` | `string` | Required | Must be "mcpToolCall". |
| `payload.params.item.type = "mcpToolCall".appContext` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.item.type = "mcpToolCall".appContext.actionName` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".appContext.appName` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".appContext.connectorId` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall".appContext.linkId` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".appContext.resourceUri` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".arguments` | `any JSON value` | Required |  |
| `payload.params.item.type = "mcpToolCall".durationMs` | `integer \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.item.type = "mcpToolCall".error.message` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall".id` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall".mcpAppResourceUri` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".pluginId` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".result` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.item.type = "mcpToolCall".result._meta` | `any JSON value` | Optional |  |
| `payload.params.item.type = "mcpToolCall".result.content` | `array<any JSON value>` | Required |  |
| `payload.params.item.type = "mcpToolCall".result.content.[]` | `any JSON value` |  |  |
| `payload.params.item.type = "mcpToolCall".result.structuredContent` | `any JSON value` | Optional |  |
| `payload.params.item.type = "mcpToolCall".server` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.item.type = "mcpToolCall".tool` | `string` | Required |  |
| `payload.params.item.type = "contextCompaction"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "contextCompaction".type` | `string` | Required | Must be "contextCompaction". |
| `payload.params.item.type = "contextCompaction".id` | `string` | Required |  |
| `payload.params.item.type = "subAgentActivity"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "subAgentActivity".type` | `string` | Required | Must be "subAgentActivity". |
| `payload.params.item.type = "subAgentActivity".kind` | `string` | Required |  |
| `payload.params.item.type = "subAgentActivity".agentPath` | `string \| null` | Optional |  |
| `payload.params.item.type = "subAgentActivity".agentThreadId` | `string` | Required |  |
| `payload.params.item.type = "subAgentActivity".id` | `string` | Required |  |
| `payload.params.item.type = "collabAgentToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "collabAgentToolCall".type` | `string` | Required | Must be "collabAgentToolCall". |
| `payload.params.item.type = "collabAgentToolCall".id` | `string` | Required |  |
| `payload.params.item.type = "collabAgentToolCall".prompt` | `string \| null` | Optional |  |
| `payload.params.item.type = "collabAgentToolCall".receiverThreadIds` | `array<string>` | Required |  |
| `payload.params.item.type = "collabAgentToolCall".receiverThreadIds.[]` | `string` |  |  |
| `payload.params.item.type = "collabAgentToolCall".senderThreadId` | `string` | Required |  |
| `payload.params.item.type = "collabAgentToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.item.type = "collabAgentToolCall".tool` | `string` | Required |  |
| `payload.params.threadId` | `string` | Required |  |
| `payload.params.turnId` | `string` | Required |  |
| `payload.method` | `string` | Required | Must be "item/started". |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-item-completed"></a>

### item/completed

Supplies a completed item, including its content, output, or outcome.

**Example JSON**

```json
{
  "kind": "codex_app_server",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "item/completed",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "method": "item/completed",
    "params": {
      "threadId": "thread_example",
      "turnId": "native_turn_example",
      "item": {
        "type": "commandExecution",
        "id": "command_example",
        "command": "pytest -q",
        "cwd": "/workspace/api-repo",
        "commandActions": [],
        "status": "completed",
        "aggregatedOutput": "12 passed",
        "exitCode": 0,
        "durationMs": 4200
      }
    }
  },
  "tools": ["Bash"],
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex_app_server". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_app_server@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.params` | `object` | Required | Additional properties are allowed. |
| `payload.params.item` | `object` | Required | Matches exactly one variant below. |
| `payload.params.item.type = "userMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "userMessage".type` | `string` | Required | Must be "userMessage". |
| `payload.params.item.type = "userMessage".clientId` | `string \| null` | Optional |  |
| `payload.params.item.type = "userMessage".content` | `array<object>` | Required |  |
| `payload.params.item.type = "userMessage".content.[]` | `object` |  | Matches exactly one variant below. |
| `payload.params.item.type = "userMessage".content.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "userMessage".content.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.params.item.type = "userMessage".content.[].type = "text".text` | `string` | Required |  |
| `payload.params.item.type = "userMessage".content.[].type = "text".text_elements` | `array<object>` | Optional |  |
| `payload.params.item.type = "userMessage".content.[].type = "text".text_elements.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "userMessage".content.[].type = "localImage"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "userMessage".content.[].type = "localImage".type` | `string` | Required | Must be "localImage". |
| `payload.params.item.type = "userMessage".content.[].type = "localImage".detail` | `string \| null` | Optional | Allowed values: "auto", "low", "high", "original". |
| `payload.params.item.type = "userMessage".content.[].type = "localImage".path` | `string` | Required |  |
| `payload.params.item.type = "userMessage".id` | `string` | Required |  |
| `payload.params.item.type = "agentMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "agentMessage".type` | `string` | Required | Must be "agentMessage". |
| `payload.params.item.type = "agentMessage".id` | `string` | Required |  |
| `payload.params.item.type = "agentMessage".phase` | `string \| null` | Optional | Allowed values: "commentary", "final_answer". |
| `payload.params.item.type = "agentMessage".text` | `string` | Required |  |
| `payload.params.item.type = "reasoning"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "reasoning".type` | `string` | Required | Must be "reasoning". |
| `payload.params.item.type = "reasoning".content` | `array<string>` | Optional |  |
| `payload.params.item.type = "reasoning".content.[]` | `string` |  |  |
| `payload.params.item.type = "reasoning".id` | `string` | Required |  |
| `payload.params.item.type = "reasoning".summary` | `array<string>` | Optional |  |
| `payload.params.item.type = "reasoning".summary.[]` | `string` |  |  |
| `payload.params.item.type = "plan"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "plan".type` | `string` | Required | Must be "plan". |
| `payload.params.item.type = "plan".id` | `string` | Required |  |
| `payload.params.item.type = "plan".text` | `string` | Required |  |
| `payload.params.item.type = "commandExecution"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "commandExecution".type` | `string` | Required | Must be "commandExecution". |
| `payload.params.item.type = "commandExecution".aggregatedOutput` | `string \| null` | Optional |  |
| `payload.params.item.type = "commandExecution".command` | `string` | Required |  |
| `payload.params.item.type = "commandExecution".commandActions` | `array<object>` | Required |  |
| `payload.params.item.type = "commandExecution".commandActions.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "commandExecution".cwd` | `string` | Required |  |
| `payload.params.item.type = "commandExecution".durationMs` | `integer \| null` | Optional |  |
| `payload.params.item.type = "commandExecution".exitCode` | `integer \| null` | Optional |  |
| `payload.params.item.type = "commandExecution".id` | `string` | Required |  |
| `payload.params.item.type = "commandExecution".processId` | `string \| null` | Optional |  |
| `payload.params.item.type = "commandExecution".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.item.type = "fileChange"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "fileChange".type` | `string` | Required | Must be "fileChange". |
| `payload.params.item.type = "fileChange".changes` | `array<object>` | Required |  |
| `payload.params.item.type = "fileChange".changes.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "fileChange".changes.[].kind` | `object` | Required | Additional properties are allowed. |
| `payload.params.item.type = "fileChange".changes.[].diff` | `string` | Required |  |
| `payload.params.item.type = "fileChange".changes.[].path` | `string` | Required |  |
| `payload.params.item.type = "fileChange".id` | `string` | Required |  |
| `payload.params.item.type = "fileChange".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.item.type = "webSearch"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "webSearch".type` | `string` | Required | Must be "webSearch". |
| `payload.params.item.type = "webSearch".action` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.item.type = "webSearch".id` | `string` | Required |  |
| `payload.params.item.type = "webSearch".query` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "mcpToolCall".type` | `string` | Required | Must be "mcpToolCall". |
| `payload.params.item.type = "mcpToolCall".appContext` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.item.type = "mcpToolCall".appContext.actionName` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".appContext.appName` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".appContext.connectorId` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall".appContext.linkId` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".appContext.resourceUri` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".arguments` | `any JSON value` | Required |  |
| `payload.params.item.type = "mcpToolCall".durationMs` | `integer \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.item.type = "mcpToolCall".error.message` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall".id` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall".mcpAppResourceUri` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".pluginId` | `string \| null` | Optional |  |
| `payload.params.item.type = "mcpToolCall".result` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.item.type = "mcpToolCall".result._meta` | `any JSON value` | Optional |  |
| `payload.params.item.type = "mcpToolCall".result.content` | `array<any JSON value>` | Required |  |
| `payload.params.item.type = "mcpToolCall".result.content.[]` | `any JSON value` |  |  |
| `payload.params.item.type = "mcpToolCall".result.structuredContent` | `any JSON value` | Optional |  |
| `payload.params.item.type = "mcpToolCall".server` | `string` | Required |  |
| `payload.params.item.type = "mcpToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.item.type = "mcpToolCall".tool` | `string` | Required |  |
| `payload.params.item.type = "contextCompaction"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "contextCompaction".type` | `string` | Required | Must be "contextCompaction". |
| `payload.params.item.type = "contextCompaction".id` | `string` | Required |  |
| `payload.params.item.type = "subAgentActivity"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "subAgentActivity".type` | `string` | Required | Must be "subAgentActivity". |
| `payload.params.item.type = "subAgentActivity".kind` | `string` | Required |  |
| `payload.params.item.type = "subAgentActivity".agentPath` | `string \| null` | Optional |  |
| `payload.params.item.type = "subAgentActivity".agentThreadId` | `string` | Required |  |
| `payload.params.item.type = "subAgentActivity".id` | `string` | Required |  |
| `payload.params.item.type = "collabAgentToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.item.type = "collabAgentToolCall".type` | `string` | Required | Must be "collabAgentToolCall". |
| `payload.params.item.type = "collabAgentToolCall".id` | `string` | Required |  |
| `payload.params.item.type = "collabAgentToolCall".prompt` | `string \| null` | Optional |  |
| `payload.params.item.type = "collabAgentToolCall".receiverThreadIds` | `array<string>` | Required |  |
| `payload.params.item.type = "collabAgentToolCall".receiverThreadIds.[]` | `string` |  |  |
| `payload.params.item.type = "collabAgentToolCall".senderThreadId` | `string` | Required |  |
| `payload.params.item.type = "collabAgentToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.item.type = "collabAgentToolCall".tool` | `string` | Required |  |
| `payload.params.threadId` | `string` | Required |  |
| `payload.params.turnId` | `string` | Required |  |
| `payload.method` | `string` | Required | Must be "item/completed". |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-thread-tokenUsage-updated"></a>

### thread/tokenUsage/updated

Reports cumulative native thread usage and usage for the latest model call.

**Example JSON**

```json
{
  "kind": "codex_app_server",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "thread/tokenUsage/updated",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "method": "thread/tokenUsage/updated",
    "params": {
      "threadId": "thread_example",
      "turnId": "native_turn_example",
      "tokenUsage": {
        "total": {
          "inputTokens": 1200,
          "outputTokens": 80,
          "cachedInputTokens": 0,
          "reasoningOutputTokens": 0,
          "totalTokens": 1280
        },
        "last": {
          "inputTokens": 1200,
          "outputTokens": 80,
          "cachedInputTokens": 0,
          "reasoningOutputTokens": 0,
          "totalTokens": 1280
        },
        "modelContextWindow": 272000
      }
    }
  },
  "tools": null,
  "tokens_info": {
    "input_tokens": 1200,
    "output_tokens": 80,
    "cache_read_input_tokens": 0,
    "cache_creation_input_tokens": 0,
    "num_turns": 0,
    "cost_usd": 0
  },
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex_app_server". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_app_server@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.params` | `object` | Required | Additional properties are allowed. |
| `payload.params.threadId` | `string` | Required |  |
| `payload.params.tokenUsage` | `object` | Required | Additional properties are allowed. |
| `payload.params.tokenUsage.last` | `object` | Required | Additional properties are allowed. |
| `payload.params.tokenUsage.last.cacheWriteInputTokens` | `integer` | Optional |  |
| `payload.params.tokenUsage.last.cachedInputTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.last.inputTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.last.outputTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.last.reasoningOutputTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.last.totalTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.modelContextWindow` | `integer \| null` | Optional |  |
| `payload.params.tokenUsage.total` | `object` | Required | Additional properties are allowed. |
| `payload.params.tokenUsage.total.cacheWriteInputTokens` | `integer` | Optional |  |
| `payload.params.tokenUsage.total.cachedInputTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.total.inputTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.total.outputTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.total.reasoningOutputTokens` | `integer` | Required |  |
| `payload.params.tokenUsage.total.totalTokens` | `integer` | Required |  |
| `payload.params.turnId` | `string` | Required |  |
| `payload.method` | `string` | Required | Must be "thread/tokenUsage/updated". |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-account-rateLimits-updated"></a>

### account/rateLimits/updated

Reports native account rate-limit information as an unknown record.

**Example JSON**

```json
{
  "kind": "unknown",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "account/rateLimits/updated",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": null,
  "feed_seq": 12,
  "payload": {
    "method": "account/rateLimits/updated",
    "params": {
      "rateLimits": {
        "limitId": "codex",
        "limitName": null,
        "primary": null,
        "secondary": null,
        "credits": null,
        "planType": null
      }
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "unknown". |
| `source` | `string` | Required | Original producer. Unknown producers remain readable as unknown records. |
| `record_format` | `string` | Required | Original versioned payload format. |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-error"></a>

### error

Reports a native error and whether Codex intends to retry it.

**Example JSON**

```json
{
  "kind": "codex_app_server",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "error",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "method": "error",
    "params": {
      "threadId": "thread_example",
      "turnId": "native_turn_example",
      "error": {
        "message": "The model request timed out."
      },
      "willRetry": true
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex_app_server". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_app_server@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.params` | `object` | Required | Additional properties are allowed. |
| `payload.params.error` | `object` | Required | Additional properties are allowed. |
| `payload.params.error.additionalDetails` | `string \| null` | Optional |  |
| `payload.params.error.codexErrorInfo` | `string \| object \| null` | Optional | Matches at least one variant below. |
| `payload.params.error.codexErrorInfo.variant 1` | `string` |  |  |
| `payload.params.error.codexErrorInfo.variant 2` | `object` |  | Additional properties are allowed. |
| `payload.params.error.message` | `string` | Required |  |
| `payload.params.threadId` | `string` | Required |  |
| `payload.params.turnId` | `string` | Required |  |
| `payload.params.willRetry` | `boolean` | Required |  |
| `payload.method` | `string` | Required | Must be "error". |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-turn-completed"></a>

### turn/completed

Reports a native turn ending with status `completed`, `failed`, or `interrupted`.

Command `item/completed` notifications can arrive after this native event. When the agent finishes a message, Ellipsis waits up to two seconds for pending command notifications before emitting the platform [`message_ended`](#message_ended) record. Commands left running in the background do not keep the message open indefinitely.

**Example JSON**

```json
{
  "kind": "codex_app_server",
  "source": "codex",
  "record_format": "codex_app_server@1",
  "record_type": "turn/completed",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "method": "turn/completed",
    "params": {
      "threadId": "thread_example",
      "turn": {
        "id": "native_turn_example",
        "status": "completed",
        "items": [],
        "error": null
      }
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex_app_server". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_app_server@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.params` | `object` | Required | Additional properties are allowed. |
| `payload.params.threadId` | `string` | Required |  |
| `payload.params.turn` | `object` | Required | Additional properties are allowed. |
| `payload.params.turn.error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.error.additionalDetails` | `string \| null` | Optional |  |
| `payload.params.turn.error.codexErrorInfo` | `string \| object \| null` | Optional | Matches at least one variant below. |
| `payload.params.turn.error.codexErrorInfo.variant 1` | `string` |  |  |
| `payload.params.turn.error.codexErrorInfo.variant 2` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.error.message` | `string` | Required |  |
| `payload.params.turn.id` | `string` | Required |  |
| `payload.params.turn.items` | `array<object>` | Required |  |
| `payload.params.turn.items.[]` | `object` |  | Matches exactly one variant below. |
| `payload.params.turn.items.[].type = "userMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "userMessage".type` | `string` | Required | Must be "userMessage". |
| `payload.params.turn.items.[].type = "userMessage".clientId` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "userMessage".content` | `array<object>` | Required |  |
| `payload.params.turn.items.[].type = "userMessage".content.[]` | `object` |  | Matches exactly one variant below. |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text".text` | `string` | Required |  |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text".text_elements` | `array<object>` | Optional |  |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "text".text_elements.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "localImage"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "localImage".type` | `string` | Required | Must be "localImage". |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "localImage".detail` | `string \| null` | Optional | Allowed values: "auto", "low", "high", "original". |
| `payload.params.turn.items.[].type = "userMessage".content.[].type = "localImage".path` | `string` | Required |  |
| `payload.params.turn.items.[].type = "userMessage".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "agentMessage"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "agentMessage".type` | `string` | Required | Must be "agentMessage". |
| `payload.params.turn.items.[].type = "agentMessage".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "agentMessage".phase` | `string \| null` | Optional | Allowed values: "commentary", "final_answer". |
| `payload.params.turn.items.[].type = "agentMessage".text` | `string` | Required |  |
| `payload.params.turn.items.[].type = "reasoning"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "reasoning".type` | `string` | Required | Must be "reasoning". |
| `payload.params.turn.items.[].type = "reasoning".content` | `array<string>` | Optional |  |
| `payload.params.turn.items.[].type = "reasoning".content.[]` | `string` |  |  |
| `payload.params.turn.items.[].type = "reasoning".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "reasoning".summary` | `array<string>` | Optional |  |
| `payload.params.turn.items.[].type = "reasoning".summary.[]` | `string` |  |  |
| `payload.params.turn.items.[].type = "plan"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "plan".type` | `string` | Required | Must be "plan". |
| `payload.params.turn.items.[].type = "plan".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "plan".text` | `string` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "commandExecution".type` | `string` | Required | Must be "commandExecution". |
| `payload.params.turn.items.[].type = "commandExecution".aggregatedOutput` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "commandExecution".command` | `string` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution".commandActions` | `array<object>` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution".commandActions.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "commandExecution".cwd` | `string` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution".durationMs` | `integer \| null` | Optional |  |
| `payload.params.turn.items.[].type = "commandExecution".exitCode` | `integer \| null` | Optional |  |
| `payload.params.turn.items.[].type = "commandExecution".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "commandExecution".processId` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "commandExecution".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.turn.items.[].type = "fileChange"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "fileChange".type` | `string` | Required | Must be "fileChange". |
| `payload.params.turn.items.[].type = "fileChange".changes` | `array<object>` | Required |  |
| `payload.params.turn.items.[].type = "fileChange".changes.[]` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "fileChange".changes.[].kind` | `object` | Required | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "fileChange".changes.[].diff` | `string` | Required |  |
| `payload.params.turn.items.[].type = "fileChange".changes.[].path` | `string` | Required |  |
| `payload.params.turn.items.[].type = "fileChange".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "fileChange".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "declined". |
| `payload.params.turn.items.[].type = "webSearch"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "webSearch".type` | `string` | Required | Must be "webSearch". |
| `payload.params.turn.items.[].type = "webSearch".action` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "webSearch".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "webSearch".query` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "mcpToolCall".type` | `string` | Required | Must be "mcpToolCall". |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.actionName` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.appName` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.connectorId` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.linkId` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".appContext.resourceUri` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".arguments` | `any JSON value` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".durationMs` | `integer \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".error` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "mcpToolCall".error.message` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".mcpAppResourceUri` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".pluginId` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".result` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "mcpToolCall".result._meta` | `any JSON value` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".result.content` | `array<any JSON value>` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".result.content.[]` | `any JSON value` |  |  |
| `payload.params.turn.items.[].type = "mcpToolCall".result.structuredContent` | `any JSON value` | Optional |  |
| `payload.params.turn.items.[].type = "mcpToolCall".server` | `string` | Required |  |
| `payload.params.turn.items.[].type = "mcpToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.turn.items.[].type = "mcpToolCall".tool` | `string` | Required |  |
| `payload.params.turn.items.[].type = "contextCompaction"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "contextCompaction".type` | `string` | Required | Must be "contextCompaction". |
| `payload.params.turn.items.[].type = "contextCompaction".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "subAgentActivity"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "subAgentActivity".type` | `string` | Required | Must be "subAgentActivity". |
| `payload.params.turn.items.[].type = "subAgentActivity".kind` | `string` | Required |  |
| `payload.params.turn.items.[].type = "subAgentActivity".agentPath` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "subAgentActivity".agentThreadId` | `string` | Required |  |
| `payload.params.turn.items.[].type = "subAgentActivity".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall"` | `object` |  | Additional properties are allowed. |
| `payload.params.turn.items.[].type = "collabAgentToolCall".type` | `string` | Required | Must be "collabAgentToolCall". |
| `payload.params.turn.items.[].type = "collabAgentToolCall".id` | `string` | Required |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".prompt` | `string \| null` | Optional |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".receiverThreadIds` | `array<string>` | Required |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".receiverThreadIds.[]` | `string` |  |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".senderThreadId` | `string` | Required |  |
| `payload.params.turn.items.[].type = "collabAgentToolCall".status` | `string` | Required | Allowed values: "inProgress", "completed", "failed". |
| `payload.params.turn.items.[].type = "collabAgentToolCall".tool` | `string` | Required |  |
| `payload.params.turn.status` | `string` | Required | Allowed values: "inProgress", "completed", "failed", "interrupted". |
| `payload.method` | `string` | Required | Must be "turn/completed". |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

An item's `type` distinguishes `userMessage`, `agentMessage`, `reasoning`, `plan`, `commandExecution`, `fileChange`, `webSearch`, `mcpToolCall`, and `contextCompaction`. These are item variants inside notifications, not separate event methods.

`item/agentMessage/delta` supplies live [`delta` frames](#delta) with `kind: "text"`. Readable `item/reasoning/summaryTextDelta` notifications supply `kind: "thinking"` previews. Each preview replaces the first-line prefix of the current summary section; `item/reasoning/summaryPartAdded` starts a new section. Raw reasoning deltas are not included in these previews. Native incremental tool and plan notifications are not forwarded as separate customer events; completed items carry their durable content. Native RPC acknowledgements are not session records.

## Gemini CLI

Gemini CLI records use `source: "gemini"`, `record_format: "gemini_stream_json@1"`, and `kind: "gemini"`. `record_type` is the native `payload.type`. It is `init` once per agent process, `message` for the user message echo and each assistant message, `tool_use` and `tool_result` for a tool call and its outcome paired by `tool_id`, `error` for a non-fatal error, and `result` when the turn ends, carrying the turn's token counts under `stats`. Assistant text streams through [`delta` frames](#delta) and is stored once per message.

## WebSocket frames

Connect using the [Python SDK](/docs/api/python-sdk#stream-a-session) or [TypeScript SDK](/docs/api/typescript-sdk#stream-a-session). The public endpoint is `wss://api.ellipsis.dev/v1/sessions/{id}/stream`. Authenticate with a bearer token.

Each WebSocket message contains one frame. The first frame is `session`. `records` is the only frame that advances the resume cursor. Reconnect with `after_seq` set to the last received `feed_seq`, or let the SDK manage reconnects. [List records](/docs/api/sessions/get-sessions-id-records) reports `earliest_feed_seq`. History before it is no longer retained.

<a id="records"></a>

### records

Delivers a batch of retained or newly produced records in `feed_seq` order.

**Example JSON**

```json
{
  "type": "records",
  "records": [
    {
      "kind": "platform",
      "source": "lifecycle",
      "record_format": "ellipsis_lifecycle@1",
      "record_type": "message_started",
      "id": "record_example",
      "session_id": "session_example",
      "message_id": "message_example",
      "feed_seq": 12,
      "payload": {
        "message_id": "message_example"
      },
      "tools": null,
      "tokens_info": null,
      "cost": null,
      "duration": null,
      "model": null,
      "created_at": "2026-09-10T14:00:00Z"
    }
  ]
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `type` | `string` | Required | Must be "records". |
| `records` | `array<SessionRecord>` | Required | New session records, ordered by feed_seq. |
| `records.[]` | `SessionRecord` |  | See the record variants in [Platform](#platform), [Claude Code](#claude-code), [Codex](#codex), and [Historical formats](#historical-formats). |

<a id="session"></a>

### session

The whole session. It is the first frame and is resent whenever its public fields change, including the status, the error, and cost. A `closed` status is the last frame.

**Example JSON**

```json
{
  "type": "session",
  "session": {
    "id": "session_example",
    "url": "https://app.ellipsis.dev/your-org/sessions/session_example",
    "status": "running",
    "error": null,
    "conversation": {
      "interactive": true,
      "warm": true,
      "prompting": {
        "enabled": true,
        "blocked_reason": null,
        "detail": null,
        "surface_name": null
      }
    },
    "archived": null,
    "content_deleted_at": null,
    "created_at": "2026-09-10T14:00:00Z",
    "updated_at": "2026-09-10T14:00:12Z",
    "wait_ms": 1840,
    "source": "api",
    "event": null,
    "cost": {
      "llm": {
        "all": {
          "platform": 0,
          "claude_subscription": 0,
          "codex_subscription": 0,
          "total": 0
        },
        "by_model": []
      },
      "cpu": 0,
      "memory": 0,
      "fee": 0,
      "charged": 0,
      "total": 0
    },
    "tokens": {
      "all": {
        "input": 0,
        "output": 0,
        "cache_read": 0,
        "cache_creation": 0,
        "total": 0
      },
      "by_model": []
    },
    "parent": null,
    "review": null,
    "user": null,
    "budget": {
      "limit": 300000,
      "source": "account"
    },
    "agent": null,
    "environment": {
      "id": null,
      "source": "platform_default",
      "repositories": [],
      "variables": [],
      "compute": {
        "cpu": null,
        "memory": null,
        "timeout": null,
        "idle": null
      },
      "hooks": {
        "post_start": null,
        "post_clone": null,
        "build_base": null,
        "after_checkout": null,
        "before_start": null,
        "validate": null
      },
      "mcp": []
    },
    "metadata": {
      "labels": [],
      "annotations": {}
    },
    "scm": {
      "github": null
    },
    "summary": {
      "created_at": "2026-09-10T14:00:12Z",
      "description": "run test suite",
      "source": "generated"
    },
    "permissions": {
      "ellipsis": "all",
      "github": "all"
    },
    "skills": [],
    "mcp": [],
    "output": null,
    "claude_code": {
      "model": "claude-opus-5-5",
      "effort": null,
      "fallback_model": null,
      "max_turns": null,
      "settings": null,
      "prompt": "Run the tests and report failures."
    },
    "codex": null,
    "gemini": null
  }
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `type` | `string` | Required | Must be "session". |
| `session` | `object` | Required | The session's current state. Additional properties are not allowed. |
| `session.source` | `string` | Required | Where the session came from (e.g. react, web, api, cli, mention, cron). Allowed values: "react", "code_review", "web", "api", "cli", "mention", "cron". |
| `session.agent` | `object \| null` | Required | The agent the session was started from, or null for a raw session started with POST /v1/sessions. Matches exactly one variant below. |
| `session.agent.kind = "agent"` | `object` |  | Additional properties are allowed. |
| `session.agent.kind = "agent".kind` | `string` | Required | Must be "agent". |
| `session.agent.kind = "agent".config` | `object` | Required | The agent definition itself, in the same schema as its YAML file (identity, trigger, input contract, and the session block). Additional properties are not allowed. |
| `session.agent.kind = "agent".config.ellipsis` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.ellipsis.kind` | `string` | Required | Must be "agent". |
| `session.agent.kind = "agent".config.ellipsis.description` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.ellipsis.enabled` | `boolean` | Required |  |
| `session.agent.kind = "agent".config.ellipsis.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.ellipsis.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "agent".config.ellipsis.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "agent".config.ellipsis.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "agent".config.ellipsis.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.ellipsis.name` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.ellipsis.version` | `string` | Required |  |
| `session.agent.kind = "agent".config.input` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.input.json_schema` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "agent".config.session` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.budget` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.budget.day` | `number \| null` | Required | The most the agent may spend over the last day, in US dollars. |
| `session.agent.kind = "agent".config.session.budget.month` | `number \| null` | Required | The most the agent may spend over the last 28 days, in US dollars. |
| `session.agent.kind = "agent".config.session.budget.session` | `number \| null` | Required | The most one session may spend, in US dollars. Greater than: 0. |
| `session.agent.kind = "agent".config.session.budget.week` | `number \| null` | Required | The most the agent may spend over the last 7 days, in US dollars. |
| `session.agent.kind = "agent".config.session.claude_code` | `object \| null` | Required | Claude Code input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.claude_code.effort` | `string \| null` | Required | Allowed values: "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "agent".config.session.claude_code.fallback_model` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.claude_code.max_turns` | `integer \| null` | Required | Greater than: 0. |
| `session.agent.kind = "agent".config.session.claude_code.model` | `string` | Required | The model the session runs on: an alias or canonical id from the models table. Required. |
| `session.agent.kind = "agent".config.session.claude_code.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.claude_code.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.claude_code.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.claude_code.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "agent".config.session.claude_code.settings` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.claude_code.settings.path` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.claude_code.settings.repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.claude_code.settings.repository.name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.claude_code.settings.repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.claude_code.settings.repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.codex` | `object \| null` | Required | Codex input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.codex.effort` | `string \| null` | Required | Reasoning effort for every message. Omit to use the model default. Allowed values: "none", "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "agent".config.session.codex.model` | `string` | Required | The model the session runs on: a Responses-capable id from the models table. Required. |
| `session.agent.kind = "agent".config.session.codex.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.codex.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.codex.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.codex.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "agent".config.session.conversation` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.conversation.interactive` | `boolean` | Required | Whether the session stays open after its first message is answered. Defaults to true; false runs once and requires a prompt. Requires the model's interactive capability when true. Direct message acceptance is reported separately in conversation.prompting. |
| `session.agent.kind = "agent".config.session.environment` | `string \| object` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.environment.variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute.cpu` | `integer \| null` | Required | Minimum: 2. Maximum: 32. |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute.idle` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute.memory` | `string \| object \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute.memory.variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute.memory.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute.memory.variant 2.gb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute.memory.variant 2.mb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "agent".config.session.environment.variant 2.compute.timeout` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.after_checkout` | `object \| string \| null` | Required | Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.after_checkout.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.after_checkout.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.after_checkout.variant 2` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.before_start` | `object \| string \| null` | Required | Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.before_start.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.before_start.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.before_start.variant 2` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.build_base` | `object \| string \| null` | Required | Build a reusable environment before full checkout. Cached by declared inputs, script, toolchain, resources, and build configuration. A string is shorthand for run with all repositories as inputs. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.build_base.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.build_base.variant 1.inputs` | `array<string> \| null` | Required | Exact files relative to the workspace directory `/sandbox`, including the repository name. Only these files are available during build_base and their contents and modes determine reuse. Omit to use all repositories and invalidate on any source change; [] means no repository files. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.build_base.variant 1.inputs.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.build_base.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.build_base.variant 2` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.post_clone` | `string \| null` | Required | Legacy session startup script. Use before_start for session setup or after_checkout for cached source preparation. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.post_start` | `string \| null` | Required | Legacy session startup script. Use before_start in new configurations. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.validate` | `object \| string \| null` | Required | Check that the environment works, for example that required tools are on PATH. Runs last, after before_start, each time a session starts or resumes and each time the environment is built after a change. A nonzero exit fails the session or the build. Not cached. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.validate.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.validate.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "agent".config.session.environment.variant 2.hooks.validate.variant 2` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.repositories` | `array<object>` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.repositories.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.repositories.[].name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.repositories.[].owner` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.repositories.[].ref` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.variables` | `array<object>` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.variables.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.environment.variant 2.variables.[].name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.environment.variant 2.variables.[].value` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.gemini` | `object \| null` | Required | Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.gemini.model` | `string` | Required | The model the session runs on: a Gemini id from the models table. Required. |
| `session.agent.kind = "agent".config.session.gemini.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.gemini.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.gemini.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.gemini.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "agent".config.session.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "agent".config.session.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "agent".config.session.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "agent".config.session.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.metadata` | `object` | Required | Labels and annotations stored on every session. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "agent".config.session.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "agent".config.session.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.output` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.output.json_schema` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "agent".config.session.permissions` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.permissions.ellipsis` | `string \| array<string \| object> \| null` | Required | What the session's own token may do with the Ellipsis API: `all` for every operation a session token can use, `read_only` for every read operation, or a list. A list entry is an operation name as the SDKs call it, `read_only`, or a resource followed by `.*`. A request passes when any entry allows it. Leave it out and every operation is refused. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 2.[].variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | Operation names as the SDKs call them, such as `sessions.get`. `read_only` is every read operation, and a resource followed by `.*`, such as `sessions.*`, is every operation on it. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github` | `string \| array<string \| object> \| null` | Required | What the agent may do on GitHub: `all` for everything the GitHub App installation allows, `read_only` for every read in every repository, or a list. A list entry is an action name, or a rule that limits what it allows. A request passes when any entry allows it. Leave it out and every GitHub request the agent makes is refused. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | What the rule allows. `read_only` is every read action. `contents.write`, `pull_requests.write`, `issues.write`, and `actions.write` are every action in that area, reads included. Single write actions are `contents.push`, `contents.delete_branch`, `pull_requests.create`, `pull_requests.update`, `pull_requests.comment`, `pull_requests.review`, `pull_requests.merge`, `issues.create`, `issues.comment`, `issues.update`, and `actions.run`. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.allow.variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.base` | `string \| null` | Required | Pattern for the branch a pull request targets. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.branch` | `string \| null` | Required | Pattern for the branch a push writes to or a pull request comes from. `{session_id}` becomes the session's id. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.issue` | `integer \| array<integer> \| null` | Required | Issue numbers. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.issue.variant 1` | `integer` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.limit` | `integer \| null` | Required | How many times one session may use this rule. A push counts once, and so does each pull request, comment, review, merge, or request. Minimum: 1. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.pull_request` | `integer \| array<integer> \| null` | Required | Pull request numbers. On `contents.push` it allows pushing only to those pull requests' branches. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 1` | `integer` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.repository` | `string \| array<string> \| null` | Required | Repository names or patterns on the GitHub App installation. Leave it out for every repository. Matches at least one variant below. |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.repository.variant 1` | `string` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.session.skills` | `array<object>` | Required |  |
| `session.agent.kind = "agent".config.session.skills.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.skills.[].path` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.skills.[].repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.session.skills.[].repository.name` | `string` | Required |  |
| `session.agent.kind = "agent".config.session.skills.[].repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.session.skills.[].repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "agent".config.trigger` | `object \| null` | Required | Matches exactly one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "cron"` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "cron".type` | `string` | Required | Must be "cron". |
| `session.agent.kind = "agent".config.trigger.type = "cron".enabled` | `boolean` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "cron".schedule` | `string` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react"` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".type` | `string` | Required | Must be "react". |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.branch` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.branch.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.names` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.names.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.on.[]` | `string` |  | Allowed values: "requested", "queued", "waiting", "pending", "started", "passed", "failed", "timed_out", "cancelled", "skipped", "neutral", "action_required", "stale". |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.repositories` | `object \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.repositories.variant 1` | `object` |  | The watch scope of a trigger, by repository name (owner defaults to the account). Include minus exclude: `include: []` (the default) covers every repository of the installation, so `exclude`-only means "all except these" and keeps covering repositories added to the org later. A bare list is shorthand for `include`. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.repositories.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.repositories.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.repositories.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.repositories.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.repositories.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_run.repositories.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.apps` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.apps.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.branch` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.branch.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.on.[]` | `string` |  | Allowed values: "passed", "failed", "timed_out", "cancelled", "skipped", "neutral", "action_required", "stale", "startup_failure". |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.repositories` | `object \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.repositories.variant 1` | `object` |  | The watch scope of a trigger, by repository name (owner defaults to the account). Include minus exclude: `include: []` (the default) covers every repository of the installation, so `exclude`-only means "all except these" and keeps covering repositories added to the org later. A bare list is shorthand for `include`. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.repositories.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.repositories.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.repositories.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.repositories.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.repositories.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".check_suite.repositories.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".enabled` | `boolean` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.labels` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.labels.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.on.[]` | `string` |  | Allowed values: "opened", "closed", "commented". |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.repositories` | `object \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.repositories.variant 1` | `object` |  | The watch scope of a trigger, by repository name (owner defaults to the account). Include minus exclude: `include: []` (the default) covers every repository of the installation, so `exclude`-only means "all except these" and keeps covering repositories added to the org later. A bare list is shorthand for `include`. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.repositories.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.repositories.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.repositories.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.repositories.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.repositories.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".issue.repositories.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.assignee.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.from.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.assignee.to.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.added.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.labels.removed.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.from.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.priority.to.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.from.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.project.to.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.from.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.changed.state.to.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.labels.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.on.[]` | `string` |  | Allowed values: "opened", "updated", "delegated". |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.priority.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.project.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.state.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team` | `object \| array<string> \| string \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team.variant 1` | `object` |  | Linear names to match, include minus exclude. A bare list or a bare string is shorthand for `include`. It matches when one of the issue's values is included (or nothing is) and none is excluded. `none` names an unset assignee or project, and `any` names any set assignee. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".linear_issue.team.variant 3` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.base` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.base.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.draft` | `boolean \| null` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.head` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.head.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.labels` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.labels.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.on.[]` | `string` |  | Allowed values: "opened", "pushed", "merged", "closed", "review_submitted", "commented". |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.paths` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.paths.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.repositories` | `object \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.repositories.variant 1` | `object` |  | The watch scope of a trigger, by repository name (owner defaults to the account). Include minus exclude: `include: []` (the default) covers every repository of the installation, so `exclude`-only means "all except these" and keeps covering repositories added to the org later. A bare list is shorthand for `include`. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.repositories.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.repositories.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.repositories.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.repositories.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.repositories.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".pull_request.repositories.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.branch` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.branch.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.paths` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.paths.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.repositories` | `object \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.repositories.variant 1` | `object` |  | The watch scope of a trigger, by repository name (owner defaults to the account). Include minus exclude: `include: []` (the default) covers every repository of the installation, so `exclude`-only means "all except these" and keeps covering repositories added to the org later. A bare list is shorthand for `include`. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".push.repositories.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.repositories.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.repositories.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.repositories.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.repositories.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".push.repositories.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.on.[]` | `string` |  | Allowed values: "published". |
| `session.agent.kind = "agent".config.trigger.type = "react".release.prerelease` | `boolean \| null` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.repositories` | `object \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.repositories.variant 1` | `object` |  | The watch scope of a trigger, by repository name (owner defaults to the account). Include minus exclude: `include: []` (the default) covers every repository of the installation, so `exclude`-only means "all except these" and keeps covering repositories added to the org later. A bare list is shorthand for `include`. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".release.repositories.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.repositories.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.repositories.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.repositories.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.repositories.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.repositories.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.tag` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".release.tag.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".sentry` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".sentry.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".sentry.on.[]` | `string` |  | Allowed values: "issue_alert", "metric_alert". |
| `session.agent.kind = "agent".config.trigger.type = "react".sentry.projects` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".sentry.projects.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".slack_channel` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".status` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.branch` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.branch.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.names` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.names.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.on.[]` | `string` |  | Allowed values: "pending", "passed", "failed", "errored". |
| `session.agent.kind = "agent".config.trigger.type = "react".status.repositories` | `object \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.repositories.variant 1` | `object` |  | The watch scope of a trigger, by repository name (owner defaults to the account). Include minus exclude: `include: []` (the default) covers every repository of the installation, so `exclude`-only means "all except these" and keeps covering repositories added to the org later. A bare list is shorthand for `include`. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".status.repositories.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.repositories.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.repositories.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.repositories.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.repositories.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".status.repositories.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.branch` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.branch.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.bots.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.teams` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.teams.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users` | `object \| boolean \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 1` | `object` |  | One include-minus-exclude set of GitHub accounts: an account matches iff it is in `include` (`true` = all, a list = exactly those, `false`/`[]` = none) AND not in `exclude`. A bare bool or list is shorthand for `include`, so `users: true` and `users: [priya-shah]` both parse. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 1.include` | `array<string> \| boolean` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 1.include.variant 1` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 1.include.variant 1.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 1.include.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 2` | `boolean` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 3` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.for.users.variant 3.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.names` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.names.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.on` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.on.[]` | `string` |  | Allowed values: "requested", "queued", "waiting", "pending", "started", "passed", "failed", "timed_out", "cancelled", "skipped", "neutral", "action_required", "stale", "startup_failure". |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.repositories` | `object \| array<string>` | Required | Matches at least one variant below. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.repositories.variant 1` | `object` |  | The watch scope of a trigger, by repository name (owner defaults to the account). Include minus exclude: `include: []` (the default) covers every repository of the installation, so `exclude`-only means "all except these" and keeps covering repositories added to the org later. A bare list is shorthand for `include`. Additional properties are not allowed. |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.repositories.variant 1.exclude` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.repositories.variant 1.exclude.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.repositories.variant 1.include` | `array<string>` | Required |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.repositories.variant 1.include.[]` | `string` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.repositories.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "agent".config.trigger.type = "react".workflow_run.repositories.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "agent".id` | `string \| null` | Required | Identifier of the agent. Null only on a session a `slack`, `github`, `linear`, or `sentry` agent started before sessions kept that agent's own config. |
| `session.agent.kind = "agent".name` | `string \| null` | Required | The agent's account-unique addressable name (a slug of its display name), usable anywhere an agent is referenced, interchangeably with the id. A `slack`, `github`, `linear`, or `sentry` agent is named after its kind. |
| `session.agent.kind = "agent".sha` | `string` | Required | The definition's content identity, the version fingerprint frozen onto each session that runs it. |
| `session.agent.kind = "slack"` | `object` |  | Additional properties are allowed. |
| `session.agent.kind = "slack".kind` | `string` | Required | Must be "slack". |
| `session.agent.kind = "slack".config` | `object` | Required | The agent definition, in the same schema as slack.yaml. Additional properties are not allowed. |
| `session.agent.kind = "slack".config.ellipsis` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.ellipsis.kind` | `string` | Required | Must be "slack". |
| `session.agent.kind = "slack".config.ellipsis.description` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.ellipsis.enabled` | `boolean` | Required |  |
| `session.agent.kind = "slack".config.ellipsis.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.ellipsis.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "slack".config.ellipsis.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "slack".config.ellipsis.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "slack".config.ellipsis.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "slack".config.ellipsis.name` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.ellipsis.version` | `string` | Required |  |
| `session.agent.kind = "slack".config.session` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.budget` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.budget.day` | `number \| null` | Required | The most the agent may spend over the last day, in US dollars. |
| `session.agent.kind = "slack".config.session.budget.month` | `number \| null` | Required | The most the agent may spend over the last 28 days, in US dollars. |
| `session.agent.kind = "slack".config.session.budget.session` | `number \| null` | Required | The most one session may spend, in US dollars. Greater than: 0. |
| `session.agent.kind = "slack".config.session.budget.week` | `number \| null` | Required | The most the agent may spend over the last 7 days, in US dollars. |
| `session.agent.kind = "slack".config.session.claude_code` | `object \| null` | Required | Claude Code input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.claude_code.effort` | `string \| null` | Required | Allowed values: "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "slack".config.session.claude_code.fallback_model` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.claude_code.max_turns` | `integer \| null` | Required | Greater than: 0. |
| `session.agent.kind = "slack".config.session.claude_code.model` | `string` | Required | The model the session runs on: an alias or canonical id from the models table. Required. |
| `session.agent.kind = "slack".config.session.claude_code.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.claude_code.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.claude_code.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.claude_code.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "slack".config.session.claude_code.settings` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.claude_code.settings.path` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.claude_code.settings.repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.claude_code.settings.repository.name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.claude_code.settings.repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.claude_code.settings.repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.codex` | `object \| null` | Required | Codex input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.codex.effort` | `string \| null` | Required | Reasoning effort for every message. Omit to use the model default. Allowed values: "none", "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "slack".config.session.codex.model` | `string` | Required | The model the session runs on: a Responses-capable id from the models table. Required. |
| `session.agent.kind = "slack".config.session.codex.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.codex.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.codex.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.codex.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "slack".config.session.environment` | `string \| object` | Required | Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.environment.variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute.cpu` | `integer \| null` | Required | Minimum: 2. Maximum: 32. |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute.idle` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute.memory` | `string \| object \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute.memory.variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute.memory.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute.memory.variant 2.gb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute.memory.variant 2.mb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "slack".config.session.environment.variant 2.compute.timeout` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.after_checkout` | `object \| string \| null` | Required | Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.after_checkout.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.after_checkout.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.after_checkout.variant 2` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.before_start` | `object \| string \| null` | Required | Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.before_start.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.before_start.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.before_start.variant 2` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.build_base` | `object \| string \| null` | Required | Build a reusable environment before full checkout. Cached by declared inputs, script, toolchain, resources, and build configuration. A string is shorthand for run with all repositories as inputs. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.build_base.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.build_base.variant 1.inputs` | `array<string> \| null` | Required | Exact files relative to the workspace directory `/sandbox`, including the repository name. Only these files are available during build_base and their contents and modes determine reuse. Omit to use all repositories and invalidate on any source change; [] means no repository files. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.build_base.variant 1.inputs.[]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.build_base.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.build_base.variant 2` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.post_clone` | `string \| null` | Required | Legacy session startup script. Use before_start for session setup or after_checkout for cached source preparation. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.post_start` | `string \| null` | Required | Legacy session startup script. Use before_start in new configurations. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.validate` | `object \| string \| null` | Required | Check that the environment works, for example that required tools are on PATH. Runs last, after before_start, each time a session starts or resumes and each time the environment is built after a change. A nonzero exit fails the session or the build. Not cached. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.validate.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.validate.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "slack".config.session.environment.variant 2.hooks.validate.variant 2` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.repositories` | `array<object>` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.repositories.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.repositories.[].name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.repositories.[].owner` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.repositories.[].ref` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.variables` | `array<object>` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.variables.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.environment.variant 2.variables.[].name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.environment.variant 2.variables.[].value` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.gemini` | `object \| null` | Required | Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.gemini.model` | `string` | Required | The model the session runs on: a Gemini id from the models table. Required. |
| `session.agent.kind = "slack".config.session.gemini.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.gemini.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.gemini.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.gemini.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "slack".config.session.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "slack".config.session.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "slack".config.session.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "slack".config.session.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "slack".config.session.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "slack".config.session.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.permissions` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.permissions.ellipsis` | `string \| array<string \| object> \| null` | Required | What the session's own token may do with the Ellipsis API: `all` for every operation a session token can use, `read_only` for every read operation, or a list. A list entry is an operation name as the SDKs call it, `read_only`, or a resource followed by `.*`. A request passes when any entry allows it. Leave it out and every operation is refused. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 2.[].variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | Operation names as the SDKs call them, such as `sessions.get`. `read_only` is every read operation, and a resource followed by `.*`, such as `sessions.*`, is every operation on it. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "slack".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github` | `string \| array<string \| object> \| null` | Required | What the agent may do on GitHub: `all` for everything the GitHub App installation allows, `read_only` for every read in every repository, or a list. A list entry is an action name, or a rule that limits what it allows. A request passes when any entry allows it. Leave it out and every GitHub request the agent makes is refused. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | What the rule allows. `read_only` is every read action. `contents.write`, `pull_requests.write`, `issues.write`, and `actions.write` are every action in that area, reads included. Single write actions are `contents.push`, `contents.delete_branch`, `pull_requests.create`, `pull_requests.update`, `pull_requests.comment`, `pull_requests.review`, `pull_requests.merge`, `issues.create`, `issues.comment`, `issues.update`, and `actions.run`. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.allow.variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.base` | `string \| null` | Required | Pattern for the branch a pull request targets. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.branch` | `string \| null` | Required | Pattern for the branch a push writes to or a pull request comes from. `{session_id}` becomes the session's id. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.issue` | `integer \| array<integer> \| null` | Required | Issue numbers. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.issue.variant 1` | `integer` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.limit` | `integer \| null` | Required | How many times one session may use this rule. A push counts once, and so does each pull request, comment, review, merge, or request. Minimum: 1. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.pull_request` | `integer \| array<integer> \| null` | Required | Pull request numbers. On `contents.push` it allows pushing only to those pull requests' branches. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 1` | `integer` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.repository` | `string \| array<string> \| null` | Required | Repository names or patterns on the GitHub App installation. Leave it out for every repository. Matches at least one variant below. |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.repository.variant 1` | `string` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "slack".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "slack".config.session.skills` | `array<object>` | Required |  |
| `session.agent.kind = "slack".config.session.skills.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.skills.[].path` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.skills.[].repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.session.skills.[].repository.name` | `string` | Required |  |
| `session.agent.kind = "slack".config.session.skills.[].repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.session.skills.[].repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "slack".config.slack` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "slack".config.slack.channels` | `array<string>` | Required |  |
| `session.agent.kind = "slack".config.slack.channels.[]` | `string` |  |  |
| `session.agent.kind = "slack".config.slack.direct_messages` | `array<string>` | Required |  |
| `session.agent.kind = "slack".config.slack.direct_messages.[]` | `string` |  |  |
| `session.agent.kind = "slack".id` | `string \| null` | Required | Identifier of the agent. Null only on a session a `slack`, `github`, `linear`, or `sentry` agent started before sessions kept that agent's own config. |
| `session.agent.kind = "slack".name` | `string \| null` | Required | The agent's account-unique addressable name (a slug of its display name), usable anywhere an agent is referenced, interchangeably with the id. A `slack`, `github`, `linear`, or `sentry` agent is named after its kind. |
| `session.agent.kind = "slack".sha` | `string` | Required | The definition's content identity, the version fingerprint frozen onto each session that runs it. |
| `session.agent.kind = "github"` | `object` |  | Additional properties are allowed. |
| `session.agent.kind = "github".kind` | `string` | Required | Must be "github". |
| `session.agent.kind = "github".config` | `object` | Required | The agent definition, in the same schema as github.yaml. Additional properties are not allowed. |
| `session.agent.kind = "github".config.ellipsis` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.ellipsis.kind` | `string` | Required | Must be "github". |
| `session.agent.kind = "github".config.ellipsis.description` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.ellipsis.enabled` | `boolean` | Required |  |
| `session.agent.kind = "github".config.ellipsis.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.ellipsis.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "github".config.ellipsis.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "github".config.ellipsis.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "github".config.ellipsis.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "github".config.ellipsis.name` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.ellipsis.version` | `string` | Required |  |
| `session.agent.kind = "github".config.github` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.github.mentions` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.github.mentions.allow_leading_ellipsis` | `boolean` | Required |  |
| `session.agent.kind = "github".config.github.mentions.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.github.mentions.for.private` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.github.mentions.for.private.bots` | `boolean` | Required |  |
| `session.agent.kind = "github".config.github.mentions.for.private.users` | `boolean` | Required |  |
| `session.agent.kind = "github".config.github.mentions.for.public` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.github.mentions.for.public.bots` | `boolean` | Required |  |
| `session.agent.kind = "github".config.github.mentions.for.public.users` | `boolean` | Required |  |
| `session.agent.kind = "github".config.github.mentions.require_leading_mention` | `boolean` | Required |  |
| `session.agent.kind = "github".config.github.repositories` | `array<string>` | Required |  |
| `session.agent.kind = "github".config.github.repositories.[]` | `string` |  |  |
| `session.agent.kind = "github".config.session` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.budget` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.budget.day` | `number \| null` | Required | The most the agent may spend over the last day, in US dollars. |
| `session.agent.kind = "github".config.session.budget.month` | `number \| null` | Required | The most the agent may spend over the last 28 days, in US dollars. |
| `session.agent.kind = "github".config.session.budget.session` | `number \| null` | Required | The most one session may spend, in US dollars. Greater than: 0. |
| `session.agent.kind = "github".config.session.budget.week` | `number \| null` | Required | The most the agent may spend over the last 7 days, in US dollars. |
| `session.agent.kind = "github".config.session.claude_code` | `object \| null` | Required | Claude Code input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.claude_code.effort` | `string \| null` | Required | Allowed values: "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "github".config.session.claude_code.fallback_model` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.claude_code.max_turns` | `integer \| null` | Required | Greater than: 0. |
| `session.agent.kind = "github".config.session.claude_code.model` | `string` | Required | The model the session runs on: an alias or canonical id from the models table. Required. |
| `session.agent.kind = "github".config.session.claude_code.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.claude_code.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.claude_code.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.claude_code.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "github".config.session.claude_code.settings` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.claude_code.settings.path` | `string` | Required |  |
| `session.agent.kind = "github".config.session.claude_code.settings.repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.claude_code.settings.repository.name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.claude_code.settings.repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.claude_code.settings.repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.codex` | `object \| null` | Required | Codex input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.codex.effort` | `string \| null` | Required | Reasoning effort for every message. Omit to use the model default. Allowed values: "none", "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "github".config.session.codex.model` | `string` | Required | The model the session runs on: a Responses-capable id from the models table. Required. |
| `session.agent.kind = "github".config.session.codex.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.codex.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.codex.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.codex.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "github".config.session.environment` | `string \| object` | Required | Matches at least one variant below. |
| `session.agent.kind = "github".config.session.environment.variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.compute` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.compute.cpu` | `integer \| null` | Required | Minimum: 2. Maximum: 32. |
| `session.agent.kind = "github".config.session.environment.variant 2.compute.idle` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.compute.memory` | `string \| object \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "github".config.session.environment.variant 2.compute.memory.variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.compute.memory.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.compute.memory.variant 2.gb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "github".config.session.environment.variant 2.compute.memory.variant 2.mb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "github".config.session.environment.variant 2.compute.timeout` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.after_checkout` | `object \| string \| null` | Required | Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.after_checkout.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.after_checkout.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.after_checkout.variant 2` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.before_start` | `object \| string \| null` | Required | Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.before_start.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.before_start.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.before_start.variant 2` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.build_base` | `object \| string \| null` | Required | Build a reusable environment before full checkout. Cached by declared inputs, script, toolchain, resources, and build configuration. A string is shorthand for run with all repositories as inputs. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.build_base.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.build_base.variant 1.inputs` | `array<string> \| null` | Required | Exact files relative to the workspace directory `/sandbox`, including the repository name. Only these files are available during build_base and their contents and modes determine reuse. Omit to use all repositories and invalidate on any source change; [] means no repository files. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.build_base.variant 1.inputs.[]` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.build_base.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.build_base.variant 2` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.post_clone` | `string \| null` | Required | Legacy session startup script. Use before_start for session setup or after_checkout for cached source preparation. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.post_start` | `string \| null` | Required | Legacy session startup script. Use before_start in new configurations. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.validate` | `object \| string \| null` | Required | Check that the environment works, for example that required tools are on PATH. Runs last, after before_start, each time a session starts or resumes and each time the environment is built after a change. A nonzero exit fails the session or the build. Not cached. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.validate.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.validate.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "github".config.session.environment.variant 2.hooks.validate.variant 2` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "github".config.session.environment.variant 2.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.repositories` | `array<object>` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.repositories.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.repositories.[].name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.repositories.[].owner` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.repositories.[].ref` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.variables` | `array<object>` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.variables.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.environment.variant 2.variables.[].name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.environment.variant 2.variables.[].value` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.gemini` | `object \| null` | Required | Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.gemini.model` | `string` | Required | The model the session runs on: a Gemini id from the models table. Required. |
| `session.agent.kind = "github".config.session.gemini.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.gemini.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.gemini.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.gemini.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "github".config.session.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "github".config.session.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "github".config.session.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "github".config.session.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "github".config.session.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "github".config.session.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "github".config.session.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "github".config.session.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "github".config.session.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "github".config.session.permissions` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.permissions.ellipsis` | `string \| array<string \| object> \| null` | Required | What the session's own token may do with the Ellipsis API: `all` for every operation a session token can use, `read_only` for every read operation, or a list. A list entry is an operation name as the SDKs call it, `read_only`, or a resource followed by `.*`. A request passes when any entry allows it. Leave it out and every operation is refused. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 2.[].variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | Operation names as the SDKs call them, such as `sessions.get`. `read_only` is every read operation, and a resource followed by `.*`, such as `sessions.*`, is every operation on it. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "github".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "github".config.session.permissions.github` | `string \| array<string \| object> \| null` | Required | What the agent may do on GitHub: `all` for everything the GitHub App installation allows, `read_only` for every read in every repository, or a list. A list entry is an action name, or a rule that limits what it allows. A request passes when any entry allows it. Leave it out and every GitHub request the agent makes is refused. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.github.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "github".config.session.permissions.github.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | What the rule allows. `read_only` is every read action. `contents.write`, `pull_requests.write`, `issues.write`, and `actions.write` are every action in that area, reads included. Single write actions are `contents.push`, `contents.delete_branch`, `pull_requests.create`, `pull_requests.update`, `pull_requests.comment`, `pull_requests.review`, `pull_requests.merge`, `issues.create`, `issues.comment`, `issues.update`, and `actions.run`. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.allow.variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.base` | `string \| null` | Required | Pattern for the branch a pull request targets. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.branch` | `string \| null` | Required | Pattern for the branch a push writes to or a pull request comes from. `{session_id}` becomes the session's id. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.issue` | `integer \| array<integer> \| null` | Required | Issue numbers. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.issue.variant 1` | `integer` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.limit` | `integer \| null` | Required | How many times one session may use this rule. A push counts once, and so does each pull request, comment, review, merge, or request. Minimum: 1. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.pull_request` | `integer \| array<integer> \| null` | Required | Pull request numbers. On `contents.push` it allows pushing only to those pull requests' branches. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 1` | `integer` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.repository` | `string \| array<string> \| null` | Required | Repository names or patterns on the GitHub App installation. Leave it out for every repository. Matches at least one variant below. |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.repository.variant 1` | `string` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "github".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "github".config.session.skills` | `array<object>` | Required |  |
| `session.agent.kind = "github".config.session.skills.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.skills.[].path` | `string` | Required |  |
| `session.agent.kind = "github".config.session.skills.[].repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "github".config.session.skills.[].repository.name` | `string` | Required |  |
| `session.agent.kind = "github".config.session.skills.[].repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "github".config.session.skills.[].repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "github".id` | `string \| null` | Required | Identifier of the agent. Null only on a session a `slack`, `github`, `linear`, or `sentry` agent started before sessions kept that agent's own config. |
| `session.agent.kind = "github".name` | `string \| null` | Required | The agent's account-unique addressable name (a slug of its display name), usable anywhere an agent is referenced, interchangeably with the id. A `slack`, `github`, `linear`, or `sentry` agent is named after its kind. |
| `session.agent.kind = "github".sha` | `string` | Required | The definition's content identity, the version fingerprint frozen onto each session that runs it. |
| `session.agent.kind = "linear"` | `object` |  | Additional properties are allowed. |
| `session.agent.kind = "linear".kind` | `string` | Required | Must be "linear". |
| `session.agent.kind = "linear".config` | `object` | Required | The agent definition, in the same schema as linear.yaml. Additional properties are not allowed. |
| `session.agent.kind = "linear".config.ellipsis` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.ellipsis.kind` | `string` | Required | Must be "linear". |
| `session.agent.kind = "linear".config.ellipsis.description` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.ellipsis.enabled` | `boolean` | Required |  |
| `session.agent.kind = "linear".config.ellipsis.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.ellipsis.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "linear".config.ellipsis.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "linear".config.ellipsis.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "linear".config.ellipsis.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.ellipsis.name` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.ellipsis.version` | `string` | Required |  |
| `session.agent.kind = "linear".config.linear` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.linear.projects` | `array<string>` | Required |  |
| `session.agent.kind = "linear".config.linear.projects.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.linear.teams` | `array<string>` | Required |  |
| `session.agent.kind = "linear".config.linear.teams.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.session` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.budget` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.budget.day` | `number \| null` | Required | The most the agent may spend over the last day, in US dollars. |
| `session.agent.kind = "linear".config.session.budget.month` | `number \| null` | Required | The most the agent may spend over the last 28 days, in US dollars. |
| `session.agent.kind = "linear".config.session.budget.session` | `number \| null` | Required | The most one session may spend, in US dollars. Greater than: 0. |
| `session.agent.kind = "linear".config.session.budget.week` | `number \| null` | Required | The most the agent may spend over the last 7 days, in US dollars. |
| `session.agent.kind = "linear".config.session.claude_code` | `object \| null` | Required | Claude Code input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.claude_code.effort` | `string \| null` | Required | Allowed values: "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "linear".config.session.claude_code.fallback_model` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.claude_code.max_turns` | `integer \| null` | Required | Greater than: 0. |
| `session.agent.kind = "linear".config.session.claude_code.model` | `string` | Required | The model the session runs on: an alias or canonical id from the models table. Required. |
| `session.agent.kind = "linear".config.session.claude_code.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.claude_code.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.claude_code.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.claude_code.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "linear".config.session.claude_code.settings` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.claude_code.settings.path` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.claude_code.settings.repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.claude_code.settings.repository.name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.claude_code.settings.repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.claude_code.settings.repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.codex` | `object \| null` | Required | Codex input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.codex.effort` | `string \| null` | Required | Reasoning effort for every message. Omit to use the model default. Allowed values: "none", "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "linear".config.session.codex.model` | `string` | Required | The model the session runs on: a Responses-capable id from the models table. Required. |
| `session.agent.kind = "linear".config.session.codex.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.codex.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.codex.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.codex.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "linear".config.session.environment` | `string \| object` | Required | Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.environment.variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute.cpu` | `integer \| null` | Required | Minimum: 2. Maximum: 32. |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute.idle` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute.memory` | `string \| object \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute.memory.variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute.memory.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute.memory.variant 2.gb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute.memory.variant 2.mb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "linear".config.session.environment.variant 2.compute.timeout` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.after_checkout` | `object \| string \| null` | Required | Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.after_checkout.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.after_checkout.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.after_checkout.variant 2` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.before_start` | `object \| string \| null` | Required | Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.before_start.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.before_start.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.before_start.variant 2` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.build_base` | `object \| string \| null` | Required | Build a reusable environment before full checkout. Cached by declared inputs, script, toolchain, resources, and build configuration. A string is shorthand for run with all repositories as inputs. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.build_base.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.build_base.variant 1.inputs` | `array<string> \| null` | Required | Exact files relative to the workspace directory `/sandbox`, including the repository name. Only these files are available during build_base and their contents and modes determine reuse. Omit to use all repositories and invalidate on any source change; [] means no repository files. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.build_base.variant 1.inputs.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.build_base.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.build_base.variant 2` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.post_clone` | `string \| null` | Required | Legacy session startup script. Use before_start for session setup or after_checkout for cached source preparation. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.post_start` | `string \| null` | Required | Legacy session startup script. Use before_start in new configurations. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.validate` | `object \| string \| null` | Required | Check that the environment works, for example that required tools are on PATH. Runs last, after before_start, each time a session starts or resumes and each time the environment is built after a change. A nonzero exit fails the session or the build. Not cached. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.validate.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.validate.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "linear".config.session.environment.variant 2.hooks.validate.variant 2` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.repositories` | `array<object>` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.repositories.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.repositories.[].name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.repositories.[].owner` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.repositories.[].ref` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.variables` | `array<object>` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.variables.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.environment.variant 2.variables.[].name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.environment.variant 2.variables.[].value` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.gemini` | `object \| null` | Required | Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.gemini.model` | `string` | Required | The model the session runs on: a Gemini id from the models table. Required. |
| `session.agent.kind = "linear".config.session.gemini.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.gemini.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.gemini.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.gemini.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "linear".config.session.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "linear".config.session.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "linear".config.session.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "linear".config.session.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "linear".config.session.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "linear".config.session.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.permissions` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.permissions.ellipsis` | `string \| array<string \| object> \| null` | Required | What the session's own token may do with the Ellipsis API: `all` for every operation a session token can use, `read_only` for every read operation, or a list. A list entry is an operation name as the SDKs call it, `read_only`, or a resource followed by `.*`. A request passes when any entry allows it. Leave it out and every operation is refused. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 2.[].variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | Operation names as the SDKs call them, such as `sessions.get`. `read_only` is every read operation, and a resource followed by `.*`, such as `sessions.*`, is every operation on it. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "linear".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github` | `string \| array<string \| object> \| null` | Required | What the agent may do on GitHub: `all` for everything the GitHub App installation allows, `read_only` for every read in every repository, or a list. A list entry is an action name, or a rule that limits what it allows. A request passes when any entry allows it. Leave it out and every GitHub request the agent makes is refused. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | What the rule allows. `read_only` is every read action. `contents.write`, `pull_requests.write`, `issues.write`, and `actions.write` are every action in that area, reads included. Single write actions are `contents.push`, `contents.delete_branch`, `pull_requests.create`, `pull_requests.update`, `pull_requests.comment`, `pull_requests.review`, `pull_requests.merge`, `issues.create`, `issues.comment`, `issues.update`, and `actions.run`. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.allow.variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.base` | `string \| null` | Required | Pattern for the branch a pull request targets. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.branch` | `string \| null` | Required | Pattern for the branch a push writes to or a pull request comes from. `{session_id}` becomes the session's id. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.issue` | `integer \| array<integer> \| null` | Required | Issue numbers. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.issue.variant 1` | `integer` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.limit` | `integer \| null` | Required | How many times one session may use this rule. A push counts once, and so does each pull request, comment, review, merge, or request. Minimum: 1. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.pull_request` | `integer \| array<integer> \| null` | Required | Pull request numbers. On `contents.push` it allows pushing only to those pull requests' branches. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 1` | `integer` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.repository` | `string \| array<string> \| null` | Required | Repository names or patterns on the GitHub App installation. Leave it out for every repository. Matches at least one variant below. |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.repository.variant 1` | `string` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "linear".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "linear".config.session.skills` | `array<object>` | Required |  |
| `session.agent.kind = "linear".config.session.skills.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.skills.[].path` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.skills.[].repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "linear".config.session.skills.[].repository.name` | `string` | Required |  |
| `session.agent.kind = "linear".config.session.skills.[].repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "linear".config.session.skills.[].repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "linear".id` | `string \| null` | Required | Identifier of the agent. Null only on a session a `slack`, `github`, `linear`, or `sentry` agent started before sessions kept that agent's own config. |
| `session.agent.kind = "linear".name` | `string \| null` | Required | The agent's account-unique addressable name (a slug of its display name), usable anywhere an agent is referenced, interchangeably with the id. A `slack`, `github`, `linear`, or `sentry` agent is named after its kind. |
| `session.agent.kind = "linear".sha` | `string` | Required | The definition's content identity, the version fingerprint frozen onto each session that runs it. |
| `session.agent.kind = "sentry"` | `object` |  | Additional properties are allowed. |
| `session.agent.kind = "sentry".kind` | `string` | Required | Must be "sentry". |
| `session.agent.kind = "sentry".config` | `object` | Required | The agent definition, in the same schema as sentry.yaml. Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.ellipsis` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.ellipsis.kind` | `string` | Required | Must be "sentry". |
| `session.agent.kind = "sentry".config.ellipsis.description` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.ellipsis.enabled` | `boolean` | Required |  |
| `session.agent.kind = "sentry".config.ellipsis.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.ellipsis.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "sentry".config.ellipsis.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "sentry".config.ellipsis.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "sentry".config.ellipsis.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.ellipsis.name` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.ellipsis.version` | `string` | Required |  |
| `session.agent.kind = "sentry".config.sentry` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.sentry.on` | `array<string>` | Required |  |
| `session.agent.kind = "sentry".config.sentry.on.[]` | `string` |  | Allowed values: "issue_alert", "metric_alert". |
| `session.agent.kind = "sentry".config.sentry.organizations` | `array<string>` | Required |  |
| `session.agent.kind = "sentry".config.sentry.organizations.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.sentry.projects` | `array<string>` | Required |  |
| `session.agent.kind = "sentry".config.sentry.projects.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.budget` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.budget.day` | `number \| null` | Required | The most the agent may spend over the last day, in US dollars. |
| `session.agent.kind = "sentry".config.session.budget.month` | `number \| null` | Required | The most the agent may spend over the last 28 days, in US dollars. |
| `session.agent.kind = "sentry".config.session.budget.session` | `number \| null` | Required | The most one session may spend, in US dollars. Greater than: 0. |
| `session.agent.kind = "sentry".config.session.budget.week` | `number \| null` | Required | The most the agent may spend over the last 7 days, in US dollars. |
| `session.agent.kind = "sentry".config.session.claude_code` | `object \| null` | Required | Claude Code input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.claude_code.effort` | `string \| null` | Required | Allowed values: "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "sentry".config.session.claude_code.fallback_model` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.claude_code.max_turns` | `integer \| null` | Required | Greater than: 0. |
| `session.agent.kind = "sentry".config.session.claude_code.model` | `string` | Required | The model the session runs on: an alias or canonical id from the models table. Required. |
| `session.agent.kind = "sentry".config.session.claude_code.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.claude_code.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.claude_code.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.claude_code.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "sentry".config.session.claude_code.settings` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.claude_code.settings.path` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.claude_code.settings.repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.claude_code.settings.repository.name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.claude_code.settings.repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.claude_code.settings.repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.codex` | `object \| null` | Required | Codex input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.codex.effort` | `string \| null` | Required | Reasoning effort for every message. Omit to use the model default. Allowed values: "none", "low", "medium", "high", "xhigh", "max". |
| `session.agent.kind = "sentry".config.session.codex.model` | `string` | Required | The model the session runs on: a Responses-capable id from the models table. Required. |
| `session.agent.kind = "sentry".config.session.codex.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.codex.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.codex.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.codex.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "sentry".config.session.environment` | `string \| object` | Required | Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.environment.variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute.cpu` | `integer \| null` | Required | Minimum: 2. Maximum: 32. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute.idle` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute.memory` | `string \| object \| null` | Required | Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute.memory.variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute.memory.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute.memory.variant 2.gb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute.memory.variant 2.mb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.compute.timeout` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.after_checkout` | `object \| string \| null` | Required | Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.after_checkout.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.after_checkout.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.after_checkout.variant 2` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.before_start` | `object \| string \| null` | Required | Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.before_start.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.before_start.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.before_start.variant 2` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.build_base` | `object \| string \| null` | Required | Build a reusable environment before full checkout. Cached by declared inputs, script, toolchain, resources, and build configuration. A string is shorthand for run with all repositories as inputs. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.build_base.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.build_base.variant 1.inputs` | `array<string> \| null` | Required | Exact files relative to the workspace directory `/sandbox`, including the repository name. Only these files are available during build_base and their contents and modes determine reuse. Omit to use all repositories and invalidate on any source change; [] means no repository files. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.build_base.variant 1.inputs.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.build_base.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.build_base.variant 2` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.post_clone` | `string \| null` | Required | Legacy session startup script. Use before_start for session setup or after_checkout for cached source preparation. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.post_start` | `string \| null` | Required | Legacy session startup script. Use before_start in new configurations. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.validate` | `object \| string \| null` | Required | Check that the environment works, for example that required tools are on PATH. Runs last, after before_start, each time a session starts or resumes and each time the environment is built after a change. A nonzero exit fails the session or the build. Not cached. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.validate.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.validate.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.hooks.validate.variant 2` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.repositories` | `array<object>` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.repositories.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.repositories.[].name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.repositories.[].owner` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.repositories.[].ref` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.variables` | `array<object>` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.variables.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.environment.variant 2.variables.[].name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.environment.variant 2.variables.[].value` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.gemini` | `object \| null` | Required | Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.gemini.model` | `string` | Required | The model the session runs on: a Gemini id from the models table. Required. |
| `session.agent.kind = "sentry".config.session.gemini.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.gemini.prompt.variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.gemini.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.gemini.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.agent.kind = "sentry".config.session.mcp` | `array<string \| object>` | Required |  |
| `session.agent.kind = "sentry".config.session.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 2.name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 3.name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 3.url` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 4.command` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.mcp.[].variant 4.name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.agent.kind = "sentry".config.session.metadata.annotations.[key]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.agent.kind = "sentry".config.session.metadata.labels.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.permissions` | `object` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis` | `string \| array<string \| object> \| null` | Required | What the session's own token may do with the Ellipsis API: `all` for every operation a session token can use, `read_only` for every read operation, or a list. A list entry is an operation name as the SDKs call it, `read_only`, or a resource followed by `.*`. A request passes when any entry allows it. Leave it out and every operation is refused. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 2.[].variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | Operation names as the SDKs call them, such as `sessions.get`. `read_only` is every read operation, and a resource followed by `.*`, such as `sessions.*`, is every operation on it. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github` | `string \| array<string \| object> \| null` | Required | What the agent may do on GitHub: `all` for everything the GitHub App installation allows, `read_only` for every read in every repository, or a list. A list entry is an action name, or a rule that limits what it allows. A request passes when any entry allows it. Leave it out and every GitHub request the agent makes is refused. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2` | `array<string \| object>` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | What the rule allows. `read_only` is every read action. `contents.write`, `pull_requests.write`, `issues.write`, and `actions.write` are every action in that area, reads included. Single write actions are `contents.push`, `contents.delete_branch`, `pull_requests.create`, `pull_requests.update`, `pull_requests.comment`, `pull_requests.review`, `pull_requests.merge`, `issues.create`, `issues.comment`, `issues.update`, and `actions.run`. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.allow.variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.base` | `string \| null` | Required | Pattern for the branch a pull request targets. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.branch` | `string \| null` | Required | Pattern for the branch a push writes to or a pull request comes from. `{session_id}` becomes the session's id. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.issue` | `integer \| array<integer> \| null` | Required | Issue numbers. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.issue.variant 1` | `integer` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.issue.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.limit` | `integer \| null` | Required | How many times one session may use this rule. A push counts once, and so does each pull request, comment, review, merge, or request. Minimum: 1. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.pull_request` | `integer \| array<integer> \| null` | Required | Pull request numbers. On `contents.push` it allows pushing only to those pull requests' branches. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 1` | `integer` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2` | `array<integer>` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.pull_request.variant 2.[]` | `integer` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.repository` | `string \| array<string> \| null` | Required | Repository names or patterns on the GitHub App installation. Leave it out for every repository. Matches at least one variant below. |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.repository.variant 1` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2` | `array<string>` |  |  |
| `session.agent.kind = "sentry".config.session.permissions.github.variant 2.[].variant 2.repository.variant 2.[]` | `string` |  |  |
| `session.agent.kind = "sentry".config.session.skills` | `array<object>` | Required |  |
| `session.agent.kind = "sentry".config.session.skills.[]` | `object` |  | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.skills.[].path` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.skills.[].repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.kind = "sentry".config.session.skills.[].repository.name` | `string` | Required |  |
| `session.agent.kind = "sentry".config.session.skills.[].repository.owner` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".config.session.skills.[].repository.ref` | `string \| null` | Required |  |
| `session.agent.kind = "sentry".id` | `string \| null` | Required | Identifier of the agent. Null only on a session a `slack`, `github`, `linear`, or `sentry` agent started before sessions kept that agent's own config. |
| `session.agent.kind = "sentry".name` | `string \| null` | Required | The agent's account-unique addressable name (a slug of its display name), usable anywhere an agent is referenced, interchangeably with the id. A `slack`, `github`, `linear`, or `sentry` agent is named after its kind. |
| `session.agent.kind = "sentry".sha` | `string` | Required | The definition's content identity, the version fingerprint frozen onto each session that runs it. |
| `session.archived` | `object \| null` | Required | When and by whom the session was archived, or null when it isn't. A session is archived when it closes, after the account's archive_inactive_sessions_days without a message, or by PUT /v1/sessions/{id}. An archived session takes no messages, and a reply on the Slack thread, pull request, issue, or Linear issue it answers starts a new session. Additional properties are allowed. |
| `session.archived.at` | `string` | Required | When the session was archived. Format: date-time. |
| `session.archived.by` | `object \| null` | Required | The user who archived the session. Null when no user did. Additional properties are allowed. |
| `session.archived.by.avatar_url` | `string \| null` | Required | URL of the user's avatar image. |
| `session.archived.by.id` | `string` | Required | Identifier of the user. |
| `session.archived.by.name` | `string \| null` | Required | Display name of the user. |
| `session.archived.deletes_at` | `string \| null` | Required | When the session's records and messages are deleted, from the account's current session log retention. It moves when the retention changes. Null when they're already deleted. Format: date-time. |
| `session.budget` | `object` | Required | The spend budget enforced for this session. Additional properties are allowed. |
| `session.budget.source` | `string` | Required | Where the limit came from. `config` is the agent's config, `account` is the account's default, and `system` is the platform's maximum, which caps the other two. Allowed values: "system", "account", "config", "run". |
| `session.budget.limit` | `integer` | Required | The most this session may spend, in millicents, after resolving defaults and ceilings. |
| `session.claude_code` | `object \| null` | Required | Claude Code input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.claude_code.effort` | `string \| null` | Required | Allowed values: "low", "medium", "high", "xhigh", "max". |
| `session.claude_code.fallback_model` | `string \| null` | Required |  |
| `session.claude_code.max_turns` | `integer \| null` | Required | Greater than: 0. |
| `session.claude_code.model` | `string` | Required | The model the session runs on: an alias or canonical id from the models table. Required. |
| `session.claude_code.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.claude_code.prompt.variant 1` | `string` |  |  |
| `session.claude_code.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.claude_code.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.claude_code.settings` | `object \| null` | Required | Additional properties are not allowed. |
| `session.claude_code.settings.path` | `string` | Required |  |
| `session.claude_code.settings.repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.claude_code.settings.repository.name` | `string` | Required |  |
| `session.claude_code.settings.repository.owner` | `string \| null` | Required |  |
| `session.claude_code.settings.repository.ref` | `string \| null` | Required |  |
| `session.codex` | `object \| null` | Required | Codex input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.codex.effort` | `string \| null` | Required | Reasoning effort for every message. Omit to use the model default. Allowed values: "none", "low", "medium", "high", "xhigh", "max". |
| `session.codex.model` | `string` | Required | The model the session runs on: a Responses-capable id from the models table. Required. |
| `session.codex.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.codex.prompt.variant 1` | `string` |  |  |
| `session.codex.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.codex.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.content_deleted_at` | `string \| null` | Required | When session log retention deleted the session's records, messages, and prompt, or null. The session's status, cost, tokens, and summary stay. Format: date-time. |
| `session.conversation` | `object` | Required | Whether the session can take more messages, and whether an agent is warm to answer one. Additional properties are allowed. |
| `session.conversation.interactive` | `boolean` | Required | Whether the session stays open after its first message is answered. |
| `session.conversation.prompting` | `object` | Required | The session's policy for direct messages. Caller authorization and message validation are checked separately. Additional properties are allowed. |
| `session.conversation.prompting.blocked_reason` | `string \| null` | Required | Allowed values: "mention_surface", "non_interactive", "harness_single_turn", "budget_exhausted", "closed", "archived". |
| `session.conversation.prompting.detail` | `string \| null` | Required |  |
| `session.conversation.prompting.enabled` | `boolean` | Required |  |
| `session.conversation.prompting.surface_name` | `string \| null` | Required |  |
| `session.conversation.warm` | `boolean` | Required | Whether an agent is ready to answer the next message right away. When false, the next message first prepares an environment, which takes longer. A hint only; clients need no logic on it. |
| `session.cost` | `object` | Required | What the session has cost so far. Additional properties are allowed. |
| `session.cost.charged` | `integer` | Required | What Ellipsis charged to credit, in millicents. It is everything except subscription tokens. |
| `session.cost.cpu` | `integer` | Required | CPU spend in millicents. |
| `session.cost.fee` | `integer` | Required | Platform fee in millicents. |
| `session.cost.llm` | `object` | Required | LLM token cost, in total and by model, split by who paid. Additional properties are allowed. |
| `session.cost.llm.all` | `object` | Required | Token cost across every model. Additional properties are allowed. |
| `session.cost.llm.all.claude_subscription` | `integer` | Required | Token cost paid by a Claude subscription, at Ellipsis rates, in millicents. |
| `session.cost.llm.all.codex_subscription` | `integer` | Required | Token cost paid by a Codex subscription, at Ellipsis rates, in millicents. |
| `session.cost.llm.all.platform` | `integer` | Required | Token cost charged to Ellipsis credit, in millicents. |
| `session.cost.llm.all.total` | `integer` | Required | All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription. |
| `session.cost.llm.by_model` | `array<object>` | Required | Token cost for each model that used tokens. |
| `session.cost.llm.by_model.[]` | `object` |  | Additional properties are allowed. |
| `session.cost.llm.by_model.[].claude_subscription` | `integer` | Required | Token cost paid by a Claude subscription, at Ellipsis rates, in millicents. |
| `session.cost.llm.by_model.[].codex_subscription` | `integer` | Required | Token cost paid by a Codex subscription, at Ellipsis rates, in millicents. |
| `session.cost.llm.by_model.[].model` | `string` | Required | The model that used these tokens. |
| `session.cost.llm.by_model.[].platform` | `integer` | Required | Token cost charged to Ellipsis credit, in millicents. |
| `session.cost.llm.by_model.[].total` | `integer` | Required | All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription. |
| `session.cost.memory` | `integer` | Required | Memory spend in millicents. |
| `session.cost.total` | `integer` | Required | Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee, and it is what the budget caps. |
| `session.created_at` | `string` | Required | When the session was created. Format: date-time. |
| `session.environment` | `object` | Required | The full environment configuration frozen when the session was created, with the saved environment's id and how it was chosen. Additional properties are not allowed. |
| `session.environment.source` | `string \| null` | Required | How the environment was chosen (request, agent, platform_default; repo_default and account_default on sessions from before those ladders were removed). An inline request uses request; an inline environment declared in session configuration has no source. Allowed values: "request", "agent", "repo_default", "account_default", "platform_default". |
| `session.environment.compute` | `object` | Required | Additional properties are not allowed. |
| `session.environment.compute.cpu` | `integer \| null` | Required | Minimum: 2. Maximum: 32. |
| `session.environment.compute.idle` | `string \| null` | Required |  |
| `session.environment.compute.memory` | `string \| object \| null` | Required | Matches at least one variant below. |
| `session.environment.compute.memory.variant 1` | `string` |  |  |
| `session.environment.compute.memory.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.environment.compute.memory.variant 2.gb` | `integer \| null` | Required | Minimum: 0. |
| `session.environment.compute.memory.variant 2.mb` | `integer \| null` | Required | Minimum: 0. |
| `session.environment.compute.timeout` | `string \| null` | Required |  |
| `session.environment.hooks` | `object` | Required | Additional properties are not allowed. |
| `session.environment.hooks.after_checkout` | `object \| string \| null` | Required | Prepare the requested source revision after Ellipsis checks out all repositories, before saving the prepared environment. Skipped when that prepared environment is reused. Matches at least one variant below. |
| `session.environment.hooks.after_checkout.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.environment.hooks.after_checkout.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.environment.hooks.after_checkout.variant 2` | `string` |  |  |
| `session.environment.hooks.before_start` | `object \| string \| null` | Required | Run before the agent starts or resumes a session, after the environment is ready. This hook is not cached and adds to session startup time. Matches at least one variant below. |
| `session.environment.hooks.before_start.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.environment.hooks.before_start.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.environment.hooks.before_start.variant 2` | `string` |  |  |
| `session.environment.hooks.build_base` | `object \| string \| null` | Required | Build a reusable environment before full checkout. Cached by declared inputs, script, toolchain, resources, and build configuration. A string is shorthand for run with all repositories as inputs. Matches at least one variant below. |
| `session.environment.hooks.build_base.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.environment.hooks.build_base.variant 1.inputs` | `array<string> \| null` | Required | Exact files relative to the workspace directory `/sandbox`, including the repository name. Only these files are available during build_base and their contents and modes determine reuse. Omit to use all repositories and invalidate on any source change; [] means no repository files. |
| `session.environment.hooks.build_base.variant 1.inputs.[]` | `string` |  |  |
| `session.environment.hooks.build_base.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.environment.hooks.build_base.variant 2` | `string` |  |  |
| `session.environment.hooks.post_clone` | `string \| null` | Required | Legacy session startup script. Use before_start for session setup or after_checkout for cached source preparation. |
| `session.environment.hooks.post_start` | `string \| null` | Required | Legacy session startup script. Use before_start in new configurations. |
| `session.environment.hooks.validate` | `object \| string \| null` | Required | Check that the environment works, for example that required tools are on PATH. Runs last, after before_start, each time a session starts or resumes and each time the environment is built after a change. A nonzero exit fails the session or the build. Not cached. Matches at least one variant below. |
| `session.environment.hooks.validate.variant 1` | `object` |  | Additional properties are not allowed. |
| `session.environment.hooks.validate.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.environment.hooks.validate.variant 2` | `string` |  |  |
| `session.environment.id` | `string \| null` | Required | Identifier of the saved environment the session's config resolved. Null for an inline environment block or the built-in basic environment. |
| `session.environment.mcp` | `array<string \| object>` | Required |  |
| `session.environment.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.environment.mcp.[].variant 1` | `string` |  |  |
| `session.environment.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.environment.mcp.[].variant 2.name` | `string` | Required |  |
| `session.environment.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.environment.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.environment.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.environment.mcp.[].variant 3.name` | `string` | Required |  |
| `session.environment.mcp.[].variant 3.url` | `string` | Required |  |
| `session.environment.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.environment.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.environment.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.environment.mcp.[].variant 4.command` | `string` | Required |  |
| `session.environment.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.environment.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.environment.mcp.[].variant 4.name` | `string` | Required |  |
| `session.environment.repositories` | `array<object>` | Required |  |
| `session.environment.repositories.[]` | `object` |  | Additional properties are not allowed. |
| `session.environment.repositories.[].name` | `string` | Required |  |
| `session.environment.repositories.[].owner` | `string \| null` | Required |  |
| `session.environment.repositories.[].ref` | `string \| null` | Required |  |
| `session.environment.variables` | `array<object>` | Required |  |
| `session.environment.variables.[]` | `object` |  | Additional properties are not allowed. |
| `session.environment.variables.[].name` | `string` | Required |  |
| `session.environment.variables.[].value` | `string \| null` | Required |  |
| `session.error` | `object \| null` | Required | Why the last message failed, was stopped, or was cancelled; null otherwise. Additional properties are allowed. |
| `session.error.detail` | `string \| null` | Required | A human-readable explanation. |
| `session.error.reason` | `string` | Required | What went wrong. Allowed values: "error", "tool_call_failed", "budget_hit", "payment_required", "blocked", "contact_email_required", "lifecycle_hook_failed", "missing_repo_access", "missing_token_permissions", "missing_environment_variables", "missing_github_integration", "agent_unavailable", "upstream_unavailable", "unsupported_configuration", "execution_disabled", "interrupted", "stopped", "timeout". |
| `session.event` | `object \| null` | Required | The webhook that started the session, as the integration sent it. Null for api, cli, web, and cron starts. Additional properties are allowed. |
| `session.event.body` | `object` | Required | The request body, unchanged except that Slack's verification token is left out. Additional properties are allowed. |
| `session.event.headers` | `object` | Required | The integration's own request headers, lowercased. Signature headers are left out. Additional properties are allowed. |
| `session.event.headers.[key]` | `string` |  |  |
| `session.event.integration` | `string` | Required | The integration that sent the webhook. Allowed values: "github", "linear", "slack", "sentry". |
| `session.gemini` | `object \| null` | Required | Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini. Additional properties are not allowed. |
| `session.gemini.model` | `string` | Required | The model the session runs on: a Gemini id from the models table. Required. |
| `session.gemini.prompt` | `string \| object \| null` | Required | The initial user message. It is sent as written, except in a session started from an agent, where each `{{field}}` is replaced with that field's value. Omit to start an interactive session with no message, waiting for one. Matches at least one variant below. |
| `session.gemini.prompt.variant 1` | `string` |  |  |
| `session.gemini.prompt.variant 2` | `object` |  | Additional properties are not allowed. |
| `session.gemini.prompt.variant 2.builtin` | `string` | Required | The built-in prompt's name. Must be "find_bugs". |
| `session.id` | `string` | Required | Unique identifier of the session. |
| `session.mcp` | `array<string \| object>` | Required | Every MCP server the session has: the servers its environment lists, its own, and the Slack or Linear server of a session started from Slack or Linear. |
| `session.mcp.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.mcp.[].variant 1` | `string` |  |  |
| `session.mcp.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.mcp.[].variant 2.name` | `string` | Required |  |
| `session.mcp.[].variant 3` | `object` |  | Additional properties are not allowed. |
| `session.mcp.[].variant 3.headers` | `object` | Required | Additional properties are allowed. |
| `session.mcp.[].variant 3.headers.[key]` | `string` |  |  |
| `session.mcp.[].variant 3.name` | `string` | Required |  |
| `session.mcp.[].variant 3.url` | `string` | Required |  |
| `session.mcp.[].variant 4` | `object` |  | Additional properties are not allowed. |
| `session.mcp.[].variant 4.args` | `array<string>` | Required |  |
| `session.mcp.[].variant 4.args.[]` | `string` |  |  |
| `session.mcp.[].variant 4.command` | `string` | Required |  |
| `session.mcp.[].variant 4.env` | `object` | Required | Additional properties are allowed. |
| `session.mcp.[].variant 4.env.[key]` | `string` |  |  |
| `session.mcp.[].variant 4.name` | `string` | Required |  |
| `session.metadata` | `object` | Required | Labels and annotations set when the session started. Additional properties are not allowed. |
| `session.metadata.annotations` | `object` | Required | String key/value pairs to tag and filter by. A key contains no `:`. Additional properties are allowed. |
| `session.metadata.annotations.[key]` | `string` |  |  |
| `session.metadata.labels` | `array<string>` | Required | Names to tag and filter by. |
| `session.metadata.labels.[]` | `string` |  |  |
| `session.output` | `object \| null` | Required | The session's structured output: the `json_schema` the agent must satisfy and, once the agent has submitted it, the `result`. Additional properties are allowed. |
| `session.output.json_schema` | `object` | Required | JSON Schema the agent's result must satisfy. Additional properties are allowed. |
| `session.output.result` | `object \| null` | Required | The payload the agent submitted, or null until it submits one. Additional properties are allowed. |
| `session.parent` | `object \| null` | Required | The predecessor session this session continues; null when there is none. Additional properties are allowed. |
| `session.parent.id` | `string` | Required | Identifier of the predecessor session this session continues. |
| `session.permissions` | `object` | Required | What the session may touch, per minted credential. Additional properties are not allowed. |
| `session.permissions.ellipsis` | `string \| array<string \| object> \| null` | Required | What the session's own token may do with the Ellipsis API: `all` for every operation a session token can use, `read_only` for every read operation, or a list. A list entry is an operation name as the SDKs call it, `read_only`, or a resource followed by `.*`. A request passes when any entry allows it. Leave it out and every operation is refused. Matches at least one variant below. |
| `session.permissions.ellipsis.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.permissions.ellipsis.variant 2` | `array<string \| object>` |  |  |
| `session.permissions.ellipsis.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.permissions.ellipsis.variant 2.[].variant 1` | `string` |  |  |
| `session.permissions.ellipsis.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.permissions.ellipsis.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | Operation names as the SDKs call them, such as `sessions.get`. `read_only` is every read operation, and a resource followed by `.*`, such as `sessions.*`, is every operation on it. Matches at least one variant below. |
| `session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 1` | `string` |  |  |
| `session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.permissions.ellipsis.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  |  |
| `session.permissions.github` | `string \| array<string \| object> \| null` | Required | What the agent may do on GitHub: `all` for everything the GitHub App installation allows, `read_only` for every read in every repository, or a list. A list entry is an action name, or a rule that limits what it allows. A request passes when any entry allows it. Leave it out and every GitHub request the agent makes is refused. Matches at least one variant below. |
| `session.permissions.github.variant 1` | `string` |  | Allowed values: "all", "read_only". |
| `session.permissions.github.variant 2` | `array<string \| object>` |  |  |
| `session.permissions.github.variant 2.[]` | `string \| object` |  | Matches at least one variant below. |
| `session.permissions.github.variant 2.[].variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.permissions.github.variant 2.[].variant 2` | `object` |  | Additional properties are not allowed. |
| `session.permissions.github.variant 2.[].variant 2.allow` | `string \| array<string>` | Required | What the rule allows. `read_only` is every read action. `contents.write`, `pull_requests.write`, `issues.write`, and `actions.write` are every action in that area, reads included. Single write actions are `contents.push`, `contents.delete_branch`, `pull_requests.create`, `pull_requests.update`, `pull_requests.comment`, `pull_requests.review`, `pull_requests.merge`, `issues.create`, `issues.comment`, `issues.update`, and `actions.run`. Matches at least one variant below. |
| `session.permissions.github.variant 2.[].variant 2.allow.variant 1` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.permissions.github.variant 2.[].variant 2.allow.variant 2` | `array<string>` |  |  |
| `session.permissions.github.variant 2.[].variant 2.allow.variant 2.[]` | `string` |  | Allowed values: "read_only", "contents.read", "pull_requests.read", "issues.read", "checks.read", "statuses.read", "actions.read", "contents.write", "pull_requests.write", "issues.write", "actions.write", "contents.push", "contents.delete_branch", "pull_requests.create", "pull_requests.update", "pull_requests.comment", "pull_requests.review", "pull_requests.merge", "issues.create", "issues.comment", "issues.update", "actions.run". |
| `session.permissions.github.variant 2.[].variant 2.base` | `string \| null` | Required | Pattern for the branch a pull request targets. |
| `session.permissions.github.variant 2.[].variant 2.branch` | `string \| null` | Required | Pattern for the branch a push writes to or a pull request comes from. `{session_id}` becomes the session's id. |
| `session.permissions.github.variant 2.[].variant 2.issue` | `integer \| array<integer> \| null` | Required | Issue numbers. Matches at least one variant below. |
| `session.permissions.github.variant 2.[].variant 2.issue.variant 1` | `integer` |  |  |
| `session.permissions.github.variant 2.[].variant 2.issue.variant 2` | `array<integer>` |  |  |
| `session.permissions.github.variant 2.[].variant 2.issue.variant 2.[]` | `integer` |  |  |
| `session.permissions.github.variant 2.[].variant 2.limit` | `integer \| null` | Required | How many times one session may use this rule. A push counts once, and so does each pull request, comment, review, merge, or request. Minimum: 1. |
| `session.permissions.github.variant 2.[].variant 2.pull_request` | `integer \| array<integer> \| null` | Required | Pull request numbers. On `contents.push` it allows pushing only to those pull requests' branches. Matches at least one variant below. |
| `session.permissions.github.variant 2.[].variant 2.pull_request.variant 1` | `integer` |  |  |
| `session.permissions.github.variant 2.[].variant 2.pull_request.variant 2` | `array<integer>` |  |  |
| `session.permissions.github.variant 2.[].variant 2.pull_request.variant 2.[]` | `integer` |  |  |
| `session.permissions.github.variant 2.[].variant 2.repository` | `string \| array<string> \| null` | Required | Repository names or patterns on the GitHub App installation. Leave it out for every repository. Matches at least one variant below. |
| `session.permissions.github.variant 2.[].variant 2.repository.variant 1` | `string` |  |  |
| `session.permissions.github.variant 2.[].variant 2.repository.variant 2` | `array<string>` |  |  |
| `session.permissions.github.variant 2.[].variant 2.repository.variant 2.[]` | `string` |  |  |
| `session.review` | `object \| null` | Required | The code review this session ran for; null unless the source is `code_review`. Additional properties are allowed. |
| `session.review.id` | `string` | Required | Identifier of the code review. |
| `session.scm` | `object` | Required | What the session did in source control, by provider. Per repository: the commit and branch it sits on, its commits, each uncommitted file with its line counts and diff, and the pull requests it opened. Additional properties are allowed. |
| `session.scm.github` | `object \| null` | Required | Each GitHub repository in the session's environment and what the session did to it. Null if nothing was ever captured. Additional properties are allowed. |
| `session.scm.github.repos` | `array<object>` | Required |  |
| `session.scm.github.repos.[]` | `object` |  | Additional properties are allowed. |
| `session.scm.github.repos.[].commits` | `array<object>` | Required |  |
| `session.scm.github.repos.[].commits.[]` | `object` |  | Additional properties are allowed. |
| `session.scm.github.repos.[].commits.[].committed_at` | `string` | Required | Format: date-time. |
| `session.scm.github.repos.[].commits.[].pushed` | `boolean` | Required |  |
| `session.scm.github.repos.[].commits.[].sha` | `string` | Required |  |
| `session.scm.github.repos.[].commits.[].subject` | `string` | Required |  |
| `session.scm.github.repos.[].commits_total` | `integer` | Required |  |
| `session.scm.github.repos.[].full_name` | `string` | Required |  |
| `session.scm.github.repos.[].local_commit` | `string \| null` | Required |  |
| `session.scm.github.repos.[].local_uncommitted_files` | `array<object>` | Required |  |
| `session.scm.github.repos.[].local_uncommitted_files.[]` | `object` |  | Additional properties are allowed. |
| `session.scm.github.repos.[].local_uncommitted_files.[].additions` | `integer` | Required |  |
| `session.scm.github.repos.[].local_uncommitted_files.[].deletions` | `integer` | Required |  |
| `session.scm.github.repos.[].local_uncommitted_files.[].patch` | `string \| null` | Required | The file's unified diff, `diff --git` header included, exactly as git emitted it. Null when the session's diff passed 100 KB and this file was left out. |
| `session.scm.github.repos.[].local_uncommitted_files.[].path` | `string` | Required |  |
| `session.scm.github.repos.[].local_uncommitted_files.[].status` | `string` | Required |  |
| `session.scm.github.repos.[].prs` | `array<object>` | Required |  |
| `session.scm.github.repos.[].prs.[]` | `object` |  | Additional properties are allowed. |
| `session.scm.github.repos.[].prs.[].gh_pr_id` | `integer \| null` | Required |  |
| `session.scm.github.repos.[].prs.[].number` | `integer` | Required |  |
| `session.scm.github.repos.[].prs.[].pull_request` | `object \| null` | Required | The pull request as GitHub last reported it. Null until Ellipsis has read it from GitHub. Additional properties are allowed. |
| `session.scm.github.repos.[].prs.[].pull_request.additions` | `integer \| null` | Required | Lines added, null until GitHub reports them. |
| `session.scm.github.repos.[].prs.[].pull_request.author` | `object` | Required | Who opened the pull request. Additional properties are allowed. |
| `session.scm.github.repos.[].prs.[].pull_request.author.type` | `string` | Required | Allowed values: "User", "Organization", "Bot", "Mannequin". |
| `session.scm.github.repos.[].prs.[].pull_request.author.avatar_url` | `string` | Required |  |
| `session.scm.github.repos.[].prs.[].pull_request.author.id` | `integer` | Required |  |
| `session.scm.github.repos.[].prs.[].pull_request.author.login` | `string` | Required |  |
| `session.scm.github.repos.[].prs.[].pull_request.author.name` | `string \| null` | Required |  |
| `session.scm.github.repos.[].prs.[].pull_request.base` | `object` | Required | The branch the changes merge into. Additional properties are allowed. |
| `session.scm.github.repos.[].prs.[].pull_request.base.ref` | `string` | Required | The branch name. |
| `session.scm.github.repos.[].prs.[].pull_request.base.sha` | `string` | Required | The commit the branch pointed at. |
| `session.scm.github.repos.[].prs.[].pull_request.changed_files` | `integer \| null` | Required | Files changed, null until GitHub reports them. |
| `session.scm.github.repos.[].prs.[].pull_request.commits` | `integer \| null` | Required | Commits, null until GitHub reports them. |
| `session.scm.github.repos.[].prs.[].pull_request.created_at` | `string` | Required | Format: date-time. |
| `session.scm.github.repos.[].prs.[].pull_request.deletions` | `integer \| null` | Required | Lines deleted, null until GitHub reports them. |
| `session.scm.github.repos.[].prs.[].pull_request.head` | `object` | Required | The branch with the changes. Additional properties are allowed. |
| `session.scm.github.repos.[].prs.[].pull_request.head.ref` | `string` | Required | The branch name. |
| `session.scm.github.repos.[].prs.[].pull_request.head.sha` | `string` | Required | The commit the branch pointed at. |
| `session.scm.github.repos.[].prs.[].pull_request.id` | `integer` | Required | The pull request's GitHub id. |
| `session.scm.github.repos.[].prs.[].pull_request.merged_at` | `string \| null` | Required | Format: date-time. |
| `session.scm.github.repos.[].prs.[].pull_request.number` | `integer` | Required |  |
| `session.scm.github.repos.[].prs.[].pull_request.repository` | `object` | Required | The repository the pull request merges into. Additional properties are allowed. |
| `session.scm.github.repos.[].prs.[].pull_request.repository.id` | `integer` | Required | The GitHub repository id. |
| `session.scm.github.repos.[].prs.[].pull_request.repository.name` | `string` | Required | The repository name. |
| `session.scm.github.repos.[].prs.[].pull_request.repository.owner` | `string` | Required | The repository owner's login. |
| `session.scm.github.repos.[].prs.[].pull_request.status` | `string` | Required | Allowed values: "open", "draft", "merged", "closed". |
| `session.scm.github.repos.[].prs.[].pull_request.title` | `string` | Required |  |
| `session.scm.github.repos.[].prs.[].pull_request.updated_at` | `string` | Required | Format: date-time. |
| `session.scm.github.repos.[].prs.[].pull_request.url` | `string` | Required | The pull request on GitHub. |
| `session.scm.github.repos.[].prs.[].title` | `string \| null` | Required |  |
| `session.scm.github.repos.[].prs.[].url` | `string` | Required |  |
| `session.scm.github.repos.[].remote_branch` | `string \| null` | Required |  |
| `session.scm.github.repos.[].remote_commit` | `string \| null` | Required |  |
| `session.skills` | `array<object>` | Required | Skills installed for this session. |
| `session.skills.[]` | `object` |  | Additional properties are not allowed. |
| `session.skills.[].path` | `string` | Required |  |
| `session.skills.[].repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.skills.[].repository.name` | `string` | Required |  |
| `session.skills.[].repository.owner` | `string \| null` | Required |  |
| `session.skills.[].repository.ref` | `string \| null` | Required |  |
| `session.status` | `string` | Required | Where the session is. A message you sent is answered once the status is `idle` or `closed`; its `message_ended` record in GET /v1/sessions/{id}/records says how. Allowed values: "queued", "preparing", "running", "idle", "closed". |
| `session.summary` | `object \| null` | Required | The latest live summary of the session's progress while it runs, and when it was generated. Additional properties are allowed. |
| `session.summary.source` | `string` | Required | Where this summary came from. `prompt` is the first line of the prompt the session started with, `generated` is written by Ellipsis as the session runs, and `user` was set by a person and is never replaced by a generated one. Allowed values: "prompt", "generated", "user". |
| `session.summary.created_at` | `string \| null` | Required | When this summary line was generated. Null on summaries written before generation time was tracked. Format: date-time. |
| `session.summary.description` | `string` | Required | One-line description of what the session is doing. |
| `session.tokens` | `object` | Required | The tokens the session has used so far. Additional properties are allowed. |
| `session.tokens.all` | `object` | Required | Token counts across every model. Additional properties are allowed. |
| `session.tokens.all.cache_creation` | `integer` | Required | Tokens written to the prompt cache. |
| `session.tokens.all.cache_read` | `integer` | Required | Tokens read from the prompt cache. |
| `session.tokens.all.input` | `integer` | Required | Input tokens used. |
| `session.tokens.all.output` | `integer` | Required | Output tokens used. |
| `session.tokens.all.total` | `integer` | Required | All tokens used, including prompt cache reads and writes. Token cost is priced on this. |
| `session.tokens.by_model` | `array<object>` | Required | Token counts for each model that used tokens. |
| `session.tokens.by_model.[]` | `object` |  | Additional properties are allowed. |
| `session.tokens.by_model.[].cache_creation` | `integer` | Required | Tokens written to the prompt cache. |
| `session.tokens.by_model.[].cache_read` | `integer` | Required | Tokens read from the prompt cache. |
| `session.tokens.by_model.[].input` | `integer` | Required | Input tokens used. |
| `session.tokens.by_model.[].model` | `string` | Required | The model that used these tokens. |
| `session.tokens.by_model.[].output` | `integer` | Required | Output tokens used. |
| `session.tokens.by_model.[].total` | `integer` | Required | All tokens used, including prompt cache reads and writes. Token cost is priced on this. |
| `session.updated_at` | `string` | Required | When the session was last updated. Format: date-time. |
| `session.url` | `string` | Required | The session's page in the dashboard. |
| `session.user` | `object \| null` | Required | The person who started this session; null for scheduled sessions and API keys with no creator. Additional properties are allowed. |
| `session.user.avatar_url` | `string \| null` | Required | URL of the user's avatar image. |
| `session.user.id` | `string` | Required | Identifier of the user. |
| `session.user.name` | `string \| null` | Required | Display name of the user. |
| `session.wait_ms` | `integer \| null` | Required | Milliseconds from when the session was created to when it started, including any time it waited because your account already had its limit of sessions alive. Null until the session starts, and for sessions created before this field was added. |

<a id="timeline"></a>

### timeline

The session's timeline, newest first. It follows the first session frame and is resent whole whenever it changes. The events are the ones `GET /v1/sessions/{id}/timeline` returns.

**Example JSON**

```json
{
  "type": "timeline",
  "events": [
    {
      "type": "github.clone",
      "at": "2026-09-10T14:00:09.482913Z",
      "ok": true,
      "repository": "your-org/api-repo"
    },
    {
      "type": "environment",
      "action": "ready",
      "at": "2026-09-10T14:00:08.120554Z"
    },
    {
      "type": "environment",
      "action": "started",
      "at": "2026-09-10T14:00:01.903117Z"
    }
  ]
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `type` | `string` | Required | Must be "timeline". |
| `events` | `array<object>` | Required | What the session did, newest first. |
| `events.[]` | `object` |  | Matches exactly one variant below. |
| `events.[].type = "environment"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "environment".type` | `string` | Required | Must be "environment". |
| `events.[].type = "environment".action` | `string` | Required | Allowed values: "started", "ready", "asleep", "awake". |
| `events.[].type = "environment".at` | `string` | Required | Format: date-time. |
| `events.[].action = "closed"` | `object` |  | Additional properties are allowed. |
| `events.[].action = "closed".type` | `string` | Required | Must be "session". |
| `events.[].action = "closed".action` | `string` | Required | Must be "closed". |
| `events.[].action = "closed".at` | `string` | Required | Format: date-time. |
| `events.[].type = "github.clone"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.clone".type` | `string` | Required | Must be "github.clone". |
| `events.[].type = "github.clone".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.clone".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.clone".repository` | `string` | Required |  |
| `events.[].type = "github.push"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.push".type` | `string` | Required | Must be "github.push". |
| `events.[].type = "github.push".action` | `string` | Required | Allowed values: "pushed", "created", "deleted". |
| `events.[].type = "github.push".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.push".branch` | `string \| null` | Required | Null for a tag, or when Ellipsis did not record the push's branches. |
| `events.[].type = "github.push".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.push".repository` | `string` | Required |  |
| `events.[].type = "github.push".tag` | `string \| null` | Required | Null for a branch. |
| `events.[].type = "github.commit"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.commit".type` | `string` | Required | Must be "github.commit". |
| `events.[].type = "github.commit".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.commit".branch` | `string \| null` | Required | Null when the repository's default branch. |
| `events.[].type = "github.commit".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.commit".paths` | `array<string>` | Required | The files written or deleted. |
| `events.[].type = "github.commit".paths.[]` | `string` |  |  |
| `events.[].type = "github.commit".repository` | `string` | Required |  |
| `events.[].type = "github.pull_request"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.pull_request".type` | `string` | Required | Must be "github.pull_request". |
| `events.[].type = "github.pull_request".action` | `string` | Required | Allowed values: "opened", "edited", "ready_for_review", "converted_to_draft", "review_requested", "commented", "reviewed", "review_commented", "thread_resolved", "branch_updated", "auto_merge_enabled", "merge_queued", "merged", "closed", "reopened". |
| `events.[].type = "github.pull_request".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.pull_request".number` | `integer \| null` | Required | Null when Ellipsis could not tell which. |
| `events.[].type = "github.pull_request".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.pull_request".repository` | `string \| null` | Required | Null when Ellipsis could not tell which. |
| `events.[].type = "github.pull_request".review` | `string \| null` | Required | The review's verdict, for `reviewed`. Allowed values: "approved", "changes_requested", "commented". |
| `events.[].type = "github.issue"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.issue".type` | `string` | Required | Must be "github.issue". |
| `events.[].type = "github.issue".action` | `string` | Required | Allowed values: "opened", "edited", "commented", "closed", "reopened". |
| `events.[].type = "github.issue".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.issue".number` | `integer \| null` | Required | Null when Ellipsis could not tell which. |
| `events.[].type = "github.issue".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.issue".repository` | `string \| null` | Required | Null when Ellipsis could not tell which. |
| `events.[].type = "github.release"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.release".type` | `string` | Required | Must be "github.release". |
| `events.[].type = "github.release".action` | `string` | Required | Allowed values: "created", "edited", "deleted". |
| `events.[].type = "github.release".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.release".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.release".repository` | `string` | Required |  |
| `events.[].type = "github.release".tag` | `string \| null` | Required |  |
| `events.[].type = "github.workflow"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.workflow".type` | `string` | Required | Must be "github.workflow". |
| `events.[].type = "github.workflow".action` | `string` | Required | Allowed values: "dispatched", "rerun", "cancelled", "logs_read". |
| `events.[].type = "github.workflow".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.workflow".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.workflow".repository` | `string` | Required |  |
| `events.[].type = "github.workflow".run_id` | `integer \| null` | Required |  |
| `events.[].type = "github.workflow".workflow` | `string \| null` | Required | The workflow file or id, for `dispatched`. |
| `events.[].type = "github.refused"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.refused".type` | `string` | Required | Must be "github.refused". |
| `events.[].type = "github.refused".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.refused".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.refused".reason` | `string` | Required | The `reason` on the refused requests. |
| `events.[].type = "github.other"` | `object` |  | Additional properties are allowed. |
| `events.[].type = "github.other".type` | `string` | Required | Must be "github.other". |
| `events.[].type = "github.other".at` | `string` | Required | When the last request behind it ended. Format: date-time. |
| `events.[].type = "github.other".method` | `string` | Required |  |
| `events.[].type = "github.other".ok` | `boolean` | Required | Whether GitHub did it. |
| `events.[].type = "github.other".operation` | `string \| null` | Required | The GraphQL mutation, for `/api/graphql`. |
| `events.[].type = "github.other".path` | `string` | Required |  |

<a id="delta"></a>

### delta

Streams assistant text, a live reasoning-summary preview, or a response output-token count.

**Example JSON**

```json
{
  "type": "delta",
  "message_id": "message_example",
  "kind": "text",
  "text": "All 12 tests",
  "output_tokens": 4
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `type` | `string` | Required | Must be "delta". |
| `kind` | `string` | Required | Known values: text (append assistant output), thinking (replace the readable reasoning-summary preview). Open vocabulary: ignore deltas with unknown kinds. |
| `message_id` | `string \| null` | Required | Identifier of the message being answered, if known. |
| `output_tokens` | `integer \| null` | Required | Output tokens generated so far for the current response. |
| `text` | `string \| null` | Required | For "text", an append-only fragment. For "thinking", the first-line prefix of the latest summary section (at most 512 characters); replace the preview, and clear it on an empty string. Null means no text update. |

<a id="delta-thinking"></a>

### delta

Replaces the current readable reasoning-summary preview while the agent works (kind: thinking).

For a working subtitle, replace your current preview with each `thinking` update. This illustrative update contains a summary heading:

```json
{
  "type": "delta",
  "message_id": "message_example",
  "kind": "thinking",
  "text": "**Inspecting the mock server**",
  "output_tokens": null
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `type` | `string` | Required | Must be "delta". |
| `kind` | `string` | Required | Known values: text (append assistant output), thinking (replace the readable reasoning-summary preview). Open vocabulary: ignore deltas with unknown kinds. |
| `message_id` | `string \| null` | Required | Identifier of the message being answered, if known. |
| `output_tokens` | `integer \| null` | Required | Output tokens generated so far for the current response. |
| `text` | `string \| null` | Required | For "text", an append-only fragment. For "thinking", the first-line prefix of the latest summary section (at most 512 characters); replace the preview, and clear it on an empty string. Null means no text update. |

<a id="heartbeat"></a>

### heartbeat

Keeps a quiet connection alive, normally after 20 seconds without other updates.

**Example JSON**

```json
{
  "type": "heartbeat",
  "ts": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `type` | `string` | Required | Must be "heartbeat". |
| `ts` | `string` | Required | Server time when the heartbeat was sent. Format: date-time. |

<a id="error"></a>

### error

Reports a stream-server failure before the socket closes.

**Example JSON**

```json
{
  "type": "error",
  "message": "Something went wrong streaming this session."
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `type` | `string` | Required | Must be "error". |
| `message` | `string` | Required | A human-readable error message. |

For `delta.kind: "text"`, append `text` to the live assistant response. For `kind: "thinking"`, replace the summary preview with `text`. It contains at most 512 characters from the first line of the current readable summary section. An empty string clears the preview, and null leaves it unchanged. Thinking previews do not change the output-token counter. Clear the preview when the agent starts writing, the message ends, or a reconnect supplies a new session frame. Models that do not emit readable summaries keep the generic working indicator.

A text delta can carry only text or only an output-token count, with the other field null. Deltas have no resume cursor and can be missed across reconnects; render the completed record as the authority. Ignore unknown delta kinds.

An open session stays connected between messages. When the session closes, a `session` frame with status `closed` is the last frame, followed by a normal socket close. The message you sent is answered when a `session` frame shows status `idle` or `closed`. See [Lifecycle](/docs/sessions/lifecycle#wait-for-the-answer).

## Historical formats

Existing history keeps its original payload format. These examples cover compatibility when reading or replaying older sessions; new sessions use the formats above.

### Claude SDK records

`kind: "claude_sdk"` and `record_format: "claude_sdk@1"` identify historical Claude projections. Their payload discriminator is `kind`, rather than native `type`.

<a id="claude-sdk-system"></a>

### system

Reports historical harness metadata through `subtype` and `data`.

**Example JSON**

```json
{
  "kind": "claude_sdk",
  "source": "claude_code",
  "record_format": "claude_sdk@1",
  "record_type": "system",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "kind": "system",
    "subtype": "init",
    "data": {
      "model": "claude-opus-5-5"
    },
    "session_id": "11111111-1111-4111-8111-111111111111"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_sdk". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_sdk@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.kind` | `string` | Required | Must be "system". |
| `payload.data` | `object` | Optional | Additional properties are allowed. |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.subtype` | `string` | Required |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-sdk-user"></a>

### user

Carries a historical user prompt or tool-result content.

**Example JSON**

```json
{
  "kind": "claude_sdk",
  "source": "claude_code",
  "record_format": "claude_sdk@1",
  "record_type": "user",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "kind": "user",
    "content": "Run the tests and report failures."
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_sdk". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_sdk@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.kind` | `string` | Required | Must be "user". |
| `payload.content` | `string \| array<object>` | Required | Matches at least one variant below. |
| `payload.content.variant 1` | `string` |  |  |
| `payload.content.variant 2` | `array<object>` |  |  |
| `payload.content.variant 2.[]` | `object` |  | Matches exactly one variant below. |
| `payload.content.variant 2.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.content.variant 2.[].type = "text".text` | `string` | Required |  |
| `payload.content.variant 2.[].type = "thinking"` | `object` |  | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "thinking".type` | `string` | Required | Must be "thinking". |
| `payload.content.variant 2.[].type = "thinking".signature` | `string` | Required |  |
| `payload.content.variant 2.[].type = "thinking".thinking` | `string` | Required |  |
| `payload.content.variant 2.[].type = "tool_use"` | `object` |  | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "tool_use".type` | `string` | Required | Must be "tool_use". |
| `payload.content.variant 2.[].type = "tool_use".id` | `string` | Required |  |
| `payload.content.variant 2.[].type = "tool_use".input` | `object` | Optional | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "tool_use".name` | `string` | Required |  |
| `payload.content.variant 2.[].type = "tool_result"` | `object` |  | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "tool_result".type` | `string` | Required | Must be "tool_result". |
| `payload.content.variant 2.[].type = "tool_result".content` | `string \| array<object> \| null` | Optional | Matches at least one variant below. |
| `payload.content.variant 2.[].type = "tool_result".content.variant 1` | `string` |  |  |
| `payload.content.variant 2.[].type = "tool_result".content.variant 2` | `array<object>` |  |  |
| `payload.content.variant 2.[].type = "tool_result".content.variant 2.[]` | `object` |  | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "tool_result".is_error` | `boolean \| null` | Optional |  |
| `payload.content.variant 2.[].type = "tool_result".tool_use_id` | `string` | Required |  |
| `payload.content.variant 2.[].type = "server_tool_use"` | `object` |  | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "server_tool_use".type` | `string` | Required | Must be "server_tool_use". |
| `payload.content.variant 2.[].type = "server_tool_use".id` | `string` | Required |  |
| `payload.content.variant 2.[].type = "server_tool_use".input` | `object` | Optional | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "server_tool_use".name` | `string` | Required |  |
| `payload.content.variant 2.[].type = "server_tool_result"` | `object` |  | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "server_tool_result".type` | `string` | Required | Must be "server_tool_result". |
| `payload.content.variant 2.[].type = "server_tool_result".content` | `object` | Optional | Additional properties are allowed. |
| `payload.content.variant 2.[].type = "server_tool_result".tool_use_id` | `string` | Required |  |
| `payload.parent_tool_use_id` | `string \| null` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-sdk-assistant"></a>

### assistant

Carries historical assistant content with its model at the payload root.

**Example JSON**

```json
{
  "kind": "claude_sdk",
  "source": "claude_code",
  "record_format": "claude_sdk@1",
  "record_type": "assistant",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "kind": "assistant",
    "model": "claude-opus-5-5",
    "content": [
      {
        "type": "text",
        "text": "All 12 tests passed."
      }
    ]
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": "claude-opus-5-5",
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_sdk". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_sdk@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.kind` | `string` | Required | Must be "assistant". |
| `payload.cache_creation` | `object \| null` | Optional | Additional properties are not allowed. |
| `payload.cache_creation.ephemeral_1h_input_tokens` | `integer` | Optional |  |
| `payload.cache_creation.ephemeral_5m_input_tokens` | `integer` | Optional |  |
| `payload.content` | `array<object>` | Optional |  |
| `payload.content.[]` | `object` |  | Matches exactly one variant below. |
| `payload.content.[].type = "text"` | `object` |  | Additional properties are allowed. |
| `payload.content.[].type = "text".type` | `string` | Required | Must be "text". |
| `payload.content.[].type = "text".text` | `string` | Required |  |
| `payload.content.[].type = "thinking"` | `object` |  | Additional properties are allowed. |
| `payload.content.[].type = "thinking".type` | `string` | Required | Must be "thinking". |
| `payload.content.[].type = "thinking".signature` | `string` | Required |  |
| `payload.content.[].type = "thinking".thinking` | `string` | Required |  |
| `payload.content.[].type = "tool_use"` | `object` |  | Additional properties are allowed. |
| `payload.content.[].type = "tool_use".type` | `string` | Required | Must be "tool_use". |
| `payload.content.[].type = "tool_use".id` | `string` | Required |  |
| `payload.content.[].type = "tool_use".input` | `object` | Optional | Additional properties are allowed. |
| `payload.content.[].type = "tool_use".name` | `string` | Required |  |
| `payload.content.[].type = "tool_result"` | `object` |  | Additional properties are allowed. |
| `payload.content.[].type = "tool_result".type` | `string` | Required | Must be "tool_result". |
| `payload.content.[].type = "tool_result".content` | `string \| array<object> \| null` | Optional | Matches at least one variant below. |
| `payload.content.[].type = "tool_result".content.variant 1` | `string` |  |  |
| `payload.content.[].type = "tool_result".content.variant 2` | `array<object>` |  |  |
| `payload.content.[].type = "tool_result".content.variant 2.[]` | `object` |  | Additional properties are allowed. |
| `payload.content.[].type = "tool_result".is_error` | `boolean \| null` | Optional |  |
| `payload.content.[].type = "tool_result".tool_use_id` | `string` | Required |  |
| `payload.content.[].type = "server_tool_use"` | `object` |  | Additional properties are allowed. |
| `payload.content.[].type = "server_tool_use".type` | `string` | Required | Must be "server_tool_use". |
| `payload.content.[].type = "server_tool_use".id` | `string` | Required |  |
| `payload.content.[].type = "server_tool_use".input` | `object` | Optional | Additional properties are allowed. |
| `payload.content.[].type = "server_tool_use".name` | `string` | Required |  |
| `payload.content.[].type = "server_tool_result"` | `object` |  | Additional properties are allowed. |
| `payload.content.[].type = "server_tool_result".type` | `string` | Required | Must be "server_tool_result". |
| `payload.content.[].type = "server_tool_result".content` | `object` | Optional | Additional properties are allowed. |
| `payload.content.[].type = "server_tool_result".tool_use_id` | `string` | Required |  |
| `payload.error` | `string \| null` | Optional |  |
| `payload.message_id` | `string \| null` | Optional |  |
| `payload.model` | `string` | Required |  |
| `payload.parent_tool_use_id` | `string \| null` | Optional |  |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.stop_reason` | `string \| null` | Optional |  |
| `payload.usage` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.usage.cache_creation_input_tokens` | `integer` | Optional |  |
| `payload.usage.cache_read_input_tokens` | `integer` | Optional |  |
| `payload.usage.cost_usd` | `number` | Optional |  |
| `payload.usage.input_tokens` | `integer` | Optional |  |
| `payload.usage.num_turns` | `integer` | Optional |  |
| `payload.usage.output_tokens` | `integer` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-sdk-result"></a>

### result

Reports a historical turn outcome with `cost_usd` rather than the native `total_cost_usd` field.

**Example JSON**

```json
{
  "kind": "claude_sdk",
  "source": "claude_code",
  "record_format": "claude_sdk@1",
  "record_type": "result",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "kind": "result",
    "subtype": "success",
    "is_error": false,
    "num_turns": 1,
    "duration_ms": 4200,
    "duration_api_ms": 3100,
    "result": "All 12 tests passed.",
    "cost_usd": 0.01
  },
  "tools": null,
  "tokens_info": null,
  "cost": 1000,
  "duration": 4200,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_sdk". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_sdk@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.kind` | `string` | Required | Must be "result". |
| `payload.api_error_status` | `integer \| null` | Optional |  |
| `payload.cost_usd` | `number \| null` | Optional |  |
| `payload.duration_api_ms` | `integer` | Required |  |
| `payload.duration_ms` | `integer` | Required |  |
| `payload.errors` | `array<string> \| null` | Optional |  |
| `payload.errors.[]` | `string` |  |  |
| `payload.is_error` | `boolean` | Required |  |
| `payload.model_usage` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.num_turns` | `integer` | Required |  |
| `payload.result` | `string \| null` | Optional |  |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.stop_reason` | `string \| null` | Optional |  |
| `payload.structured_output` | `any JSON value` | Optional |  |
| `payload.subtype` | `string` | Required |  |
| `payload.usage` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.usage.cache_creation_input_tokens` | `integer` | Optional |  |
| `payload.usage.cache_read_input_tokens` | `integer` | Optional |  |
| `payload.usage.cost_usd` | `number` | Optional |  |
| `payload.usage.input_tokens` | `integer` | Optional |  |
| `payload.usage.num_turns` | `integer` | Optional |  |
| `payload.usage.output_tokens` | `integer` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="claude-sdk-rate_limit"></a>

### rate_limit

Reports historical rate-limit information with snake_case fields.

**Example JSON**

```json
{
  "kind": "claude_sdk",
  "source": "claude_code",
  "record_format": "claude_sdk@1",
  "record_type": "rate_limit",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "kind": "rate_limit",
    "status": "allowed",
    "rate_limit_type": "five_hour",
    "utilization": 0.25,
    "resets_at": 1789066800
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "claude_sdk". |
| `source` | `string` | Required | Must be "claude_code". |
| `record_format` | `string` | Required | Must be "claude_sdk@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.kind` | `string` | Required | Must be "rate_limit". |
| `payload.rate_limit_type` | `string \| null` | Optional |  |
| `payload.resets_at` | `integer \| null` | Optional |  |
| `payload.session_id` | `string \| null` | Optional |  |
| `payload.status` | `string` | Required |  |
| `payload.utilization` | `number \| null` | Optional |  |
| `payload.uuid` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

### Codex JSONL records

`kind: "codex"` and `record_format: "codex_jsonl@1"` identify historical Codex events. Their names use dots, and the payload discriminator is `type`.

<a id="codex-jsonl-thread-started"></a>

### thread.started

Announces the historical native thread identifier.

**Example JSON**

```json
{
  "kind": "codex",
  "source": "codex",
  "record_format": "codex_jsonl@1",
  "record_type": "thread.started",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "thread.started",
    "thread_id": "thread_example"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "thread.started". |
| `payload.thread_id` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-jsonl-turn-started"></a>

### turn.started

Announces a historical native turn beginning.

**Example JSON**

```json
{
  "kind": "codex",
  "source": "codex",
  "record_format": "codex_jsonl@1",
  "record_type": "turn.started",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "turn.started"
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "turn.started". |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-jsonl-item-started"></a>

### item.started

Announces a historical conversation item beginning.

**Example JSON**

```json
{
  "kind": "codex",
  "source": "codex",
  "record_format": "codex_jsonl@1",
  "record_type": "item.started",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "item.started",
    "item": {
      "id": "command_example",
      "type": "command_execution",
      "command": "pytest -q",
      "status": "in_progress",
      "aggregated_output": ""
    }
  },
  "tools": ["Bash"],
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "item.started". |
| `payload.item` | `object` | Required | Matches exactly one variant below. |
| `payload.item.type = "agent_message"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "agent_message".type` | `string` | Required | Must be "agent_message". |
| `payload.item.type = "agent_message".id` | `string \| null` | Optional |  |
| `payload.item.type = "agent_message".text` | `string` | Optional |  |
| `payload.item.type = "reasoning"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "reasoning".type` | `string` | Required | Must be "reasoning". |
| `payload.item.type = "reasoning".id` | `string \| null` | Optional |  |
| `payload.item.type = "reasoning".summary` | `string \| null` | Optional |  |
| `payload.item.type = "reasoning".text` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "command_execution".type` | `string` | Required | Must be "command_execution". |
| `payload.item.type = "command_execution".aggregated_output` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution".command` | `string` | Optional |  |
| `payload.item.type = "command_execution".exit_code` | `integer \| null` | Optional |  |
| `payload.item.type = "command_execution".id` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution".status` | `string \| null` | Optional |  |
| `payload.item.type = "file_change"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "file_change".type` | `string` | Required | Must be "file_change". |
| `payload.item.type = "file_change".changes` | `array<object> \| null` | Optional |  |
| `payload.item.type = "file_change".changes.[]` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "file_change".id` | `string \| null` | Optional |  |
| `payload.item.type = "file_change".status` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "mcp_tool_call".type` | `string` | Required | Must be "mcp_tool_call". |
| `payload.item.type = "mcp_tool_call".id` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".server` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".status` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".tool` | `string \| null` | Optional |  |
| `payload.item.type = "web_search"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "web_search".type` | `string` | Required | Must be "web_search". |
| `payload.item.type = "web_search".id` | `string \| null` | Optional |  |
| `payload.item.type = "web_search".query` | `string \| null` | Optional |  |
| `payload.item.type = "todo_list"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "todo_list".type` | `string` | Required | Must be "todo_list". |
| `payload.item.type = "todo_list".id` | `string \| null` | Optional |  |
| `payload.item.type = "todo_list".items` | `array<object> \| null` | Optional |  |
| `payload.item.type = "todo_list".items.[]` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "error"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "error".type` | `string` | Required | Must be "error". |
| `payload.item.type = "error".id` | `string \| null` | Optional |  |
| `payload.item.type = "error".message` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-jsonl-item-updated"></a>

### item.updated

Supplies an update to an existing historical item.

**Example JSON**

```json
{
  "kind": "codex",
  "source": "codex",
  "record_format": "codex_jsonl@1",
  "record_type": "item.updated",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "item.updated",
    "item": {
      "id": "command_example",
      "type": "command_execution",
      "command": "pytest -q",
      "status": "in_progress",
      "aggregated_output": "Running 12 tests..."
    }
  },
  "tools": ["Bash"],
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "item.updated". |
| `payload.item` | `object` | Required | Matches exactly one variant below. |
| `payload.item.type = "agent_message"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "agent_message".type` | `string` | Required | Must be "agent_message". |
| `payload.item.type = "agent_message".id` | `string \| null` | Optional |  |
| `payload.item.type = "agent_message".text` | `string` | Optional |  |
| `payload.item.type = "reasoning"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "reasoning".type` | `string` | Required | Must be "reasoning". |
| `payload.item.type = "reasoning".id` | `string \| null` | Optional |  |
| `payload.item.type = "reasoning".summary` | `string \| null` | Optional |  |
| `payload.item.type = "reasoning".text` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "command_execution".type` | `string` | Required | Must be "command_execution". |
| `payload.item.type = "command_execution".aggregated_output` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution".command` | `string` | Optional |  |
| `payload.item.type = "command_execution".exit_code` | `integer \| null` | Optional |  |
| `payload.item.type = "command_execution".id` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution".status` | `string \| null` | Optional |  |
| `payload.item.type = "file_change"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "file_change".type` | `string` | Required | Must be "file_change". |
| `payload.item.type = "file_change".changes` | `array<object> \| null` | Optional |  |
| `payload.item.type = "file_change".changes.[]` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "file_change".id` | `string \| null` | Optional |  |
| `payload.item.type = "file_change".status` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "mcp_tool_call".type` | `string` | Required | Must be "mcp_tool_call". |
| `payload.item.type = "mcp_tool_call".id` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".server` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".status` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".tool` | `string \| null` | Optional |  |
| `payload.item.type = "web_search"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "web_search".type` | `string` | Required | Must be "web_search". |
| `payload.item.type = "web_search".id` | `string \| null` | Optional |  |
| `payload.item.type = "web_search".query` | `string \| null` | Optional |  |
| `payload.item.type = "todo_list"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "todo_list".type` | `string` | Required | Must be "todo_list". |
| `payload.item.type = "todo_list".id` | `string \| null` | Optional |  |
| `payload.item.type = "todo_list".items` | `array<object> \| null` | Optional |  |
| `payload.item.type = "todo_list".items.[]` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "error"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "error".type` | `string` | Required | Must be "error". |
| `payload.item.type = "error".id` | `string \| null` | Optional |  |
| `payload.item.type = "error".message` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-jsonl-item-completed"></a>

### item.completed

Supplies a historical item's completed content or outcome.

**Example JSON**

```json
{
  "kind": "codex",
  "source": "codex",
  "record_format": "codex_jsonl@1",
  "record_type": "item.completed",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "item.completed",
    "item": {
      "id": "command_example",
      "type": "command_execution",
      "command": "pytest -q",
      "status": "completed",
      "aggregated_output": "12 passed",
      "exit_code": 0
    }
  },
  "tools": ["Bash"],
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "item.completed". |
| `payload.item` | `object` | Required | Matches exactly one variant below. |
| `payload.item.type = "agent_message"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "agent_message".type` | `string` | Required | Must be "agent_message". |
| `payload.item.type = "agent_message".id` | `string \| null` | Optional |  |
| `payload.item.type = "agent_message".text` | `string` | Optional |  |
| `payload.item.type = "reasoning"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "reasoning".type` | `string` | Required | Must be "reasoning". |
| `payload.item.type = "reasoning".id` | `string \| null` | Optional |  |
| `payload.item.type = "reasoning".summary` | `string \| null` | Optional |  |
| `payload.item.type = "reasoning".text` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "command_execution".type` | `string` | Required | Must be "command_execution". |
| `payload.item.type = "command_execution".aggregated_output` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution".command` | `string` | Optional |  |
| `payload.item.type = "command_execution".exit_code` | `integer \| null` | Optional |  |
| `payload.item.type = "command_execution".id` | `string \| null` | Optional |  |
| `payload.item.type = "command_execution".status` | `string \| null` | Optional |  |
| `payload.item.type = "file_change"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "file_change".type` | `string` | Required | Must be "file_change". |
| `payload.item.type = "file_change".changes` | `array<object> \| null` | Optional |  |
| `payload.item.type = "file_change".changes.[]` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "file_change".id` | `string \| null` | Optional |  |
| `payload.item.type = "file_change".status` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "mcp_tool_call".type` | `string` | Required | Must be "mcp_tool_call". |
| `payload.item.type = "mcp_tool_call".id` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".server` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".status` | `string \| null` | Optional |  |
| `payload.item.type = "mcp_tool_call".tool` | `string \| null` | Optional |  |
| `payload.item.type = "web_search"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "web_search".type` | `string` | Required | Must be "web_search". |
| `payload.item.type = "web_search".id` | `string \| null` | Optional |  |
| `payload.item.type = "web_search".query` | `string \| null` | Optional |  |
| `payload.item.type = "todo_list"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "todo_list".type` | `string` | Required | Must be "todo_list". |
| `payload.item.type = "todo_list".id` | `string \| null` | Optional |  |
| `payload.item.type = "todo_list".items` | `array<object> \| null` | Optional |  |
| `payload.item.type = "todo_list".items.[]` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "error"` | `object` |  | Additional properties are allowed. |
| `payload.item.type = "error".type` | `string` | Required | Must be "error". |
| `payload.item.type = "error".id` | `string \| null` | Optional |  |
| `payload.item.type = "error".message` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-jsonl-turn-completed"></a>

### turn.completed

Reports successful historical turn completion and usage.

**Example JSON**

```json
{
  "kind": "codex",
  "source": "codex",
  "record_format": "codex_jsonl@1",
  "record_type": "turn.completed",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "turn.completed",
    "usage": {
      "input_tokens": 1200,
      "output_tokens": 80,
      "cached_input_tokens": 0
    }
  },
  "tools": null,
  "tokens_info": {
    "input_tokens": 1200,
    "output_tokens": 80,
    "cache_read_input_tokens": 0,
    "cache_creation_input_tokens": 0,
    "num_turns": 0,
    "cost_usd": 0
  },
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "turn.completed". |
| `payload.usage` | `object \| null` | Optional | Additional properties are allowed. |
| `payload.usage.cache_write_input_tokens` | `integer` | Optional |  |
| `payload.usage.cached_input_tokens` | `integer` | Optional |  |
| `payload.usage.input_tokens` | `integer` | Optional |  |
| `payload.usage.output_tokens` | `integer` | Optional |  |
| `payload.usage.reasoning_output_tokens` | `integer` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-jsonl-turn-failed"></a>

### turn.failed

Reports a failed historical turn with its error.

**Example JSON**

```json
{
  "kind": "codex",
  "source": "codex",
  "record_format": "codex_jsonl@1",
  "record_type": "turn.failed",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "turn.failed",
    "error": {
      "message": "The model request timed out."
    }
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "turn.failed". |
| `payload.error` | `object \| null` | Optional | Additional properties are allowed. |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

<a id="codex-jsonl-error"></a>

### error

Reports a historical native error.

**Example JSON**

```json
{
  "kind": "codex",
  "source": "codex",
  "record_format": "codex_jsonl@1",
  "record_type": "error",
  "id": "record_example",
  "session_id": "session_example",
  "message_id": "message_example",
  "feed_seq": 12,
  "payload": {
    "type": "error",
    "message": "The model request timed out."
  },
  "tools": null,
  "tokens_info": null,
  "cost": null,
  "duration": null,
  "model": null,
  "created_at": "2026-09-10T14:00:00Z"
}
```

**Field specification**

| Field | Type | Presence | Details |
| --- | --- | --- | --- |
| `kind` | `string` | Required | Must be "codex". |
| `source` | `string` | Required | Must be "codex". |
| `record_format` | `string` | Required | Must be "codex_jsonl@1". |
| `record_type` | `string` | Required | Original record type within its format. |
| `payload` | `object` | Required | Additional properties are allowed. |
| `payload.type` | `string` | Required | Must be "error". |
| `payload.message` | `string \| null` | Optional |  |
| `cost` | `integer \| null` | Required |  |
| `created_at` | `string` | Required | Format: date-time. |
| `duration` | `integer \| null` | Required |  |
| `feed_seq` | `integer` | Required | Position in the session feed and the stream's resume cursor. |
| `id` | `string` | Required | Unique identifier of the record. |
| `message_id` | `string \| null` | Required | The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing. |
| `model` | `string \| null` | Required |  |
| `session_id` | `string` | Required | Session containing this record. |
| `tokens_info` | `object \| null` | Required | Additional properties are not allowed. |
| `tokens_info.cache_creation_input_tokens` | `integer` | Optional |  |
| `tokens_info.cache_read_input_tokens` | `integer` | Optional |  |
| `tokens_info.cost_usd` | `number` | Optional |  |
| `tokens_info.input_tokens` | `integer` | Optional |  |
| `tokens_info.num_turns` | `integer` | Optional |  |
| `tokens_info.output_tokens` | `integer` | Optional |  |
| `tools` | `array<string> \| null` | Required |  |
| `tools.[]` | `string` |  |  |

## Unknown records

A record with `kind: "unknown"` retains its original `source`, `record_format`, `record_type`, and JSON payload. This includes new native methods, new content variants, payloads that the current typed schema cannot interpret, and platform record types from older sessions that are no longer produced. The additional Codex notifications above show this shape.

Keep unknown records in the ordered feed and advance your cursor past them even if your UI does not render them. Preserve unknown payload fields when storing or relaying events. Ignore unknown outer WebSocket frame types and unknown delta kinds.

For a consumer that renders tool activity, inspect the native message's content blocks or Codex item's type; an unrecognized block or item should not prevent reading the rest of the session.
