Skip to content

Save shell scripts on agents and run them from triggers

An agent can own saved scripts: a name, a description, an optional input schema and a shell body. Manage them with everruns agents scripts or under /v1/agents/{agent_id}/scripts; every change is in the agent’s history.

Inside the shell, tools scripts lists and runs them with the caller’s tools and identity, and with manage_scripts on the agent can save new ones.

A schedule or webhook trigger can run a script without asking the model:

{ "script": { "script": "triage-prs", "input": { "pr": "{{payload.pull_request}}" } } }

Input strings are templates over the event, so a webhook payload reaches the script.

See Saved scripts, Agent triggers and #4390, #4400, #4403, #4423.