/memory-loop:rememberfrom memory-loop
Save gate for persistent memories — confirm tier (long/short) and expiry with the user before writing, so hallucinated or transient facts never enter long-term memory. Use whenever saving a memory file, and when the expiry sweep reports archived memories.
Ships in memory-loop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A wrongly saved memory gets recalled later as if it were fact — that is one of the biggest sources of persistent hallucination. This gate blocks it at the entrance.
State the candidate and its evidence. What exactly would be saved, and how was it verified? An unverified inference is never saved — verify it first or drop it.
Confirm the tier with the user:
tier: long — keeps applying indefinitely (identity, policies,
infrastructure facts, recurring preferences).tier: short — consumed by a date or an event (schedules, in-flight
work, decisions pending).If short, agree on the expiry:
expires: YYYY-MM-DD. The expiry sweep archives it on the
first session after that date has passed — the expiry day itself is
still live (exclusive boundary).expires_when: "<event>" (e.g. "after the release ships").
Never auto-archived; you review it manually when the event happens.Write the memory file in the native format — the usual frontmatter
(name, description, metadata) — adding the lifecycle keys under
metadata:
---
name: deploy-freeze-january
description: Deploys are frozen until the audit completes
metadata:
type: project
tier: short
expires: 2026-02-01
---
<the fact>
Update the memory index (MEMORY.md in the same directory) with a
one-line pointer — the when to recall it hook, not the fact itself. Keep
it to one short line (about 150 characters) with no sub-bullets; numbers,
dates and history belong in the body. The index is loaded on every request
and the body is not, so detail in the index is paid per turn, and the
memoryIndexMaxLines check cannot see a line that has grown into a
paragraph.
Most candidates should be dropped here, before step 1:
memory-loop:habit, with its own gates), not a fact.tier: short with an
expires_when: naming the event that ends it (a release, a merge, a
decision), so the upkeep check can ask whether that event has happened.
When it ends, archive it; carry forward only a lesson general enough to
clear the habit gates.Optional: salience: 1-5 (recall priority) may be added under metadata;
memory-loop does not enforce it — it is a hint for your own recall ordering.
Two metadata dates drive the upkeep check, and both are cheap:
modified: YYYY-MM-DD — set it whenever you change a memory's content.
Editing the body while leaving this stale is what makes an index line and a
file disagree without anything noticing.reviewed: YYYY-MM-DD — set it when you re-verified a memory and it was
still true, with nothing to change. Without this there is no way to say "I
checked, it holds", so the same file is flagged forever and the check trains
you to ignore it.Re-verification means you ran the command or read the source again — not that the memory still sounds plausible.
Files without a tier key are outside the lifecycle — the sweep never
touches them. That is the safe default for every memory that existed before
this plugin was installed. Never bulk-add tier to old files; tier them one
by one, through this gate, as they come up.
The SessionStart upkeep check names memories untouched past
memoryReviewDays, index drift, orphans and broken index links. It never
writes. Offer /memory-loop:consolidate for anything it lists — except:
tier: short with a conditional or missing expiry. Nothing archives
these — the sweep only acts on an absolute expires:. The question is not
"is it old" but "did the event already happen": if it did, archive it; if it
did not, leave it and set reviewed:; if it never will, convert it to
tier: long or give it an absolute date, through this gate.reviewed: line.The expiry sweep prints which files it moved to archived/. Then:
MEMORY.md
(the file bodies are preserved in archived/ — nothing is lost).archived/ and re-save it as tier: long — through this
gate, with their confirmation.What SKILL.md sets; muted values are Claude Code's defaults
memory-loop@buildwithclaude is listed by davepoon/buildwithclaude — review the source before installing
npx claudepluginhub davepoon/buildwithclaude --plugin memory-loop6 skills in this plugin
/consolidatePeriodically merge the memory index, long-tier memory files, and the habit file — deduplicate, resolve contradictions to the current truth, absolutize dates, bring HABITS.md back under budget — and propose the result for your confirmation before any write. Use when MEMORY.md grows large (~120+ lines), when the habit file is over budget, or when memories accumulate duplicates, contradictions, or stale facts./habitDistill a lesson — a mistake, a user correction, or a praised behavior — into HABITS.md as a positive practice or a hard line, after it clears the damage/recurrence/generality gate. Use after the user corrects you, after an incident, or when a correction signal fires./identityOther plugins' skills for the same job