Skip to content

Automations

An automation is a prompt that an agent runs on a schedule or when you click Run now, such as a nightly code review or a morning look at the logs. Each one is a folder with the prompt, its skills and scripts, on this Mac or on a server. The result lands in the Inbox, where you read it and hand its tasks to agents.

Open Settings › Automations. The empty Inbox has an Automations link to it too.

On the left is the tree: automations grouped by project, each with a tick, its files and its skills, and + Add at the bottom. On the right are the settings of what you selected: the automation’s General, Tools and Runs, a skill, or a file open in the editor.

Settings › Automations with Run automations: Always at the top right; the tree groups automations under BOOKMARKS and BOOKMARKS-EXTENSION, and Morning triage, ticked and every day at 08:00, is open with PROMPT.md, the script collect.sh marked run first and the skill triage; on the right Morning triage is scheduled for today 08:00 and its General tab shows Where to run: This Mac, Project: bookmarks, When: Every day at 08:00, if missed within 12 h, Run first: collect.sh, Run after: None, Show in Inbox: When there's something to do, Agent: claude with Sonnet, and Tasks at once: 3
Morning triage runs every day at 08:00 on this Mac. Its script collect.sh runs first and spends no tokens.

There are two ways:

  • Ask an agent: “make an automation that every morning reads the error logs and reports what’s new”. It writes the folder, and the automation waits for your Allow. An agent in a project makes automations of that project; the agent in Scratch can make them for any project.
  • + Add at the bottom of the tree makes a new automation on the machine of the selected row, or on this Mac. Type its name. It starts with Manual only and the prompt “What should the agent do on each run?”.

Then write the prompt: click PROMPT.md in the tree and edit it. Say what to look at, what counts as a problem and what to leave alone.

Long how-tos go into skills. Right-click the automation and choose New skill; give it a name, a line about it, and Loads when, when the agent should load it. Its text is the skill’s SKILL.md. New file adds a script or any other file to the folder.

Nothing new or changed runs until you allow it. A yellow block over the settings says This automation is new on this Mac. It runs only after you allow it: or This automation changed., lists what it would run and what differs from the version you allowed last, and names the agent that saved it. Read it and click Allow.

An agent can’t allow anything itself. While an automation waits, its row says waits for Allow, and Drakkar shows a notice, such as Nightly review changed, with Show.

Allow covers every file of the folder except data/: that is where the agent writes, so nothing runs from it.

  • Where to run: this Mac or one of your servers; Connect a server… adds one. On this Mac an automation runs also while Drakkar is closed; it needs the Mac on and you logged in. On a server it runs also while this Mac is off, and the result comes to this Inbox when Drakkar connects. Picking another machine moves the automation there.
  • Project: the agent reads the project in its main folder, read only, and tasks go to its backlog. With No project it works in its own folder and asks which project when you take a result. A folder of several repositories is one project: the agent reads all its repositories.
  • When: Every 10 minutes, Every hour, Every day at, Weekdays at, Mondays at with a Time, Custom with a cron expression, or Manual only, which runs only with Run now. The line under it says when the next run is.
  • if missed, within N h: a run the Mac slept through, or the server was down for, still runs once afterwards within that many hours; later it is skipped. 12 by default.
  • Run first: a script that runs before the agent and spends no tokens. If it prints nothing, the agent doesn’t start. What it prints goes to the agent. It gets the previous run’s time as $LAST_RUN.
  • Run after: a script that runs after the agent, with the result as a file, such as one that sends it to a chat.
  • Show in Inbox: Always, When there’s something to do (default) or Never. With Never the result stays only in Runs. A failed run lands in the Inbox anyway.
  • Agent and Model: Opus, Sonnet or Haiku.
  • Tasks at once: how many tasks this automation starts run at a time, 1 to 10, 3 by default; the rest wait in the Inbox as in queue.

Scripts are .sh or .py files of the folder, outside data/.

The tick before the automation in the tree puts it on its schedule. Without the tick it runs only with Run now.

Everything is off until you turn it on. The files of the automation’s folder are always allowed.

  • Built-in:
    • Commands: off, Any command on this Mac, or Only: the commands you list. Commands read only the automation’s folder and its project and write only to data/. With Only:, read-only commands like ls, cat and grep also run inside those folders.
    • Web search, Web fetch, and Subagents (they get the same tools as the automation).
  • Drakkar › Start a task in its own workspace: off, the agent only proposes tasks and you start them from the Inbox; on, each task gets its own workspace and agent.
  • Connections: the tools of your connections, such as a log service, a chat or a server over SSH, each turned on by itself. A plain secret turned on here is in the environment of the agent, Run first and Run after; its row says under which name. Add connection… adds one.
Diagram: the schedule or Run now starts a run. The optional Run first script runs; if it prints nothing, no agent starts. Then the agent works with its Tools for at most an hour, and the optional Run after script gets the result. The result becomes an Inbox item as Show in Inbox decides; a failure always does. Only the version you allowed runs.

Click ▶ (Run now) next to the name, or choose Run now in the automation’s menu. While it runs, Stop stands in its place. A run with no result after 1 hour is stopped and fails.

The row in the tree says how the automation is doing:

  • scheduledTicked: it runs on its schedule.
  • not scheduledNot ticked: it runs only with Run now.
  • runningA run goes on now.
  • waits for AllowNew or changed, it runs after you allow it.
  • failedThe last run failed, or the automation can’t run; the row says why.
  • offRun automations is Off.

