AI Memory Library
Keep architectural decisions, lessons, and conventions in workspace or group libraries, then use Recall to search across sessions.
Confirm what the library stores and who uses it
A library stores decisions and lessons explicitly saved by you or an agent; it does not automatically merge every agent conversation. Choose a single-project or shared-workspace library and include only the projects that need it. Files are local; mounting a remote workspace does not automatically synchronize memory libraries.
Entries can contain project details. Do not save passwords, tokens, or information you are not authorized to share; verify sources, versions, and dates before relying on a remembered claim.
Set up a library
Create or select a memory library in Settings > Memory Library and associate its workspaces. Libraries can cover one workspace or a group. Install the generated recall skill for your target AI tool; use its generated path rather than a generic recall directory.
Commands
Run from the intended project directory and set SKILL_PATH to the generated, installed recall skill directory. The scripts derive workspace context from the current Git root or directory. Quote the whole search phrase: recall.sh searches only its first argument. It tries BM25 through the API, with a local text-search fallback.
"$SKILL_PATH/recall.sh" "terminal session"
"$SKILL_PATH/remember.sh" architecture "Use EventBus for cross-service communication"
"$SKILL_PATH/remember.sh" lesson "Record the failure and its reproduction steps"
"$SKILL_PATH/forget.sh" "old auth pattern"remember.sh saves a categorized memory. forget.sh lists matching candidates for review; it does not delete them. Inspect candidates in Memory Library before running archive, restore, delete, merge, or prune actions.
Categories and usage
- architecture: design decisions and technology choices.
- lesson: debugging discoveries and edge cases.
- pattern: reusable solutions and conventions.
- style: naming and code organization.
- preference: tooling and workflow preferences.
Search prior decisions before choosing an approach; save confirmed lessons after solving a problem. When a remembered claim is stale or misleading, review its evidence and status before using it again.
Storage
Configuration lives at ~/.termdock/memory/config.json. A single-workspace library uses workspaces/<hash>; a grouped library uses groups/<hash>. Each library has index.md and entries.json under ~/.termdock/memory/. The generated skill points at its library.
~/.termdock/memory/config.json
~/.termdock/memory/workspaces/<hash>/index.md
~/.termdock/memory/workspaces/<hash>/entries.json
~/.termdock/memory/groups/<hash>/index.md
~/.termdock/memory/groups/<hash>/entries.jsonUse maintenance actions instead of editing raw memory files as the default workflow. Before moving or deleting a library, back it up and verify the copy.
Review and maintenance
The Memory Library review panel shows health summaries and maintenance signals. Filter by status, category, source, or text; edit, pin, archive, restore, or delete entries. Archive lets you set an entry aside while preserving it for review.
Verify the setup
- Save one confirmed, non-sensitive project convention with remember.sh in the appropriate category.
- Run recall.sh from the same project directory and skill path, and confirm the entry is returned.
- Search from a new agent session and verify it uses the same library rather than another group.
- When a test entry is no longer needed, review and archive or explicitly delete it in the panel. Running forget.sh does not mean it was deleted.
If recall finds nothing
Check the current project, library association, and actual skill path. After changing workspace groups, a stale skill may be refused; reinstall the generated version rather than editing raw memory files to bypass the check. Text fallback after an API failure is not equivalent BM25 ranking. Confirm the app and configured API port before retrying.