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.
git clone --depth 1 https://github.com/app-vitals/shipwrightnpx agentmods add commands/app-vitals/shipwright/learn-dreamWrote 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.
[](https://agentmods.dev/commands/app-vitals/shipwright/learn-dream)<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.
<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>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.
| Model | Per session | Once 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 |
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 \ 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
-
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--sincewindow. -
Dispatch the
learning-dreameragent (agents/learning-dreamer.md) with those transcripts. It mines cross-session patterns (recurring corrections, converged workflows, repeated failures, overriddenCLAUDE.mdlines), applies the gate inskills/learning-capture/references/generalization-gate.mdplus 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. -
Split off truly-local candidates. Candidates whose destination is the agent's own workspace
CLAUDE.md, a local skill, orCLAUDE.local.md(non-nulllocal_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.
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.
- today Changed · +22 lines 138719f669d1
- 13d ago First seen · 102 lines · 15 tokens per session scan A 2592d8e4935e
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.
learn-dream compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| learn-dreamapp-vitals/shipwright | Command | 16 | today | MIT | A | 15 | Claude Code |
| plandmae97/omk | Command | 154 | today | MIT | A | 0 | Claude Code |
| constitutiondmae97/omk | Command | 154 | today | MIT | A | 0 | Claude Code |
| tasksdmae97/omk | Command | 154 | today | MIT | A | 0 | Claude Code |
| review-codechohra-med/expo_boilerplate | Command | 36 | 2mo ago | MIT | A | 50 | Claude Code |
| tree-ring-recallTerminallyLazy/Tree-Ring-Memory | Command | 24 | 2mo ago | MIT | A | 12 | Claude Code |
| tree-ring-statusTerminallyLazy/Tree-Ring-Memory | Command | 24 | 2mo ago | MIT | A | 12 | Claude Code |