Skip to content

Overview

Automations ​

Automations let nocturn work while nobody watches: agents run a brief on a schedule, and watches check something and act when it changes.

Automations: the agents with their schedules and last runs, and the recent runs.Automations: the agents with their schedules and last runs, and the recent runs.
The agent morning-briefing: Run now, when it runs, what it may do, what it asks for, and its runs.The agent morning-briefing: Run now, when it runs, what it may do, what it asks for, and its runs.

AskEvery morning at seven, give me a short briefing. (an agent)

An agent file with when: "0 7 * * *". It runs on its own; whatever asks becomes a draft for you.

AskTell me when the status page of my provider changes.

The assistant proposes a watch: one read-only call every so often and a notification when the answer changes. It runs only after you hold Hold to accept.

AskRun the weekly review now.

Run now on the agent's page starts one run; its tools run on their own.

What it gives you ​

  • Agents as files. An agent is agents/<name>/agent.md: a brief, a schedule and the tools it asks for. You write it; nobody can add one from a chat.
  • Nothing until you accept. An agent starts with every tool off. Its request shows in Permissions until you grant it.
  • Drafts instead of waiting. A scheduled run that hits an ask parks the call as a draft and goes on.
  • Watches without a model. A watch is a read-only tool call on a schedule, a condition, and an action: notify you, or create or update a work item.
  • Every run kept. The last 50 runs of each agent are listed and open as read-only chats.

How it works ​

Write an agent ​

md
---
description: A short briefing every morning.
tools: [http_read, knowledge_search, notify]
when: "0 7 * * *"
effort: low
---
Every morning at seven, put together a short briefing.

1. Check the knowledge folder for anything dated in the next two days.
2. Send the result with notify, as one paragraph.

Then nocturn reload, and grant what it asks for (Allow a tool for an agent).

FieldMeaning
descriptionone line, shown in the app
toolsthe tools it asks for; a request, not a grant
whena five-field cron: minute, hour, day of month, month, day of week (0–7); *, numbers, ranges, steps, lists
modela preset name from models.json
effortlow, medium or high
budgethow long a run may take, a Go duration; 2m by default
parktrue: every ask becomes a draft; false: never, the run waits; unset: drafts when scheduled

The folder's name is the agent's name. when follows the daemon's local time. A firing missed by up to 15 minutes (the machine slept) still runs; an older one is skipped. Day of month and day of week must both match.

Run and watch ​

Automations lists each agent with its schedule in words and its state: OK, WAITING, IDLE, RUNNING or FAILED. On an agent's page, Run now starts a run (Run it to confirm); Watch opens it live, Stop ends it. Runs opens a finished run as a read-only chat. In the terminal, /fire <name> [task].

Watches ​

The assistant makes a watch with watch_create when you ask it to keep an eye on something:

PartChoices
sourceone call of a read-only tool, such as http_read
refreshevery so often (at least a minute, optionally only in a window of hours and days), or before a time
whenthe answer changed, crossed a threshold, or a condition holds
thennotify you, make a work item, update its item, or add to its item's history

A new watch waits for you: the Inbox shows Watch to accept under Needs an answer, and the sheet asks Let <title> make this call? with When and Then. Hold Hold to accept, or Reject. Once accepted it runs as its own holder and may call only what you accepted. A watch that follows a work item shows under that item's Watches.

Per workspace: at most 24 watches and 600 calls an hour; a failing watch backs off up to six hours.

nocturn is open source. Example hosts and people on these pages are made up.