Skip to Content
ownmemDocs

Memory files & tools

Your ownmem memory is a folder of Markdown files under /memories. resident.md is loaded into every chat; the assistant searches and edits the rest with memory_* and vault_* tools that run in your browser.

The /memories folder

Your memory is a folder of plain text files — usually Markdown — under /memories. You can organize it however you like, for example:

/memories
├── resident.md          ← loaded into every conversation
├── profile.md           ← personal facts
├── projects/ownmem.md
└── imports/chatgpt/…    ← imported ChatGPT conversations

The memory panel on the right shows the folder tree. You can preview, edit and save files yourself; files the assistant read or edited in the current turn are highlighted.

Your chat history is stored in the same encrypted vault (as /chats/…), but outside /memories, so the memory tools and search never see it.

resident.md

/memories/resident.md is the only file that's sent with every message, as part of the system prompt (up to 4,000 characters). Keep it short: who you are and your key preferences. Everything else stays on your device until the assistant explicitly looks it up.

How the assistant uses memory

The assistant can't see your vault directly. It calls tools, and those tools run in your browser, on the decrypted copy. Only the tool's result goes back to the model.

  • Before answering anything about you, it calls memory_search.
  • memory_search returns 5 files by default (the assistant may ask for up to 20), each with up to 3 matching lines (long lines are cut to 200 characters). It does not return whole files.
  • The full content of a file reaches the model only when the assistant opens it with memory_view (up to 400 lines per call).
  • When you ask it to remember something, it searches first to avoid duplicates, then edits the best file or creates a new one.

Memory tools

ToolWhat it does
memory_searchFull-text search (English and Chinese). Returns matching file paths with up to 3 matching lines each.
memory_viewOpens a file (with line numbers, up to 400 lines per call) or lists a folder up to 2 levels deep.
memory_createCreates a new file. Fails if it already exists.
memory_str_replaceReplaces one exact, unique piece of text in a file.
memory_insertInserts text after a given line.
memory_deleteDeletes a file or folder — you confirm in a dialog first.
memory_renameRenames or moves a file — you confirm in a dialog first.

Vault tools

ToolWhat it does
vault_statusLocked or unlocked, last sync, local vs cloud version, encrypted size and quota.
vault_unlockOpens the passphrase dialog. You type the passphrase there; the assistant never sees it.
vault_lockWipes the key, decrypted files and search index from memory.
vault_syncEncrypts and syncs your vault now.

The assistant never asks for your passphrase in chat. If the vault is locked, memory tools open the unlock dialog for you.

Sync

Changes sync automatically a few seconds after you make them, and you can sync manually. If two devices change the vault, the newer version of each file wins, and an encrypted local backup of any overwritten file is kept.

On this page