Skip to content

daydreamd: the LLM daydreaming loop, evaluated

LLM Daydreaming v01. Give your LLM the power to dream new ideas, based on your actual work.

By Julian Caraulani, September 2026. An open implementation and preregistered test of Gwern's LLM daydreaming proposal (the day-dreaming loop) over your own notes: Obsidian vaults, Claude Code memory, any markdown folder. Code on GitHub, archived with DOI 10.5281/zenodo.22746627.

Your notes are full of connections you never made. daydreamd looks for them while you sleep.

It is a local-first daemon that collides far-apart concepts from your own corpus, asks a model whether a genuine connection exists (with permission to say no), kills most of what comes back, and leaves the survivors in a morning.md. The research question is not whether a model can generate connections. It can, cheaply and endlessly. The question is whether anything can tell a real connection from a fluent one. This project is the test rig for that question, with ground truth planted by construction, a preregistered protocol, and every raw output committed.

Repo: llm-daydreaming. Tool and package: daydreamd (daydream plus the Unix daemon suffix).

Lineage

This project does not propose the day-dreaming loop. It measures one part of it. The idea and the first builds belong to the people below; what this project adds is the missing measurement.

The loop is old. What changed in 2025 is that the generator became cheap enough to run every night over a private corpus, and what is still missing is the measurement.

Year Who What What was missing
1908 Henri Poincaré, "Science and Method" (1914 translation) invention is choice: the unconscious forms a great many combinations, and only the useful ones reach consciousness after a period of incubation one mathematician's aesthetic sense as the sieve; no procedure, no corpus
1926 Graham Wallas, "The Art of Thought" preparation, incubation, illumination, verification as the four stages of a new idea a description of stages, not a mechanism
1945 Jacques Hadamard, "The Psychology of Invention in the Mathematical Field" combinations formed below awareness and sifted by an aesthetic sense, from interviews with mathematicians same sieve, same absence of a procedure
1960 Donald T. Campbell, "Blind variation and selective retention in creative thought as in other knowledge processes" generate variations blindly, retain selectively: the selection half of the loop stated as a general principle the retention criterion is left open; no generator
1962 Sarnoff Mednick, "The associative basis of the creative process" creativity as forming remote associates; the distance between the paired elements is the variable the flat-hierarchy mechanism was later refuted (Benedek and Neubauer 2013); the distance framing survived
1964 Arthur Koestler, "The Act of Creation" bisociation: a new idea is the collision of two previously unconnected frames of thought a name for the collision, no way to produce or test one
1983 Francis Crick and Graeme Mitchison, "The function of dream sleep" dreaming as reverse learning that removes parasitic associations from an overloaded network pruning without generation; no idea comes out of it
1986 Don R. Swanson, "Fish oil, Raynaud's syndrome, and undiscovered public knowledge" two literatures that never cite each other can jointly hold an unnoticed discovery; the closest ancestor of colliding two distant notes public literature, searched by hand, one investigator as the judge
1990 Erik T. Mueller, "Daydreaming in Humans and Machines" (DAYDREAMER) the first program that daydreams: a stream of thought that generates and evaluates alternative plans between tasks daydreams over its own goals and episodes, not over a corpus of notes; no novelty evaluation
1990 Margaret Boden, "The Creative Mind: Myths and Mechanisms" combinational, exploratory and transformational creativity as three distinct kinds a taxonomy; the loop is combinational by definition, still without a runnable form
1993 Melanie Mitchell, "Analogy-Making as Perception" and Hofstadter and Mitchell, "Fluid Concepts and Creative Analogies" (1995) Copycat: generate associations in parallel, filter, with a literal temperature knob controlling how far to reach a micro-domain of letter strings; temperature is a risk parameter, not a novelty parameter
1995 Hinton, Dayan, Frey and Neal, "The wake-sleep algorithm for unsupervised neural networks" a sleep phase generates fantasies that train the recognition model learning weights, not proposing ideas
2002 Gilles Fauconnier and Mark Turner, "The Way We Think" conceptual blending: the cognitive mechanism under every recombination no computation, no evaluation
2021 Erik Hoel, "The overfitted brain: Dreams evolved to assist generalization" dreams as noise injection against overfitting, hence the need for a dedicated offline phase an argument for why to dream, not for what to dream about
2023 Park et al., "Generative Agents" periodic reflection that synthesises stored memories into higher-level insights synthesis of what is there; no recombination of distant items, no discard
2025 Lin et al., "Sleep-time Compute" offline computation over an agent's context while it is idle consolidation for later queries, not generation of anything new
2025 Gwern, "LLM Daydreaming" proposed the day-dreaming loop: sample two facts, ask for a connection, keep the interesting ones, write them back no implementation, no evaluation
2025 Sean Goedecke, idea-mill first prototype, one day after the essay; "a few genuinely novel ideas" hand-written facts, no critic evaluation, no baselines
2025 Zbigniew Lukasiak, DayDreamingDayDreaming first temporal-novelty pilot with pre-cutoff models "I manually selected combinations"; "a domain-agnostic novelty verifier is the fundamental research bottleneck"
2026 Vault Daydream Obsidian skill: vault pairs, generator plus critic, threshold, writeback run on demand, no distance control, no evaluation
2026 Oliver Zahn, James Evans and David Eagleman, "Discovery by Dreaming" recombination over public corpora, validated against 50,000 cross-field pairs and a 2026 holdout no critic, no distance control, no private corpus; the holdout is not leakage-safe by the authors' own account
2026 Julian Caraulani, "daydreamd: the LLM daydreaming loop, evaluated" selective daydreaming: the loop with an abstention gate, tested against planted ground truth under a sealed preregistration, every raw output published real-corpus usefulness (Track C), temporal validation (Track A) and a critic that is not an opinion are still open

