dream

dream is a skill for Claude Code from wallneradam/project-mem-mcp. It costs 144 tokens per session (2,010 once invoked), scanned A, original, MIT.

A procedure for reorganizing a project's MEMORY.md file, which stores persistent notes for an AI coding assistant. It uses a separate helper agent to consolidate the project's instructions and memory.

In plain words
What is it for?
Use it to read project CLAUDE.md files and ask the designated memory-consolidation agent to update the project's stored memory.
Why use it?
It reduces scattered or duplicated project notes while preserving information added or changed during the current session.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Part of the project-mem plugin — 2 skills, 1 command, 1 agent, 4 hooks shipped together

Good fit Use it to read project CLAUDE.md files and ask the designated memory-consolidation agent to update the project's stored memory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wallneradam/project-mem-mcp/dream
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wallneradam/project-mem-mcp --skill dream
Clone the repo
git clone --depth 1 https://github.com/wallneradam/project-mem-mcp

Made for: Claude Code.

Or install project-mem, the plugin that ships this one along with the rest of its 2 skills, 1 command, 1 agent, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dream

README.md
[![agentmods](https://agentmods.dev/badge/skills/wallneradam/project-mem-mcp/dream.svg)](https://agentmods.dev/skills/wallneradam/project-mem-mcp/dream)
Your own site
<a href="https://agentmods.dev/skills/wallneradam/project-mem-mcp/dream"><img src="https://agentmods.dev/badge/skills/wallneradam/project-mem-mcp/dream.svg" alt="Measured on agentmods" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,010 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00144 $0.02010
Opus 5 $0.00072 $0.01005
Sonnet 5 $0.00029 $0.00402
Haiku 4.5 $0.00014 $0.00201

Measured 8d ago against content hash 5809aedfbb61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

dream scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/dream/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dream — Project Memory Consolidation

When this skill is triggered, invoke the dream-consolidator named subagent (defined in plugin/agents/dream-consolidator.md, pinned to model: claude-sonnet-5) to consolidate the project's MEMORY.md.

Protocol

  1. Read all CLAUDE.md files in the project (**/CLAUDE.md).

  2. Consolidate by calling the Agent tool with subagent_type: "project-mem:dream-consolidator" (the fully-qualified plugin:agent name — the bare dream-consolidator is NOT found and the call fails). Pass the inputs in the prompt. Do NOT pass a model: parameter — see Important.

    The prompt is a CLOSED TEMPLATE. Send exactly these fields, in this order, and nothing else:

    Today's date: {TODAY}
    Project path: {CLAUDE_PROJECT_DIR}
    
    ## Preserve verbatim — added or revised in this session:
    - {pointer}
    - {pointer}
    
    ## Project CLAUDE.md files:
    
    ### {path/to/CLAUDE.md}
    {content}
    
    ### {path/to/another/CLAUDE.md}
    {content}
    

    Substitute {TODAY} with today's date in YYYY-MM-DD format and {CLAUDE_PROJECT_DIR} with the absolute project root before sending. Do NOT inline MEMORY.md — the subagent loads it itself via get_project_memory (with chunked reads if large; see its Read protocol). The agent's body (its system prompt) already contains the consolidation rules and Recent Sessions retention policy — do not duplicate them in the user prompt.

The Preserve verbatim field — the ONLY place to protect content

If this session wrote knowledge into MEMORY.md that must survive the consolidation untouched, list it here. Everything you might otherwise be tempted to add as free prose ("be conservative", "keep the measured numbers", "this is important") belongs in this field or nowhere.

The field exists because it fills a real gap, not just to keep you tidy: the consolidator's dormant-topic heuristic keys off the last ## Recent Sessions mention, so a body section written an hour ago — one that Recent Sessions may not name — can read as dormant and get collapsed. A pointer here makes it immune.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 71 lines · 144 tokens per session scan A 5809aedfbb61

Subscribe to this mod's changes

dream is a skill published in the GitHub repository wallneradam/project-mem-mcp (2 stars, last pushed 20d ago), licensed MIT. It adds 144 tokens to every session and 2,010 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

memory-bank

Token-efficient persistent memory system for Claude Code that saves 67% tokens on session warm-up (verified with tiktoken). Layered architecture with progressive loading, compact encoding, branch-aware context, smart compression, session diffing, conflict detection, session continuation protocol, and recovery mode.…

josiahcrackle9631/memory-bank · 199 tokens

claude-bridge-role-memory-keeper

Playbook for a Claude Code agent in the dedicated memory keeper role — single-writer for shared agent memory across a team of 3+ peers. Use when you are designated as the keeper (= other peers send you write candidates, you write them and watch for drift). Memory hygiene + reconciliation against the canon + drift…

michalekz/claude-bridge · 102 tokens

memai-maintenance

Orchestrator of the MemAI MAINTENANCE pass (long-term agent memory). Runs [[memai-checkpoints]], [[memai-distill]], [[memai-confidence]] and [[memai-link]] as one curation pass, owns what none of them covers — the DOMAIN TREE (nested paths, cross-listing, casing), the DIAGRAMS and the store's DECAY (reviewafter) — and…

Filipe-Soares-de-Almeida/MemAI · 184 tokens

memai-confidence

Verify a MemAI memory's claims against live facts and set its confidence (unverified | confirmed | contradicted). Checks the anchors a scan already extracted — file:line, symbol, table/column, domain, URL — against today's source, promotes or demotes each memory, stages a reword for a detail that drifted, and pushes…

Filipe-Soares-de-Almeida/MemAI · 155 tokens

memai-checkpoints

The lifecycle of MemAI CHECKPOINTS: deciding which bearing is still current and which one is superseded, archiving the checkpoint of work that is closed or an intra-session trail that a newer one already covers, keeping the single bearing a live effort still needs, correcting a fact in a kept checkpoint that has gone…

Filipe-Soares-de-Almeida/MemAI · 162 tokens

memai-distill

Distill and MOVE knowledge between MemAI types: pull what is durable out of one checkpoint (or several) into a note/reasoning/antipattern, change a memory's type (checkpoint→note when the content is timeless), and merge near-duplicates. Use when the user asks to "distill memory", "turn a checkpoint into a note", "move…

Filipe-Soares-de-Almeida/MemAI · 141 tokens