termlings workflow manages reusable workflow definitions and per-agent running copies.
The model is split in two:
.termlings/workflows/stores the reusable workflow definition.termlings/store/workflows/stores the running copy with checked-off step state
That means the same workflow can be started, completed, reset, and started again without mutating the template.
.termlings/
workflows/
org/
release-deploy.json
agents/
developer/
ship-feature.json
store/
workflows/
developer/
org__release-deploy.json
agent__developer__ship-feature.json
termlings workflow list
termlings workflow list --org
termlings workflow list --active
termlings workflow list --agent developer
termlings workflow show org/release-deploy
termlings workflow show agent:developer/ship-feature --agent developer
termlings workflow create '{"title":"Release deploy","scope":"org","steps":["Run tests","Deploy"]}'
termlings workflow start org/release-deploy
termlings workflow step done org/release-deploy step_1
termlings workflow step undo org/release-deploy step_1
termlings workflow reset org/release-deploy
termlings workflow stop org/release-deployWorkflow definitions use canonical references:
org/<workflow-id>
agent:<agent-slug>/<workflow-id>
Examples:
org/release-deploy
agent:developer/ship-feature
Inside an agent session, bare workflow IDs resolve against that agent first and then org workflows.
Workflow creation is JSON-only. A workflow definition includes its full step list up front.
Minimal example:
{
"title": "Release deploy",
"steps": ["Run tests", "Deploy"]
}Full example:
{
"title": "Release deploy",
"scope": "org",
"steps": [
{ "text": "Run tests" },
{ "text": "Deploy" },
{ "text": "Post release update" }
]
}Supported keys:
titlescopeownersteps
start creates a running copy for an agent under .termlings/store/workflows/<agent>/.
Step completion is written only to that running copy:
$ termlings workflow start org/release-deploy
✓ Workflow started: org/release-deploy
$ termlings workflow step done org/release-deploy step_1
✓ Step marked done: step_1When the last step is marked done, the running copy is automatically marked completed. It remains visible until you stop it.
Useful lifecycle commands:
startcreates the running copy if it does not exist- finishing the last step auto-marks the running copy as completed
resetclears progress on the running copystopremoves the running copy
termlings brief shows:
- total workflow definitions
- org workflow definition count
- total active workflow runs
- the current agent's running workflows with progress
Use workflows when:
- the team needs a reusable checklist or SOP
- an agent should be able to start the same process multiple times
- step-level progress matters
Use tasks when:
- work needs ownership, status, dependencies, and notes
- the team is tracking outcomes, not just checklist execution
Disable workflows for all agents in .termlings/workspace.json:
{
"apps": {
"defaults": {
"workflows": false
}
}
}Per-agent access is narrowed in .termlings/agents/<slug>/SOUL.md with the apps: allowlist. See APPS.md.