Skip to content

Overview

Memory ​

Memory is a folder of short Markdown notes the assistant writes about you, and reads back in later chats.

AskRemember that Lina is allergic to walnuts.

The assistant writes people/lina.md with a one-line summary. In a chat you are watching this needs no question; the step shows in the chat.

AskWhat do you remember about Lina?

The summary of every note is already in the prompt; for the detail the assistant reads the note with memory_read.

AskForget what you know about my old address.

The assistant has no tool to delete a note. Remove the file yourself, as below.

What it gives you ​

  • Plain files. One fact is one file in the workspace's memory/ folder, such as people/lina.md, with a description line in its front matter. Any text editor reads and changes them.
  • Remembered across chats. The list of notes, one line each, goes into the system prompt of every chat and spoken session of the workspace, and of an agent that has a memory tool.
  • Only what you told it. The assistant is asked to keep names, standing preferences, projects and your corrections, and not what it read on a web page or in a document, or one-off requests.
  • A small budget. The list is capped at 2 KiB, about fifty notes. Past it, notes are left out of the prompt, and the prompt says how many.
  • Out of reach of the file tools. memory/ lies beside mnt/, so file_write cannot change a note. The only writer is memory_write.

See, correct and forget ​

ToDo this
See the notesOpen nocturn-data/workspaces/<name>/memory/, or in the terminal chat press Ctrl+K and open the memory page: its size against the budget and every note's line
See what is sentAsk "What do you remember?": the assistant lists what its prompt holds
Correct a noteEdit the file, or tell the assistant, which rewrites the whole note
Forget a noteDelete the file

The list is built again for every message, so an edit lands in the next one. A note must be Markdown (.md); a secret known to the vault is hidden from the model when a note is read.

Keep it short

The assistant is told to merge stale notes rather than pile them up. When the page in the terminal shows the budget reached, delete notes that are no longer true.

The memory tools ​

ToolWhat it doesChatVoiceAgentDevice
memory_readreads one note by its pathallowallowoff → allowoff
memory_writewrites one note, replacing it whole (up to 64 KiB)allowoffoff → askoff

These are the permission tree's defaults. In a chat you watch, the write is allowed because it shows in the transcript as it happens. An agent that fires on a schedule is not watched, so its write asks you; voice has no write at all. Change a cell in Permissions; the tools' arguments are in Built-in tools.

A write can be limited to a folder with a pattern such as people/* (Permission reference).

How it works ​

A note is not a database row: the list in the prompt is derived from the files on disk, so it cannot drift from them. The household profile (places, language, units) is separate: it has its own tools, profile_get and profile_set, and profile_set always asks.

Explore know ​

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