memory-cleanup — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited memory-cleanup (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Audits and purges stale memory systems from a Perseus environment, keeping Perseus Mneme as the single source of truth. Run after upgrading Perseus, after switching memory backends, or whenever memory feels noisy.
Retaining old context is not as important as staying on the latest tooling and pushing the envelope. Old memory systems accumulate noise, cause federation artifacts, and slow down recall. When in doubt, delete.
The live Perseus Mneme index (~/.perseus/memory/) is always the source of truth. Everything else is a candidate for removal.
Check for the following known memory system locations:
# Perseus (live — keep)
ls -lht ~/.perseus/memory/ # Mneme BM25 index files
ls -lht ~/.perseus/checkpoints/ # Session waypoints
# Rovo Dev sessions (live — keep)
ls ~/.rovodev/sessions/
ls ~/.codex/memories/
# Stale systems (candidates for deletion)
ls ~/.mem0/ # Mem0 library (superseded by Mneme)
ls ~/.mempalace/ # Mempalace (superseded by Mneme)
ls ~/.cache/chroma/ # Orphaned Chroma vector stores
ls ~/.cache/code-nemo/ # Nemo memory (if present)
ls ~/.local/share/perseus/ # Old single-file perseus installsReport findings in a table:
| Location | Last Modified | Size | Status |
|---|---|---|---|
~/.perseus/memory/ | {date} | {N} files | ✅ Live — keep |
~/.perseus/checkpoints/ | {date} | {N} files | ✅ Live — keep |
~/.mem0/ | {date} | {size} | 🗑️ Stale — delete |
~/.mempalace/ | {date} | {size} | 🗑️ Stale — delete |
~/.cache/chroma/ | {date} | {size} | ⚠️ Check — may be active |
Perseus @memory with federation enabled can write low-quality blended content from other workspaces. Check the newest memory files:
ls -lt ~/.perseus/memory/ | head -5For each file written in the current session, read the first 5 lines. If the content is incoherent, references unknown projects, or contains placeholder text ([... Table Continuation ...], Subagent:, etc.), it is a garbled federation artifact — delete it.
Flag: any file where the content does not match your actual work context.
Old Perseus venvs can accumulate stale perseus.py files that shadow the installed package:
find ~ -path "*/site-packages/perseus.py" 2>/dev/nullIf found, check the version:
head -5 {path}/perseus.py # look for version commentIf older than the system Perseus version (perseus --version), delete the stale file and reinstall in the venv:
# delete via delete_file tool, then:
{venv}/bin/pip install --force-reinstall perseus-ctxUse delete_file for each stale file identified. Do not use bash rm — use the delete_file tool to maintain audit trail.
Always delete:
~/.mem0/ — entire contents (Mem0 library, superseded by Perseus Mneme)~/.mempalace/ — entire contents (Mempalace, superseded by Perseus Mneme)~/.perseus/memory/perseus.py in venv site-packages (see Step 3)Check before deleting:
~/.cache/chroma/ — may be used by active tools (check config first)~/.local/share/perseus/ — used by launchd watchdog scripts; update rather than deleteNever delete:
~/.perseus/memory/ — live Mneme index~/.perseus/checkpoints/ — session waypoints~/.perseus/config.yaml — configuration~/.rovodev/AGENTS.md — rendered context~/.codex/ — Rovo Dev session indexAfter deletions, confirm:
ls ~/.mem0/ 2>/dev/null || echo "mem0: clean ✅"
ls ~/.mempalace/ 2>/dev/null || echo "mempalace: clean ✅"
ls ~/.perseus/memory/ | wc -l # should be same count minus deleted artifactsReport final state:
Memory Cleanup Complete
═══════════════════════
✅ ~/.perseus/memory/ — {N} files (live Mneme index)
✅ ~/.perseus/checkpoints/ — {N} files (session waypoints)
🗑️ ~/.mem0/ — deleted ({N} files)
🗑️ ~/.mempalace/ — deleted ({N} files)
🗑️ {garbled files} — deleted ({N} files)
Single source of truth: Perseus Mneme ✅| Trigger | When |
|---|---|
| After Perseus version upgrade | Always |
| After switching memory backends | Always |
| Weekly maintenance | Optional — run with reflect |
| When memory feels noisy or federated content is garbled | On demand |
| System | Location | Status | Superseded By |
|---|---|---|---|
| Mem0 | ~/.mem0/ | Deprecated | Perseus Mneme |
| Mempalace | ~/.mempalace/ | Deprecated | Perseus Mneme |
| Chroma (standalone) | ~/.cache/chroma/ | Check context | Perseus Mneme |
| Code-Nemo | ~/.cache/code-nemo/ | Check context | Perseus Mneme |
| Old single-file perseus | ~/.local/share/perseus/ | Update, don't delete | pip install |
When running this skill on a new Perseus environment (different machine or workspace), the stale system locations are the same but the active paths may differ. Always:
perseus --version and ~/.perseus/config.yaml are presentbefore deleting anything
~/.local/share/perseus/ — on some environments this is used byactive launchd jobs and should be updated, not deleted
Part of the Perseus skill library. Compatible with Rovo Dev CLI, Claude Code, and any MCP-enabled assistant. See: https://github.com/Perseus-Computing-LLC/perseus
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.