Skip to content

Overview

Files ​

The workspace's files are the folder mnt/, the only place on the machine the assistant's file tools reach.

AskList the files in notes and show me todo.md.

The assistant calls file_list and file_read. Both run without a question.

AskSave this list as shopping/week.md.

file_write asks first, with the path, and creates the folders it needs.

AskMail the PDF in contracts to bob@home.example.

The mail asks about Bob as a new recipient, and the draft shows the file attached. Reading the file is allowed because file_read is.

What it gives you ​

  • One folder. The file tools see nocturn-data/workspaces/<name>/mnt/ and nothing above it. A path with .., an absolute path or a link that points out is refused by the system itself, not only by a check on the text.
  • Reading is free, changing asks. Reading, listing, finding and file_stat are allowed in chats and voice. Writing, moving and removing ask in a chat, and are off for voice and for paired devices.
  • The control files are out of reach. permissions.json, PERSONA.md, memory/ and the vault lie beside mnt/, so no file tool can change them.
  • Secrets stay out. A value the vault knows is replaced before the text reaches the model.
  • Files go out by mail, and come in. See below.

The file tools ​

ToolWhat it doesChatVoiceAgentDevice
file_list, file_statlist a folder; ask whether a path existsallowallowoff → allowoff
file_readread a file as text, up to 1 MiBallowallowoff → allowoff
file_searchfind files by a glob such as *.md, up to 500allowallowoff → allowoff
file_write, file_move, file_removechange filesaskoffoff → askoff

An answer to a write can be Always for a folder, such as notes/*; * does not cross a / (Permission reference). Arguments for each tool: Built-in tools.

Use a folder of your own ​

mnt/ is an ordinary folder. To work on files that live elsewhere, put them there: in Docker, mount the host folder at /data/nocturn-data/workspaces/<name>/mnt (the daemon runs as UID 65532, so give that user the folder, as in Docker). A symbolic link inside mnt/ that points outside it does not work: it is refused. Back up mnt/ with the rest of the workspace (Workspaces).

The subfolder knowledge/ is the one that is indexed (Knowledge).

Mail attachments ​

DirectionHow
Outmail_send takes up to 10 files of 10 MiB together. A file is a path in mnt/, such as knowledge/invoice.pdf, or a picture the chat carries
Inmail_read lists a message's attachments; mail_attachment_save saves one, by default as mail/<its name> in mnt/, up to 25 MiB, and never over a file that exists

Two permissions apply. Reading a file to attach it is decided by the file_read cell of whoever sends, so a holder that may not read the workspace cannot mail a file of it. Saving an attachment is a file write and asks about its path. Each new recipient asks as well (Mail, Review a draft).

How it works ​

Explore know ​

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