Something shows up right before you fall asleep. Not anxiety exactly — something quieter. A sentence that almost makes sense. A face. A feeling that you were about to understand something important, and then it was gone. You've probably been dismissing these moments for years. It turns out they are one of the few times your brain tells the truth without any editing.
The Brain Loosens at the Edge of Sleep
Before going further. Nigredo, and every other frame in this article, is a way of describing an experience. It is not a diagnosis and it cannot tell you whether you are unwell. Depression is a medical condition and it responds to treatment. If you are not sleeping or eating, if you cannot function, if this has lasted weeks, or if you are having thoughts of harming yourself, that is a reason to speak to a doctor now rather than to read on. Working with a therapist alongside this material is not a failure of the process. It is often what makes the process survivable.
During the day, your attention is pulled outward — tasks, people, performance. The brain runs a kind of active suppression on material that isn't immediately useful. Uncomfortable truths, unresolved feelings, questions with no clear answer: all of it gets held back. Not erased. Just quieted.
As you fall asleep, that suppression drops. The brain shifts into what neuroscientists call the default mode network — the circuit that activates when you stop focusing on the outside world. Raichle and colleagues identified this network in 2001 and described it as the brain's baseline activity state: not idle, but turned inward, running on memory, self-reference, and unfinished meaning. It gets louder as alertness fades.
There is also a specific transitional state involved: hypnagogia. This is the window between waking and sleep — usually five to twenty minutes long — where the brain produces a mix of alpha waves (relaxed wakefulness) and theta waves (light drowsiness and creative association). Research by Voss and colleagues has shown that this state involves loosened inhibition in the prefrontal cortex, the part of the brain most responsible for self-censorship. In plain terms: the editor goes home, and what's left is closer to raw signal.
"The dream is a little hidden door in the innermost and most secret recesses of the psyche."
— C.G. Jung, The Meaning of Psychology for Modern Man, CW 10, §304Jung wrote about the threshold of sleep as one of the few places where the unconscious speaks without being drowned out. He wasn't using metaphor. The architecture he described — a hidden layer of the mind pushing material upward when the conscious guard relaxes — maps closely onto what neuroscience now confirms about the default mode network and prefrontal disinhibition.
Why the Thought Disappears
Sleep consolidation is the process by which the sleeping brain decides what to keep and what to discard. During the first phase of sleep, the hippocampus (the brain's short-term memory holding area) begins replaying recent experience and transferring selected material to longer-term storage. The keyword is selected. Not everything makes the transfer.
A 2018 study from Baylor University, led by Michael Scullin, found that participants who spent five minutes writing a to-do list before bed fell asleep significantly faster than those who wrote about tasks they had already completed. The effect was dose-dependent: the more specific and complete the list, the faster sleep onset. The researchers concluded that externalising an unfinished thought reduces what they called cognitive arousal — the brain's tendency to stay vigilant when something remains unresolved. (Scullin et al., 2018, Journal of Experimental Psychology: General)
The mechanism matters. It isn't that writing calms you down emotionally. It's that the brain treats an externalised thought as handled. The loop closes. What was keeping the system on alert — the unfinished sentence, the unanswered question — gets filed as captured rather than pending.
This means the thought that appears at the edge of sleep isn't always available in the morning. It surfaced during a window of loosened inhibition. Then sleep began. If it wasn't captured before consolidation started, the brain had no reason to prioritise it — especially if it was emotionally complex or difficult to categorise. The material didn't vanish. It went somewhere harder to reach.
What Actually Surfaces — and Why It Matters
The thoughts that appear in this window are not random. They tend to cluster around what is unresolved, avoided, or not yet named. During a period of real upheaval — a relationship ending, a job that no longer fits, a version of yourself you're trying to leave behind — the signal gets stronger. There is more unprocessed material. The default mode network has more to work with.
"The psychological rule says that when an inner situation is not made conscious, it happens outside, as fate."
— C. G. Jung, Aion (Collected Works, Vol. 9ii), §126
This is where the pre-sleep moment becomes more than a sleep-hygiene trick. The thought that crosses your mind as your body goes heavy is often the thought you have been too busy, too defended, or too frightened to think during the day. Not always. Sometimes it's a grocery list. But in a period of genuine transition, the proportion of signal to noise tends to shift.
The practice of active imagination — Jung's method of engaging with material that arises at the edge of consciousness — was designed precisely for this zone. Jung worked with patients on the imagery and thoughts that appeared in this threshold state, treating them as communications from the deeper self rather than noise to be switched off. Whether or not you use that frame, the basic move is the same: pause before dismissing what appears.
If you are in the middle of a burnout or a collapse, the pre-sleep window often carries the most honest signal available. Daytime consciousness is still managing — presenting, coping, keeping things running. Night drops that management. What's left is closer to what you actually know.
How to Catch It Without Disrupting Sleep
The practical question is narrow: how do you capture the thought without fully waking yourself up?
Keep something to write on close enough to reach without turning on a lamp. A small notebook and a pen that works in the dark. Voice memos on a phone with the screen brightness already turned down. The goal is one sentence — not a full journal entry. Just enough to anchor the thought until morning. A fragment is enough: "something about the job / fear / the conversation I didn't have." Specificity can wait.
There is a reason to keep it brief. Scullin's research found that completeness in the writing mattered, but that doesn't mean length. A specific, concrete phrase closes the loop in the brain. An exhaustive diary entry at midnight activates the prefrontal cortex and delays sleep onset. The aim is to record, not to process. Processing can happen in daylight.
Edison reportedly sat in a chair with steel balls in his hands. As he drifted off, the balls would fall, clatter, and wake him — letting him retrieve the hypnagogic imagery before sleep took it. Dalí used a similar method with a key over a plate. These are extreme versions of the same idea: the threshold state is brief, and it requires a small deliberate act to intercept. You don't need steel balls. You need a notebook within arm's reach and the willingness to use it instead of rolling over.
The gold was always there
The practice this writing comes from: short daily reflections to read or hear with your phone’s speech voice, plus a private journal.
- I · MORNING
- II · MIDDAY
- III · EVENING
Prime
A short Ritual written for the person you are becoming.
Act
One aligned action, logged while it is still true.
Release
The Shadow Log — say what the day asked of you.
Android private testing is currently free for invited testers. The public release will have a paid monthly subscription. Join the waitlist for availability.
Frequently Asked Questions
Why do important thoughts appear right before I fall asleep?
As alertness drops, the brain shifts into a looser, more associative mode. The default mode network — the circuit that runs when you stop focusing outward — becomes more active. It tends to surface material that was suppressed or overlooked during the day. The thought was there all along. The quiet just makes it audible.
Is writing things down before sleep actually useful, or is it just a habit people recommend?
There is solid research behind it. A 2018 study by Baylor University researchers found that people who spent five minutes writing a to-do list before bed fell asleep significantly faster than those who wrote about completed tasks. The act of externalising an unfinished thought appears to reduce the cognitive load that keeps the brain vigilant.
What is the hypnagogic state and why does it matter?
Hypnagogia is the transitional state between waking and sleep. Brain activity during this period shows a mix of alpha and theta waves — the same waves associated with creative insight and loosened inhibition. Some researchers believe this window is unusually generative. Edison and Dalí both reportedly used it deliberately, holding objects in their hands to wake themselves at the moment of dropping off.
How is this different from journaling?
Journaling is retrospective — you review what happened. Catching a pre-sleep thought is something else: intercepting material as it surfaces spontaneously, before the critical mind can assess and discard it. The goal is not self-expression. It is retrieval. You are pulling something up before the consolidation process files it somewhere you cannot easily reach.
Can this practice help during a period of major life change — burnout, divorce, identity crisis?
These are precisely the conditions where it tends to matter most. When identity is genuinely in question, the night surface carries more signal than usual. The pre-sleep window is when the mind begins to process unresolved material without the protective editing of daytime consciousness. What appears at the edge of sleep during a period of real change is often worth keeping.
Short films from this research — follow on TikTok.
Academic sources cited in this article:
- Raichle, M. E., MacLeod, A. M., Snyder, A. Z., Powers, W. J., Gusnard, D. A., & Shulman, G. L. (2001). A default mode of brain function. Proceedings of the National Academy of Sciences, 98(2), 676–682. doi:10.1073/pnas.98.2.676
- Scullin, M. K., Krueger, M. L., Ballard, H. K., Pruett, N., & Bliwise, D. L. (2018). The effects of bedtime writing on difficulty falling asleep: A polysomnographic study comparing to-do lists and completed activity lists. Journal of Experimental Psychology: General, 147(1), 139–146. doi:10.1037/xge0000374
- Voss, U., Holzmann, R., Tuin, I., & Hobson, J. A. (2009). Lucid dreaming: A state of consciousness with features of both waking and non-lucid dreaming. Sleep, 32(9), 1191–1200. doi:10.1093/sleep/32.9.1191
- Jung, C. G. (1953). Psychology and Alchemy. Collected Works, Vol. 12. Princeton University Press. (Trans. R.F.C. Hull.) find in a library
- Jung, C. G. (1964). Civilization in Transition. Collected Works, Vol. 10. Princeton University Press. §304. find in a library
- Walker, M. P., & Stickgold, R. (2004). Sleep-dependent learning and memory consolidation. Neuron, 44(1), 121–133. doi:10.1016/j.neuron.2004.08.031