Sleep-mode compression. Clusters cold, low-importance memories by (entity, layer), summarizes each cluster into a single protected learning-layer entry, deletes originals, and runs a forget-sweep. Run at session end or on demand. SetDocumentation Index
Fetch the complete documentation index at: https://docs.linksee.app/llms.txt
Use this file to discover all available pages before exploring further.
dry_run: true to preview without writing.
Parameters
all — consolidate across all entities. session — only the current session’s entities.Minimum age for memories to be eligible for clustering. Set to
0 to consolidate immediately (useful after bulk import).Preview what would be compressed without modifying the database.
If
true, uses MCP Sampling to request the client LLM to write better consolidated summaries. Falls back to heuristic if the client refuses.What gets consolidated
| Layer | Eligible? | Notes |
|---|---|---|
context | Yes | Situational context fades over time |
emotion | Yes | Emotional state is session-specific |
implementation | Yes | How-details get compressed to learnings |
goal | No | Goals are never consolidated |
caveat | No | Caveats are permanently protected |
learning | No | Already the target layer |
Eligibility criteria
- Heat score < 30 (cold)
- At least 2 memories in the cluster
- Age >=
min_age_days
Output
Each consolidated cluster produces a learning-layer memory containing:- Exemplar fragments from the original memories
- Time period covered
- Count of originals replaced
replaced_idsfor audit trail
Post-consolidation
After clustering,consolidate also:
- Forget-sweep: Runs auto-forgetting on remaining unprotected memories
- Stalled detection: Marks
in_progressmemories untouched for 30+ days asstalled