kb-dream

kb-dream is a skill for Claude Code from ernestolee13/para-knowledge-base. It costs 95 tokens per session (2,170 once invoked), scanned A, original, MIT.

An offline maintenance pass for a PARA knowledge base, a system that organizes notes by projects, areas, resources, and archives. It compares notes with recent logs and files, fixes mechanical errors, and proposes other corrections.

In plain words
What is it for?
Use it to check links, tags, indexes, status notes, next actions, and agent memory notes on a schedule.
Why use it?
It helps prevent old or incorrect notes from being trusted in later sessions.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions subagents.

Part of the para-knowledge-base plugin — 6 skills, 4 hooks shipped together

Good fit Use it to check links, tags, indexes, status notes, next actions, and agent memory notes on a schedule.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ernestolee13/para-knowledge-base/kb-dream
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.

Any agent
npx skills add ernestolee13/para-knowledge-base --skill kb-dream
Clone the repo
git clone --depth 1 https://github.com/ernestolee13/para-knowledge-base

Made for: Claude Code.

Or install para-knowledge-base, the plugin that ships this one along with the rest of its 6 skills, 4 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ernestolee13/para-knowledge-base/kb-dream/github.svg)](https://agentmods.dev/skills/ernestolee13/para-knowledge-base/kb-dream)
Your own site
<a href="https://agentmods.dev/skills/ernestolee13/para-knowledge-base/kb-dream"><img src="https://agentmods.dev/badge/skills/ernestolee13/para-knowledge-base/kb-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 kb-dream

Your own site · 80×15
<a href="https://agentmods.dev/skills/ernestolee13/para-knowledge-base/kb-dream"><img src="https://agentmods.dev/badge/skills/ernestolee13/para-knowledge-base/kb-dream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,170 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00095 $0.02170
Opus 5.5 $0.00038 $0.00868
Sonnet 5.5 $0.00019 $0.00434
Haiku 4.5 $0.00010 $0.00217

Measured 20d ago against content hash a6b1f8e199b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kb-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 20d 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.

skills/kb-dream/SKILL.md · 113 lines

How it starts

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

KB Dream: consolidate and correct the wiki between sessions

kb-lint checks structure (links, orphans, tags). kb-dream checks truth: is what a note claims still right? It follows the "dreaming" idea from Anthropic's agent-memory research: an agent's notes go stale or are wrong from the start, and a wrong note gets trusted in every later session, so a separate pass compares notes against the record and fixes them.

Purpose of a note, which drives every judgment below: keep what the next session cannot easily find out again (verified facts, decisions and their reasons, plans, traps). State that can be read directly from files or tools does not need to be remembered, and a note that restates it will drift.

Inputs

  • .para-kb/config.json, section dream (all optional):
    • auto_fix: "mechanical" (default) or "none" (report only).
    • report_dir: where the report goes. Default .para-kb/reports/dream/.
    • max_targets: notes to judge per run. Default 40.
    • lookback_days: how far back logs count as evidence. Default 14.
    • promote: propose promotion and demotion between layers (step 4). Default true. Turn it off when another job already promotes lessons.
    • skip_paths: vault paths another job owns (a daily summary, a todo list). Never judged or edited here.
    • extra_note_dirs: notes outside the vault, such as an agent's own memory folder. Each item is {"path": "<absolute or ~ path>", "label": "<name>", "mode": "propose" | "fix"}. fix is only for folders the agent owns (its own memory), never for human-written notes.
  • Exclusions in the config apply. Never read credentials-type files, private journals, or anything excluded.

Procedure

1. Pick targets (volatile first)

Score candidates and take the top max_targets:

  1. Project hubs and overviews with "next action", "status", "pending", "waiting", or dated plans.
  2. Indexes whose updated is older than the newest file in their folder.
  3. Notes whose body states a current state ("is running", "not yet", "blocked", "waiting for") and were last modified more than lookback_days ago while their project log moved since.
  4. Every note in extra_note_dirs changed in the last 60 days, plus its index file.
  5. Task notes (type: task) whose status is not done or dropped: is the task still open, already done according to the log, or replaced?

Read the full file on GitHub · 113 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. 20d ago First seen · 113 lines · 95 tokens per session scan A a6b1f8e199b3

Subscribe to this mod's changes

kb-dream is a skill published in the GitHub repository ernestolee13/para-knowledge-base (21 stars, last pushed 21d ago), licensed MIT. It adds 95 tokens to every session and 2,170 once invoked, about $0.0004 per session on Opus 5.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-11-10.

Related

kb-dream compared with skills from other repositories

kb-dream next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kb-dreamernestolee13/para-knowledge-baseSkill2121d agoMITA95Claude Code
llm-wikizosmaai/pi-llm-wikiSkill6345d agoMITA52Claude Code
refresh-contextjohnfkoo951/cmds-llm-wikiSkill1061mo agononeA51Claude Code, Codex
llm-wikiAr9av/obsidian-wikiSkill3.8k3d agoMITA41Claude Code
wiki-lintAr9av/obsidian-wikiSkill3.8k3d agoMITA47Claude Code
wiki-exportAr9av/obsidian-wikiSkill3.8k3d agoMITA53Claude Code
wiki-queryAr9av/obsidian-wikiSkill3.8k3d agoMITA89Claude Code