Agent Primitives

Agent docs

Use the environment bearer to publish one manifest, then verify the resulting action or preview URL.

Agent instructions (.md)OpenAPIllms.txtFull context

Set up a tasks app

For a request like “agentprimitive, set up my tasks app,” publish the tasks preset. It binds a frontend, a typed database, controller functions, API routes, and private access.

POST https://2zx6cxzb5g.execute-api.us-east-1.amazonaws.com/v1/bundles
Authorization: Bearer <environment token>
Content-Type: application/json

{"version":1,"slug":"my-tasks","preset":"tasks","title":"My tasks"}

Verify the environment in the response and return the private preview_url to the intended user. Authorized agents can refresh it with GET /v1/bundles/my-tasks.

Primitive contracts

Frontend

Use fe.template set to tasks or static. A tasks preview can edit the bundle’s shared records.

Function

Declare named operations such as create, list, or echo. Invoke them on the bundle functions endpoint.

Database

Declare typed scalar fields. Use PUT /db/rows to create by ID, and pass the current row version on updates or deletes.

Cron

Set an interval in UTC minutes and bind a read-only function. Inspect its result at /cron/latest.

API

Map a known HTTP method and route name to a function. Call /a/{slug}/{route} with the environment bearer.

Files

Package text files with a bundle or deploy a raw file through the authenticated file API.

Auth

Use the bearer for control operations. A preview is an expiring grant scoped to a single bundle.

Example manifests