Scripts
Scripts are the executable implementation behind skills. A script does focused work. A skill defines the workflow around that work.Why scripts exist
Agents need a stable product surface. Builders need executable code. Scripts let OS keep both clean.Script responsibilities
A script should:- accept structured input
- read context through approved OS services
- return structured output
- create artifacts through the artifact layer
- respect capability checks
- report safe errors
- include trace metadata when OS provides it
Script runtime
The product runtime target is Bun and TypeScript. Local OS should be able to install, run, and update scripts without requiring Docker. Hosted OS should run through the regular OpenSaaS deployment path first.Script output
Scripts should return data OS can record.| Output | Purpose |
|---|---|
status | Whether the script completed, paused, or failed. |
summary | Human-readable result. |
artifacts | Artifact records created or updated. |
sourceRefs | Structured records used. |
approval | Human decision request when needed. |
error | Safe error code and message. |