Capabilities

Tasks that run on their own

Hand llamay a job and close the tab. A task runs in llamay on your computer, now, on a schedule, when a folder changes or when a script posts to it, and anything that would ask for your approval in a chat waits in Studio until you answer.

Make one

  1. Open Studio (llamay app, or /studio on any llamay serve) and choose Tasks beside Chats.
  2. Press New task, or add one of the two examples in one click.
  3. Say what llamay should do, pick a model from the same list as the chat, and, for the file tools, the folder it may work in.
  4. Choose when it runs: only when you run it, once, every few hours, every day, weekdays, once a week, or when the folder changes.
  5. Press Run now to try it. The run's log shows each step; a step that needs you shows the approval card, and the Tasks tab shows a count while one waits.

From the terminal

Everything the Tasks tab does, llamay task does against the running server.

llamay task create "Summarise what changed in the folder" -title "Notes digest" -folder ~/notes -weekdays 08:00
llamay task edit notes -every 6 -at 07:30
llamay task run notes          # waits, and asks here when a step needs you
llamay task runs notes
llamay task approve notes      # or deny, for a run waiting in the background
llamay task webhook add notes  # the key is shown once
llamay task delete notes

When a run needs approval and you are at a terminal, task run shows the call and its arguments and takes a (allow once), A (allow always) or d (deny). run exits non-zero if the run failed or was stopped, so a script can use it, and every list takes -json.

What asks

A run started by you or by its schedule is yours. A run started by a webhook or by files changing in a watched folder carries input from outside llamay: that input is given to the model as data, not instructions, and in such a run every change asks, whatever the task otherwise allows.

Schedules

Times are your computer's. A task runs only while llamay is running: a time missed by under 12 hours runs once when llamay is next open, and an older one is skipped and noted on the task. Every few hours is counted in real hours, so a daylight-saving change does not move it; a daily time that falls in the missing spring hour runs just after it, and one in the repeated autumn hour runs once.

Folder watch and webhook

A watched folder is looked at every few minutes (one at least, five unless you say). A task runs only when a file was added, changed or removed, and is told which. Dot folders and build folders such as node_modules are not looked at, and what the task writes itself does not start it again.

A webhook lets a script on this computer start a task. Its key is shown once and can be replaced or removed; the body, up to 64 KB, is the run's outside input.

curl -X POST http://127.0.0.1:11435/studio/api/tasks/<id>/trigger \
  -H 'X-Llamay-Hook-Key: llamay_hook_…' --data-binary @message.txt

Save a run as a skill

A run that went well can become a skill: Save as a skill drafts a SKILL.md from the instruction and the steps that worked. Edit it, then press Add skill; nothing is saved before that.

Limits, stated plainly