cdeust/cortex/cortex-consolidate
Claude Code and agent skill by cdeust/cortex
- community
Checking that the SKILL.md file is still in the repository.
Run memory maintenance — decay old memories, compress stale content, consolidate episodic memories into semantic knowledge, and run sleep-like replay. Use when the user says 'clean up memories', 'consolidate', 'run maintenance', 'compress old memories', 'memory cleanup', or periodically to keep the memory system healthy. Also use after importing many memories or at the end of a long session.
Install
npx vskill@latest install cdeust/cortex/cortex-consolidateSKILL.md
Consolidate — Memory Maintenance and Evolution
Keywords
consolidate, maintenance, cleanup, compress, decay, merge, evolve, sleep, replay, consolidation, memory health, prune, clean up, optimize memories, reduce noise
Overview
Run the full memory maintenance pipeline — modeled after biological memory consolidation. This includes heat decay (cooling unused memories), compression (full text to gist to tags), CLS consolidation (episodic to semantic), causal graph discovery, and sleep-like replay that strengthens important memory clusters.
Use this skill when: After a long session, after bulk imports, periodically (weekly), or when memory_stats shows too many hot memories or high noise.
Workflow
Step 1: Run Full Consolidation
This runs the complete pipeline:
- Decay cycle — Cool memories by heat * decay_factor. Memories below cold threshold (0.05) become candidates for compression
- Compression — Old memories compress through stages: full text (7+ days) to gist, gist (30+ days) to tags
- CLS consolidation — Frequently-accessed episodic memories promote to semantic store (like hippocampal-to-cortical transfer)
- Causal discovery — PC Algorithm runs on entity co-occurrences to discover causal relationships
- Sleep compute — Dream-like replay strengthens clusters, summarizes related memories, and re-embeds compressed content
Step 2: Review Results
The response includes:
memories_decayed— how many cooled downmemories_compressed— how many were compressed (and to what level)memories_consolidated— how many promoted from episodic to semanticcausal_edges_discovered— new relationships foundreplay_clusters— memory clusters that were replayed and strengthened
Step 3: Selective Operations
For targeted maintenance instead of the full pipeline:
Forget specific memories:
Soft delete (sets heat to 0) by default. Use "hard": true for permanent deletion. Protected memories require explicit "force": true.
Save checkpoint before risky operations:
Restore if something went wrong:
Tips
- Don't over-consolidate: Running too frequently prevents memories from naturally developing heat signals. Weekly is usually sufficient.
- Check stats first: Run
cortex:memory_statsbefore consolidating to understand what needs maintenance - Checkpoint before bulk operations: Always save a checkpoint before consolidation if you have critical memories
- After backfill: Always consolidate after
cortex:backfill_memoriesto process the imported memories through the full pipeline
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cortex-consolidate/SKILL.md
Popularity
- Repository stars
- 71
- Repository forks
- 11
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cdeust/cortex/cortex-consolidate)