Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By choiyounggiv2.4.1MITIn 1 marketplace
A memory lifecycle for Claude Code's native file-based memory: a save gate against hallucinated memories, tiered expiry (short-tier memories archived — never deleted — when they lapse), a propose-then-confirm consolidation pass (merge/dedupe long-tier memory), a correction-signal hook that logs likely corrections for the consolidate pass, a gated, budgeted habit frame (capture passes damage/recurrence/generality gates; the always-loaded rule file is capped at the write, with case records and retired rules on demand), and an optional identity setup (names for the user and the assistant). Local-only, English, no org-specific content.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
memory, lifecycle, habits, consolidation, expiry, corrections, claude-md
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
English | 한국어
A memory lifecycle for Claude Code's native file-based memory.
Claude Code can already store memories. What it lacks is a lifecycle: facts get saved unverified (and later recalled as if true), transient notes pile up forever, and lessons learned in one session evaporate before the next. This plugin adds the loop around the storage:
capture ──────────► operate ─────────────► retire
correction signal save gate + expiry sweep →
(flags a mistake) tier/expires, archived/ (never deleted)
consolidate
Plus three things a lifecycle makes possible:
OUTPUT.md — an always-loaded output-style rule file: explain like I'm five, lead with the next action, number multi-step work and restate where you are, one next step at the end or nothing, results as "what now works / cause + fix / minutes", at most five visible items per group, and a list of what must never be trimmed (evidence, repro commands, verbatim errors). The action-first and state-restating rules follow i-have-adhd; the evidence rule is ours. Goal: less reading time, less generation time, fewer tokens. The file is yours: your rules sit above a managed block that a SessionStart hook keeps in step with the template.
HABITS.md — a distillation frame that turns corrections and incidents
into standing behavior (positive practices 🟢, hard lines 🛑). Capture is
gated three ways (damage → 🛑/🟢, recurrence, generality) and the file is
budgeted: 8000 bytes / 24 rules, enforced at the write by a PreToolUse
guard, because an always-loaded file is re-read on every request. Case
records live in HABITS-CASES.md and retired rules in HABITS-ARCHIVE.md,
neither loaded, reached via [Cnn] pointers.
Identity — a one-time, declinable offer to set names for the user and the assistant (the assistant may pick its own name), injected as context every session. Continuity you can address by name.
/plugin marketplace add choiyounggi/groundwork
/plugin install memory-loop@groundwork
Then run /memory-loop:setup (slash-command only) — it walks through
identity, the habit files, the output-style file, and config, and verifies the
hooks respond.
setup is the one place the plugin edits your ~/.claude/CLAUDE.md: it adds a
single managed block with two import lines, after writing a backup next to the
file —
<!-- groundwork:memory-loop imports — managed by /memory-loop:setup; edit the files, not these lines -->
@groundwork/HABITS.md
@groundwork/OUTPUT.md
<!-- /groundwork:memory-loop -->
It never duplicates a line you already have and leaves your own text as it is (at most a newline before the block). Re-running is safe. To uninstall, delete the block — and any import line you had added by hand outside it.
Hooks and skills update with the plugin; your HABITS.md does not. Templates
are only copied by setup, and setup never overwrites an existing file — so
after an upgrade the code knows about the two-file layout while your habit file
is still whatever you had. To close that gap:
/memory-loop:setup — it creates HABITS-CASES.md and leaves HABITS.md
untouched.habit skill's migration step: move each 🟢/⚙️ entry's
(← background: …) prose into a ## Cnn section in the cases file, leaving
[Cnn] on the rule. 🛑 entries stay as they are.Doing nothing is also fine: a single-file HABITS.md keeps working. The
SessionStart memory-upkeep check will mention the split once the file
crosses habitsSplitWarnBytes, and it tells you when no cases file
exists yet.
OUTPUT.md is still your file, but from 2.3.0 it has two parts: your own rules
at the top and one managed block (between
<!-- groundwork:memory-loop output-style … --> and
<!-- /groundwork:memory-loop output-style -->) that mirrors the plugin
template. The output-template-sync.sh SessionStart hook keeps that block
current: when the template changes, the block is replaced and everything
outside it is copied unchanged, with a backup written next to the file. A
marker quoted inside a ``` code fence is your prose and is never taken for
the block.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
memory-loop@buildwithclaude is listed by davepoon/buildwithclaude — review the source before installing
npx claudepluginhub davepoon/buildwithclaude --plugin memory-loop