> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joystream.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# jstm agent simulate, version

> Run a version in Simulation, and list an agent's built versions.

Every build of an agent produces a sealed, numbered version. These commands try a version in Simulation and list the versions an agent has. A real Run is [`jstm agent run --mode run`](https://docs.joystream.ai/cli/agent-run).

## `jstm agent simulate`

Run the agent in Simulation. This is the same as `jstm agent run <agent> --mode simulation`.

```bash theme={null}
jstm agent simulate failed-payment-digest
jstm agent simulate failed-payment-digest --input '{"period":"2026-09"}'
jstm agent simulate failed-payment-digest --version 0.0.3 --input period=2026-09
```

| Option | Description |
| - | - |
| `--version` | The version to run: its id or version text. Defaults to the latest built version |
| `--input` | 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) |
| `--file` | `FIELD=PATH`: upload `PATH` for the file input `FIELD` (repeatable) |
| `--json` | Output as JSON |

A Simulation touches no connected system. Steps that call outside services get made-up responses built from the call and the run's inputs, and model steps run for real on them, so the output is what the agent would write. It needs no connected services and starts without asking.

## `jstm agent version list`

List the agent's versions, newest first: the version text, its number, its origin (built, prebuilt or cloned), when it was built, how many triggers run it, and its latest review.

```bash theme={null}
jstm agent version list failed-payment-digest
jstm agent version list failed-payment-digest --json
```

| Option | Description |
| - | - |
| `--json` | Output as JSON |

## Choosing a version

Commands that start or pin runs take `--version`, as a version text (`0.0.3`) or a version id:

| Command | Without `--version` |
| - | - |
| `jstm agent simulate`, `jstm agent run` | The latest built version |
| `jstm trigger add routine`, `jstm trigger add webhook` | The latest version, pinned once when the trigger is created |
| `jstm trigger update --version` | Re-pins the trigger. `latest` pins it to the current latest version |
| `jstm agent review request` | The latest version |
| `jstm agent run list --version` | Only runs of that version |

A trigger never follows the latest version on its own. Building again changes no trigger; re-pin it with `jstm trigger update <binding-id> --version <version>`. To go back to an earlier version, re-pin to that version.

## Checking readiness first

`jstm agent readiness` exits non-zero when there are blockers, so it gates a real Run cleanly:

```bash theme={null}
jstm agent readiness failed-payment-digest && jstm agent run failed-payment-digest --mode run --yes
```

See [Inspect an agent](https://docs.joystream.ai/cli/agent-inspect.md).

## See also

* [The lifecycle](https://docs.joystream.ai/concepts/lifecycle.md) — build, Simulation and Run.
* [`jstm agent run`](https://docs.joystream.ai/cli/agent-run) — start a Simulation or a real Run, and inspect runs.
* [`jstm agent review`](https://docs.joystream.ai/cli/agent-review) — ask for a review of a version.
* [From Simulation to a real Run](https://docs.joystream.ai/guides/simulate-then-run.md) — walkthrough.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.