Skip to main content
Run an agent and stream execution progress story by story. Every run has a mode — a Simulation or a real Run — and names the version it runs.

Options

required
The agent to run, as a handle, UUID, or FQN.
required
simulation or run.
  • simulation touches no connected system: steps that call outside services get made-up responses, and model steps run for real on them. It starts at once.
  • run is a real run on your connected services. It asks first — Start a real run of <agent> on <version>? It acts on your connected systems. — unless you pass --yes. It is refused before it starts if a service the version uses is not connected.
In JSON output and the API the same modes are dry_run and live.
default:"the latest built version"
The version to run: its id or its version text, such as 0.0.3.
default:"{}"
Run input: one JSON object, or KEY=VALUE. Repeatable; the value is always a string, so a number, a bool, a list or an object needs the JSON form.
FIELD=PATH: upload PATH for the file input FIELD. Repeatable.
Start a real run without asking first.
Show an output preview for each step as it completes.
A key used to deduplicate. Re-sending the same key won’t start a second run.
Emit the result as JSON.

Following a run

Progress streams as the run executes. Each story prints › when it starts, then ✓ or ✗ when it finishes:
The first line names the run’s mode — Simulation or Run — and the version it runs. The stream carries run_started, story_started, story_completed, story_failed, run_completed, and run_failed events. It times out after 300 seconds; the run itself keeps going, and you can rejoin with jstm agent run show. When the run ends, the CLI prints the run id and how to review it. A failed run also prints its mode and error message when the run record carries them.

When a run needs input

If the agent hits a point where it needs something from a person, it pauses and raises an input request rather than guessing. The CLI prints the request id and the commands to unblock it:
See jstm input-request.

jstm agent run show

Show a run’s status, stories, output, rejection reason, and provenance.
The second form is a sequence address: <agent>/runs/N, where N counts from 1 per agent. See Addressing.
Emit the raw payload as JSON.
The provenance line, such as ran 0.0.3 in live, names the version this run ran and its mode (dry_run for a Simulation, live for a Run).

Run files

A run’s stories can produce files and logs. jstm agent run artifact lists, prints, and downloads them. The same files appear on the run’s page in the web UI; see Run artifacts. Every subcommand takes RUN as a run UUID or the sequence address <agent>/runs/N.

run artifact list

Prints one row per file: story, path, kind, media type, size, and id. With --json the payload is {"run_id", "artifacts"}, each artifact as the API returns it. On failure it is {"error", "status"} with exit 1.

run artifact show

--raw needs --text and cannot be combined with --json; either misuse is a usage error, exit 2.

run artifact download

Story outputs are saved alongside the files as <title>.md, <story_ref>.md, or <story_ref>.json. A name already used in the same download goes under DIR/<story_ref>/ (or DIR/run/ for a file with no story), then DIR/<artifact id>/; an output may become <story_ref>.output.<ext>. jstm ticket artifact offers the same three commands scoped to one story ticket.

Listing runs

Passing a run id instead of an agent id shows that run’s full story detail.

Listing stories

See also