learn-dream

learn-dream is a command for Claude Code from app-vitals/shipwright. It costs 15 tokens per session (1,409 once invoked), scanned A, original, MIT.

A batch process that reads past coding-session transcripts and extracts lessons that apply across sessions.

In plain words
What is it for?
Use it on a schedule or manually to review recent sessions, create a review file, or apply the extracted learnings directly.
Why use it?
It finds recurring patterns that may not be visible in one conversation and turns durable ones into project context.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is echo "$CANDIDATES" | bun plugins/shipwright/scripts/learn-dream-tasks.ts -.

Part of the shipwright plugin — 27 skills, 32 commands, 5 agents shipped together

Good fit Use it on a schedule or manually to review recent sessions, create a review file, or apply the extracted learnings directly.

Compare 6 commands 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/app-vitals/shipwright
agentmods
npx agentmods add commands/app-vitals/shipwright/learn-dream

Made for: Claude Code.

Or install shipwright, the plugin that ships this one along with the rest of its 27 skills, 32 commands, 5 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/app-vitals/shipwright/learn-dream/github.svg)](https://agentmods.dev/commands/app-vitals/shipwright/learn-dream)
Your own site
<a href="https://agentmods.dev/commands/app-vitals/shipwright/learn-dream"><img src="https://agentmods.dev/badge/commands/app-vitals/shipwright/learn-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 learn-dream

Your own site · 80×15
<a href="https://agentmods.dev/commands/app-vitals/shipwright/learn-dream"><img src="https://agentmods.dev/badge/commands/app-vitals/shipwright/learn-dream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 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,409 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.
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.00015 $0.01409
Opus 5.5 $0.00006 $0.00564
Sonnet 5.5 $0.00003 $0.00282
Haiku 4.5 $0.00002 $0.00141

Measured today against content hash 138719f669d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

learn-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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf -X POST \
plugins/shipwright/commands/learn-dream.md · 124 lines

How it starts

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

/learn-dream — Batch Learning from Session Transcripts

The interactive learning-capture skill needs a human in the loop — it reacts to a correction as it happens. Autonomous agents (Managed Agents, background/cron agents) have no human to react to. /learn-dream is how they learn: a batch job that reads past session transcripts, finds patterns no single session could see, and routes the durable ones to where they belong as task-store tasks.

This is the "dreaming" pattern — consolidation that happens between sessions, not during them. It is agent-level, not per-repo: one run covers every repo the agent's sessions touched. Run it manually, or wire it to a cron (see Scheduling).

Usage

/learn-dream                      # transcripts from the last 14d (default)
/learn-dream --since 7d            # last 7 days

--since defaults to 14d.

Process

  1. Collect transcripts. Claude Code stores session transcripts as JSONL under ~/.claude/projects/<sanitized-project-path>/*.jsonl. Managed Agents expose their own run logs. Gather every transcript in the --since window.

  2. Dispatch the learning-dreamer agent (agents/learning-dreamer.md) with those transcripts. It mines cross-session patterns (recurring corrections, converged workflows, repeated failures, overridden CLAUDE.md lines), applies the gate in skills/learning-capture/references/generalization-gate.md plus the recurrence and per-destination evidence bars, also prunes stale/duplicate/contradictory entries, and makes no edits itself. Its final answer is a JSON array of routed candidates. Candidates below their evidence bar are dropped by the agent; count them as dropped-for-evidence in the summary.

  3. Split off truly-local candidates. Candidates whose destination is the agent's own workspace CLAUDE.md, a local skill, or CLAUDE.local.md (non-null local_justification) are edited directly in the agent workspace. Local edits are confined to the agent workspace; nothing is ever applied to a repo checkout without a PR. Each local edit is listed in the summary.

Read the full file on GitHub · 124 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. today Changed · +22 lines 138719f669d1
  2. 13d ago First seen · 102 lines · 15 tokens per session scan A 2592d8e4935e

Subscribe to this mod's changes

learn-dream is a command published in the GitHub repository app-vitals/shipwright (16 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 1,409 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

learn-dream compared with commands from other repositories

learn-dream next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
learn-dreamapp-vitals/shipwrightCommand16todayMITA15Claude Code
plandmae97/omkCommand154todayMITA0Claude Code
constitutiondmae97/omkCommand154todayMITA0Claude Code
tasksdmae97/omkCommand154todayMITA0Claude Code
review-codechohra-med/expo_boilerplateCommand362mo agoMITA50Claude Code
tree-ring-recallTerminallyLazy/Tree-Ring-MemoryCommand242mo agoMITA12Claude Code
tree-ring-statusTerminallyLazy/Tree-Ring-MemoryCommand242mo agoMITA12Claude Code