Filament's long-term memory — what it keeps (the archive, claims by workspace, rules, procedures, open threads, the dossier and pages), how it briefs an agent, its tools and the rules for using them, the person's controls (on and off, per chat, per project, its model, Library › Memory, @mem), Settings › Memory row by row and the console's memory settings, backups and restoring one, importing chats from other agents, the engine, and what it costs. Load it when the person asks what Filament rem...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Filament Memory?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/invertiblematrix-filament-memory)
---
name: filament-memory
description: Filament's long-term memory — what it keeps (the archive, claims by workspace, rules, procedures, open threads, the dossier and pages), how it briefs an agent, its tools and the rules for using them, the person's controls (on and off, per chat, per project, its model, Library › Memory, @mem), Settings › Memory row by row and the console's memory settings, backups and restoring one, importing chats from other agents, the engine, and what it costs. Load it when the person asks what Filament remembers, why it did or did not recall something, how to correct or forget a memory, how to back memory up or bring in old chats, or how to turn memory off.
---
# Filament's long-term memory
## In six lines
1. Every conversation is archived word for word (encrypted, `archive.db`); memory learns claims from it with its own
model at boundaries (a compaction, 30 minutes idle, or on request).
2. Each request gets a **briefing** (the person's rules first, then facts, the project's items, past sessions) and a
short per-message block; memories whose file is gone are held back. The briefing is built anew at each compaction,
on what the chat is about then; its "Where things stand" says the day git was read.
3. A memory is a lead, not the truth: check it against the files and git before acting on it.
4. Remember only what a later session could not re-read: the person's rules, corrections and decisions with their
reason, and pitfalls. Use their exact words (`quote`) only for what they said.
5. Correct what changed (`filament_memory_correct`), forget what was never true, close a finished open thread.
6. Memory on or off is the person's choice: Settings › Experimental › **Use memory**, or `filament memory on|off`.
## What it keeps
- Kinds: **fact**, **rule**, **preference**, **decision**, **procedure** ("How to <goal>: 1. … 2. …"), **open
thread** (unfinished work), **pitfall**. Each says how it is known: *user said*, *user's words*, *user corrected*,
*inferred*, *assistant noted*, *a sub-agent found*. Nothing is filed by matching words.
- What a sub-agent establishes is read from its report: facts, conventions and procedures, three at most, filed as
*a sub-agent found*.
- Claims belong to a workspace: **Everywhere**, or a project. Recall (the briefing, the per-message block, a
sub-agent's brief) keeps to the chat's project and Everywhere; a chat in no folder gets Everywhere alone. Another
project's memory comes only from a search that asks for every project's, each line naming its project.
- A dossier line gives the curator's words, not a memory's own: a memory it only cites still comes whole when a
message asks for it.
- The **curator** passes over a project once memory learned something there since its last pass, at most every 6
hours (`memory.curator.everyHours`, the fewest hours between passes), or on `@mem curate`: merges, checks files, retires stale items, writes
the project's **dossier** and topic **pages** (`page:<name>`), and asks questions (Library › Memory › Questions,
`@mem inbox`). Each pass is undone with `@mem undo r<n>`.
- Words from past sessions come as the one sentence of a turn that says what was searched for, or not at all: never a
piece of a path, a link, a command or data.
- Pitfalls and open threads (on a file or folder of the project, never the project's own folder) ride on the result
of the tool call they concern: in Filament's loop before the next
step; Claude Code hears them from Filament's hook after that call or the next, Codex at its next step, Cursor's CLI
and any agent that takes no words while it works at the end of Filament's next tool answer. A procedure comes whole
with a message that names its goal.
- The engine (local embeddings) installs offline into the data folder (about 650 MB); until it is ready, recall
matches words only.
## The agent's tools
| Tool | What it does |
| --- | --- |
| `filament_memory_search` | this project's memory and Everywhere, past sessions included: facts, rules, procedures, past turns; `all_projects: true` searches every project's, each result of another naming it |
| `filament_memory_sessions` | past sessions by words the person typed |
| `filament_memory_load` | a session's record (`chat`, `summary`, `full`, `compact`, `lineage`, `page`) |
| `filament_memory_grep` | where words were said in a session |
| `filament_memory_remember` | store something new and durable (`kind`, `text`, `quote`) |
| `filament_memory_correct` | replace a memory that changed or was wrong |
| `filament_memory_forget` | retire one that was never true |
| `filament_memory_close` | close an open thread whose work is done |
| `filament_memory_confirm` | mark one that proved right |
| `filament_recall` | this chat's own archive (not memory; there even when memory is off): `turn` brings one back whole, `result` (an `r:…` pointer) one result with `from` to read a long one part by part, neither lists the turns (`before`) |
- `quote` must be the person's exact words from this chat (8 characters or more) to file a memory as theirs.
- A memory's `text` is kept whole, its lines as written, up to 2,000 characters; remember and correct refuse a longer
one, giving the limit and its length: say it shorter, or as two memories.
- A procedure that does not read "How to <goal>: 1. …" is refused with the reason: no "How to", no colon after its
goal, a goal past 120 characters, or no step.
- A tagged past chat (`[title](chat:<id>)`) is loaded only when the work needs it; never load a past session on your
own to pick up its work.
- Coding agents get the same tools over Filament's MCP server. An outside agent can use `/mcp/memory`
with the inbound key (`claude mcp add --scope user --transport http filament-memory
http://127.0.0.1:20300/mcp/memory --header "Authorization: Bearer <your inbound key>"`; Settings › Connect other
apps has the line ready to copy).
## The person's controls
- **On or off, everywhere**: Settings › Experimental › **Use memory**, or `filament memory on|off` (`memory.enabled`).
Off, chats are still archived. Settings › Memory has no off switch.
- **One chat**: `@mem off` / `@mem on`. **One project**: Settings › Memory with the project picked › **Leave this
project out of memory** (`memory.capture.excludeFolders`). **One client**: `memory.capture.excludeClients`, or the
header `x-filament-memory: off`.
- **Its model**: Settings › Memory › **Model** (with its effort), or `filament memory model <name|auto|off>`
(`memory.models.summarizer`). Unset, it uses each chat's compaction model, else the chat's own.
- **Library › Memory**: **Memories** (Confirm, Correct, Retire, Restore, History), **Dossier** (Rewrite now),
**Questions**, **Models**; **Add** (Rule, Preference, Decision, Fact, How to). A chat's memory widget opens it on the
chat's folder. A memory's wand **Add to a skill…** puts its words into a skill made in Filament.
- `@mem` in a message: `status`, `recall` / `search`, `sessions`, `load`, `remember`, `rule`, `prefer`, `procedure`,
`forget`, `confirm`, `correct <id> <text>`, `history`, `curate`, `inbox`, `accept` / `reject`, `undo`, `off` /
`on`, `new`.
- A chat line "Memory briefed the agent: …" says what it was told, with **Add to next message**.
- A session's **Memory** pill: how many memories the last turn was shown (a dot when memory spoke at a call or has a
question); its popover lists them with Confirm, Correct and Retire, what the turn taught, the questions, and the
chat's switches.
## Settings › Memory, row by row
Under **Applies to**, *All chats* or a project (under All chats, **A project's memory** says to pick one for the three
project rows):
| Row | What it does |
| --- | --- |
| **Model** | memory's model with its effort chip (low unless picked): `memory.models.summarizer`, `memory.models.effort` |
| **Other agents** | opens Settings › Connect other apps, where the `claude mcp add` line waits to copy |
| **What memory holds** | opens Library › Memory |
| **Leave this project out of memory** | a project picked: its folder joins `memory.capture.excludeFolders`; a folder above it in the list keeps it out too, and the row says so |
| **Memory reads its chats** | a project picked: off, memory learns nothing from them (`privacy.learn`), and what they are shown ages no memory; they still get what memory holds |
| **Searchable** | a project picked: off, its chats leave the search index (`privacy.index`); on again, they are indexed again |
| **The engine** | where it stands, with **Install**, **Restart**, **Uninstall** |
| **Recall by meaning** | `memory.engine.embeddings`; off, words only (a change needs a reindex) |
| **Back up daily**, **Backup folder**, **Hour of day**, **Backups kept** | `memory.backups.enabled`, `memory.backups.folder`, `memory.backups.hour` (0 to 23), `memory.backups.keep` (14) |
| **Memory folder** (Advanced) | `memory.folder`: empty is `<data folder>/memory`; a folder that holds a memory already is adopted |
The one off switch is Settings › Experimental › **Use memory**; Experimental also has **Name chats with memory's
model** (`experimental.nameChats`).
## The console's Memory › Settings
The console (`http://127.0.0.1:20300/`, Memory › Settings) holds the rest, saved with **Save changes**:
- **Engine and folder**: `memory.enabled`, `memory.folder`, `memory.engine.autoInstall` (off: nothing installs until
**Install**), `memory.engine.bank` (a separate database, for work and personal).
- **Autopilot**: `memory.autopilot.enabled`, `memory.autopilot.mode` (`conservative`, the default: unused facts fade;
`eager`: wider recall), `memory.autopilot.briefingTokens`, `memory.autopilot.turnTokens` (300),
`memory.autopilot.minScore` (0.2), `memory.autopilot.tools`, `memory.autopilot.toolIterations` (4 rounds a client's
request; Filament's loop answers memory calls in its own rounds, each result whole),
`memory.autopilot.loadBudgetTokens` (30,000), `memory.autopilot.cue` (the first reply's line naming related
sessions), `memory.autopilot.rewrite` (off: a small model call that tries other search words).
- **Capture**: `memory.capture.turns`, `memory.capture.learn`, `memory.capture.idleMinutes` (30),
`memory.capture.dailyCap` (200 items a day), `memory.capture.inputCapChars`, and the lists
`memory.capture.excludeClients` (user-agent prefixes), `memory.capture.excludeModels` (route-style patterns),
`memory.capture.excludeFolders`.
- **Models**, **Commands** (`memory.commands.prefix`, `@mem` at first), **Import past sessions** (Claude Code's chats
at a click, or an existing Mnemosyne database), **Backups** (**Back up now** once a folder is saved, the list on disk
with **Restore**), **Privacy** (`memory.privacy.encryptArchive`, `memory.privacy.searchIndex`), **Rules that act**
(`memory.rules.act`: the ids of learned rules allowed to ride on a matching tool call's result, `i12`).
- The curator: `memory.curator.enabled`, `memory.curator.usesModel` (off: by rule alone, no dossier written),
`memory.curator.maxCalls` (20 a pass), `memory.curator.everyHours` (6).
## Step by step
- **Back memory up**: Settings › Memory › **Backup folder** (a Google Drive for Desktop or OneDrive folder is the
practical choice), **Back up daily** on, an **Hour of day**. **Back up now** is in the console's Memory › Settings ›
Backups. Each backup is a consistent copy of the archive, the engine's database and `memory.json`, gzipped with
checksums; the engine itself is never backed up.
- **Restore one**: the console's Memory › Settings › Backups › **Restore** on its row. Its checksums are checked first;
the live archive and database are replaced, the engine restarts, and anything remembered and any chat made since is
lost. A copy that drifted in cloud sync is refused.
- **Keep a project private**: Settings › Memory, pick the project under **Applies to**, switch on **Leave this project
out of memory**. For one chat: `@mem off`.
- **Bring chats from Claude Code, Codex or Cursor**: Settings › Import lists each agent with what it found. Switch on an
agent's **Sync**, pick the reach (7, 30 or 90 days, or Everything), press **Sync now**; **Browse** brings one chat or
one folder's. Nothing comes in until a Sync switch is on. **Memory reads what is imported** (off at first) has memory
read them too; **Let memory read them** reads those still unread, a model call each.
- **Make a rule act at the moment of action**: find its id (`i12`) on its memory line, then add it to the console's
Memory › Settings › **Rules that act**.
- **The engine failed to install**: Settings › Memory › The engine says why; **Install** tries again. Until it is ready,
recall matches words only.
## Changing one for the person
`filament settings set memory.<path> <value>` sets any of the paths above, as in
`filament settings set memory.backups.hour 4`; `filament settings get` reads one.
`filament memory model <name|auto|off>` sets memory's model, and `filament memory on|off` the one switch: turn memory
off only on the person's word.
## Common questions
- **"Forget X"**: `@mem forget <id>` or **Retire**; kept as history, restorable.
- **"That's wrong"**: **Correct** (or `filament_memory_correct`); sessions that saw the old one are told once.
- **"Why didn't it recall?"**: memory is off, the chat or project is left out, the engine is still installing, or the
file the memory names changed.
- **"What does it cost?"**: only memory's model calls at learning boundaries; Traffic shows them as `memory ·
Learning`, counted apart from chats.