Cairn / Docs / Automations

Automations

Schedule background agent tasks that run while Cairn is open — a morning brief, a weekly review, an inbox tidy-up. Build a schedule visually, run on auto or ask before each write, and track what each run produced.

The Automations view listing scheduled automations with their schedule, latest run status, and produced notes and cards
The Automations view — every scheduled task with its schedule, latest run state, and the notes/cards it produced.

Opening Automations

Click Automations in the sidebar (the ⚡ entry above the workspace views), or the running-automations icon in the title bar next to sync. When a run is executing, that title-bar icon animates and shows a live count.

Creating an automation

Click New automation. The dialog walks you through four things:

You can also set a timezone, an optional run cap (stop after N runs), and active hours — a window like 09:00–18:00 during which the automation may fire. A run that becomes due outside the window stays pending and fires once the window opens.

Schedule builder

No cron required. Pick a pattern and the form shows exactly the controls you need, with a live "next run" preview that recomputes as you change fields:

All schedules are timezone-aware. On launch, any run that became due while Cairn was closed is caught up (once), and a slow run never stacks — if the previous run is still executing, the next is skipped.

Community recipes

In the New automation dialog, choose Start from a community recipe to browse the cairn-community automations catalog. Pick a recipe and it pre-fills the form — name, instructions, schedule, approval mode — for you to tweak before saving. Recipes are data-only (no shell access), and recipes that need connectors declare them up front so you can see and satisfy the requirement before you run.

Connectors

Automations can use the external MCP servers and HTTP services attached to the project. When you pick a connector-aware recipe, or tick Connectors in the form, the run offers those tools to the agent — so an automation can draft a Linear sprint digest, a GitHub PR summary, or a Slack daily recap and write the result into a note.

Approval inbox

Automations set to Ask mode park each write action as a durable approval item. The run pauses until you decide:

Approvals are durable — they persist across restarts in a human-attention queue, resolve once, and are idempotent per run + tool + arguments. Pending approvals are surfaced on the project Overview's triage section and as a badge, so a parked approval is never silently missed. Expired or swept items fail closed (denied), never silently approved.

Notifications

Automation completions, approval requests, and MCP writes surface in the notification center — opened from the bell icon in the title bar or the Notifications entry in the sidebar. It lists recent activity with per-item dismiss, Mark all read, and Clear all, and shows a live unread badge. Unread state persists, and notifications appear in-app while you're focused (not just as OS toasts). The center is pruned automatically (30 days / newest 1,000) so it never grows unbounded.

Run history & results

Each automation card shows its latest run status — a live running indicator with the current tool and an animated bar, or done / error / skipped / denied. Notes and cards a run produced are listed on the card, each clickable to jump straight to it. The full history lives in the Automations view; the most recent run also appears in the Recent runs section on the project Overview.

Track what automation runs cost

Every automation run reports its tokens and cost to the Usage view, alongside chat, the agent, and the one-shot AI features — filter by the Automation source to see what your schedules spend.