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 179 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

AI & Automation Listed

aio-dream

Memory consolidation — review, merge, prune and re-index memory files so future sessions orient quickly.

3 Updated today
aiocean
Code & Development Solid

memory-cleanup

Use this skill when performing manual memory consolidation (Dream-equivalent). Reviews, consolidates, and prunes memory files under ~/.claude/projects/*/memory/. Run after major refactors, every 5+ sessions, or when memory quality degrades (broken links, stale references, contradictions, MEMORY.md > 200 lines). Invoke with /memory-cleanup.

48 Updated yesterday
Kanevry
AI & Automation Listed

knowledge-dream

Periodic knowledge consolidation for AI coding agents. Synthesize scattered project learnings into durable, well-organized memory files. 4-phase process: Orient → Gather → Consolidate → Prune. Inspired by Claude Code's autoDream engine. Use when project memory is stale, after a burst of work, or as a recurring maintenance pass.

1 Updated yesterday
VictorGjn
AI & Automation Listed

consolidate-memory

Consolidate memory from the last 24 hours of local Claude logs (~/.claude) into memory/recent-memory.md, memory/long-term-memory.md, and memory/project-memory.md; promote durable facts and patterns from recent to long-term, and run nightly via launchd automation.

0 Updated 6 days ago
talgacapri
AI & Automation Listed

deep-clean

Full-spectrum consolidation of AI agent configuration files. Goes beyond memory-only dream skills: audits and optimizes context files (CLAUDE.md/AGENTS.md/GEMINI.md/.cursorrules), rules, skills, and memory. Detects stale references, dead file paths, duplicated rules, stack mismatches, contradictions, vague directives, and bloated indexes. Works on any repo, any stack, any agent.

1 Updated yesterday
opencue