By maxgoff
Local emulation of Anthropic's Dreams API for Claude Code: /dream reflects on past session transcripts to consolidate persistent memory — duplicates merged, stale entries replaced, new insights surfaced. Input store is never modified; review the output, then apply or discard.
A /dream skill that brings the capabilities of Anthropic's Dreams API (managed-agents research preview) to local Claude Code installations — no API key, beta access, or cloud memory stores required.
Agents write to their memory stores as they work, but these writes are local and incremental: over many sessions a memory store accumulates duplicates, contradictions, and stale entries. Dreams let Claude clean that up.
A dream reads your existing memory alongside past session transcripts, then produces a new, reorganized memory store: duplicates merged, stale or contradicted entries replaced with the latest value, and new insights surfaced. The input is never modified — you review the output, then apply or discard it.
| Source | Location | Output |
|---|---|---|
| Project memory store | ~/.claude/projects/<slug>/memory/ | rebuilt sibling dir memory.dream-<date>/ |
| Instruction files | CLAUDE.md, CLAUDE.local.md, ~/.claude/CLAUDE.md | *.dream-<date> proposals next to originals |
| claude-mem observations (if installed) | ~/.claude-mem/claude-mem.db | read-only curation report + SQL (never auto-applied) |
/dream # curate memory using the 10 most recent sessions
/dream 25 # mine the 25 most recent sessions (max 100)
/dream 0 # curate the store only, no transcript mining
/dream focus on coding-style preferences; ignore one-off debugging notes
/dream 50 preserve all reference memories unchanged
The trailing free text is steering guidance, equivalent to the API's instructions field: synthesis-level direction (focus areas, what to preserve, output conventions), not line-level edits.
Every run ends with a review summary (kept / merged / updated / dropped / new) and an explicit apply-or-discard choice. Applying swaps the store atomically and keeps the previous one as memory.pre-dream-<date> for rollback.
/plugin marketplace add maxgoff/Dreams # or a local path / your fork's URL
/plugin install dreams@dreams
git clone https://github.com/maxgoff/Dreams.git
ln -s "$(pwd)/Dreams/skills/dream" ~/.claude/skills/dream
Either way, /dream becomes available in every Claude Code session on the machine.
| Dreams API | This skill |
|---|---|
memory_store input | local project memory directory |
sessions input (1–100) | local .jsonl session transcripts |
instructions field | trailing /dream arguments |
output store in outputs[] | memory.dream-<date>/ sibling directory |
| input store never modified | input store never modified |
| review, then attach or discard | review, then swap or discard |
| async job with observable session | runs in-session with progress updates |
| billed API tokens | your Claude Code session tokens |
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub maxgoff/dreams --plugin dreamsMemory compression system for Claude Code - persist context across sessions
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.