dream

dream is a command for Claude Code from linggen/linggen-memory. It costs 19 tokens per session (163 once invoked), scanned A, original, MIT.

A memory-maintenance command that reviews past session logs, saves lasting information, and removes memory that should no longer be kept.

In plain words
What is it for?
Use it to process one day's logs or all unprocessed days, promote durable facts to long-term memory, and run the cleanup pass.
Why use it?
It prevents useful details from remaining only in temporary logs while keeping long-term memory from filling with outdated information.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the linggen plugin — 1 skill, 7 commands, 3 hooks, 2 MCP servers shipped together

Good fit Use it to process one day's logs or all unprocessed days, promote durable facts to long-term memory, and run the cleanup pass.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/linggen/linggen-memory/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.

Clone the repo
git clone --depth 1 https://github.com/linggen/linggen-memory

Made for: Claude Code.

Or install linggen, the plugin that ships this one along with the rest of its 1 skill, 7 commands, 3 hooks, 2 MCP servers.

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/commands/linggen/linggen-memory/dream/github.svg)](https://agentmods.dev/commands/linggen/linggen-memory/dream)
Your own site
<a href="https://agentmods.dev/commands/linggen/linggen-memory/dream"><img src="https://agentmods.dev/badge/commands/linggen/linggen-memory/dream/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/linggen/linggen-memory/dream"><img src="https://agentmods.dev/badge/commands/linggen/linggen-memory/dream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 163 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.00019 $0.00163
Opus 5.5 $0.00008 $0.00065
Sonnet 5.5 $0.00004 $0.00033
Haiku 4.5 $0.00002 $0.00016

Measured 22d ago against content hash fdb0a093382b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 22d 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.

plugins/linggen/commands/dream.md · 7 lines

What it actually says

Invoke the linggen skill (Skill tool) and treat this message as /linggen dream $ARGUMENTS — Dream mode. Follow the skill's Dream runbook (references/dream-flow.md) — it starts with where a dream runs (only on the primary, by its engine when it has one): if an argument gives a YYYY-MM-DD date, remember only that day; otherwise process all undreamed days oldest-first (ling-mem days --undreamed), then run the forget sweep and, on a clear worklist, the audit — settle each item from evidence yourself and queue only what needs the user.

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. 22d ago Changed fdb0a093382b
  2. 1mo ago Changed fdda1a25c029
  3. 3mo ago First seen · 7 lines · 19 tokens per session scan A b05c8ad60ad4

Subscribe to this mod's changes

dream is a command published in the GitHub repository linggen/linggen-memory (111 stars, last pushed 13d ago), licensed MIT. It adds 19 tokens to every session and 163 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

dream compared with commands from other repositories

dream next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dreamlinggen/linggen-memoryCommand11113d agoMITA19Claude Code
usageruvnet/ruv-FANNCommand3969d agoMITA0Claude Code
bmGoldziher/basemindCommand126todayMITA31Claude Code
anamnesis-statusTrapezohe/AnamnesisCommand18521d agoApache-2.0A13Claude Code
anamnesis-searchTrapezohe/AnamnesisCommand18521d agoApache-2.0A13Claude Code
compress0xhimanshu/governorCommand1332mo agoMITA20Claude Code
learnRamsbaby/jarvisCommand201mo agoMITA56Claude Code