dream-consolidator

dream-consolidator is an agent for Claude Code from wallneradam/project-mem-mcp. It costs 37 tokens per session (4,051 once invoked), scanned A, original, MIT.

An agent that cleans up a project's MEMORY.md file, which stores persistent project notes for coding agents. It removes genuinely outdated entries, merges duplicates, and keeps important information.

In plain words
What is it for?
Use it to consolidate memory files, preserve notes added during the current session, and follow the project's instructions when reading and updating memory.
Why use it?
It makes stored project context shorter and clearer without losing useful details or recently changed content.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

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

Good fit Use it to consolidate memory files, preserve notes added during the current session, and follow the project's instructions when reading and updating memory.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/wallneradam/project-mem-mcp/dream-consolidator
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.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/wallneradam/project-mem-mcp/dream-consolidator/github.svg)](https://agentmods.dev/agents/wallneradam/project-mem-mcp/dream-consolidator)
Your own site
<a href="https://agentmods.dev/agents/wallneradam/project-mem-mcp/dream-consolidator"><img src="https://agentmods.dev/badge/agents/wallneradam/project-mem-mcp/dream-consolidator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dream-consolidator

Your own site · 80×15
<a href="https://agentmods.dev/agents/wallneradam/project-mem-mcp/dream-consolidator"><img src="https://agentmods.dev/badge/agents/wallneradam/project-mem-mcp/dream-consolidator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,051 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.00037 $0.04051
Opus 5 $0.00018 $0.02025
Sonnet 5 $0.00007 $0.00810
Haiku 4.5 $0.00004 $0.00405

Measured 9d ago against content hash 6ca8875c76b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dream-consolidator 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 9d 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/agents/dream-consolidator.md · 142 lines

How it starts

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

Dream Consolidator

You consolidate a project's MEMORY.md file. Goal: cleaner, better-organized, optimized for LLM consumption — without losing information.

Inputs

The caller (the dream skill) passes you the following in the user prompt:

  • Today's date: in YYYY-MM-DD format
  • Project path: absolute path to the project root (the value to pass as project_path to set_project_memory)
  • ## Preserve verbatim — added or revised in this session: an optional short list of pointers to content the calling session just wrote — see Preserve list below. May be none or absent.
  • ## Project CLAUDE.md files: each CLAUDE.md found in the project, with its path

The caller does NOT inline the current MEMORY.md — you load it yourself via the MCP tools (see Read protocol). This keeps the caller's prompt small and lets you handle files of any size.

Read protocol

  1. Call get_project_memory(project_path, head_only=True) first. The response gives total_lines, size_bytes, estimated_tokens, and a section TOC with 1-indexed line ranges.
  2. If estimated_tokens is under ~15000, call get_project_memory(project_path) to load the whole file. Easy path.
  3. If larger, fetch chunks with get_project_memory(project_path, offset=N, limit=M) — one call per section (use the TOC line ranges) or in ~500-line slices, whichever maps better to the structure. Each chunked response is prefixed with # lines X-Y of TOTAL so you can track coverage. Keep going until you have read every line at least once — partial coverage causes data loss on writeback.
  4. Reassemble mentally; you now have the full content in context.

Do not edit files directly with Read/Write. The MCP tools enforce the allowed-directory check and the SEARCH/REPLACE patch semantics.

Preserve list

The caller may pass a ## Preserve verbatim — added or revised in this session: block listing content written during the session that triggered this dream (headings, or the first words of a bullet — pointers, not the content itself).

Read the full file on GitHub · 142 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. 9d ago First seen · 142 lines · 37 tokens per session scan A 6ca8875c76b6

Subscribe to this mod's changes

dream-consolidator is an agent published in the GitHub repository wallneradam/project-mem-mcp (2 stars, last pushed 21d ago), licensed MIT. It adds 37 tokens to every session and 4,051 once invoked, about $0.0002 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 agents, from other repositories

memai-warden

Reads the turns a session has had since it last ran, searches the memai store, and reports only the memories that bear on what is actually happening -- a pitfall the work is walking into, a decision it is about to contradict, a fact it is about to rediscover. Launched by the session itself when the Stop hook says the…

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

context-builder

Context capture and knowledge structuring specialist. MUST BE USED for logging decisions, capturing insights, recording problems, adding Q&A, and updating conversation context. Use PROACTIVELY when important information should be remembered.

julymetodiev/post-cortex · 45 tokens

code-explorer

Fast, read-only code search and exploration subagent. Locates files by pattern, greps for symbols or keywords, answers "where is X defined / which files reference Y" with file:line citations and short excerpts. Spawn it to protect the orchestrator's context window from large search results — it reads excerpts, not…

ggemba/squad-mcp · 116 tokens

memory-keeper

A session note-taker that records the results of a major Claude Code work session in a Markdown file named MEMORY-LOG.md.

Diablorosso67/multi-ai-memory · 116 tokens

memory-store

Stores knowledge in the mnemograph graph with quality enforcement. Handles deduplication, canonical naming, and automatic relation creation. Use for all remember/store operations.

tm42/mnemograph · 35 tokens

FAI Multi-Agent Service Tuner

Multi-Agent Service tuner — supervisor routing config, per-agent token budgets, loop limits, model selection per role, memory TTL, and orchestration cost analysis.

frootai/frootai · 39 tokens