aio-dream

aio-dream is a skill for Claude Code, Codex 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 CodeCodex

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

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.

agentmods
npx agentmods add skills/aiocean/claude-plugins/aio-dream
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00023 $0.01113
Opus 5 $0.00012 $0.00557
Sonnet 5 $0.00005 $0.00223
Haiku 4.5 $0.00002 $0.00111

Measured 5d ago against content hash 1e93abaa15e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 2d ago), licensed MIT. It adds 23 tokens to every session and 1,113 once invoked, about $0.0001 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.