Non-interactive jobs
Use autolith run-job to run an assignment from a script or CI. Pass either --input FILE or --prompt TEXT. Set the path for the result with --output.
autolith --permissions auto run-job \
--input /path/to/job.sexp \
--output /path/to/result.sexpThe input file contains one data-only form:
(:autolith-job
:version 1
:id "job-identifier"
:prompt "Perform the assigned work."
:input (:caller-owned "opaque data"))Pass --prompt TEXT for a prompt on the command line or --prompt - to read it from standard input. If you omit --id, Autolith generates a job ID.
autolith --permissions auto run-job \
--prompt "Review the current change and report the result." \
--id review-change \
--output /path/to/result.sexpCheck the status in the output file. If the status is :succeeded, read :result. If the job failed, read the error in the same file.
Choose the permission mode before you run the job. Headless jobs cannot prompt for approval.
autodenies operations that require approval.sandboxonly permits sandboxed shell commands.fullpermits commands and external tools that would otherwise require approval.
Live S-expression events
Add --events sexp to observe progress on stdout. Send diagnostics to a separate stream, and use the artifact for the authoritative result:
autolith --permissions auto run-job \
--input /path/to/job.sexp --output /path/to/result.sexp \
--events sexp >events.sexp 2>diagnostics.logRead consecutive top-level forms. Strings can contain newlines.
(:autolith-event :version 1
:run-id "a-generated-run-uuid" :seq 1 :time "2026-10-08T09:00:00Z"
:kind :run-started :data nil)Use the output file to check the final status. A slow or disconnected event reader can miss events.