# Authentication
> Create an API key and authenticate requests.
Source: https://www.ellipsis.dev/docs/api/authentication
Create a key under **API > API keys** in the dashboard. Copy the secret when it is shown; it cannot be retrieved later.
## Bearer token
Store the key in `ELLIPSIS_API_TOKEN`:
```bash
export ELLIPSIS_API_TOKEN="ellipsis_key_..."
```
Send it on each request:
```bash
curl https://api.ellipsis.dev/v1/identity -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```
The identity response identifies the account and credential. An API key acts for its account, with no individual user identity.
## Permissions
An invalid or revoked token returns `401`. A valid credential without access returns `403`.
Account financial settings require an owner or organization administrator's user credential. API keys and sandbox credentials cannot change them.
Revoke a key from the dashboard when it is no longer needed. Keep keys on your server; do not embed them in browser code or committed configuration.
---
# API overview
> Start agent sessions and manage agents with the CLI, Python, TypeScript, or curl.
Source: https://www.ellipsis.dev/docs/api
## Guides
- [Quick start](/docs/api/quick-start): Start your first agent session
- [Authentication](/docs/api/authentication): Create and use an API key
- [Python SDK](/docs/api/python-sdk): Handles, streaming, and typed errors
- [TypeScript SDK](/docs/api/typescript-sdk): Handles, streaming, and typed errors
- [MCP server](/docs/api/mcp): Use Ellipsis from Claude Code or Codex
- [CLI](https://github.com/ellipsis-dev/cli#readme): Commands and flags
- [Session events](/docs/api/session-events): Every event a session emits
## Reference
- [Agents](/docs/api/agents): Create, edit, and start agents
- [Sessions](/docs/api/sessions): Follow sessions and read their output
- [Environments](/docs/api/environments): Define where agents run
- [Secrets](/docs/api/secrets): Store credentials for environments
- [Account](/docs/api/account): Check budgets, usage, and models
- [Integrations](/docs/api/integrations): List connected services and repositories
- [OpenAPI](/openapi.v1.json): Full schema, including dashboard endpoints
---
# MCP server
> Start and follow Ellipsis sessions from Claude Code, Codex, or another MCP client.
Source: https://www.ellipsis.dev/docs/api/mcp
Ellipsis hosts an MCP server at `https://mcp.ellipsis.dev`. Each tool calls one Agents API endpoint as you, so an agent on your machine can start a session, follow it, send it follow-ups, and read code reviews.
## Connect a client
Any MCP client that supports OAuth connects with the same address. Add the server to Claude Code, then run `/mcp` in Claude Code and choose `ellipsis` to log in.
```bash
claude mcp add --transport http ellipsis https://mcp.ellipsis.dev
```
Add the server to Codex.
```bash
codex mcp add ellipsis --url https://mcp.ellipsis.dev
```
Then log in.
```bash
codex mcp login ellipsis
```
Logging in opens **Authorize MCP** in the dashboard. Choose the account, and the client gets a token that lasts 90 days. Sessions the client starts are attributed to you in that account. When the token expires, log in again.
## Connect with an API key
A client can send an [API key](/docs/api/authentication) as a bearer token instead of logging in. Use this on a machine without a browser.
```bash
claude mcp add --transport http ellipsis https://mcp.ellipsis.dev --header "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```
```bash
codex mcp add ellipsis --url https://mcp.ellipsis.dev --bearer-token-env-var ELLIPSIS_API_TOKEN
```
## Tools
Each tool takes the endpoint's path parameters, query parameters, and `body`, and returns the endpoint's JSON response. An API error returns as a tool error with its status code and message.
| Tool | Endpoint |
| --- | --- |
| `get_identity` | [`GET /v1/identity`](/docs/api/platform/get-identity) |
| `get_account_usage` | [`GET /v1/account/usage`](/docs/api/account/get-account-usage) |
| `get_account_budget` | [`GET /v1/account/budget`](/docs/api/account/get-account-budget) |
| `list_account_models` | [`GET /v1/account/models`](/docs/api/account/get-account-models) |
| `list_environments` | [`GET /v1/environments`](/docs/api/environments/get-environments) |
| `get_environment` | [`GET /v1/environments/{id}`](/docs/api/environments/get-environments-id) |
| `create_environment` | [`POST /v1/environments`](/docs/api/environments/post-environments) |
| `list_agents` | [`GET /v1/agents`](/docs/api/agents/get-agents) |
| `get_agent` | [`GET /v1/agents/{id}`](/docs/api/agents/get-agents-id) |
| `create_agent` | [`POST /v1/agents`](/docs/api/agents/post-agents) |
| `start_session` | [`POST /v1/sessions`](/docs/api/sessions/post-sessions) |
| `start_agent_session` | [`POST /v1/agents/{id}/sessions`](/docs/api/agents/post-agents-id-sessions) |
| `list_sessions` | [`GET /v1/sessions`](/docs/api/sessions/get-sessions) |
| `get_session` | [`GET /v1/sessions/{id}`](/docs/api/sessions/get-sessions-id) |
| `send_session_message` | [`POST /v1/sessions/{id}/messages`](/docs/api/sessions/post-sessions-id-messages) |
| `stop_session` | [`POST /v1/sessions/{id}/stop`](/docs/api/sessions/post-sessions-id-stop) |
| `list_reviews` | [`GET /v1/reviews`](/docs/api/reviews/get-reviews) |
| `list_review_configs` | [`GET /v1/reviews/configs`](/docs/api/reviews/get-reviews-configs) |
| `get_review` | [`GET /v1/reviews/{id}`](/docs/api/reviews/get-reviews-id) |
---
# Python SDK
> Start sessions, stream records, and invoke agents from Python.
Source: https://www.ellipsis.dev/docs/api/python-sdk
The Python SDK is a client for the `/v1` API with session handles, streaming, pagination, and typed errors.
## Install
Python 3.10 or newer. The `stream` extra enables live session streaming.
```bash
pip install 'ellipsis-dev[stream]'
```
## Start a session
```python
import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
handle = client.sessions.run(
claude_code={
"model": "claude-opus-5-5",
"prompt": "Run the tests and report failures.",
},
environment="api-environment",
conversation={"interactive": False},
budget={"session": 3},
)
ended = handle.wait(timeout=900)
print(ended.status, ended.error)
```
`run` returns a handle while work continues. `wait` polls until the session is `idle` or `closed` and returns how the prompt's message ended (`completed`, `failed`, `stopped`, or `cancelled`), or `None` when the session has no message. A timeout stops waiting and leaves the session running.
Use `sessions.handle(session_id)` to attach to an existing session.
## Continue a conversation
Leave `conversation.interactive` enabled to accept messages:
```python
handle = client.sessions.run(
claude_code={
"model": "claude-opus-5-5",
"prompt": "Investigate the failing validation test.",
},
environment="api-environment",
budget={"session": 5},
)
handle.wait(timeout=900)
message = handle.send("Add a regression test.", idempotency_key="add-test")
ended = handle.wait(timeout=900)
print(message.id, ended.status)
```
`send` returns the message, and `wait` then waits for it to be answered. The same message key is accepted once per session. A message sent while the agent is working is answered after the one it is on. `handle.stop()` ends the message the agent is on with `stopped` and cancels queued ones. It fails with `409` when the session is `idle` or `closed`.
## Start an agent session
Start an agent session as written:
```python
response = client.agents.start("test-repair")
ended = client.sessions.handle(response.session.id).wait()
print(ended.status, ended.error)
```
Send any field of a session start to replace the agent's value for that session:
```python
response = client.agents.start("test-repair", budget={"session": 5})
```
For an agent with an input schema, pass `input`:
```python
response = client.agents.start(
"classify-change",
input={"description": "Reject expired reset tokens"},
)
```
## Stream a session
See [Session events](/docs/api/session-events) for every modeled event and complete JSON examples.
```python
import asyncio
import os
from ellipsis import AsyncEllipsis
async def main():
async with AsyncEllipsis(
api_key=os.environ["ELLIPSIS_API_TOKEN"]
) as client:
handle = await client.sessions.run(
claude_code={
"model": "claude-opus-5-5",
"prompt": "Explain how to test a request validator.",
},
conversation={"interactive": False},
)
outcome = await handle.stream(lambda frame: print(frame.type))
print(outcome.type)
asyncio.run(main())
```
Use `AsyncEllipsis` for asynchronous requests and streaming. Complete records persist; partial text deltas are live-only.
## Read results
```python
for record in client.sessions.records(handle.id):
if record.kind == "platform" and record.record_type == "message_ended":
print(record.message_id, record.payload.status, record.payload.cost.total)
for session in client.sessions.list(days=7):
print(session.id, session.status)
```
`records` returns everything that happened in a session, oldest first. That includes the messages sent to it, the platform's own events, and the agent's output. Pass `message_id` to keep one message's records. SDK page iterators fetch every page. For manual pagination, use `items`, `has_more`, and `next_cursor`.
## Errors
```python
from ellipsis import APIError
try:
client.sessions.get("session_missing")
except APIError as error:
print(error.status, error.code)
```
The client defaults to a 60-second request timeout and 2 retries for transport errors, `429`, `502`, `503`, and `504`. Configure `timeout` and `max_retries` when creating it. Each session start and message gets its own `idempotency_key` unless you pass one, so a retry never starts a second session or sends a message twice.
---
# Quick start
> Start your first agent session from the CLI, Python, TypeScript, or curl.
Source: https://www.ellipsis.dev/docs/api/quick-start
## Get started
Install the CLI or an SDK:
```bash title="CLI"
curl -fsSL https://ellipsis.dev/install.sh | sh
```
```bash title="Python"
pip install ellipsis-dev
```
```bash title="TypeScript"
npm install @ellipsis-dev/sdk
```
Sign in with device auth. The CLI opens your browser to approve the login:
```bash
el auth login
```
For CI, the SDKs, and curl, export an API key from **API > API keys** in the dashboard:
```bash
export ELLIPSIS_API_TOKEN="ellipsis_key_..."
```
## Start an agent session
Start the `classify-change` agent:
```bash title="CLI"
el agent start classify-change --input '{"description": "Reject expired reset tokens"}'
```
```python
import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
change = {"description": "Reject expired reset tokens"}
response = client.agents.start("classify-change", input=change)
print(response.session.id)
```
```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';
const apiKey = process.env.ELLIPSIS_API_TOKEN!;
const client = new Ellipsis({ apiKey });
const input = { description: 'Reject expired reset tokens' };
const { session } = await client.agents.start('classify-change', { input });
console.log(session.id);
```
```bash title="cURL"
curl https://api.ellipsis.dev/v1/agents/classify-change/sessions -H "Authorization: Bearer $ELLIPSIS_API_TOKEN" -H "Content-Type: application/json" -d '{"input": {"description": "Reject expired reset tokens"}}'
```
[Typed input and output](/docs/agents/schema#typed-input-and-output) defines it. An agent with no input schema takes `prompt` instead of `input`.
Wait for it to finish:
```bash title="CLI"
el session get --watch
```
```python
handle = client.sessions.handle("your-session-id")
ended = handle.wait()
print(ended.status)
```
```typescript
const handle = await client.sessions.handle('your-session-id');
const ended = await handle.wait();
console.log(ended?.status);
```
```bash title="cURL"
# Repeat until session.status is idle or closed
curl https://api.ellipsis.dev/v1/sessions/your-session-id -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```
`wait` and `--watch` return when the session is `idle` or `closed`. `wait` returns how the message ended, one of `completed`, `failed`, `stopped`, or `cancelled`. `--watch` exits `0` only when the session has no `error`.
Read the output:
```python
print(client.sessions.get("your-session-id").session.output.result)
```
```typescript
console.log((await client.sessions.get('your-session-id')).session.output?.result);
```
```bash title="cURL"
curl https://api.ellipsis.dev/v1/sessions/your-session-id -H "Authorization: Bearer $ELLIPSIS_API_TOKEN" | jq .session.output.result
```
It matches the agent's `output.json_schema` and is `null` until the agent submits it.
```json
{
"category": "bugfix",
"reason": "Rejecting expired reset tokens closes a validation gap."
}
```
## Errors and retries
- Errors return `{"error": {"code": "...", "message": "..."}}`. Branch on `code`, not `message`.
- Retry `429` after `Retry-After`, and `5xx` with backoff.
- A start that times out can still succeed. Send the same `idempotency_key` when you retry it, and you get back the session the first request started. Keys are kept for 90 days.
## Pagination
- Paginated routes take `limit` and `cursor`.
- Pass `next_cursor` until `has_more` is `false`.
- SDK iterators fetch every page.
---
# Session events
> Every modeled session event, with JSON examples for platform, harness, and streaming consumers.
Source: https://www.ellipsis.dev/docs/api/session-events
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 identifies the external event that started 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.models 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).
### 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` | 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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` | 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| 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.
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | Required | Matches at least one variant below. |
| `payload.message.content.variant 1` | `string` | | |
| `payload.message.content.variant 2` | `array` | | |
| `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 \| 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` | | |
| `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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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 \| 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` | | |
| `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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| 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.
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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` | 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` | Optional | |
| `payload.params.item.type = "reasoning".content.[]` | `string` | | |
| `payload.params.item.type = "reasoning".id` | `string` | Required | |
| `payload.params.item.type = "reasoning".summary` | `array` | 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` | 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` | 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` | 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` | 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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` | 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` | Optional | |
| `payload.params.item.type = "reasoning".content.[]` | `string` | | |
| `payload.params.item.type = "reasoning".id` | `string` | Required | |
| `payload.params.item.type = "reasoning".summary` | `array` | 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` | 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` | 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` | 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` | 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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 \| null` | Required | |
| `tools.[]` | `string` | | |
### 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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` | 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 \| 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.
### 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` | 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). |
### 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",
"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,
"attribution": {
"type": "api_key",
"id": "key_example",
"user": null
},
"budget": 300000,
"agent": null,
"handler": 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_servers": []
},
"metadata": {
"labels": [],
"annotations": {}
},
"scm": {
"github": null
},
"summary": {
"created_at": "2026-09-10T14:00:12Z",
"description": "run test suite",
"source": "generated"
},
"permissions": {
"ellipsis": true,
"github": {
"permissions": null,
"repositories": null
}
},
"skills": [],
"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. Additional properties are allowed. |
| `session.agent.config` | `object` | Required | The agent definition the session was started from, frozen when the session was created. Additional properties are not allowed. |
| `session.agent.config.ellipsis` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.ellipsis.kind` | `string` | Required | Must be "agent". |
| `session.agent.config.ellipsis.description` | `string \| null` | Required | |
| `session.agent.config.ellipsis.enabled` | `boolean` | Required | |
| `session.agent.config.ellipsis.metadata` | `object` | Required | Additional properties are not allowed. |
| `session.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.config.ellipsis.metadata.annotations.[key]` | `string` | | |
| `session.agent.config.ellipsis.metadata.labels` | `array` | Required | Names to tag and filter by. |
| `session.agent.config.ellipsis.metadata.labels.[]` | `string` | | |
| `session.agent.config.ellipsis.name` | `string \| null` | Required | |
| `session.agent.config.ellipsis.version` | `string` | Required | |
| `session.agent.config.input` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.input.json_schema` | `object \| null` | Required | Additional properties are allowed. |
| `session.agent.config.input.message` | `string \| null` | Required | |
| `session.agent.config.session` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.session.budget` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.session.budget.day` | `number \| null` | Required | The most the agent may spend over the last day, in US dollars. |
| `session.agent.config.session.budget.month` | `number \| null` | Required | The most the agent may spend over the last 28 days, in US dollars. |
| `session.agent.config.session.budget.session` | `number \| null` | Required | The most one session may spend, in US dollars. Greater than: 0. |
| `session.agent.config.session.budget.week` | `number \| null` | Required | The most the agent may spend over the last 7 days, in US dollars. |
| `session.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.config.session.claude_code.effort` | `string \| null` | Required | Allowed values: "low", "medium", "high", "xhigh", "max". |
| `session.agent.config.session.claude_code.fallback_model` | `string \| null` | Required | |
| `session.agent.config.session.claude_code.max_turns` | `integer \| null` | Required | Greater than: 0. |
| `session.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.config.session.claude_code.prompt` | `string \| null` | Required | The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one. |
| `session.agent.config.session.claude_code.settings` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.session.claude_code.settings.path` | `string` | Required | |
| `session.agent.config.session.claude_code.settings.repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.session.claude_code.settings.repository.name` | `string` | Required | |
| `session.agent.config.session.claude_code.settings.repository.owner` | `string \| null` | Required | |
| `session.agent.config.session.claude_code.settings.repository.ref` | `string \| null` | Required | |
| `session.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.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.config.session.codex.model` | `string` | Required | The model the session runs on: a Responses-capable id from the models table. Required. |
| `session.agent.config.session.codex.prompt` | `string \| null` | Required | The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one. |
| `session.agent.config.session.conversation` | `object` | Required | Additional properties are not allowed. |
| `session.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.config.session.environment` | `string \| object` | Required | Matches at least one variant below. |
| `session.agent.config.session.environment.variant 1` | `string` | | |
| `session.agent.config.session.environment.variant 2` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.compute` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.compute.cpu` | `integer \| null` | Required | Minimum: 2. Maximum: 32. |
| `session.agent.config.session.environment.variant 2.compute.idle` | `string \| null` | Required | |
| `session.agent.config.session.environment.variant 2.compute.memory` | `string \| object \| null` | Required | Matches at least one variant below. |
| `session.agent.config.session.environment.variant 2.compute.memory.variant 1` | `string` | | |
| `session.agent.config.session.environment.variant 2.compute.memory.variant 2` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.compute.memory.variant 2.gb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.config.session.environment.variant 2.compute.memory.variant 2.mb` | `integer \| null` | Required | Minimum: 0. |
| `session.agent.config.session.environment.variant 2.compute.timeout` | `string \| null` | Required | |
| `session.agent.config.session.environment.variant 2.hooks` | `object` | Required | Additional properties are not allowed. |
| `session.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.config.session.environment.variant 2.hooks.after_checkout.variant 1` | `object` | | Additional properties are not allowed. |
| `session.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.config.session.environment.variant 2.hooks.after_checkout.variant 2` | `string` | | |
| `session.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.config.session.environment.variant 2.hooks.before_start.variant 1` | `object` | | Additional properties are not allowed. |
| `session.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.config.session.environment.variant 2.hooks.before_start.variant 2` | `string` | | |
| `session.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.config.session.environment.variant 2.hooks.build_base.variant 1` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.hooks.build_base.variant 1.inputs` | `array \| 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.config.session.environment.variant 2.hooks.build_base.variant 1.inputs.[]` | `string` | | |
| `session.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.config.session.environment.variant 2.hooks.build_base.variant 2` | `string` | | |
| `session.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.config.session.environment.variant 2.hooks.post_start` | `string \| null` | Required | Legacy session startup script. Use before_start in new configurations. |
| `session.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.config.session.environment.variant 2.hooks.validate.variant 1` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.hooks.validate.variant 1.run` | `string` | Required | Shell script to run in the workspace directory `/sandbox`. |
| `session.agent.config.session.environment.variant 2.hooks.validate.variant 2` | `string` | | |
| `session.agent.config.session.environment.variant 2.mcp_servers` | `array` | Required | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[]` | `string \| object` | | Matches at least one variant below. |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 1` | `string` | | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 2` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 2.name` | `string` | Required | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 3` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 3.args` | `array` | Required | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 3.args.[]` | `string` | | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 3.command` | `string` | Required | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 3.env` | `object` | Required | Additional properties are allowed. |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 3.env.[key]` | `string` | | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 3.name` | `string` | Required | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 4` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 4.headers` | `object` | Required | Additional properties are allowed. |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 4.headers.[key]` | `string` | | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 4.name` | `string` | Required | |
| `session.agent.config.session.environment.variant 2.mcp_servers.[].variant 4.url` | `string` | Required | |
| `session.agent.config.session.environment.variant 2.repositories` | `array` | Required | |
| `session.agent.config.session.environment.variant 2.repositories.[]` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.repositories.[].name` | `string` | Required | |
| `session.agent.config.session.environment.variant 2.repositories.[].owner` | `string \| null` | Required | |
| `session.agent.config.session.environment.variant 2.repositories.[].ref` | `string \| null` | Required | |
| `session.agent.config.session.environment.variant 2.variables` | `array` | Required | |
| `session.agent.config.session.environment.variant 2.variables.[]` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.environment.variant 2.variables.[].name` | `string` | Required | |
| `session.agent.config.session.environment.variant 2.variables.[].value` | `string \| null` | Required | |
| `session.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.config.session.gemini.model` | `string` | Required | The model the session runs on: a Gemini id from the models table. Required. |
| `session.agent.config.session.gemini.prompt` | `string \| null` | Required | The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one. |
| `session.agent.config.session.metadata` | `object` | Required | Labels and annotations stored on every session. Additional properties are not allowed. |
| `session.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.config.session.metadata.annotations.[key]` | `string` | | |
| `session.agent.config.session.metadata.labels` | `array` | Required | Names to tag and filter by. |
| `session.agent.config.session.metadata.labels.[]` | `string` | | |
| `session.agent.config.session.output` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.session.output.json_schema` | `object` | Required | Additional properties are allowed. |
| `session.agent.config.session.permissions` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.session.permissions.ellipsis` | `any JSON value \| object` | Required | Matches at least one variant below. |
| `session.agent.config.session.permissions.ellipsis.variant 1` | `any JSON value` | | Allowed values: true, "all". |
| `session.agent.config.session.permissions.ellipsis.variant 2` | `object` | | Additional properties are allowed. Allowed keys: "account", "alerts", "sessions", "configs", "defaults", "environments", "secrets", "integrations", "reviews", "tokens", "webhooks", "user". |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key]` | `string \| object \| array` | | Matches at least one variant below. |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 1` | `string` | | Allowed values: "read", "write", "delete". |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 2` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 2.level` | `string` | Required | Allowed values: "read", "write", "delete". |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 2.match` | `array \| null` | Required | |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 2.match.[]` | `string` | | |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 3` | `array` | | |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 3.[]` | `string \| object` | | Matches at least one variant below. |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 3.[].variant 1` | `string` | | Allowed values: "read", "write", "delete". |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 3.[].variant 2` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 3.[].variant 2.level` | `string` | Required | Allowed values: "read", "write", "delete". |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 3.[].variant 2.match` | `array \| null` | Required | |
| `session.agent.config.session.permissions.ellipsis.variant 2.[key].variant 3.[].variant 2.match.[]` | `string` | | |
| `session.agent.config.session.permissions.github` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.session.permissions.github.permissions` | `string \| object \| null` | Required | Matches at least one variant below. |
| `session.agent.config.session.permissions.github.permissions.variant 1` | `string` | | Must be "read_only". |
| `session.agent.config.session.permissions.github.permissions.variant 2` | `object` | | Additional properties are allowed. |
| `session.agent.config.session.permissions.github.permissions.variant 2.[key]` | `string` | | |
| `session.agent.config.session.permissions.github.repositories` | `array \| null` | Required | |
| `session.agent.config.session.permissions.github.repositories.[]` | `string` | | |
| `session.agent.config.session.skills` | `array` | Required | |
| `session.agent.config.session.skills.[]` | `object` | | Additional properties are not allowed. |
| `session.agent.config.session.skills.[].path` | `string` | Required | |
| `session.agent.config.session.skills.[].repository` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.session.skills.[].repository.name` | `string` | Required | |
| `session.agent.config.session.skills.[].repository.owner` | `string \| null` | Required | |
| `session.agent.config.session.skills.[].repository.ref` | `string \| null` | Required | |
| `session.agent.config.trigger` | `object \| null` | Required | Matches exactly one variant below. |
| `session.agent.config.trigger.type = "cron"` | `object` | | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "cron".type` | `string` | Required | Must be "cron". |
| `session.agent.config.trigger.type = "cron".enabled` | `boolean` | Required | |
| `session.agent.config.trigger.type = "cron".schedule` | `string` | Required | |
| `session.agent.config.trigger.type = "react"` | `object` | | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".type` | `string` | Required | Must be "react". |
| `session.agent.config.trigger.type = "react".check_run` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".check_run.branch` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_run.branch.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".check_run.for.bots` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".check_run.for.bots.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_run.for.bots.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.for.bots.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".check_run.for.bots.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".check_run.for.bots.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.for.bots.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".check_run.for.bots.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".check_run.for.bots.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".check_run.for.bots.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.for.teams` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_run.for.teams.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.for.users` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".check_run.for.users.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_run.for.users.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.for.users.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".check_run.for.users.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".check_run.for.users.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.for.users.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".check_run.for.users.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".check_run.for.users.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".check_run.for.users.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.names` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_run.names.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.on` | `array` | Required | |
| `session.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.config.trigger.type = "react".check_run.repositories` | `object \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".check_run.repositories.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_run.repositories.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.repositories.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_run.repositories.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_run.repositories.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".check_run.repositories.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".check_suite.apps` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_suite.apps.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.branch` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_suite.branch.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".check_suite.for.bots` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".check_suite.for.bots.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_suite.for.bots.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.bots.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".check_suite.for.bots.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.bots.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.bots.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.bots.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.bots.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.bots.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.teams` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_suite.for.teams.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.users` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".check_suite.for.users.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_suite.for.users.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.users.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".check_suite.for.users.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.users.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.users.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.users.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.users.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".check_suite.for.users.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.on` | `array` | Required | |
| `session.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.config.trigger.type = "react".check_suite.repositories` | `object \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".check_suite.repositories.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_suite.repositories.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.repositories.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".check_suite.repositories.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".check_suite.repositories.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".check_suite.repositories.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".enabled` | `boolean` | Required | |
| `session.agent.config.trigger.type = "react".issue` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".issue.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".issue.for.bots` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".issue.for.bots.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".issue.for.bots.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.for.bots.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".issue.for.bots.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".issue.for.bots.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.for.bots.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".issue.for.bots.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".issue.for.bots.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".issue.for.bots.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.for.teams` | `array` | Required | |
| `session.agent.config.trigger.type = "react".issue.for.teams.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.for.users` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".issue.for.users.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".issue.for.users.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.for.users.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".issue.for.users.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".issue.for.users.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.for.users.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".issue.for.users.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".issue.for.users.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".issue.for.users.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.labels` | `array` | Required | |
| `session.agent.config.trigger.type = "react".issue.labels.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.on` | `array` | Required | |
| `session.agent.config.trigger.type = "react".issue.on.[]` | `string` | | Allowed values: "opened", "closed", "commented". |
| `session.agent.config.trigger.type = "react".issue.repositories` | `object \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".issue.repositories.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".issue.repositories.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.repositories.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".issue.repositories.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".issue.repositories.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".issue.repositories.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".linear_issue.assignee` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.assignee.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.assignee.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.assignee.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.assignee.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.assignee.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.assignee.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.assignee.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.from` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.from.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.from.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.from.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.from.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.to` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.to.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.to.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.to.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.assignee.to.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.added` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.labels.added.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.added.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.added.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.added.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.added.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.added.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.added.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.removed` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.removed.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.removed.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.removed.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.labels.removed.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.from` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.priority.from.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.from.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.from.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.from.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.from.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.from.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.from.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.to` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.priority.to.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.to.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.to.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.to.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.to.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.to.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.priority.to.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.from` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.project.from.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.from.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.from.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.from.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.from.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.from.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.from.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.to` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.project.to.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.to.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.to.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.to.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.to.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.to.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.project.to.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.from` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.state.from.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.from.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.from.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.from.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.from.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.from.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.from.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.to` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.changed.state.to.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.to.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.to.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.to.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.to.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.to.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.changed.state.to.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.for.bots.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.bots.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.teams` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.for.teams.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.users` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.for.users.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.for.users.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.users.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".linear_issue.for.users.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.users.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.users.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.users.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.users.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.for.users.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.labels` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.labels.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.labels.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.labels.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.labels.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.labels.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.labels.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.labels.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.on` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.on.[]` | `string` | | Allowed values: "opened", "updated". |
| `session.agent.config.trigger.type = "react".linear_issue.priority` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.priority.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.priority.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.priority.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.priority.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.priority.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.priority.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.priority.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.project` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.project.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.project.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.project.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.project.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.project.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.project.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.project.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.state` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.state.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.state.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.state.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.state.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.state.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.state.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.state.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.team` | `object \| array \| string \| null` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".linear_issue.team.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.team.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.team.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".linear_issue.team.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.team.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".linear_issue.team.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".linear_issue.team.variant 3` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".pull_request.base` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.base.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.draft` | `boolean \| null` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".pull_request.for.bots` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".pull_request.for.bots.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.for.bots.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.bots.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".pull_request.for.bots.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.bots.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.bots.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.bots.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.bots.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.bots.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.teams` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.for.teams.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.users` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".pull_request.for.users.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.for.users.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.users.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".pull_request.for.users.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.users.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.users.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.users.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.users.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".pull_request.for.users.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.head` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.head.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.labels` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.labels.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.on` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.on.[]` | `string` | | Allowed values: "opened", "pushed", "merged", "closed", "review_submitted", "commented". |
| `session.agent.config.trigger.type = "react".pull_request.paths` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.paths.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.repositories` | `object \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".pull_request.repositories.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.repositories.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.repositories.variant 1.include` | `array` | Required | |
| `session.agent.config.trigger.type = "react".pull_request.repositories.variant 1.include.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".pull_request.repositories.variant 2` | `array` | | |
| `session.agent.config.trigger.type = "react".pull_request.repositories.variant 2.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".push` | `object \| null` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".push.branch` | `array` | Required | |
| `session.agent.config.trigger.type = "react".push.branch.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".push.for` | `object` | Required | Additional properties are not allowed. |
| `session.agent.config.trigger.type = "react".push.for.bots` | `object \| boolean \| array` | Required | Matches at least one variant below. |
| `session.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.config.trigger.type = "react".push.for.bots.variant 1.exclude` | `array` | Required | |
| `session.agent.config.trigger.type = "react".push.for.bots.variant 1.exclude.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".push.for.bots.variant 1.include` | `array \| boolean` | Required | Matches at least one variant below. |
| `session.agent.config.trigger.type = "react".push.for.bots.variant 1.include.variant 1` | `array` | | |
| `session.agent.config.trigger.type = "react".push.for.bots.variant 1.include.variant 1.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".push.for.bots.variant 1.include.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".push.for.bots.variant 2` | `boolean` | | |
| `session.agent.config.trigger.type = "react".push.for.bots.variant 3` | `array` | | |
| `session.agent.config.trigger.type = "react".push.for.bots.variant 3.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".push.for.teams` | `array` | Required | |
| `session.agent.config.trigger.type = "react".push.for.teams.[]` | `string` | | |
| `session.agent.config.trigger.type = "react".push.for.users` | `object \| boolean \| array