Agent skill

Dream Memory

by LearnPrompt in LearnPrompt/cc-harness-skills

Consolidate recent logs, sessions, and existing memory files into durable topic memories, normalize dates, prune stale entries, and keep MEMORY.md short enough for prompt use.

MITAuto-check passedAI & LLM Engineering

Install Dream Memory

skills CLI
$ npx skills add LearnPrompt/cc-harness-skills --skill dream-memory -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LearnPrompt/cc-harness-skills dream-memory --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LearnPrompt/cc-harness-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dream-memory .claude/skills/dream-memory && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dream-memory
GitHub stars
236
Token cost
~477 tokens
SKILL.md length
197 words
Files
5 (incl. scripts, references)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Consolidate recent logs, sessions, and existing memory files into durable topic memories, normalize dates, prune stale entries, and keep MEMORY.md short enough for prompt use.

  • Works in 5 steps: Inspect MEMORY.md, topic files, and… → Identify durable facts worth keeping. → Merge into topic files instead of… → …
  • AI & LLM Engineering work in your project
  • SKILL.md covers Use It For, Avoid It For, Quick Start and Workflow, plus 2 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Dream Memory is an agent skill from LearnPrompt/cc-harness-skills. Consolidate recent logs, sessions, and existing memory files into durable topic memories, normalize dates, prune stale entries, and keep MEMORY.md short enough for prompt use.

Its SKILL.md is about 480 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `README.md`, `references/prompt-template.md` and `references/source-notes.md`).

It sits in AI & LLM Engineering. The repository describes itself as: Portable CC-inspired skills for memory, verification, multi-agent coordination, context compression, and proactive coding-agent workflows. The licence is MIT.

When your agent uses it

  • AI & LLM Engineering work in your project

Example prompts

  • “/dream-memory”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Inspect MEMORY.md, topic files, and recent logs or transcripts.
  2. Identify durable facts worth keeping.
  3. Merge into topic files instead of creating near-duplicates.
  4. Remove stale or contradicted memory.
  5. Rewrite MEMORY.md as a concise index.

What it can do on your machine

Read from SKILL.md and the folder at commit 3899650. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dream Memory loads about 477 tokens when it runs, and up to ~854 if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 197 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~477
With references · SKILL.md plus every file in references/, read only if the agent opens them
~854

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from LearnPrompt/cc-harness-skills at commit 3899650, republished under its MIT licence (© LearnPrompt). 197 words, ~477 tokens.

Download SKILL.mdSave it as .claude/skills/dream-memory/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
dream-memory
description
Consolidate recent logs, sessions, and existing memory files into durable topic memories, normalize dates, prune stale entries, and keep MEMORY.md short enough for prompt use.

Dream Memory

Use this skill when you want a deliberate memory-consolidation pass instead of storing more raw notes.

This bundle is intentionally portable. It borrows the workflow shape from Claude Code's dream system, but it does not depend on Claude Code internals.

Use It For

  • nightly or manual memory cleanup
  • merging overlapping memory notes
  • normalizing relative dates into absolute dates
  • pruning stale or contradicted memories
  • keeping MEMORY.md small and index-like

Avoid It For

  • saving a single new memory from the current turn
  • persisting code facts that should be re-read from source
  • replacing plans, task boards, or issue trackers

Quick Start

Inspect a memory directory before running the consolidation prompt:

bash
python3 {baseDir}/scripts/dream_memory.py --memory-root /path/to/memory --transcripts-dir /path/to/transcripts

Then use the portable prompt in references/prompt-template.md.

Workflow

  1. Inspect MEMORY.md, topic files, and recent logs or transcripts.
  2. Identify durable facts worth keeping.
  3. Merge into topic files instead of creating near-duplicates.
  4. Remove stale or contradicted memory.
  5. Rewrite MEMORY.md as a concise index.

Rules

  • MEMORY.md is an index, not a content dump.
  • Prefer topic merges over new file creation.
  • Convert relative dates to absolute dates.
  • Do not store code-state facts that can drift.

Supporting Files

© LearnPrompt, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in skills/dream-memory of LearnPrompt/cc-harness-skills.

  • SKILL.md
  • README.md
  • references/prompt-template.md
  • references/source-notes.md
  • scripts/dream_memory.py

Open the folder on GitHubat commit 3899650

Compare with similar skills

Dream Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dream Memory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dream Memory this skillLearnPrompt/cc-harness-skills236—~477Automated safety check: PassMIT
Agent BuildershareAI-lab/learn-claude-code78k6 repos~1.2kAutomated safety check: PassMIT
Planning With Filesjarrodwatts/claude-code-config1.1k5 repos~967Automated safety check: PassNone
Codebase Managementgiancarloerra/SocratiCode3.3k1 repos~1.8kAutomated safety check: PassAGPL-3.0
Context Compressionguanyang/open-agent-hub9752 repos~4.6kAutomated safety check: PassMIT
Looperksimback/looper710—~2.7kAutomated safety check: NotesMIT

