MemoryJanitor — Development skill for Claude Code
扫描 Claude Code 的 memory 目录,生成可勾选清单交给 agent 清理.
How to install MemoryJanitor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open JiHuiYiYou/MemoryJanitor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What MemoryJanitor does
扫描 Claude Code 的 memory 目录,生成可勾选清单交给 agent 清理.
Alternatives in Development
- Agent Memory 71.9k ★
- Mempalace Status — Show the current state of your memory palace — wings, rooms, drawer counts, and suggestions 58.6k ★
- Memory Gc — Inspect or rotate the autopilot ledger JSONL files (findings.jsonl, negatives.jsonl) 3.8k ★
README
MemoryJanitor
扫描 Claude Code 的 memory 目录,生成一份可勾选的单文件 HTML 报告,把要删的条目整理成一条 prompt 交给 agent 执行。工具本身不删任何文件。
使用
python scan_memory.py
报告落在脚本所在目录的 `memory_view.html` 并自动打开。
| 参数 | 说明 |
|---|---|
--no-open |
只生成,不打开浏览器 |
--output PATH |
改报告输出路径 |
--project ENCODED... |
只扫指定项目目录 |
--project-glob PATTERN |
按通配符过滤项目目录名 |
--since YYYY-MM-DD |
只看该日期及之后的条目 |
--until YYYY-MM-DD |
只看该日期及之前的条目 |
Windows 下双击 `start.bat` 即可,它会自己找一个可用的 Python 再调用上面这个脚本。
报告
- 按项目、日期、类型筛选条目,逐条勾选
- 一键生成删除 prompt;prompt 会要求 agent 一并清理
MEMORY.md索引和别处的悬空引用
两处要注意:筛选和隐藏不会取消已勾选的条目,要只删当前可见范围得先取消勾选;生成的 prompt 文本里硬编码了 `C:\Users\liuzhen\`,换用户需自行改 `scan_memory.py`。
依赖
Python 3.10+,零第三方包。
许可
[Unlicense](LICENSE)
Related Skills
Acontext
Agent Skills as a Memory Layer
Cipher
An opensource memory layer specifically designed for coding agents.
Lazycodex
The one and only agent harness for complex codebases. Project memory, planning, execution, and verified comple
Letta Code
The memory-first coding agent
Claude Supermemory
Persistent memory across sessions and projects using Supermemory. User profile injection at session start, aut
16 Memory Selection
Memory Selection Prompt
Related Agents
Memory Keeper
Updates .claude/memory.md with important learnings, fixes, patterns, and gotchas from the current session that
Memory Safety Patterns
Cross-language patterns for memory-safe programming including RAII, ownership, smart pointers, and r... - wsho
Recon Ranker
Attack surface ranking agent. Takes recon output and hunt memory, produces a prioritized attack plan. Ranks by