/llmdoc:dream [--window-days <n>] [--stale-days <n>] [summary]from llmdoc
Offline memory consolidation pass that audits stale docs, clusters cross-session reflections, repairs search blind spots, and trims startup preload bloat. Useful for periodic maintenance via cron or manual invocation.
Ships in llmdoc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this command for periodic offline memory consolidation — manually or triggered by an external Harness cron (Claude Code, Antigravity /schedule, Paradev automations). llmdoc does not run its own scheduler; Harness cron should gate with npx -y @tokenroll/llmdoc dream --check --quiet (exit 0 = quiet, skip LLM work; exit 2 = actionable signals, run /llmdoc:dream; exit 1 = workspace or ledger error, surface diagnostics without treating it as consolidation work).
Load the llmdoc skill before broad exploration. CLI commands below run as npx -y @tokenroll/llmdoc <cmd>.
An explicit /llmdoc:dream invocation authorizes this run to:
llmdoc/ docs, and .llmdoc-tmp/reflections/pending/llmdoc/, llmdoc/meta.json, and llmdoc.config.json (when adjusting startup.preload).llmdoc-tmp/reflections/.llmdoc-tmp/investigations/This command does not authorize source-code edits. In unattended Harness cron runs where direct branch commits are not authorized or mapped source code is dirty, leave tracked files untouched and emit a concise review digest instead.
git status -- llmdoc/ must be clean before the first formal write; when adjusting startup.preload, git status -- llmdoc.config.json must also be clean.git checkout -- llmdoc/ (plus deleting newly created files under llmdoc/, and git checkout -- llmdoc.config.json or removing a newly created llmdoc.config.json if this run edited it); never hand-edit files back.validate or eval fails after writes and cannot be repaired in-run, roll back the entire write-set (llmdoc/ and any run-owned llmdoc.config.json edits) before reporting failure.Run mechanical consolidation scan:
dream --report (with optional --window-days, --stale-days, --hot-threshold).dream --check exit 2) are hot stale docs, pending reflection clusters, recurring (>= 2x) search blind spots or unmapped probes, startup.preload exceeding preloadBudgetTokens, Borges abstraction risks, and growth exceeding the convergence gate.promoteCandidates and within-budget demoteCandidates are advisory hints (they do not independently trigger --check exit 2, so declined preload suggestions never spam cron); review them opportunistically during manual runs or active consolidation passes.status is quiet and this is an automated/cron run (or no advisory hints need manual action), stop immediately and report no_change.Triage signals with investigator (for code verification) and recorder (for tracked doc edits):
delta reports zero code changes. Fix wrong premises; mark accurate docs verified unchanged.description vocabulary or repair missing code.paths when real gaps exist; read Knowledge Topology and Context Floor before topology changes.startup.preload exceeds the soft budget or shows demote/promote candidates. Return low-frequency docs to progressive description/tree disclosure rather than inventing another preload format (or explicitly justify/adjust startup.preloadBudgetTokens).Gate and finalize:
validate.eval when llmdoc.probes.json exists; repair routing regressions before committing.commit -m "<message>" (adding --verified <path...> for audited unchanged hot docs, and --refresh-convergence --convergence-source dream when scale converged). Because llmdoc commit commits only llmdoc/ and llmdoc/meta.json, commit any authorized llmdoc.config.json update separately with Git (or report it clearly if config commits are handed off to the user).commit to fail closed; never fabricate revisions.Report concisely:
dream --report signals that triggered work (or no_change when quiet)promoted, already_covered, dismissed, or pending)validate, eval, commit, and any separate llmdoc.config.json outcomes (or why finalization produced a review digest instead)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tokenrollai/llmdoc --plugin llmdoc6 skills in this plugin
/initExplicit V3 bootstrap for repositories that do not already have valid llmdoc knowledge./llmdocDefault V3 operating skill for llmdoc-enabled projects. Route discovery — exploring code, locating contracts, judging blast radius, configuring llmdoc.config.json (preload, budget, reminders, external @source/ mounts), running llmdoc eval probes, or offline /llmdoc:dream consolidation — through the llmdoc CLI instead of broad file crawling./pruneExplicit V3 convergence pass that removes duplicated, fragmented, or low-value reconstructable llmdoc content./updateExplicit V3 semantic verification and sync of existing llmdoc knowledge against the current repository./upgradeExplicit V2 to V3 migration surface. Never suggest this command implicitly.Other plugins' skills for the same job