Docs · Install, register and place runs
tempergraph schedule
Schedule a workflow once or on a recurrence.
Usage#
tempergraph schedule [-h] {parse,add,list,show,history,edit,pause,resume,skip,remove,runs,fire,trigger,loop,tick,export} ...schedule parse#
the echo of a timing, or its question or refusal; writes nothing
tempergraph schedule parse [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--json] [phrase]| Argument | What it is |
|---|---|
<phrase> | a phrase (or use --when or an exact format)optional |
| Option | What it does |
|---|---|
--when WHEN | a phrase such as 'every weekday at 8:00' |
--at AT | ISO 8601 local, or with an offset or Z: once |
--rrule RRULE | an RFC 5545 RECUR of the stored subset |
--every EVERY | an ISO 8601 duration of at least PT15M |
--cron CRON | five fields, read in the schedule's zone |
--tz TZ | an IANA zone name |
--starts STARTS | the first date the schedule may fire |
--until UNTIL | the last date the schedule may fire |
--count COUNT | stop after this many fires |
--choose CHOOSE | the reading of an ambiguous phrase |
--json | print the echo as JSON |
schedule add#
schedule a workflow
tempergraph schedule add [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--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] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--workspace {auto,worktree,in_place} | --worktree | --in-place] [--budget PERIOD:USD] [--catch-up {latest,none,all}] [--overlap {skip,queue,parallel}] [--max-live MAX_LIVE] [--pause-after-failures PAUSE_AFTER_FAILURES] [--name NAME] [--input K=V] [--orchestration FILE] [--arg K=V] [--program [PROGRAM]] [--check] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [workflow] [request ...]| Argument | What it is |
|---|---|
<workflow> | the workflow to runoptional |
<request>… | the request each run is givenoptional |
| Option | What it does |
|---|---|
--when WHEN | a phrase such as 'every weekday at 8:00' |
--at AT | ISO 8601 local, or with an offset or Z: once |
--rrule RRULE | an RFC 5545 RECUR of the stored subset |
--every EVERY | an ISO 8601 duration of at least PT15M |
--cron CRON | five fields, read in the schedule's zone |
--tz TZ | an IANA zone name |
--starts STARTS | the first date the schedule may fire |
--until UNTIL | the last date the schedule may fire |
--count COUNT | stop after this many fires |
--choose CHOOSE | the reading of an ambiguous phrase |
--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 |
--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 |
--workspace {auto,worktree,in_place} | where each run works: its own git worktree, in place, or auto (chosen from the workflow and the checkout) |
--worktree | the same as --workspace worktree |
--in-place | the same as --workspace in_place |
--budget PERIOD:USD | day, week or month, and the cap over that period |
--catch-up {latest,none,all} | slots missed while the machine was off: fire the latest (the default), none, or all |
--overlap {skip,queue,parallel} | a slot due while a run is live: skip it (the default), queue one, or start in parallel |
--max-live MAX_LIVE | with --overlap parallel: the most runs live at once |
--pause-after-failures PAUSE_AFTER_FAILURES | pause the schedule after this many failed fires in a row |
--name NAME | a name for the schedule |
--input K=V | a workflow input; repeatablerepeatable |
--orchestration FILE | schedule an orchestration file (not built yet) |
--arg K=V | an orchestration argument; repeatable (not built yet)repeatable |
--program PROGRAM | reserved |
--check | parse and check; save nothing |
--yes | save without asking; with no terminal, the schedule is saved only with --yes |
--json | print the outcome as JSON |
--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 |
schedule list#
every schedule on this machine
tempergraph schedule list [-h] [--all] [--json]| Option | What it does |
|---|---|
--all | also removed and finished schedules |
--json | print the list as JSON |
schedule show#
one schedule: entry, echo, next ten slots, last 20 fires
tempergraph schedule show [-h] [--json] id| Argument | What it is |
|---|---|
<id> | the schedule id or name |
| Option | What it does |
|---|---|
--json | print the schedule as JSON |
schedule history#
a schedule's fire log
tempergraph schedule history [-h] [--since DATE] [--json] id| Argument | What it is |
|---|---|
<id> | the schedule id or name |
| Option | What it does |
|---|---|
--since DATE | only fires since this date |
--json | print the history as JSON |
schedule edit#
change a schedule's timing or options (its target is fixed)
tempergraph schedule edit [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--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] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--workspace {auto,worktree,in_place} | --worktree | --in-place] [--budget PERIOD:USD] [--catch-up {latest,none,all}] [--overlap {skip,queue,parallel}] [--max-live MAX_LIVE] [--pause-after-failures PAUSE_AFTER_FAILURES] [--workflow WORKFLOW] [--repo REPO] [--orchestration ORCHESTRATION] [--program [PROGRAM]] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id [phrase]| Argument | What it is |
|---|---|
<id> | the schedule id or name |
<phrase> | a new timing phraseoptional |
| Option | What it does |
|---|---|
--when WHEN | a phrase such as 'every weekday at 8:00' |
--at AT | ISO 8601 local, or with an offset or Z: once |
--rrule RRULE | an RFC 5545 RECUR of the stored subset |
--every EVERY | an ISO 8601 duration of at least PT15M |
--cron CRON | five fields, read in the schedule's zone |
--tz TZ | an IANA zone name |
--starts STARTS | the first date the schedule may fire |
--until UNTIL | the last date the schedule may fire |
--count COUNT | stop after this many fires |
--choose CHOOSE | the reading of an ambiguous phrase |
--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 |
--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 |
--workspace {auto,worktree,in_place} | where each run works: its own git worktree, in place, or auto (chosen from the workflow and the checkout) |
--worktree | the same as --workspace worktree |
--in-place | the same as --workspace in_place |
--budget PERIOD:USD | day, week or month, and the cap over that period |
--catch-up {latest,none,all} | slots missed while the machine was off: fire the latest (the default), none, or all |
--overlap {skip,queue,parallel} | a slot due while a run is live: skip it (the default), queue one, or start in parallel |
--max-live MAX_LIVE | with --overlap parallel: the most runs live at once |
--pause-after-failures PAUSE_AFTER_FAILURES | pause the schedule after this many failed fires in a row |
--workflow WORKFLOW | a schedule's workflow is fixed: a different one is refused |
--repo REPO | a schedule's repository is fixed: a different one is refused |
--orchestration ORCHESTRATION | refused: a schedule's target kind is fixed |
--program PROGRAM | refused: a schedule's target kind is fixed |
--yes | save without asking |
--json | print the outcome as JSON |
--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 |
schedule pause#
stop firing a schedule
tempergraph schedule pause [-h] [--reason REASON] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id| Argument | What it is |
|---|---|
<id> | the schedule id or name |
| Option | What it does |
|---|---|
--reason REASON | why, kept with the schedule |
--json | print the outcome as JSON |
--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 |
schedule resume#
start a paused schedule again
tempergraph schedule resume [-h] [--catch-up] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id| Argument | What it is |
|---|---|
<id> | the schedule id or name |
| Option | What it does |
|---|---|
--catch-up | the slots passed while paused may still fire |
--json | print the outcome as JSON |
--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 |
schedule skip#
skip the next slot, or every slot until a date
tempergraph schedule skip [-h] [--next] [--until DATE] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id| Argument | What it is |
|---|---|
<id> | the schedule id or name |
| Option | What it does |
|---|---|
--next | skip only the next slot |
--until DATE | skip every slot until this date |
--json | print the outcome as JSON |
--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 |
schedule remove#
remove a schedule; its history stays
tempergraph schedule remove [-h] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id| Argument | What it is |
|---|---|
<id> | the schedule id or name |
| Option | What it does |
|---|---|
--yes | remove without asking |
--json | print the outcome as JSON |
--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 |
schedule runs#
every scheduled run on this machine, from any directory
tempergraph schedule runs [-h] [--schedule SCHEDULE] [--repo REPO] [--workflow WORKFLOW] [--since DATE] [--outcome {started,skipped,missed,refused}] [--detail] [--json]| Option | What it does |
|---|---|
--schedule SCHEDULE | only runs of this schedule |
--repo REPO | only runs in this repository |
--workflow WORKFLOW | only runs of this workflow |
--since DATE | only runs since this date |
--outcome {started,skipped,missed,refused} | only runs with this outcome |
--detail | each run's live status through its state root |
--json | print the runs as JSON |
schedule fire#
start one fire now through the tick's path; it spends
tempergraph schedule fire [-h] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id| Argument | What it is |
|---|---|
<id> | the schedule id or name |
| Option | What it does |
|---|---|
--yes | fire without asking |
--json | print the outcome as JSON |
--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 |
schedule trigger#
the os adapter: install, status and remove the per-user autostart entry
tempergraph schedule trigger [-h] {install,status,remove} ...schedule trigger install#
write one per-user entry that starts the loop at login; idempotent
tempergraph schedule trigger install [-h] [--os] [--json]| Option | What it does |
|---|---|
--os | the os adapter |
--json | print the outcome as JSON |
schedule trigger status#
every trigger seen, with its last error; writes nothing
tempergraph schedule trigger status [-h] [--json]| Option | What it does |
|---|---|
--json | print the status as JSON |
schedule trigger remove#
delete what install wrote
tempergraph schedule trigger remove [-h] [--json]| Option | What it does |
|---|---|
--json | print the outcome as JSON |
schedule loop#
the portable trigger: tick, sleep to the next slot or 60 s, repeat
tempergraph schedule loop [-h] [--detach | --stop]| Option | What it does |
|---|---|
--detach | start the loop in the background; a running one is reported |
--stop | end the running loop |
schedule tick#
decide what is due and start it: the one call every trigger makes
tempergraph schedule tick [-h] [--json]| Option | What it does |
|---|---|
--json | print what was started as JSON |
schedule export#
print a snippet for a pipeline system; keeps nothing
tempergraph schedule export [-h] --for {github-actions,gitlab-ci,crontab} [--pin-offset] id| Argument | What it is |
|---|---|
<id> | the schedule id or name |
| Option | What it does |
|---|---|
--for {github-actions,gitlab-ci,crontab} | the pipeline system to write the snippet forrequired |
--pin-offset | for a zone with daylight saving: pin today's UTC offset |
Edit this page on GitHub · engine 0.9.0