Similar skills

  • Agent Builder

    shareAI-lab/learn-claude-code

    Design and build AI agents for any domain. An agent skill from shareAI-lab/learn-claude-code.

    78k GitHub starsUsed in 6 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Planning With Files

    jarrodwatts/claude-code-config

    Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage.

    1.1k GitHub starsUsed in 5 repos~967 tokens
    AI & LLM EngineeringAuto-check passed
  • Codebase Management

    giancarloerra/SocratiCode

    Set up, index, and manage SocratiCode codebase indexing. An agent skill from giancarloerra/SocratiCode.

    3.3k GitHub starsUsed in 1 repo~1.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Context Compression

    guanyang/open-agent-hub

    This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…

    975 GitHub starsUsed in 2 repos~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Looper

    ksimback/looper

    Scaffold a well-designed agent loop with best-practice coaching and a cross-model review council.

    710 GitHub stars~2.7k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check: notes
  • Ktx

    Kaelio/ktx

    Installs and configures ktx, the open-source context layer for data agents — runs ktx setup non-interactively with hidden CLI flags, configures database connections and embeddings, installs agent…

    1.6k GitHub starsUsed in 1 repo~3.2k tokens
    AI & LLM EngineeringAuto-check passed

More from LearnPrompt/cc-harness-skills

  • Kairos Lite

    LearnPrompt/cc-harness-skills

    Build a lightweight proactive mode with scheduled checks, sleep intervals, concise user briefs, and expiry safeguards so an agent can work in the background without becoming an uncontrolled daemon.

    236 GitHub stars~334 tokensUpdated 3 mo ago
    Auto-check passed
  • Memory Extractor

    LearnPrompt/cc-harness-skills

    Extract durable memories from recent conversation turns into user, feedback, project, and reference categories while avoiding stale code-state facts.

    236 GitHub stars~347 tokensUpdated 3 mo ago
    Auto-check passed
  • Structured Context Compressor

    LearnPrompt/cc-harness-skills

    Compress a long agent conversation into a nine-part continuation summary that preserves request, files, errors, user messages, current work, and the next aligned step.

    236 GitHub stars~327 tokensUpdated 3 mo ago
    Auto-check passed
  • Swarm Coordinator

    LearnPrompt/cc-harness-skills

    Coordinate multiple agents by splitting work into research, synthesis, implementation, and verification, assigning ownership, and keeping the coordinator focused on integration rather than raw…

    236 GitHub stars~346 tokensUpdated 3 mo ago
    Auto-check passed
  • Verification Gate

    LearnPrompt/cc-harness-skills

    Run a read-only verification pass after implementation to check whether completion claims are real, validation actually ran, and obvious edge cases or regressions were missed.

    236 GitHub stars~302 tokensUpdated 3 mo ago
    Auto-check passed

Questions about Dream Memory

What does Dream Memory do?

Consolidate recent logs, sessions, and existing memory files into durable topic memories, normalize dates, prune stale entries, and keep MEMORY.md short enough for prompt use. Dream Memory is an agent skill from LearnPrompt/cc-harness-skills.md short enough for prompt use.

When should I use Dream Memory?

Dream Memory fits situations like: AI & LLM Engineering work in your project.

How do I install Dream Memory in Claude Code?

Run `npx skills add LearnPrompt/cc-harness-skills --skill dream-memory -a claude-code`. Or copy the skill folder (skills/dream-memory in LearnPrompt/cc-harness-skills) into .claude/skills/dream-memory in your project. Claude Code loads it when a task matches its description.

How do I install Dream Memory in Codex?

Run `npx skills add LearnPrompt/cc-harness-skills --skill dream-memory -a codex`. Or copy the skill folder (skills/dream-memory in LearnPrompt/cc-harness-skills) into .agents/skills/dream-memory in your project. Codex loads it when a task matches its description.

Can I use Dream Memory in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LearnPrompt/cc-harness-skills --skill dream-memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dream-memory, .gemini/skills/dream-memory, .github/skills/dream-memory and .opencode/skills/dream-memory in your project.

What does Dream Memory need to run?

Going by SKILL.md and its folder, Dream Memory needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Dream Memory access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dream Memory safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Dream Memory use?

Dream Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dream Memory use?

About 477 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 377 tokens, read only when the agent opens those files.

What are the alternatives to Dream Memory?

Skills that share tags, products or a category with Dream Memory: Agent Builder (shareAI-lab/learn-claude-code, 78k stars), Planning With Files (jarrodwatts/claude-code-config, 1.1k stars), Codebase Management (giancarloerra/SocratiCode, 3.3k stars) and Context Compression (guanyang/open-agent-hub, 975 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dream Memory?

LearnPrompt (a GitHub user) maintains it in LearnPrompt/cc-harness-skills, which has 236 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on July 10, 2026.

Source: LearnPrompt/cc-harness-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.