You do not experience the world directly. Your mind is constantly building a model: predicting what matters, filtering what disappears, turning memory into identity, and running old scripts before the conscious “you” catches up.
The Modeling Mind is a practical, rigorous map of that hidden machinery. It blends cognitive science, AI, systems thinking, and contemplative practice into one central question: what changes when you finally see the engine that has been running you?
It’s 2 a.m. and your mind won’t stop.
You’re lying in bed. The room is dark, the house is quiet, and your body is tired enough that it should have surrendered to sleep an hour ago. But your mind didn’t get the memo. It’s replaying a conversation from Tuesday — the one where you said the wrong thing and watched someone’s face change. It’s drafting tomorrow’s meeting in real time, running through scenarios like a chess engine that can’t stop computing. It’s wondering whether you locked the front door. Whether you paid the credit card. Whether your kid is okay — not in any specific way, just a low-grade ambient worry that hums beneath everything else like a refrigerator you’ve stopped noticing.
Then, for about half a second, something shifts. You notice the thoughts. Not the content of them — not the meeting or the door or the credit card — but the fact that they’re happening. You catch yourself mid-loop, and for one disorienting moment you’re not inside the stream of thought. You’re watching it. You see the machinery churning, and you realize: I’ve been lying here for an hour, and I wasn’t here for any of it. My body was in bed. My mind was everywhere else.
Then the stream swallows you again. The half-second passes, and you’re back inside the simulation — worrying, rehearsing, replaying — as if that flicker of clarity never happened.
That half-second was the most important moment of your day. And you almost certainly missed it.
Here’s the uncomfortable truth this book is built around: most of us spend the majority of our waking lives on autopilot. Not because we’re lazy or inattentive or somehow deficient. But because the autopilot is so good — so seamless, so responsive, so eerily competent — that it feels exactly like us. It talks in our voice. It makes decisions that seem like ours. It generates emotions that register as authentic and personal and real. There’s no notification that says “autopilot engaged.” No dashboard warning, no handoff moment. One second you’re here, and the next you’re gone, and neither you nor the machine notices the transition.
You might object: I’m functioning. I have a career, relationships, a life. Clearly I’m here. And you’re right. In the operational sense, you are here: the emails get answered, the car stays in the lane, the right facial expressions appear at roughly the right time. But functioning and experiencing are not the same thing. The autopilot is designed to preserve the first. It processes, predicts, economizes, and reacts so life can keep moving with minimal conscious supervision. That is why it is so useful. It is also why it can take over so quietly.
What it does not supply, by itself, is presence. The part of you that can actually notice what is happening — the part that briefly woke up at 2 a.m. before the thought stream pulled it back under — is offline much of the time. So the system keeps working, but no one is really home to receive the life being worked through. The lights are on. The house is empty.
This book is about changing that.
I want to be upfront about what you’re holding. This is not a spiritual book. It’s not a religious text, a meditation manual, or a guide to enlightenment. If a concept in these pages can’t be explained in engineering terms — using the same logic you’d use to debug a system, reverse-engineer a black box, or audit a piece of code — I’ll say so honestly. Including when I’m using analogy rather than physics.
What this book is is a user’s manual for the machine between your ears. A reverse-engineering guide for the prediction engine that runs your perception, your emotions, your decisions, and your sense of self — usually without your knowledge and almost always without your consent.
I’m writing it because I spent years building and investing in artificial intelligence, and at some point I noticed something that changed how I see everything: the architecture of the mind and the architecture of the systems we’re building to mimic it are structurally the same. Not metaphorically similar. Structurally identical in ways that, once you see them, you can’t unsee. (Chapter 2 will earn that claim properly — pinning down exactly where the identity holds, and naming three important places where it breaks.) That structural parallel turns out to be one of the most powerful lenses available for understanding why your mind does what it does — and how to take the controls back from a system that was never designed to be supervised.
The book follows a single causal chain, and each chapter builds on the one before it.
Chapters 1 through 3 diagnose the machine. You’ll see that you’ve been running on autopilot (Chapter 1), learn what the autopilot actually is — a prediction engine structurally identical to the large language models now reshaping every industry (Chapter 2), and understand what it builds: a layered rendering of reality that you’ve been mistaking for reality itself, the way a computer user mistakes the desktop icons for the actual files (Chapter 3).
Chapters 4 through 6 reveal who’s been driving. You’ll meet the two processes running on your hardware — the narrator that generates the constant stream of thoughts you call “me,” and the observer that can silently witness the whole show (Chapter 4). You’ll see what happens when the observer goes completely offline — a state I call NPC mode, where the autopilot runs your entire life and you never notice (Chapter 5). And you’ll learn why people with the observer online don’t look any different from the outside — they still laugh, cry, get angry, and make mistakes; the difference is entirely internal (Chapter 6).
Chapters 7 through 9 are the intervention manual. The first move of the awakened observer is not to fight the machine, but to change one setting: stop auto-saving every emotional experience to your identity’s hard drive (Chapter 7). Then you’ll confront the deepest items in that cache — the childhood subroutines that feel like personality but are really just legacy code written by a five-year-old’s survival strategy (Chapter 8). Finally, you’ll discover that observation itself is the rewriting tool — that the act of watching an automated pattern, without reacting, changes the pattern (Chapter 9).
Chapters 10 and 11 show what changes when you stay awake. Your life outcomes orbit a behavioral set-point, like a thermostat that keeps pulling you back to a default temperature; the cumulative effect of rewriting legacy code is that the thermostat itself adjusts (Chapter 10). And the final question — the one the whole book builds toward — is: now that you can steer the engine, what do you point it at (Chapter 11)?
If you’d rather see the whole route on a single page before you set out, here it is. Skim it now; come back to it whenever you want to know where you are.
Part I — Diagnose the machine
Part II — Who’s been driving
Part III — The intervention manual
Part IV — What changes when you stay awake
Don’t worry if some of these one-liners sound cryptic right now — each one becomes a full chapter, and there’s a Glossary at the back for any term that trips you up.
Each chapter is designed to be self-contained, but the logic builds. If you skip ahead, you’ll understand the words but miss the mechanism underneath them — like reading a user’s manual starting from “Advanced Settings” without knowing what the buttons do.
You’ll find a Protocol box at the end of each chapter. These aren’t decorative. They’re designed to be practiced, not just read. The difference between understanding these ideas and experiencing them is the difference between reading about swimming and getting in the water. I’ve kept them simple enough to do on a commute, in a meeting, or lying in bed at 2 a.m. when the machine won’t stop.
Science citations throughout the book are real papers by real researchers — not intellectual decoration. If something interests you, follow up. The references are there because I believe you deserve to check my claims, not just trust them.
And when you see the symbol (≈), it means I’m using an analogy. Not making a physics claim. Not asserting equivalence. Just saying: this thing over here works like that thing over there, and seeing the structural parallel will help you understand both. I’ll be honest about where analogy ends and hand-waving begins — including the moments where the analogy is so elegant it might be fooling both of us.
You don’t need to believe anything to read this book. You don’t need a meditation practice, a spiritual framework, or a particular worldview. You just need to be willing to look — carefully, honestly, with the same curiosity you’d bring to any system you wanted to understand.
The machine is already running. It’s been running your entire life. The only question is whether you want to see it.
Let’s open the hood.
If this book changes how you see your own mind, it’s the first of several I’m writing on the mechanisms of attention, identity, and conscious living. As that work comes out, you’ll find it at leowang.net.