Docs · CLI reference

CLI reference

The tempergraph command drives everything the engine does: it starts and answers runs, reads their state, authors and upgrades workflows, and improves them over time. In Claude Code you rarely type it yourself, because the run skill and the others call it for you; this reference is for driving runs yourself and for scripts.

tempergraph --help prints the same list of verbs, and tempergraph <verb> --help the options of one verb. tempergraph help --json prints the whole tree as one JSON document.

Conventions#

  • A thread is named <workflow>/<task id> (for example doc-refresh/t1) or by its alias. A bare task id is refused with the threads it could mean.
  • --json gives machine-readable output, for scripts and agents.
  • --state-root <dir>, given before the verb, names where runs keep their state. Without it, the state goes to .tempergraph/ in the folder you start in, or the nearest one above it.

Exit codes#

ExitMeaningWhat to do
0Finished; every step passed its gateRead the outcome verdict, cost and branch
2Refused; nothing ran or was spentFollow the message; run --check shows the same refusal
3Paused for a personDecide, then resume
4Stopped or drainedResume with the command the message gives
5Retries spent, timeout, loop budget or infrastructure failureNot a success. Read the logs, then rerun or fix the workflow
127Engine not installedSee Getting started

Operate runs#

runresolve, preflight and start a workflow
resumeresume a paused, stopped or unfinished thread
attentioneverything waiting on a person, oldest first
statusthe status document, or one thread's detail document
waitblock until a thread's outcome
eventsa thread's run-log records in order
logsone log of a run from the local store
factsread-only facts about a run
stopask a live run to stop
reruna new thread forked from an earlier one at a unit, linked to it
reportcost and friction reports over this state root's runs
configresolved run settings and the settings files

Inspect and improve workflows#

listthe workflow catalog
graphthe workflow diagram
validatevalidate a workflow
auditadvisory, read-only audit of a workflow (no model call)
outcomethe good outcome, its measures and revision candidates
executorsregistered executors and their capabilities
self-checka step's preview of its gate's check, run by the step itself
improveclusters, proposals, paired trials and cause analyses
labela person's label on a gate judgement: agree or disagree
labelsthe labelling queue and judge reliability grades
evalsjudge calibration and eval suites: score, bar, run, report, labels
promote-checkmeasure a workflow version against a stage's criteria
supervisionthe supervision journal and the cost of supervising runs
statsrun statistics per month, for this machine or across machines from a sink
storesize, retention and export of the local store

Author and upgrade workflows#

authorauthor a workflow from what a good result is: sessions, approvals, verify, trial and grade
blueprintcheck, draw or compare a workflow blueprint (no model)
scaffoldwrite a workflow package from an approved authoring session (no model)
literalsscan a workflow for case literals (no model)
upgradebring a workflow up to the running engine
upgrade-checkcheck a workflow against the running engine (the same as upgrade --check)
hookscommands the engine runs on lifecycle events: add, remove, list, test

Install, register and place runs#

installfirst install of the engine
updatemove to the engine release staged in the plugin; roll back; prune old engines
workflowsthe workflow registry
worktreerun worktrees
carrya run's state on its own git branch, to move it between machines: push, pull, status, drop
scheduleschedule a workflow once or on a recurrence
helpthis list of verbs, grouped

Global options#

OptionWhat it does
--state-root DIRoutside a git repository: the state root to use; ignored inside one

Edit this page on GitHub · engine 0.9.0