Software Engineer · Austin, USA
Fixing ADHD cognitive flow when hyper-focus triggers migraines
How an Austin software engineer cut migraine frequency by 75% and reclaimed ADHD cognitive flow through somatic regulation and sensory oscillation.
Reclaiming ADHD cognitive flow without the migraine crash
A software engineer in Austin reduced migraine frequency by 75% over eight weeks by altering how he managed ADHD cognitive flow during code sprints. Over the same stretch, his deep work task throughput rose by 40% across standard two-week delivery cycles. Engineering managers usually diagnose these post-sprint crashes as simple dehydration or eye strain. In reality, sustained hyper-focus suspended his baseline interoception, locking his sympathetic nervous system on high until cranial pain forced a physical halt.
The presenting state
Optimisation culture tells people with neurodivergence that deep absorption is a gift to stretch as far as possible. He was sitting down at his desk in East Austin at 9:00 AM, opening Neovim, and barely blinking until 2:30 PM. In that state, the brain actively inhibits afferent signals from the body. Thirst, muscle clenching, and shallow breathing never register until the sympathetic surge collapses.
By hour four of uninterrupted coding, his suboccipital muscles and temporomandibular joint were in sustained isometric contraction. His jaw stayed locked. Because interoception (the nervous system's capacity to sense internal physiological signals) was dampened by intense task immersion (Khalsa et al., 2018), he bypassed every early warning sign of autonomic load. The migraine that arrived at 4:00 PM was simply his brain's blunt instrument to force blood flow back into homeostasis.
The protocol for ADHD cognitive flow
I wanted to preserve his deep focus while interrupting the somatic lock before motor tone tipped into vascular spasm. I did not touch his medication, and I avoided asking him to sit quietly for twenty minutes. That would have backfired. Instead, we layered sensory-input shifting into fixed intervals to anchor somatic regulation during active problem-solving (Thayer et al., 2012).
- Set a mechanical timer for 45 minutes placed four feet away from the desk, requiring standing up to silence it.
- Run a twenty-second acoustic reset using pink noise over open-back headphones between coding blocks.
- Perform bilateral ocular shifts across a fifteen-foot focal distance to release ciliary muscle spasm.
- Drink 150ml of room-temperature water with electrolytes at every chime to trigger visceral vagal afferents.
- Complete three drop-jaw exhalations to interrupt involuntary masseter contraction before resuming code editing.
- Shift tactile input by switching from a mechanical keyboard to a low-profile board for afternoon review sessions.
What changed
Within three weeks, his weekly headache log shifted from four days of throbbing pain to zero midweek disruptions. The 75% drop in migraine incidence held steady through his team's quarterly release cycle, while his pull-request throughput climbed 40% because he stopped losing entire afternoons to sensory collapse. Sprint days stopped being destructive.
The metric that fascinated me was his nocturnal root mean square of successive differences (RMSSD), a standard measure of heart rate variability. His baseline RMSSD on sprint days used to flatline at 18 milliseconds, showing severe sympathetic dominance that persisted straight into slow-wave sleep. Once we broke the daytime lock-state, his nocturnal RMSSD jumped to 42 milliseconds on sprint nights, proving his autonomic nervous system was actually downshifting once his laptop closed.
When you stop letting hyper-focus run unchecked, cognitive output goes up because the body stops pulling the emergency brake.
TL;DR
An Austin software engineer reduced migraine frequency by 75% and increased deep work task throughput by 40% over eight weeks. By replacing marathon coding sessions with a sensory-oscillation protocol, he protected his ADHD cognitive flow without triggering autonomic lock. Micro-breaks involving ocular shifts, physical standing, and tactile resets restored visceral awareness and prevented isometric muscle spasms. Regulating physiological state during deep work sustains mental output and prevents painful neurological crashes.
Where to take this next
If you catch yourself resurfacing from four hours of intense focus with a clenched jaw and throbbing temples, your state regulation needs attention before your calendar does. The easiest place to start is breaking visual and motor lock every forty-five minutes.
You can build this capacity on your own with my 7-Day Reset, which walks through short physiological resets. If you need a targeted tool for daily desk work, pick up The State Anchor. When you want custom biofeedback mapping and protocols for demanding work sprints, apply for 1:1 Coaching.