Vault Daydream Skill
Multi-agent system that mines the Obsidian vault for non-obvious connections between notes, mimicking the brain's default mode network. Samples random note pairs, synthesizes connections via Sonnet, filters with Haiku critic.
Inspired by Gwern's LLM Daydreaming.
Usage
code
/daydream
What it does
- •Auto-detects vault root from current directory (asks if not found)
- •Scans vault for notes modified in last 120 days
- •Generates 50 recency-weighted random pairs
- •Synthesizes connections (Sonnet, parallel batches of 5)
- •Critiques and scores insights (Haiku, parallel batches)
- •Filters for quality (average score >= 7.0)
- •Saves insight notes to
Daydreams/folder - •Generates daily digest in
Daydreams/digests/ - •Appends summary to today's daily note
Output
- •Individual insights:
Daydreams/YYYYMMDD-slug.md-- full synthesis with scores and wikilinks - •Daily digest:
Daydreams/digests/YYYYMMDD-digest.md-- stats + ranked top insights - •Daily note: Summary appended under
## Daydream - •History log:
ai-research/daydream/history.json-- tracks sampled pairs for dedup
Architecture
code
Skill (orchestrator) |-- Glob/Read: scan vault, extract excerpts |-- Generate 50 random pairs (recency-weighted) |-- Task(model: sonnet) x 10: synthesize connections <-- parallel |-- Task(model: haiku) x 10: critique/score insights <-- parallel |-- Filter (avg >= 7.0) +-- Write: save insight notes + daily digest
No external dependencies -- pure Claude Code tools (Glob, Read, Write, Bash, Task).
Cost
Per run (~50 pairs): approximately $0.40-0.50 via Claude Code usage.