/better-memory:siftfrom better-memory
Reviews and prunes Claude Code's auto-memory entries, moving standing rules into CLAUDE.md. Use when cleaning up or auditing memory.
Ships in better-memory. 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.
Memory holds facts that stay true after the session that wrote them; rules on how to work belong in a CLAUDE.md the user approved. An entry kept by mistake steers every later session, while one removed by mistake costs a rediscovery, so removal is the safe error. The user is present for this pass, and their answer is the evidence nothing else can give.
<dir>/memory/, the review file is <dir>/better-memory/review.md. That file
holds instructions from entries written before better-memory, already moved out of memory and waiting for the user.mcp__better-memory__remove_entry in the tool list, better-memory guards the directory. Remove an entry only
with that tool, and save one only with mcp__better-memory__write_entry. Write, Edit, and shell commands that change
the directory are refused, and better-memory writes MEMORY.md itself.MEMORY.md is their index, one line per entry: delete an entry file and
its line together.Read every entry file, MEMORY.md, better-memory/review.md when it exists, and the instruction files in force: the
project's CLAUDE.md, .claude/CLAUDE.md, CLAUDE.local.md, its .claude/rules/ files, ~/.claude/CLAUDE.md, and
the ~/.claude/rules/ files.
Give each entry one verdict:
review.md is an instruction.Then consolidate the instructions. Merge entries that state one rule into one line. Drop a rule an instruction file in
force already states, and name that file. Target the project's CLAUDE.md for a rule about this project and
~/.claude/CLAUDE.md for one that holds across projects. Write each line as one imperative sentence concrete enough
that two agents cannot read it differently.
Send one message with three parts, and change nothing until the user answers:
write_entry, citing the file you read, the
command you ran, or the user's words. That records the anchor its idle sift needs; a fact saved without one is removed
at the next sift. With the idle sift on, a re-saved entry is missing from MEMORY.md until that sift promotes it,
which is expected.review.md once every item in it is answered. An item answered "later" stays: delete the answered items'
sections instead.MEMORY.md names exactly the entry files
present.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xobotyi/cc-foundry --plugin better-memoryOther plugins' skills for the same job