Trigger a run, follow its progress, pass input, and unblock it when it needs a person.
Start a run
jstm agent run failed-payment-digest --mode simulationjstm agent run failed-payment-digest --mode 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:
jstm agent run failed-payment-digest --mode simulation --version 0.0.2
Pass input
jstm agent run failed-payment-digest --mode simulation --input '{"date":"2026-08-03","include_retries":false}'
--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:
▶ run started ✓ Fetch failed payments since 2026-08-02 ✓ Group by failure reason ▶ Post digest to #billing
Add --verbose to see an output preview for each completed step:
jstm agent run failed-payment-digest --mode simulation --verbose
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:
joystream input-request show 9b74e2a1-33cd-4f80-a5e6-1d20b8f7c4aa joystream input-request submit 9b74e2a1-33cd-4f80-a5e6-1d20b8f7c4aa --values '{...}'
Read the request first to learn the field names:
jstm input-request show 9b74e2a1-33cd-4f80-a5e6-1d20b8f7c4aa
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
jstm agent run failed-payment-digest --mode simulation --input '{"date":"2026-08-03"}' --json
Results go to stdout and diagnostics to stderr, so the JSON is safe to pipe:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"JoyStream","colors":{"primary":"#00758D","light":"#4CC9E8","dark":"#FB6B36"},"logo":{"light":"https://mintcdn.com/joystream/rJ41slCbiMZ4hugb/logo/light.svg?fit=max\u0026auto=format\u0026n=rJ41slCbiMZ4hugb\u0026q=85\u0026s=e4f1eba1d82aaccba605f87c630e4627","dark":"https://mintcdn.com/joystream/rJ41slCbiMZ4hugb/logo/dark.svg?fit=max\u0026auto=format\u0026n=rJ41slCbiMZ4hugb\u0026q=85\u0026s=90970cbe1dc30f94af4640419d26c2ef"},"favicon":"https://mintcdn.com/joystream/Z0pLPa1DjSIv41tn/favicon.svg?fit=max\u0026auto=format\u0026n=Z0pLPa1DjSIv41tn\u0026q=85\u0026s=ea7eafe2bb14842eb672b48f3d4a3fda","background":{"color":{"light":"#FBF7F2","dark":"#0D0F12"}},"navbar":{"links":[{"href":"https://join.slack.com/t/joystreamcommunity/shared_invite/zt-49ehsd7rr-gWkylv28Zn~kvdQDMs8X7w","label":"Community"},{"href":"mailto:support@joystream.ai","label":"Support"}],"primary":{"type":"button","label":"Open JoyStream","href":"https://app.joystream.ai"}},"footer":{"socials":{"github":"https://github.com/joystream-ai","slack":"https://join.slack.com/t/joystreamcommunity/shared_invite/zt-49ehsd7rr-gWkylv28Zn~kvdQDMs8X7w"}},"fonts":{"heading":{"family":"Geist","weight":600},"body":{"family":"Geist","weight":400}},"integrations":{"ga4":{"measurementId":"G-PGWTLNLV06"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"joystream","hasAudioNarration":false,"actualSubdomain":"joystream","customDomains":["docs.joystream.ai"],"gitSource":{"type":"github","owner":"joystream-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afb668c0d71632443dbfc33","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Documentation","count":80},{"language":"default","tag":"Agents","count":26},{"language":"default","tag":"CLI Reference","count":26},{"language":"default","tag":"Commands","count":23},{"language":"default","tag":"Sales","count":19},{"language":"default","tag":"Features","count":16},{"language":"default","tag":"Concepts","count":11},{"language":"default","tag":"agent","count":9},{"language":"default","tag":"Organizations and teams","count":6},{"language":"default","tag":"Marketing","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--joystream-font-mono: \"Geist Mono\", ui-monospace, SFMono-Regular, monospace;--joystream-title-weight: 700;--joystream-title-tracking: -0.025em}code,pre,kbd,samp,.font-mono,[class*=\"language-\"]{font-family:var(--joystream-font-mono)}h1{font-weight:var(--joystream-title-weight);letter-spacing:var(--joystream-title-tracking)}"}]}
{"page":{"pagePath":"guides/run-an-agent","slug":"/guides/run-an-agent","pageMetadata":{"title":"Run an agent","description":"Trigger a run, follow its progress, pass input, and unblock it when it needs a person.","href":"/guides/run-an-agent"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Trigger a run, follow its progress, pass input, and unblock it when it needs a person.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`start-a-run`,children:`Start a run`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --mode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` simulation`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --mode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--mode`}),` is required. `,_jsx(_components.code,{children:`simulation`}),` touches no connected system: steps that call outside services get made-up responses. `,_jsx(_components.code,{children:`run`}),` is a real run on your connected services.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A real Run has side effects. The CLI asks before starting one — `,_jsx(_components.code,{children:`--yes`}),` skips the question — and the Run is refused before it starts if a service the version uses is not connected.`]})}),`\n`,_jsxs(_components.p,{children:[`Without `,_jsx(_components.code,{children:`--version`}),`, a run uses the agent’s latest built version. To run an earlier one:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --mode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` simulation`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --version`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.0.2`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`pass-input`,children:`Pass input`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --mode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` simulation`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --input`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"date\":\"2026-08-03\",\"include_retries\":false}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--input`}),` takes a JSON string and defaults to `,_jsx(_components.code,{children:`{}`}),`. The fields an agent accepts come from its spec — `,_jsx(_components.code,{children:`jstm agent view \u003cagent> --definition`}),` shows them.`]}),`\n`,_jsx(_components.p,{children:`If you omit a required input, the run raises an input request rather than failing.`}),`\n`,_jsx(Heading,{level:`2`,id:`follow-the-progress`,children:`Follow the progress`}),`\n`,_jsx(_components.p,{children:`Progress streams as the run executes:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`▶ run started`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ✓ Fetch failed payments since 2026-08-02`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ✓ Group by failure reason`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ▶ Post digest to #billing`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`--verbose`}),` to see an output preview for each completed step:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --mode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` simulation`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --verbose`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The stream times out after 300 seconds. The run itself keeps going — rejoin it with `,_jsx(_components.code,{children:`jstm agent run show`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-the-run-needs-you`,children:`When the run needs you`}),`\n`,_jsx(_components.p,{children:`If the agent reaches a point that requires a person, it pauses and prints how to unblock it:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` joystream input-request show 9b74e2a1-33cd-4f80-a5e6-1d20b8f7c4aa`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` joystream input-request submit 9b74e2a1-33cd-4f80-a5e6-1d20b8f7c4aa --values '{...}'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Read the request first to learn the field names:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` input-request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` show`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 9b74e2a1-33cd-4f80-a5e6-1d20b8f7c4aa`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then answer it:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` input-request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` submit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 9b74e2a1-33cd-4f80-a5e6-1d20b8f7c4aa`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --values`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"approver\":\"dana@acme.com\"}'`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can address the request by agent instead of by id, when the agent has exactly one open request:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` input-request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` submit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --values`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"approver\":\"dana@acme.com\"}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`avoid-duplicate-runs`,children:`Avoid duplicate runs`}),`\n`,_jsx(_components.p,{children:`When something might retry — a script, a webhook handler — pass an idempotency key:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --mode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` simulation`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --input`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"date\":\"2026-08-03\"}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --idempotency-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` digest-2026-08-03`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Re-sending the same key won’t start a second run.`}),`\n`,_jsx(Heading,{level:`2`,id:`after-the-run`,children:`After the run`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` show`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest/runs/12`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This gives you status, stories, output, any rejection reason, and provenance — the version that ran and its mode.`}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/guides/review-runs-and-tickets`,children:`Review runs and tickets`}),` for reading results in depth.`]}),`\n`,_jsx(Heading,{level:`2`,id:`scripting-a-run`,children:`Scripting a run`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --mode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` simulation`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --input`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"date\":\"2026-08-03\"}'`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Results go to stdout and diagnostics to stderr, so the JSON is safe to pipe:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jstm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed-payment-digest`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --mode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` simulation`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -r`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.status'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/concepts/runs-and-work`,children:`Runs and work`}),` — what a run produces.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/cli/agent-run`,children:_jsx(_components.code,{children:`jstm agent run`})}),` — full reference.`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/troubleshooting/runs`,children:`Blocked or failing runs`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run an agent","description":"Trigger a run, follow its progress, pass input, and unblock it when it needs a person.","href":"/guides/run-an-agent"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Start a run","slug":"start-a-run","depth":2,"children":[]},{"title":"Pass input","slug":"pass-input","depth":2,"children":[]},{"title":"Follow the progress","slug":"follow-the-progress","depth":2,"children":[]},{"title":"When the run needs you","slug":"when-the-run-needs-you","depth":2,"children":[]},{"title":"Avoid duplicate runs","slug":"avoid-duplicate-runs","depth":2,"children":[]},{"title":"After the run","slug":"after-the-run","depth":2,"children":[]},{"title":"Scripting a run","slug":"scripting-a-run","depth":2,"children":[]},{"title":"See also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"joystream","siteName":"JoyStream","title":"Run an agent - JoyStream","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T20:24:52.546Z","originalFileLocation":"guides/run-an-agent.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Trigger a run, follow its progress, pass input, and unblock it when it needs a person.\">\u003cmeta data-mint-head name=\"application-name\" content=\"JoyStream\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run an agent - JoyStream\">\u003cmeta data-mint-head property=\"og:description\" content=\"Trigger a run, follow its progress, pass input, and unblock it when it needs a person.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"JoyStream\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.joystream.ai/guides/run-an-agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://joystream.mintlify.site/_mintlify/api/og/v2?division=Operate\u0026amp;title=Run+an+agent\u0026amp;description=Trigger+a+run%2C+follow+its+progress%2C+pass+input%2C+and+unblock+it+when+it+needs+a+person.\u0026amp;theme=620ea9d2fe171b5bb0bd0480\u0026amp;signature=064e8eece1b419cc6f544c369d9686ff542fdcd48ef3285fea5817299cf424e5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Run an agent - JoyStream\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Trigger a run, follow its progress, pass input, and unblock it when it needs a person.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://joystream.mintlify.site/_mintlify/api/og/v2?division=Operate\u0026amp;title=Run+an+agent\u0026amp;description=Trigger+a+run%2C+follow+its+progress%2C+pass+input%2C+and+unblock+it+when+it+needs+a+person.\u0026amp;theme=620ea9d2fe171b5bb0bd0480\u0026amp;signature=064e8eece1b419cc6f544c369d9686ff542fdcd48ef3285fea5817299cf424e5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/joystream/w-Sgx90aknnHKMQ2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"JoyStream\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00758D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.joystream.ai/guides/run-an-agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/run-an-agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.joystream.ai/#organization\",\"name\":\"JoyStream\",\"url\":\"https://docs.joystream.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/joystream/rJ41slCbiMZ4hugb/logo/light.svg?fit=max\u0026auto=format\u0026n=rJ41slCbiMZ4hugb\u0026q=85\u0026s=e4f1eba1d82aaccba605f87c630e4627\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.joystream.ai#website\",\"name\":\"JoyStream\",\"url\":\"https://docs.joystream.ai\",\"publisher\":{\"@id\":\"https://docs.joystream.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.joystream.ai/guides/run-an-agent#webpage\",\"url\":\"https://docs.joystream.ai/guides/run-an-agent\",\"name\":\"Run an agent\",\"description\":\"Trigger a run, follow its progress, pass input, and unblock it when it needs a person.\",\"dateModified\":\"2026-11-16T20:24:52.546Z\",\"isPartOf\":{\"@id\":\"https://docs.joystream.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.joystream.ai/guides/run-an-agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.joystream.ai/guides/run-an-agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"JoyStream\",\"item\":\"https://docs.joystream.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run an agent\",\"item\":\"https://docs.joystream.ai/guides/run-an-agent\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.joystream.ai/guides/run-an-agent#article\",\"headline\":\"Run an agent\",\"name\":\"Run an agent\",\"description\":\"Trigger a run, follow its progress, pass input, and unblock it when it needs a person.\",\"url\":\"https://docs.joystream.ai/guides/run-an-agent\",\"mainEntityOfPage\":{\"@id\":\"https://docs.joystream.ai/guides/run-an-agent#webpage\"},\"dateModified\":\"2026-11-16T20:24:52.546Z\",\"publisher\":{\"@id\":\"https://docs.joystream.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.joystream.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"JoyStream\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"JoyStream\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/run-an-agent.md","siteName":"JoyStream","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting started","pages":[{"title":"JoyStream","href":""},{"title":"Install the CLI","href":"/installation"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Concepts","pages":[{"title":"How JoyStream thinks","href":"/concepts/overview"},{"title":"Agent Engineering","href":"/concepts/agent-engineering"},{"title":"Capabilities","href":"/concepts/capabilities"},{"title":"Capability spec","href":"/concepts/capability-spec"},{"title":"Agents and recipes","href":"/concepts/agents-and-recipes"},{"title":"The lifecycle","href":"/concepts/lifecycle"},{"title":"Runs and work","href":"/concepts/runs-and-work"},{"title":"Evidence, memory, and metrics","href":"/concepts/evidence-and-memory"},{"title":"Workspaces and organizations","href":"/concepts/workspaces-and-organizations"},{"title":"Skills","href":"/concepts/skills"},{"title":"Terminology","href":"/concepts/terminology"}]},{"group":"Build and ship","pages":[{"title":"Build your first agent","href":"/guides/build-your-first-agent"},{"title":"Draft an agent with chat","href":"/guides/draft-an-agent"},{"title":"Conform an agent package","href":"/guides/conform-an-agent-package"},{"title":"From Simulation to a real Run","href":"/guides/simulate-then-run"},{"title":"Use JoyStream from Claude Code or Codex","description":"Install the JoyStream plugin, sign in, and build, ship, and debug agents from your coding agent.","href":"/guides/use-joystream-from-claude-code-or-codex"}]},{"group":"Operate","pages":[{"title":"Run an agent","href":"/guides/run-an-agent"},{"title":"Review runs and tickets","description":"Read what an agent actually did — runs, stories, tickets, and the provenance behind them.","href":"/guides/review-runs-and-tickets"},{"title":"Schedule an agent","href":"/guides/schedule-an-agent"},{"title":"Trigger an agent","href":"/guides/trigger-an-agent"}]},{"group":"Connect","pages":[{"title":"Connect a service","href":"/guides/connect-a-service"},{"title":"Add skill repositories","href":"/guides/add-skill-and-mcp-repositories"},{"title":"Connect GitHub for private repos","href":"/guides/connect-github-private-repos"}]},{"group":"Organizations and teams","pages":[{"title":"Set up your organization","href":"/guides/set-up-your-organization"},{"title":"Invite and manage members","href":"/guides/invite-and-manage-members"},{"title":"Share agents and runs","href":"/guides/share-agents-and-runs"},{"title":"Organize and publish agents","href":"/guides/organize-and-publish-agents"},{"title":"Audit and scope org credentials","href":"/guides/audit-and-scope-org-credentials"},{"title":"Manage credits","href":"/guides/manage-credits"}]},{"group":"Use cases","pages":[{"title":"Use cases","href":"/use-cases/overview"}]},{"group":"Agents","pages":[{"title":"Agents","href":"/agents/overview"},{"group":"Marketing","pages":[{"title":"AI Search Visibility Audit","href":"/agents/ai-search-visibility-audit"},{"title":"Content Repurposing","href":"/agents/content-repurposing"},{"title":"GitHub to Social","href":"/agents/github-to-social"},{"title":"Release Notes Publisher","href":"/agents/release-notes-publisher"},{"title":"Voice Profile","href":"/agents/voice-profile"}]},{"group":"Sales","pages":[{"title":"Account Discovery \u0026 Qualification","href":"/agents/account-discovery-and-qualification"},{"title":"Account Web Research Brief","href":"/agents/account-web-research-brief"},{"title":"Buyer Qualification","href":"/agents/buyer-qualification"},{"title":"Company ICP Check","href":"/agents/company-icp-check"},{"title":"Daily Qualified Prospects","href":"/agents/daily-qualified-prospects"},{"title":"Hacker News Buyer Signals","href":"/agents/hacker-news-buyer-signals"},{"title":"HubSpot Account Discovery","href":"/agents/hubspot-account-discovery"},{"title":"ICP Account Qualifier","href":"/agents/icp-account-qualifier"},{"title":"ICP Builder","href":"/agents/icp-builder"},{"title":"Key People Finder","href":"/agents/key-people-finder"},{"title":"Meeting Prep Briefs","href":"/agents/meeting-prep-briefs"},{"title":"Outreach Message Writer","href":"/agents/outreach-message-writer"},{"title":"Person Profile Research","href":"/agents/person-profile-research"},{"title":"Role Finder","href":"/agents/role-finder"},{"title":"Sales Call Debrief \u0026 Follow-up","href":"/agents/sales-call-debrief"},{"title":"Trigger Detector","href":"/agents/trigger-detector"},{"title":"Warm Intro Finder","href":"/agents/warm-intro-finder"},{"title":"Website Intelligence","href":"/agents/website-intelligence"},{"title":"Weekly Account Sourcing","href":"/agents/weekly-account-sourcing"}]},{"group":"Operations","pages":[{"title":"List Cleaner","href":"/agents/list-cleaner"}]}]},{"group":"Features","pages":[{"group":"Conformance","pages":[{"title":"Agent package conformance","href":"/features/conformance/overview"},{"title":"Reading the flag report","href":"/features/conformance/flag-report"},{"title":"Acknowledging flags","href":"/features/conformance/ignores"}]},{"title":"Planning an agent in chat","href":"/features/agent-plan-chat"},{"title":"Agent inputs","href":"/features/agent-inputs"},{"title":"Scheduling agents with cron","href":"/features/scheduling"},{"title":"Triggers","href":"/features/triggers"},{"title":"Visibility and discovery","href":"/features/visibility-and-discovery"},{"title":"Agent Universe","href":"/features/agent-universe"},{"title":"Sharing","href":"/features/sharing"},{"title":"Vault","href":"/features/vault"},{"title":"Importing private GitHub repositories","href":"/features/private-repos"},{"title":"Credits","href":"/features/credits"},{"title":"Run artifacts","href":"/features/run-artifacts"},{"title":"Reviews and agent history","href":"/features/reviews"},{"title":"JoyStream MCP server","href":"/features/joystream-mcp-server"}]},{"group":"Troubleshooting","pages":[{"title":"Common errors","href":"/troubleshooting/common-errors"},{"title":"Credential problems","href":"/troubleshooting/credentials"},{"title":"Conformance failures","href":"/troubleshooting/conformance"},{"title":"Blocked or failing runs","href":"/troubleshooting/runs"},{"title":"FAQ","href":"/troubleshooting/faq"}]}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli/overview"}]}]},"basePath":"","title":"Run an agent - JoyStream","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}