Agent schema reference
Complete agent examples, typed inputs and outputs, and field reference.
An agent file has 4 top-level blocks: ellipsis, optional trigger, optional input, and session. Set ellipsis.kind to agent. Unknown fields fail validation. See Agents for how files deploy and run.
Scheduled test checks
Every night at 02:00 UTC, a session runs the tests and reports failures without changing code.
React to a pull request
Each push to a non-draft pull request in api-repo that changes src/routes/ starts a session. The trigger decides which events match; the environment decides which repositories are checked out.
Typed input and output
Start it with {"input":{"description":"Reject expired reset tokens"}} instead of a prompt. Read the validated result from GET /v1/sessions/{session_id}/output.
Structured output works with the models that list it in GET /v1/account/models.
Add a Codex skill
A skill is a directory with a SKILL.md file that gives Codex a reusable procedure and its supporting files:
SKILL.md needs YAML frontmatter with a description. Ellipsis reads the skill from the session's checkout of that repository, or from its default branch when the repository isn't in the session. A missing or invalid skill fails the session.
A session can have up to 10 skills. Each skill can have up to 50 files, 64 KiB per file, and 512 KiB in total.
Budgets
Values are US dollars. session caps each session. day, week, and month cap this agent's total spend over the last 1, 7, and 28 days. Handlers take the same fields. Account limits also apply; see Budgets.
Fields
Identifies the file.
One cron or react trigger; omit to start only on demand. See Triggers.
Typed input for sessions you start; see Typed input and output.
The session each run starts.
In input.message, {{field}} inserts a field from the input. Triggered agents can insert event fields the same way. Every reference must exist in the input schema or the trigger's event.
See Models, the Environment schema reference, and Permissions.