cortex-consolidate

Solid

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.

AI & Automation 68 stars 11 forks Updated today MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
61
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 ``` cortex:consolidate({}) ``` This runs the complete pipeline: 1. **Decay cycle** — Cool memories by heat * decay_factor. Memories below cold threshold (0.05) become candidates for compression 2. **Compression** — Old memories compress through stages: full text (7+ days) to gist, gist (30+ days) to tags 3. **CLS consolidation** — Frequently-accessed episodic memories promote to semantic store (like hippocampal-to-cortical transfer) 4. **Causal discovery** — PC Algorithm runs on entity co-occurrences to discover causal relationships 5. **Sleep compute** — Dream-like replay strengthens clusters, summarizes related memories, and re-embeds compressed content ### Step 2: Review Results The response includes: - `memories_decayed` — ho...

Details

Author
cdeust
Repository
cdeust/Cortex
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category