Skip to main content
Use agents() or hosted().agents for registered custom agents. Built-in harness capabilities come from meta(). Examples use a configured client. Python examples run inside an async function.

create

Register a custom agent from an install script or local directory.
Returns: Agent. See agent fields.
The build has internet access but no secrets. Its dependencies must be publicly fetchable, and installation must leave executables under $PREFIX/bin. Read custom agents for the run contract.

list

Browse registered agents visible in the chosen scope.
Returns: AgentPage when awaited; an Agent per iteration.
Page fields are items, nextCursor, hasMore in TypeScript; items, next_cursor, has_more in Python.

get

Read a registered agent by name.
Returns: Agent.
name is a required string. This reads registered agents; use meta() to discover built-in harnesses.

upsert

Create or fully replace the registration under a name.
Returns: Agent after replacement.
The first argument is the required name. Remaining fields match create, except name is not repeated in the TypeScript input.This replaces the entire registration: omitting env clears it. The owning organization cannot change. Existing registrations can be updated without a delete-and-create gap.

delete

Remove a registered agent.
Returns: No value (void / None).
name is required. Past jobs retain their recorded agent identity.

Agent fields

Both SDKs use the same fields; Python returns an Agent dataclass. source identifies how it was registered. The response does not contain the install script or source archive.
Fields