Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/exoad-cleanup-memory
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cleanup-memory
What's inside
- Skill name
cleanup-memory- Description
- Consolidate and clean up existing brain memory. Run this periodically (like a sleep cycle) to dedupe, decay, merge, and relocate memories to vault.
- License
- Apache-2.0
- Instructions
- 108 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Cleanup Memory ## Overview Run a "brain sleep cycle" on your existing memories: 1. Consolidate existing memory (dedupe, decay, merge, vault relocation) 2. Mine user sessions since the last consolidation checkpoint 3. Persist a new checkpoint only after a successful run **When to use:** - Periodically (e.g., daily or weekly) to keep memory clean - When brain feels noisy or cluttered - After extracting many new memories with `extract-memory` **Difference from extract-memory:** - `extract-memory` = "What should I remember from *this* conversation?" (captures new) - `cleanup-memory` = "Clean up my existing memories" (organizes old) ## Parameters - **brain_path** (default: `~/.rho/brain/brain.jsonl`) - **mine_sessions** (default: `true`) - **since** (default: `last_consolidation`) — `last_consolidation | <ISO timestamp> | <duration>` - **days_fallback** (default: `1`) - **session_dir** (default: `~/.pi/agent/sessions/`) - **max_new_entries** (default: `10`) - **confidence_threshold** (default: `high`) - **checkpoint_key** (default: `memory_consolidate.last_consolidated_at`) ## Steps ### 1) Inventory List memory by type and count totals: - learnings, preferences, behaviors, identity, user, context, tasks, reminders - total active entries ### 2) Resolve Mining Window Determine the lower bound timestamp for session mining. ### 3) Session Mining (optional) Extract durable learnings/preferences from user messages in matched sessions. **Confidence policy:** - **High**: explicit user statements/corrections/preferences → auto-add - **Medium**: strong multi-session inference → add only if threshold is `medium` - **Low**: ambiguous/one-off/hypothetical → skip ### 4) Decay Stale Learnings Run `brain action=decay` to age out old entries. ### 5) Consolidate Existing Entries Identify duplicates/superseded/stale entries and merge candidates. **Importance levels:** - 🔴 **High** — durable, high-leverage, keep in brain - 🟡 **Medium** — useful but optional; review for merge - 🟢 **Low** — stale/noisy/duplicative; prune or relocate **Apply the 30-day test:** "Would this change a decision I make 30 days from now?" **Auto-remove categories:** - Version numbers or update confirmations - Heartbeat or check-in status reports - Benchmark scores or run results - Bug sweep summaries without root cause - UI/feature implementation details - Task completion status - Project-specific transient state ### 6) Vault Relocation Move reference-heavy entries to vault (useful knowledge that doesn't need injection every turn): - Long feature histories / changelog-style learnings - Architecture rationale - Multi-step runbooks / troubleshooting notes - Linked research/reference material ### 7) Persist Checkpoint Set/update checkpoint timestamp after successful completion. ### 8) Report Report counts before/after, mining window, added/skipped entries, decayed/removed/merged/relocated counts, vault notes created. ## Usage Run periodically (suggested: daily or weekly): ``` /skill run cleanup-memory ``` With custom parameters: ``` /skill run cleanup-memory since=7d max_new_entries=5 ``` ## See Also - [[extract-memory]] - Capture new learnings from current conversation - [[vault-clean]] - Clean up orphaned vault notes
From exoad/bibo-agent, Apache-2.0.
More from exoad/bibo-agent
- 0.538score
librarian
exoad
Research open-source libraries with evidence-backed answers and GitHub permalinks.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
ctx-insight
exoad
Open the context-mode Insight analytics dashboard in the browser.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
docs-generate
exoad
Generate documentation from code or scratch - READMEs, API docs, changelogs, and user guides.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
extract-memory
exoad
Extract durable learnings and preferences from the current conversation for memory capture.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
debug-assist
exoad
Systematic debugging workflow for diagnosing and fixing issues.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
code-assist-testing
exoad
Testing-focused coding workflow.
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
skill-tracker
exoad
Track skill usage with correctness scoring, generate reports, and identify unused or misused skills for pruning.
SkillCFreshness: C★ 9Claude Code +9 - 0.529score
cleanup-sessions
exoad
Remove old pi session files to reclaim disk space
SkillCFreshness: C★ 9Claude Code +9 - 0.526score
self-reference
exoad
Interface with yourself — tells you everything about your own architecture, extensions, skills, settings, and how to modify yourself
SkillCFreshness: C★ 9Claude Code +9 - 0.456score
cite-before-answer
exoad
Cite-before-answer checklist
SkillDFreshness: D★ 9Claude Code +9 - 0.456score
task-decomposition
exoad
Task Decomposition
SkillDFreshness: D★ 9Claude Code +9
Signals
- Stars
- 9
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 10, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/exoad/bibo-agent
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from exoad
- 0.538score
librarian
exoad
Research open-source libraries with evidence-backed answers and GitHub permalinks.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
ctx-insight
exoad
Open the context-mode Insight analytics dashboard in the browser.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
docs-generate
exoad
Generate documentation from code or scratch - READMEs, API docs, changelogs, and user guides.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
extract-memory
exoad
Extract durable learnings and preferences from the current conversation for memory capture.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
debug-assist
exoad
Systematic debugging workflow for diagnosing and fixing issues.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
code-assist-testing
exoad
Testing-focused coding workflow.
SkillCFreshness: C★ 9Claude Code +9
Cite this page
cleanup-memory skill. Agent Mart. https://agentmart.dev/skills/exoad-cleanup-memory (last updated 2026-10-24)