Skip to main content

Start a run

--mode is required. simulation touches no connected system: steps that call outside services get made-up responses. run is a real run on your connected services.
A real Run has side effects. The CLI asks before starting one — --yes skips the question — and the Run is refused before it starts if a service the version uses is not connected.
Without --version, a run uses the agent’s latest built version. To run an earlier one:

Pass input

--input takes a JSON string and defaults to {}. The fields an agent accepts come from its spec — jstm agent view <agent> --definition shows them. If you omit a required input, the run raises an input request rather than failing.

Follow the progress

Progress streams as the run executes:
Add --verbose to see an output preview for each completed step:
The stream times out after 300 seconds. The run itself keeps going — rejoin it with jstm agent run show.

When the run needs you

If the agent reaches a point that requires a person, it pauses and prints how to unblock it:
Read the request first to learn the field names:
Then answer it:
You can address the request by agent instead of by id, when the agent has exactly one open request:

Avoid duplicate runs

When something might retry — a script, a webhook handler — pass an idempotency key:
Re-sending the same key won’t start a second run.

After the run

This gives you status, stories, output, any rejection reason, and provenance — the version that ran and its mode. See Review runs and tickets for reading results in depth.

Scripting a run

Results go to stdout and diagnostics to stderr, so the JSON is safe to pipe:

See also