Runs lists the runs, newest first: When, Status, Result, Time and Tokens. A run is done, nothing to do (Run first printed nothing, or the agent found nothing new), failed, stopped (by you), skipped (missed and past its window) or waits for Allow. Click a run to read its result; tasks it started are listed under STARTED. For a run that goes on, Show output shows what the agent is doing.

The Inbox holds what automations bring back: reports, digests, questions, failed runs and the tasks they started. From there you hand the work on to an agent or to the Backlog.

Press ⌘8, choose View › Inbox, or click the Inbox button at the bottom of the left rail. The Inbox covers the sidebar and the work area; the mode under it stays as it was. Esc or ⌘8 closes it. While it’s closed, a dot on its rail button says that something waits for you or is working.

The Inbox shows every project’s items; the number on Inbox counts those that ask something of you. Project keeps one project; items of automations without a project are under No project. When items come from more than one machine, Machine keeps one of them, and a strip over the list says when a server is offline, such as No connection to dev-1 since 14:02.

Each row shows a dot, the title and the time, and under them the status word, the automation and the project. Once you have read an item and it asks nothing, its dot turns grey. ↑ and ↓ move between items.

Kind What it is
Report A run’s result with problems it found or things to do.
Digest A result only to read. A read digest moves to Archive when you select another item; Undo in the notice brings it back.
Question The run can’t go on without your answer.
Failed The run failed: why, and what to do about it.
Task A task the automation started in its own workspace.

The card opens with a line naming the kind, the automation, the project, when it ran, how long it took and the tokens it spent. Whether a finished run lands here at all is the automation’s Show in Inbox. A new item also shows a notification.

A report lists its problems and tasks, under its conclusion when it has one. The counts under the title say how many are urgent, high and normal. Each problem has its card: its title and tag, what is wrong, Fix: with what to do, and › Details for the full analysis. An urgent or high problem has its colour down the card’s left edge.

The Inbox with the report Nightly code review: 3 problems, 3 tasks selected in the list above a README check digest; the card's line reads Report · Nightly code review · bookmarks · Today 05:44 · 3m 34s · 35.2k tokens, the counts 1 urgent, 1 high, 1 normal and 3 tasks; three problem cards with their tags: an urgent one with a red edge and a Fix, a high one with a yellow edge, and a normal one with its Details open; under Tasks, one task says Working in its workspace with Go to workspace, and two offer Start agent and Add to Backlog
One task of the report is already taken: an agent works on it in its own workspace.

Each problem and task ends with two actions:

  • Start agent ▾ starts an agent on it, given its title and details: in a New workspace (own copy and branch, merge when it’s done) or in the Main checkout (right in the project, on your current branch).
  • Add to Backlog adds it to the project’s Backlog.

For an automation without a project, both ask which project first. Once taken, the line says what became of it: In bookmarks backlog with Undo, Working in a workspace with Go to workspace or Go to session, Needs you, Agent finished or Done.

If the agent was refused a tool it needed, a yellow bar says Agent wasn’t allowed to use that tool; Allow in Tools opens the automation’s Tools.

A question lists its answers in a frame. Click one: the card says Sent to the agent, and the run goes on with your answer. Not a task moves the question to Archive without telling the agent.

The card says what happened and, under What to do:, how to fix it:

  • Run again starts a new run with the same prompt and tools; the card says Running now. A new item lands here when it ends.
  • Show output unfolds the run’s output; Copy raw output copies it.
  • Allow the setup appears when a task couldn’t start because the project’s workspace setup waits for your Allow. It opens Workspace settings.

The usual reasons are in Troubleshooting.

With Start a task in its own workspace on, each task the automation finds starts in a new workspace with its own agent, as a Task item:

  • in queue: it waits for a free place under Tasks at once; Change limit opens that setting.
  • working, needs you, done: what its agent is doing.

Open workspace shows the task’s workspace in the project. The agent stops when it’s done and waits for you, unless the prompt tells it to merge.

The terminal icon next to the title (Continue in terminal) opens the run’s agent session in a terminal, in the card’s place: ask it what you want to know about the result. Here the agent asks you before it runs commands. ‹ Card goes back to the card while the session keeps running; Back to terminal returns to it.

  • Archive: the icon next to the title, or right-click a row. The item moves to Archive; Undo in the notice brings it back, and in Archive Restore to Inbox returns it.
  • Delete: right-click a row, or press ⌘⌫. The item goes to the Trash; Undo in the notice brings it back.

If the item’s agent is still working, Drakkar asks first: Archive and stop the agent? or Delete and stop the agent?

Right-click an automation for Run now or Stop, New file, New skill, Rename, Reveal in Finder and Delete. A skill’s menu has Rename, Duplicate (⌘D), Reveal in Finder and Delete (⌫).

Delete moves the folder to the Trash; Undo in the notice brings it back.

  • Run automations, at the top of Settings › Automations: Always (default), While Drakkar is open, or Off. Off stops what runs; Run now still works. If macOS has turned Drakkar off in Login Items, the page says Turned off in Login Items with a link to System Settings.
  • Settings › Connections: what the agent can reach. See Connections.
  • Settings › Notifications: how new Inbox items notify you. See Notifications.