memory-review

memory-review is a command for coding agents from gaebalai/claude-memory-plugin. It costs 16 tokens per session (910 once invoked), scanned A, original, MIT.

A command for reviewing and cleaning up memory files stored in a project’s memory/ directory.

In plain words
What is it for?
It finds stale project notes, old feedback, expired entries, duplicates, missing metadata, and unlinked files, then proposes an action for each one.
Why use it?
Memory files can become outdated, duplicated, incorrectly formatted, or disconnected from the main index. It helps you decide what to keep, update, archive, merge, or delete with approval.

Command

Part of the memory-system plugin — 4 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/gaebalai/claude-memory-plugin/memory-review
Clone the repo
git clone --depth 1 https://github.com/gaebalai/claude-memory-plugin

Or install memory-system, the plugin that ships this one along with the rest of its 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/gaebalai/claude-memory-plugin/memory-review.svg)](https://agentmods.dev/commands/gaebalai/claude-memory-plugin/memory-review)
Your own site
<a href="https://agentmods.dev/commands/gaebalai/claude-memory-plugin/memory-review"><img src="https://agentmods.dev/badge/commands/gaebalai/claude-memory-plugin/memory-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 910 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00016 $0.00910
Opus 5 $0.00008 $0.00455
Sonnet 5 $0.00003 $0.00182
Haiku 4.5 $0.00002 $0.00091

Measured 4d ago against content hash 7c10e89fb183, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memory-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/memory-system/commands/memory-review.md · 104 lines

What it actually says

Memory 정리 리뷰

memory/ 디렉터리를 검토하여 썩은(stale) 메모리를 정리합니다.

원칙: "memory는 썩는다는 전제로 쓴다" 특히 project 타입은 2주만 지나도 상태가 달라집니다.

실행 순서

1. 스캔 기준

다음 조건에 해당하는 파일을 후보로 수집합니다:

조건 후보 사유
type: project이고 마지막 수정이 14일 이전 프로젝트 상태는 빠르게 낡음
type: feedback이고 마지막 수정이 180일 이전 장기간 재참조 없음 → 아직 유효한지 확인 필요
**유효 기한** 필드가 있고 오늘 기준 지난 경우 명시적 만료
유사한 name 또는 description을 가진 중복 의심 파일 통합 검토
frontmatter 누락 표준 비준수
MEMORY.md에 링크되지 않은 파일 (고아) 인덱싱 누락

2. 각 후보에 대해 판정 제안

각 후보마다 다음 중 하나를 제안하고, 사용자에게 승인을 받으세요:

A. 유지 (keep)
  • 내용이 여전히 유효하다고 판단되는 경우
  • 예: 오래됐지만 원칙적 feedback
B. 업데이트 (update)
  • 정보는 유효하지만 일부 갱신 필요
  • 사용자에게 구체적으로 무엇을 바꿀지 질문
  • 특히 날짜, 상태, 링크
C. 아카이브 (archive)
  • 완전히 지우긴 아깝고 이력으로 남기고 싶은 경우
  • memory/_archive/ 디렉터리로 이동
  • 파일명 앞에 YYYYMMDD_ 프리픽스 추가 (아카이브 날짜)
D. 삭제 (delete)
  • 완전히 폐기
  • 사용자에게 반드시 명시적 승인 받기
  • 삭제 전 내용을 한번 더 보여주기
E. 통합 (merge)
  • 중복 파일을 하나로 합치기
  • 어떤 파일을 주(primary)로 할지 사용자 선택
  • 병합 후 나머지는 삭제 또는 아카이브

3. 일괄 처리 흐름

후보가 여러 개라면, 다음과 같이 처리합니다:

  1. 전체 후보 목록을 테이블로 보여주고 제안 액션을 표시
  2. 사용자가 전체 승인 / 개별 승인 / 취소 중 선택
  3. 개별 승인 시: 하나씩 확인하며 진행
  4. 각 처리 후 MEMORY.md 인덱스도 함께 업데이트 (삭제된 링크 제거, 업데이트된 설명 반영)

4. 처리 완료 리포트

마지막에 다음을 출력:

✅ Memory 리뷰 완료

- 검토: N개
- 유지: a개
- 업데이트: b개
- 아카이브: c개
- 삭제: d개
- 통합: e개

남은 작업:
- (있다면 여기에)

주의사항

절대 자동 삭제 금지

  • 어떤 파일도 사용자 승인 없이 삭제하지 않습니다
  • archive는 이동이라 상대적으로 안전하지만 이 역시 승인 필요

Git 작업 시

  • 프로젝트가 Git 저장소라면 정리 직전에 현재 상태를 커밋하라고 권유
  • 또는 git stash 후 진행

민감 정보 발견 시

  • 리뷰 도중 API 키, PII, 내부 URL 등이 발견되면 → 즉시 경고하고 해당 부분 삭제 또는 마스킹 권유
  • 이미 Git에 커밋되었다면 git filter-branch 또는 git-filter-repo 사용 안내

아카이브 디렉터리 구조

memory/_archive/
├── 20260424_project_mobile_freeze_q1.md
├── 20260424_feedback_deprecated_rule.md
└── README.md  ← 자동 생성 (아카이브 정책 설명)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 104 lines · 16 tokens per session scan A 7c10e89fb183

Subscribe to this mod's changes

memory-review is a command published in the GitHub repository gaebalai/claude-memory-plugin (2 stars, last pushed 4mo ago), licensed MIT. It adds 16 tokens to every session and 910 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.