Docs · Operate runs

tempergraph run

Resolve, preflight and start a workflow.

Check, then start#

--check spends nothing. It prints one JSON status: ok, needs (questions to answer first), error (refusals and how to fix them) or broken (the workflow did not load). Run the same command without it to start.

shell
tempergraph run <workflow> --check [--input key=value …] <request…>
tempergraph run <workflow> [--input key=value …] <request…>
tempergraph run <workflow> 'the request' --pause-before <step>   # stop before a step, with nothing spent on it

--dry-run is not a preview: every step still runs and spends. Only the issue filer stays quiet.

A run that ends with exit 3 (paused) or exit 5 (spent budget or infrastructure failure) prints the reads that explain it after the resume command, as next with --json. Every exit code is in the CLI reference; answering a pause is in Running workflows.

usage
tempergraph run [-h] [--check] [--task-id TASK_ID] [--input K=V] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [--schedule FIRE_ID] [--json] [--carry] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--pause-before UNIT] [--dry-run] [--no-dry-run] [--alias ALIAS] [--label LABEL] [--worktree-root WORKTREE_ROOT] [--worktree-base WORKTREE_BASE] [--worktree-cleanup WORKTREE_CLEANUP] [--workspace {auto,worktree,in_place} | --worktree | --in-place] workflow [request ...]
ArgumentWhat it is
<workflow>the workflow to run, by name
<request>…the request: text, a tracker key or a file path, as the workflow's input kind saysoptional
OptionWhat it does
--checkresolve and preflight only; nothing is created
--task-id TASK_IDthe task id of the thread, 1 to 64 letters, digits, ., _ or -; by default it is derived from the request
--input K=Va workflow input; repeatablerepeatable
--executor EXECUTORthe executor of every step (sets steps.executor)
--judge-executor JUDGE_EXECUTORthe executor of every judge (sets judges.executor)
--model MODELthe model of every step, as an alias such as sonnet or opus (sets steps.model)
--judge-model JUDGE_MODELthe model of every judge, as an alias (sets judges.model)
--timeout TIMEOUTseconds a step session may run before it is stopped (sets steps.timeout_s)
--judge-timeout JUDGE_TIMEOUTseconds a judge session may run before it is stopped (sets judges.timeout_s)
--idle IDLEseconds a step session may stay silent before it is stopped (sets steps.idle_s)
--run-cost-cap RUN_COST_CAPthe most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)
--daily-cap DAILY_CAPthe self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)
--auto-reopen AUTO_REOPENre-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)
--audit-rate AUDIT_RATEthe chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)
--audit-executor AUDIT_EXECUTORthe executor of the audit judge (sets run.audit_executor)
--step-executor STEP=NAMEthe executor of one step; repeatablerepeatable
--step-model STEP=ALIASthe model of one step; repeatablerepeatable
--approve STEPadd a person's approval pause at this step's gate; repeatablerepeatable
--grant UNIT=CAPABILITY[,…]give a unit extra tool capabilities for this run; repeatablerepeatable
--allow-command UNIT=PREFIXlet a unit run shell commands that start with this prefix; repeatablerepeatable
--enforce-toolslimit each step to the tools it declares; a step on an executor that cannot enforce them is refused
--strict-permissionsenforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn
--schedule FIRE_IDreserved to the schedule tick: needs its fire token
--jsonprint the outcome as JSON
--carrykeep this thread's state on its own git branch so another machine can pick it up
--set KEY=VALUEset one run setting for this thread; repeatable (tempergraph config show lists the keys)repeatable
--settings FILEa JSON map of keys to values, recorded as flags
--profile PROFILEapply a named settings profile from the settings files; repeatablerepeatable
--pause-before UNITpause before this unit starts; repeatablerepeatable
--dry-runself-improvement files nothing; every step runs (the flag run.loop_dry_run true)
--no-dry-runself-improvement files; ends a dry run (the flag run.loop_dry_run false)
--alias ALIASa short name for the thread, usable wherever a thread is named
--label LABELa free-text label shown with the thread
--worktree-root WORKTREE_ROOTwhere run worktrees are made: sibling, in_repo or path:<absolute> (sets run.worktree.root)
--worktree-base WORKTREE_BASEwhat a run worktree starts from: head, default_branch or ref:<name> (sets run.worktree.base)
--worktree-cleanup WORKTREE_CLEANUPnever, or on_finish to remove the run worktree when the run finishes (sets run.worktree.cleanup)
--workspace {auto,worktree,in_place}where the run works: its own git worktree, in place, or auto (chosen from the workflow and the checkout)
--worktreethe same as --workspace worktree
--in-placethe same as --workspace in_place

Edit this page on GitHub · engine 0.9.0