Docs · Operate runs
tempergraph rerun
A new thread forked from an earlier one at a unit, linked to it.
Examples#
tempergraph rerun <workflow> <thread> --from <step> --feedback 'Use the 2.x changelog format'A rerun is a new run linked to the old one, starting at the step you name. It asks before repeating anything with an external effect.
tempergraph rerun [-h] --from UNIT|start [--check] [--feedback FEEDBACK | --feedback-file FEEDBACK_FILE] [--task-id TASK_ID] [--workspace {current,at-unit}] [--same-branch] [--drop-rulings] [--ruling] [--accept-external] [--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] [--json] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--unset KEY] [--reload-settings] workflow thread| Argument | What it is |
|---|---|
<workflow> | the workflow of the source thread |
<thread> | the source thread: <workflow>/<task id>, or its alias |
| Option | What it does |
|---|---|
--from UNIT|start | the unit to run again from (with .item for one item of a map), or startrequired |
--check | print the plan and check it; nothing is created |
--feedback FEEDBACK | feedback for the first rerun attempt |
--feedback-file FEEDBACK_FILE | a file holding the feedback for the first rerun attempt |
--task-id TASK_ID | the task id of the new thread; by default <task id>~r<n> |
--workspace {current,at-unit} | the new worktree starts from the source branch's tip (current) or from the commit when the source entered the unit (at-unit)default current |
--same-branch | reuse the branch and worktree of a finished source instead of a new branch |
--drop-rulings | start without the source thread's rulings |
--ruling | the feedback is a lasting ruling |
--accept-external | allow a rerun past units that had external effects, such as a pushed branch |
--executor EXECUTOR | the executor of every step (sets steps.executor) |
--judge-executor JUDGE_EXECUTOR | the executor of every judge (sets judges.executor) |
--model MODEL | the model of every step, as an alias such as sonnet or opus (sets steps.model) |
--judge-model JUDGE_MODEL | the model of every judge, as an alias (sets judges.model) |
--timeout TIMEOUT | seconds a step session may run before it is stopped (sets steps.timeout_s) |
--judge-timeout JUDGE_TIMEOUT | seconds a judge session may run before it is stopped (sets judges.timeout_s) |
--idle IDLE | seconds a step session may stay silent before it is stopped (sets steps.idle_s) |
--run-cost-cap RUN_COST_CAP | the 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_CAP | the self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd) |
--auto-reopen AUTO_REOPEN | re-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_RATE | the chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate) |
--audit-executor AUDIT_EXECUTOR | the executor of the audit judge (sets run.audit_executor) |
--step-executor STEP=NAME | the executor of one step; repeatablerepeatable |
--step-model STEP=ALIAS | the model of one step; repeatablerepeatable |
--approve STEP | add 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=PREFIX | let a unit run shell commands that start with this prefix; repeatablerepeatable |
--enforce-tools | limit each step to the tools it declares; a step on an executor that cannot enforce them is refused |
--strict-permissions | enforce 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-agent | the same as --caller agent |
--caller-app CALLER_APP | the name of the calling agent or pipeline application, recorded with the call |
--relayed | the decision is a person's, carried by an agent; checked against the person's last turn |
--json | print the outcome as JSON |
--set KEY=VALUE | set one run setting for this thread; repeatable (tempergraph config show lists the keys)repeatable |
--settings FILE | a JSON map of keys to values, recorded as flags |
--profile PROFILE | apply a named settings profile from the settings files; repeatablerepeatable |
--unset KEY | drop a setting given by a flag on an earlier call; repeatablerepeatable |
--reload-settings | read the settings files and profiles again instead of the thread's snapshot |
Edit this page on GitHub · engine 0.9.0