dream

dream is a command for Claude Code from solanabr/solana-ai-kit. It costs 17 tokens per session (1,130 once invoked), scanned A, original, MIT.

A command that cleans up the project's MEMORY.md and, with confirmation, the Project Learnings section of CLAUDE.md. It merges duplicates, checks contradictions, removes stale information, and ranks what remains.

In plain words
What is it for?
Use it after major refactors to organize patterns, pitfalls, preferences, architecture notes, tools, confidence levels, sources, and dates.
Why use it?
It keeps accumulated project notes accurate and usable after major refactors instead of allowing outdated or repeated guidance to build up.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; built for gstack.

Good fit Use it after major refactors to organize patterns, pitfalls, preferences, architecture notes, tools, confidence levels, sources, and dates.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/solanabr/solana-ai-kit/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/solanabr/solana-ai-kit

Made for: Claude Code.

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/solanabr/solana-ai-kit/dream/github.svg)](https://agentmods.dev/commands/solanabr/solana-ai-kit/dream)
Your own site
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/dream"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/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/solanabr/solana-ai-kit/dream"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/dream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,130 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.00017 $0.01130
Opus 5.5 $0.00007 $0.00452
Sonnet 5.5 $0.00003 $0.00226
Haiku 4.5 $0.00002 $0.00113

Measured 1mo ago against content hash abd9c60ffbac, 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 1mo 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.

.claude/commands/dream.md · 56 lines

How it starts

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

Consolidate project memory. This pass adds no new knowledge: it merges duplicates, resolves contradictions, drops what is stale and strengthens what is proven. Edit only MEMORY.md and, after the user confirms, the ## Project Learnings section of CLAUDE.md. Never touch project code.

Entry schema

MEMORY.md sections: ## Patterns, ## Pitfalls, ## Preferences, ## Architecture, ## Tools. Work with each entry in this typed form (step 6 covers how it is written back):

### kebab-case-key
- **Insight:** One clear sentence
- **Confidence:** N/10
- **Source:** command/agent/session that produced it (e.g. debug-user-tx, manual)
- **Files:** relative/path.rs, other/path.ts   (optional)
- **Date:** YYYY-MM-DD

Backfill missing fields: unknown source legacy, missing date today, missing confidence 5/10.

Pipeline

  1. Collect. Read MEMORY.md; if it is missing, create it with the five section headers, report "fresh memory initialized" and skip to step 6. Read the ## Project Learnings section of CLAUDE.md (Recurring Issues, Fix Patterns, Config Conventions): it is always loaded and is the authoritative set for contradiction checks. Count entries per section and malformed entries.
  2. Merge. Same key more than once: keep the latest-dated entry, fold extra detail from the older ones into its Insight, take the max confidence and delete the older ones (consolidation is the one place append-only history gets compacted). Different keys with the same meaning (compare the insights, not the strings): merge under the clearer key, noting the alias if useful.
  3. Resolve contradictions ("use X" vs "avoid X", inside MEMORY.md or against Project Learnings). Higher confidence plus newer date wins; if the referenced files show which one is true today, check the code; if it is still ambiguous, ask the user and show both entries. Delete the loser and add "supersedes: " to the winner.
  4. Prune. Auto-remove dead references (every listed file is gone, checked with Glob; if some survive, trim the Files list), transient leftovers (in-progress work, old branch state, one-off incidents that can't recur) and verbatim restatements of README or CLAUDE.md. For stale entries (confidence 4 or lower, older than 90 days, never re-confirmed) ask the user: remove, keep and re-date to today, or update the insight.
  5. Re-rank each section by confidence, then date, both descending.
  6. Write back under the cap. MEMORY.md loads at every session start, so it has a hard cap of 200 lines / 25KB and stays index-pointer style: one-line insights pointing at files, not essays. The typed fields are processing-only for steps 2-5; that metadata lives in the linked detail files, not in the index. If it is over the cap, compress insights to one line, drop obvious Files, then remove the lowest-confidence entries and tell the user what was cut. Show a before/after diff summary, not the whole file.
  7. Export to CLAUDE.md (optional; confirm first). Promote an entry only when its confidence is 8/10 or higher, it survived an earlier consolidation (30+ days old or re-confirmed), it applies to the whole project rather than one file's quirk, and it fits one bullet: - **key:** insight (N/10). On confirmation, append it under the matching Project Learnings subsection and delete it from MEMORY.md; CLAUDE.md is always loaded, so keeping both wastes tokens.

Read the full file on GitHub · 56 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. 1mo ago Changed · -56 lines · -14 tokens per session abd9c60ffbac
  2. 1mo ago First seen · 112 lines · 31 tokens per session scan A a12e2d1b5d2e

Subscribe to this mod's changes

dream is a command published in the GitHub repository solanabr/solana-ai-kit (104 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 1,130 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.