dream

dream is a skill for Claude Code from mishahanin/heading-os. It costs 141 tokens per session (3,802 once invoked), scanned A, original, Apache-2.0.

A memory-maintenance process that reviews recent learnings and turns them into organized, durable memory files for later coding sessions. It also checks technical claims against Context7, a documentation lookup tool, and applies security rules.

In plain words
What is it for?
Use it periodically to consolidate memories, merge or rewrite outdated entries, check technical details, and identify knowledge that has become inactive.
Why use it?
It keeps saved project knowledge useful, current, and easier for future sessions to find.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/context7.py "<library>" "<relevant topic>".

Good fit Use it periodically to consolidate memories, merge or rewrite outdated entries, check technical details, and identify knowledge that has become inactive.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mishahanin/heading-os
agentmods
npx agentmods add skills/mishahanin/heading-os/dream

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/skills/mishahanin/heading-os/dream/github.svg)](https://agentmods.dev/skills/mishahanin/heading-os/dream)
Your own site
<a href="https://agentmods.dev/skills/mishahanin/heading-os/dream"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/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/skills/mishahanin/heading-os/dream"><img src="https://agentmods.dev/badge/skills/mishahanin/heading-os/dream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 134
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Memory Poisoning · line 332
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
  • medium Excessive Agency · line 17
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • medium Rogue Agent · line 44
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00141 $0.03802
Opus 5 $0.00071 $0.01901
Sonnet 5 $0.00028 $0.00760
Haiku 4.5 $0.00014 $0.00380

Measured 5d ago against content hash 34876a0d97bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dream scanned grade A with 1 finding 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

grep -rn "<narrow term>" ~/.claude/projects/<project-slug>/ --include="*.jsonl" | tail -30

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.claude/skills/dream/SKILL.md · 336 lines

How it starts

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

Dream - Reflective Memory Consolidation

Perform a reflective pass over memory files. Synthesize recent learnings into durable, well-organized memories so that future sessions can orient quickly.

Paths

  • Memory directory: the canonical DATA overlay <data-root>/auto-memory/, resolved via:
    python3 -c "from scripts.utils.workspace import get_auto_memory_dir; print(get_auto_memory_dir())"
    
    This is the authoritative store. Do NOT operate on the native harness store ~/.claude/projects/<project-slug>/memory/ - memory-reconcile.py re-syncs from the canonical dir at SessionStart.
  • Index file: MEMORY.md (inside that dir, 200-line budget)
  • Transcripts: ~/.claude/projects/<project-slug>/*.jsonl
  • Context7: python3 scripts/context7.py "<library>" "<topic>"
  • Security rules: .claude/rules/security.md. Engine code, so every clone has it.
  • Security law: docs/security/SECURITY-CONSTITUTION.md. It routes private, so a clone with no data overlay does not carry it.

Variables

  • $ARGUMENTS - Optional focus area or topic to investigate during the dream

Phase 0 - Orient

Understand the current state of the memory system before making any changes.

  1. List memory files:

    ls "$(python3 -c 'from scripts.utils.workspace import get_auto_memory_dir; print(get_auto_memory_dir())')"
    
  2. Read the index: Read MEMORY.md to understand current structure, categories, and entry count.

  3. Skim existing files: For each memory file, read the first 10-15 lines to understand its coverage:

    • What topic does it cover?
    • When was it last updated (check content dates)?
    • Is the information still likely current?
  4. Detect orphans: Cross-reference file list against MEMORY.md entries. Files present on disk but missing from the index are orphans - flag them for Phase 3.

  5. Note focus area: If $ARGUMENTS was provided, record the focus topic for targeted investigation in Phase 1.

Read the full file on GitHub · 336 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 Changed · +7 lines 34876a0d97bb
  2. 9d ago First seen · 329 lines · 141 tokens per session scan A be705dd50569

Subscribe to this mod's changes

dream is a skill published in the GitHub repository mishahanin/heading-os (11 stars, last pushed today), licensed Apache-2.0. It adds 141 tokens to every session and 3,802 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.