Skip to content

How-to

Allow a tool for an agent ​

This guide gives an agent the tools it needs, either by granting what it asks for or by setting one cell. An agent starts with nothing: every tool is off until you allow it. It assumes an agent in agents/<name>/agent.md (see Automations).

Grant what the agent asks for ​

An agent names the tools it wants in the tools: line of its file. Asking gives it nothing.

md
---
when: "0 7 * * *"
tools: [http_read, file_write]
---
Every morning, read the departures and write them to notes/departures.md.
  1. In the app, open Permissions, tap Others and choose the agent.
  2. Its column starts with an amber row, digest asks for 2 tools. Tap Review.
  3. Each requested tool has an Allow, Ask, Off switch, set to what accepting proposes. Change a line if you want less.
  4. Tap Grant these.
The request page of the agent backup: four requested tools, each with an Allow, Ask, Off switch, and Not now beside Grant these.The request page of the agent backup: four requested tools, each with an Allow, Ask, Off switch, and Not now beside Grant these.

What accepting proposes is what an unwatched run would get: allow for tools that act on nothing outside the workspace (file_read, time_now, work_create), ask for anything that reaches a host, a path, a recipient or a server. An agent on a schedule turns an ask into a draft for you to review (Review a draft). To let it read your hosts without a draft, allow those hosts as below.

From the terminal, on the daemon's machine:

sh
nocturn agent show digest      # what it asks for, beside its column
nocturn agent accept digest    # grant it, replacing those cells
nocturn reload                 # a running daemon picks it up

Allow one target for an agent ​

A tool with targets (a host, a path, a recipient, an SSH command) is allowed per target. Allow on the tool itself covers no target.

  1. In Permissions, open the tool, for example http_read.
  2. Tap Add a host and type the pattern, such as *.home.example. Under Gets, choose the agent and allow.
  3. Or, on an existing pattern's page, switch to the Agents tab and set the agent's switch to Allow.

From the terminal:

sh
nocturn perms set agent:digest http_read '*.home.example' allow --reload

--reload tells the running daemon at once. Without it, run nocturn reload later.

Allow a tool for a paired device ​

A device that calls tools, such as an MCP client, also starts with nothing. Give it tools by name:

sh
nocturn remote allow claude-desktop file_read http_read --reload
nocturn remote show claude-desktop

Each tool gets the cell an unwatched caller gets; a tool of an MCP server or a plugin gets ask.

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