Automations
Automations start an agent at a time, or when something happens. Woolshed Core runs them, so they keep running with the window closed.
automations (a dialog: the + menu's Automations…, mod.open {name: "automations"}; props {view: "new", kind?, space?, url?} open its form) starts an agent at a time or when something happens. Woolshed Core keeps and runs them (hc schedule, see hc --skill), on the machine the project's space lives on, so they run with the window closed. The list shows every computer's: when each runs next, how its last run went, Run now, Pause, Remove, and Show agent while one runs.
- When: every day or weekdays at a time, every hour, every few minutes, cron; or a check every 5 minutes: CI's latest run on a branch failed (
gh run list,glab apipipelines), the branch's pull request got a comment from someone else, a site doesn't answer (or answers 4xx/5xx), or an issue has a label (the oldest open one; its agent takes the label off). A check starts the agent once per new thing (a new failed run, comment or outage), with what it found after the task. - The agent (any installed one) opens as a new tab in the project's space, with the task as its first message. With "In a new worktree each time" (the default except for sites) it works in
~/.woolshed/worktrees/<repo>/auto-<name>-<time>on a new branchauto/<name>-<time>, from the watched branch for CI and comments; it never edits the person's checkout. - The checks and the worktree start are
~/.woolshed-automations/runon that machine (run check ci|review|site|issue <arg>,run start <name> <from> <agent...>); the dialog installs it there (machines needsh). - Before adding one for the person (
hc schedule add), ask what and when; it keeps running agents until removed. Prefer the dialog, which puts the agent in a space.
Your agents read these same words: Woolshed writes this guide to ~/.config/woolshed/AGENTS.md on every start. In it, “you” is the agent and “the person” is you.