aio-dream

aio-dream is a skill for Claude Code from aiocean/claude-plugins. It costs 23 tokens per session (1,113 once invoked), scanned A, original, MIT.

A memory-maintenance tool that reviews, combines, removes, and re-indexes memory files used by future sessions. Re-indexing updates how those files can be found and used.

In plain words
What is it for?
It is for consolidating memory, pruning unnecessary entries, merging related files, and rebuilding memory indexes.
Why use it?
It helps keep stored session information organized and reduces outdated or duplicated memories. Cleaner memory files make it easier for later sessions to understand prior context.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: mentions CLAUDE.md.

Part of the aio-claude-toolkit plugin — 9 skills shipped together

Good fit It is for consolidating memory, pruning unnecessary entries, merging related files, and rebuilding memory indexes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiocean/claude-plugins/aio-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 aiocean/claude-plugins --skill aio-dream
Clone the repo
git clone --depth 1 https://github.com/aiocean/claude-plugins

Made for: Claude Code.

Or install aio-claude-toolkit, the plugin that ships this one along with the rest of its 9 skills.

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 aio-dream

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-dream/github.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-dream)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-dream"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-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 aio-dream

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-dream"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-dream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,113 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.00023 $0.01113
Opus 5.5 $0.00009 $0.00445
Sonnet 5.5 $0.00005 $0.00223
Haiku 4.5 $0.00002 $0.00111

Measured 1mo ago against content hash 1e93abaa15e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aio-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.

plugins/aio-claude-toolkit/skills/aio-dream/SKILL.md · 119 lines

How it starts

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

Dream: Memory Consolidation

You are performing a dream — a reflective pass over your memory files. Synthesize what you've learned recently into durable, well-organized memories so that future sessions can orient quickly.

Environment

  • Memory directory: !echo "${CLAUDE_MEMORY_DIR:-$HOME/.claude/projects/$(pwd | sed 's|/|-|g')/memory}"
  • Session transcripts: !echo "${CLAUDE_PROJECT_DIR:-$HOME/.claude/projects/$(pwd | sed 's|/|-|g')}" (JSONL files — each file is one past session)

Phase 1 — Orient

  1. ls the memory directory to see what already exists
  2. Read MEMORY.md to understand the current index
  3. Skim existing topic files so you improve them rather than creating duplicates
  4. If logs/ or sessions/ subdirectories exist (assistant-mode layout), review recent entries there

Phase 2 — Gather recent signal

Look for new information worth persisting. Sources in rough priority order:

  1. Daily logs (logs/YYYY/MM/YYYY-MM-DD.md) if present — these are the append-only stream
  2. Existing memories that drifted — facts that contradict something you see in the codebase now
  3. Session transcripts — the transcript directory contains JSONL files of past sessions. Grep them for relevant context:
    grep -rn "<narrow term>" <transcript-dir>/ --include="*.jsonl" | tail -50
    
    Use narrow, specific terms relevant to what you found in Phase 1 (e.g., a project name, a tool, a decision topic). Read surrounding lines when a match looks valuable.

Phase 3 — Consolidate

For each thing worth remembering, write or update a memory file at the top level of the memory directory.

Memory file format

---
name: {{memory name}}
description: {{one-line description — used to decide relevance in future conversations, so be specific}}
type: {{user | feedback | project | reference}}
---

{{memory content}}

Memory types

Type What to store Scope
user Role, goals, preferences, knowledge Always private
feedback User's guidance on approach — corrections AND confirmations Private or team
project Ongoing work, goals, bugs, incidents — NOT derivable from code/git Bias toward team
reference Pointers to external systems (Linear, Grafana, Slack, etc.) Usually team

Read the full file on GitHub · 119 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 First seen · 119 lines · 23 tokens per session scan A 1e93abaa15e7

Subscribe to this mod's changes

aio-dream is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 1,113 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-31.

Related

Other skills, from other repositories

catchup

Restore context after /clear by summarizing recent work and project state.

FlorianBruniaux/claude-code-ultimate-guide · 16 tokens

daily-briefing

Proactive daily briefing that fires on a recurring schedule, pulls recent memory and workspace context, composes a structured summary (action items, progress, radar, next steps), and delivers it to all active channels. Enable with a time like "set up my daily briefing at 9am". Disable, reschedule, or check status at…

vellum-ai/vellum-assistant · 75 tokens

ha-knowledge

Working method for the Hope Agent knowledge space — how to capture, organize, link, retrieve, and maintain Markdown notes well with the note tools. Load whenever you are reading or writing notes in an attached knowledge base. Trigger on: user asks to take / save / organize / restructure notes, build or grow a…

shiwenwen/hope-agent · 187 tokens

report

Writes the session final report to a file, then prints only the path and a one-line summary. Fires when the prompt contains "Report per memstack:report", and also when the prompt begins with a standing trigger configured through MEMSTACKREPORTONTASKPROMPTS or MEMSTACKREPORTTRIGGERS. Dormant otherwise.

cwinvestments/memstack · 67 tokens

token-optimization

Use when the user says 'token optimization', 'save tokens', 'context window', 'reduce tokens', 'token stack', or 'TokenStack', or asks about extending context window capacity. Covers TokenStack, the built-in compression proxy that shrinks Claude Code tool output before it reaches the Anthropic API. Do NOT use for…

cwinvestments/memstack · 79 tokens

state

Use when the user says 'update state', 'project state', 'where was I', or at session start to load current context.

cwinvestments/memstack · 29 tokens