AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Cortex Consolidate

skill-cdeust-cortex-cortex-consolidate · by cdeust

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.

— No reviews yet
0 installs
45 views
0.0% view→install

Install

$ agentstack add skill-cdeust-cortex-cortex-consolidate

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-cdeust-cortex-cortex-consolidate)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Cortex Consolidate? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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 — how many cooled down
  • memories_compressed — how many were compressed (and to what level)
  • memories_consolidated — how many promoted from episodic to semantic
  • causal_edges_discovered — new relationships found
  • replay_clusters — memory clusters that were replayed and strengthened

Step 3: Selective Operations

For targeted maintenance instead of the full pipeline:

Forget specific memories:

cortex:forget({
  "memory_id": ,
  "hard": false
})

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:

cortex:checkpoint({
  "action": "save",
  "label": "before-consolidation"
})

Restore if something went wrong:

cortex:checkpoint({
  "action": "restore",
  "label": "before-consolidation"
})

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_stats before 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_memories to process the imported memories through the full pipeline

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.