Sources verified 2026-09-14: DOIs resolved through Crossref, books through archive.org or Open Library, preprints through arXiv.

The consolidation branch (Letta's sleep-time compute, Google's "Language Models Need Sleep", Anthropic's Dreams, OpenClaw's dreaming mode) reorganises memory. It does not generate. We build none of it. See the paper for the full map.

What we found

v0.1. Sealed run over the synthetic corpus, 2026-09-13, generator claude-sonnet-5:

  • H1, selection: supported. Given the right two notes, the generator answered on 11 of 12 planted pairs and named the planted mechanism on 8 of 12; it stayed silent on 5 of 6 decoys and 34 of 42 random pairs, and no decoy answer survived the critic (Fisher p = 0.011).
  • H2, distance-forced sampling: null. Banded sampling drew 1 planted pair in 100, anchor plus remote drew 0 in 50, random drew 1 in 100. Expected under chance: 0.65. Untestable at this base rate, and the post-hoc points the other way.
  • H3, two notes beat one note: not significant. 8 of 12 vs 4 of 12, p = 0.11. All four single-note recoveries come from notes that state the mechanism in paraphrase, which the 6-gram leakage check cannot catch.
  • Decision. By the preregistered rule this run reports no signal. We publish it anyway; that was the deal.
  • Exploratory X1. Replace the true partner note with a mechanism-free filler from the same domain and recovery collapses: 9 of 12 with the real pair, 1 of 12 with the filler (Fisher p = 0.0014).
  • Post-hoc. Every planted bridge's closest card pair sits in the nearest distance band (12 of 12): real bridges are domain-far but embedding-near, so far-band sampling aims at the wrong band. The critic killed 3 of the 8 correct recoveries.

v0.2. Sealed run 2026-09-14 over a harder corpus: 96 notes, bridges written obliquely on both sides by two model families (Claude Haiku and a local Qwen 2.5 7B), shape-matched decoys, a paraphrase-leak judge, two critics. Eight bridges failed the leak rule and were excluded; 16 remain.

  • H1, selection: supported again. 6 of 16 planted recovered, 0 of 12 decoys survive, Fisher p = 0.021.
  • H4, partner-domain filler control: passed, and it is not a recombination test. 0 of 16 with a mechanism-free filler (p = 0.009). Asked to connect a note to an unrelated note, the model correctly says NONE; that says nothing about whether the second note was needed.
  • H3, two notes beat one note: inverted. Single-note reflection recovered 8 of 16, the two-note oracle 6 of 16 (p = 0.86). The planted mechanisms are principles a capable model reads off one note's ingredients.
  • H2, near-in-embedding sampling: null at 300 draws. 2 planted card pairs against 1.09 expected (p = 0.30).
  • Decision. SIGNAL by the preregistered rule (H1 and H4), for a reason the rule did not test. Recombination is not demonstrated. We report both sentences together.
  • Exploratory X5. The single-note prompt, run over every note, answered on 23 of 23 fillers, 21 of 21 decoy notes and 31 of 32 bridge notes: its NONE permission is inert.

v0.3. Sealed run 2026-09-14 over 24 fact-type bridges, 22 of which the generator itself certified, reading one side under a strict abstention prompt, to need both sides; notes by Claude Haiku and a local Qwen 2.5 14B; two critics.

  • The gate worked. One-note recovery fell to 2 of 22 (9 percent) from 8 of 16 (50 percent) in v0.2, while two-note recovery held at 8 of 22 (36 percent); Fisher p = 0.034.
  • The precondition failed, and it was the precondition's fault. The strict prompt answered on 12 of 24 fillers (bar: under 10 percent), and all twelve answers are genuine inferences from specifics the fillers contain. H3-strict is therefore not interpretable under the rule.
  • H1, selection: missed its bar. 8 of 22 planted recovered against 1 of 12 decoy answers surviving, p = 0.083; three judge rejections a human reverses would make it 11 of 22.
  • H2, sampling: null a third time. B7 3 planted pairs in 300 against 1.4 expected, p = 0.17.
  • Writer-family effect. Haiku-written bridges 6 of 10, Qwen-written 2 of 12; the Qwen notes are 35 percent shorter, so length and priors cannot be separated.
  • Decision. NULL by the preregistered rule. The gate is stochastic (6 flags in 192 side-gates, 5 ties) and the match judge is now the dominant noise; see research/08. Cost $87.86.

Full tables per run are under Results; the protocols are under Preregistration; the reviewer's reading of each run is under Research notes.

Try it in 60 seconds

git clone https://github.com/caraulani/llm-daydreaming && cd llm-daydreaming
uv run daydreamd run-all experiments/smoke/config.yaml   # tiny end-to-end run, real model calls
uv run daydreamd stats <run-dir> experiments/smoke/config.yaml

Or paste this into Claude Code:

Clone https://github.com/caraulani/llm-daydreaming, run `make setup && make test`, then run
`make smoke` and show me experiments/runs/public/*_smoke/tables/summary.md.

Where to go next

You want to Read
Use it tonight on your own notes (dream, review, skill, mcp, schedule) README, "Use it tonight"
The full argument, related work and every table Paper
What we promised to measure before we measured it Preregistration
Check that the protocol preceded the data Verify the seal
Write an adapter or a backend Extending
Run the owner-blind scoring protocol on your own corpus Human-eval protocol
Cite this work Cite

Privacy in one paragraph

Corpus text is read from local paths, embedded on-device, and sent only to the model backend you configured. No telemetry. Private runs live under gitignored paths. If any of that is ever untrue, it is a security bug: see SECURITY.md in the repository.