Use saved workflows
Use saved workflows
Section titled “Use saved workflows”A workflow is a saved prompt that starts a session in a chosen directory. Run it on demand or on a schedule.
Create a workflow
Section titled “Create a workflow”Open Workflows and press New Workflow.
| Field | Purpose |
|---|---|
| Slug | What you type after @ in the omnibar. Lowercase letters, digits and hyphens |
| Name, Description | Shown in the list |
| Command / Prompt | The first prompt. Type / at the start of a word to complete slash commands |
| Target Directory | Where the session runs: an absolute path to an existing directory. ~ is not expanded |
| Input Template | Optional extra text appended to the prompt |
| Model, Program | Optional. Both suggest values as you type. The form does not suggest command-line flags; for those, use Settings > General > Program Configurations |
| Cron Expression, Enable scheduled runs | Run on a schedule |
| Keep Sessions, Archive After Hours | Tidy up the sessions the workflow creates |
Write {{input}} where the text you supply at run time should go.
Run it
Section titled “Run it”- On the Workflows page, press Run. If the prompt or the Input Template contains
{{input}}, a dialog asks for it and lets you attach images. - In the omnibar, type
@slug your inputand press Enter.
Schedule it
Section titled “Schedule it”Tick Enable scheduled runs, then set the schedule with Simple (for example daily at 03:00) or Advanced (a five-field cron expression). Times are in the server’s local time zone.
- Do not use
{{input}}in a scheduled workflow. A scheduled run has no input, so the placeholder reaches the agent as literal text. - Check what can skip permission prompts. The workflow form has no auto-approval setting, but the program you choose and your global or directory session defaults can still skip prompts. Otherwise permission requests go through your approval rules, and anything the rules do not decide waits for you in the Review Queue.
- A run missed while the server was stopped is logged and not replayed.
- A run can be refused when the concurrent work limit or the per-workflow rate limit is reached.
Example: Topic Synthesis
Section titled “Example: Topic Synthesis”Research a topic and write it into a folder of linked notes. Create the folder first.
| Field | Value |
|---|---|
| Slug | topic-synthesis |
| Target Directory | /home/you/wiki (use your own absolute path) |
Command / Prompt:
Research this topic: {{input}}
Use several authoritative sources and cite each one with a link.Write the findings as short, single-subject wiki pages in this folder.Link the pages to each other and to related pages that already exist.Update an existing page instead of creating a duplicate.Finish with a list of the pages you created or changed.Run it from the omnibar:
@topic-synthesis how SQLite write-ahead logging worksExample: Nightly Worktree Disk Cleanup
Section titled “Example: Nightly Worktree Disk Cleanup”Reclaim disk space from finished git worktrees every night.
| Field | Value |
|---|---|
| Slug | nightly-worktree-cleanup |
| Target Directory | your repository, for example /home/you/code/my-project |
| Cron Expression | Simple: daily at 03:00 (in Advanced: 0 3 * * *) |
| Enable scheduled runs | on |
| Keep Sessions | 7 |
Command / Prompt:
Clean up this repository's git worktrees.
For each worktree except the main checkout:1. Skip it if it has uncommitted or untracked files, or if a running session is using it.2. Look up the pull request for its branch with the gh CLI.3. Remove it with "git worktree remove" (never --force) only if it is clean and its pull request is merged or closed.
Do not delete branches. If you are unsure about a worktree, keep it.Finish by sending me a summary: what you removed, what you kept and why,and how much disk space you freed.Run it by hand once and read the summary before you enable the schedule. An unattended run stops at any command your approval rules do not allow, until you decide it in the Review Queue.