Use when the user asks to "remember this", "what do you remember", "forget that", "check your memory", or wants their agent to keep preferences, workflows and project history across sessions. Gives the agent local, file-backed long-term memory through the free, open-source halflife-mcp server (Apache-2.0), with memories that fade unless used and corrections that supersede instead of overwrite.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Halflife Memory?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/oleg67-halflife-memory)
---
name: halflife-memory
description: Use when the user asks to "remember this", "what do you remember", "forget that", "check your memory", or wants their agent to keep preferences, workflows and project history across sessions. Gives the agent local, file-backed long-term memory through the free, open-source halflife-mcp server (Apache-2.0), with memories that fade unless used and corrections that supersede instead of overwrite.
---
# halflife-memory
Long-term memory that stays on the user's machine. Memories are Markdown files with a SQLite
index, served by the `halflife-mcp` MCP server. Nothing is sent anywhere by the server.
## 0. Check the server is connected
This plugin starts the `halflife` MCP server with `uvx halflife-mcp`. Look for the
`memory_brief`, `memory_recall` and `memory_remember` tools. If they are missing, `uv` is
probably not installed (https://docs.astral.sh/uv/) or the server failed to start (`/mcp`
shows why). Tell the user; do not improvise memory with ad-hoc files.
## 1. Start of a non-trivial task
1. Call `memory_brief(scope=<absolute project path>)`. Preferences and procedures in it apply
to this task.
2. Call `memory_recall(query=<one-line task description>, scope=<same path>)`.
3. Treat results as context, not authority. The user's current request and the actual code or
docs win. Verify facts before acting on them.
Use `scope` = the project's absolute path when working in a project (it is normalized to the
git root). Omit it or use `"global"` for things that apply everywhere.
## 2. During the task
| Situation | Call |
|---|---|
| User states a preference or corrects you | `memory_remember(kind="preference", ...)` right away; global scope unless project-specific |
| A workflow worked and will be reused | `memory_remember(kind="procedural", ...)` |
| You inferred something the user did not say | `memory_remember(..., provisional=true)`; it stays hidden until confirmed |
| A recalled memory proved right or useful | `memory_reinforce(id)` |
| A memory is wrong or outdated | `memory_remember(<correction>, contradicts=<old id>)`; the old one is archived, not edited |
| User asks to forget something | `memory_forget(id)`; this deletes permanently, confirm the id first |
Do not reinforce a memory just because you recalled it. Reinforce only when it was confirmed or
actually helped.
## 3. End of a substantive task
Write one `kind="episodic"` memory: goal, what was done, decisions, open items. Use pointers
(paths, URLs, ids) instead of copying content.
## 4. Writing good memories
- One fact per memory. Give it a short `description`: recall and duplicate detection rely on it.
- Write the durable rule, not the conversation: "Use uv, not pip, for Python projects", not
"The user said in this chat that...".
- Never store secrets, credentials, raw transcripts or unnecessary personal data. The server
refuses writes that look like secrets; do not try to work around that.
- Pass `entities` and `relations` when the memory is about named things (a service, a library,
a person's role) so graph recall can find it.
## 5. When the user asks what you remember
Use `memory_list` or `memory_recall` and answer with the memory text, its kind, its status
(active or provisional) and its id. Offer to correct or forget anything that is wrong.
## Output format
When you used memory in a task, add one short line at the end of your answer, for example:
`Memory: recalled 2, reinforced 1, saved 1 preference (provisional).`
Skip the line if you did not touch memory.
Full tool reference: https://github.com/Oleg67/halflife-mcp#tools