dream

Solid

Nightly memory consolidation — prunes stale entries, merges duplicates, resolves contradictions, rebuilds MEMORY.md index. Use when memory files have accumulated over many sessions and need cleanup. Do NOT use for storing new decisions (use remember) or searching memory (use memory).

AI & Automation 180 stars 15 forks Updated today MIT

Install

View on GitHub

Quality Score: 86/100

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

Skill Content

# Dream - Memory Consolidation Deterministic memory maintenance: detect stale entries, merge duplicates, resolve contradictions, rebuild the MEMORY.md index. All pruning decisions are based on verifiable checks (file exists? function exists? duplicate content?), not LLM judgment. ## Argument Resolution ```python DRY_RUN = "--dry-run" in "$ARGUMENTS" # Preview changes without writing ``` ## Overview Memory files accumulate across sessions. Over time they develop problems: - **Stale references** — memories pointing to files, functions, or classes that no longer exist - **Duplicates** — multiple memories covering the same topic with overlapping content - **Contradictions** — newer memories superseding older ones without cleanup - **Index drift** — MEMORY.md index out of sync with actual memory files This skill fixes all four problems using deterministic checks only. > **Cadence (CC 2.1.142+):** Reactive compaction now sizes its first summarize attempt to the actual overflow, so long sessions stall mid-turn far less often. The "run nightly" cadence can relax toward "run when memory files accumulate" — consolidation is no longer needed to head off compaction inefficiency. --- ## STEP 1: Discover Memory Files ```python # Find the memory directory (agent-specific or project-level) # Agent memory lives in: .claude/agent-memory/<agent-id>/ # Project memory lives in: .claude/projects/<hash>/memory/ # Also check: .claude/memory/ memory_dirs = [] Glob(pattern=".claude/agent-m...

Details

Author
yonatangross
Repository
yonatangross/orchestkit
Created
5 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category