
The default loop
Most of us have settled into the same loop. You paste in a spec or an error message. The model hands you a fix and the symptom vanishes. You ship it, and around you go again. Somewhere in that loop, the messy struggle between problem and solution stops happening at all.
Osmani had already written about cognitive surrender: the moment an AI reviewer's verdict quietly replaces your own. This is the solo version, just you and the model. The model is faster, so you stop trying to compete on comprehension. And across thousands of small interactions, what you can actually build without an AI looking over your shoulder gets a little weaker every week. The treacherous part is that none of these moments feels like a problem on the day it happens.
To be clear, Osmani is not anti-AI. He uses these tools daily, and says he has shipped more with them in the last year than in the years before. His point is different: the default way we use them is optimized for one thing, closing tasks. And that is a completely different goal from staying sharp enough to steer them over a long career.
The studies converge
According to Osmani, several pieces of research over the last year have landed in roughly the same place. He cites three.
1. The Anthropic trial: posture decides
In early 2026, Anthropic ran a randomized trial: engineers learned a new Python library, half with AI assistance and half without. Both groups finished the tasks at the same speed. But on the follow-up comprehension quiz, the AI group scored 50% versus 67% for the manual group, and the gap widened on debugging.
The most interesting cut was inside the AI group itself. Engineers who used AI to ask conceptual questions scored above 65%, close to the manual group. Engineers who copy-pasted the generated code scored under 40%. In Osmani's words: the tool didn't determine the outcome; the posture did.
2. MIT: cognitive debt
The second study comes from MIT and is called Your Brain on ChatGPT. It compared essay writing across three groups: with a language model, with a search engine, and brain only. Brain activity was measured with EEG, and brain connectivity scaled down with every layer of external support. The language model group showed the weakest coupling.
And here is the striking number: right after writing the essay, 83% of the language model users couldn't quote a single line of what they had just produced. The researchers called this cognitive debt: you save mental effort today and pay for it tomorrow in critical thinking.
3. CHI 2026: who frames the problem
The third was presented at the CHI 2026 conference. When people had access to the model at the start of a task, the model framed the entire problem. Even when the person did the rest of the work themselves, that initial anchoring produced measurably worse decisions. The order of operations mattered more than the total amount of AI used.
Different methods, same conclusion, says Osmani: using AI without an active intent to learn quietly degrades the very skill you're being paid for.
One caveat worth keeping in mind: these studies measure a single task or a few sessions. That the erosion compounds week after week over years is Osmani's reading, not something they measured. And the MIT study is about essays, not code.
Built to ship, not to teach
If you fire up a coding agent and stick to the defaults, everything is tuned for one metric: getting the task done. The model writes the code, you accept it, the loop repeats. At no point does the tool pause and ask "what do you think the problem is?" or "try writing the first five lines yourself."
That's where the gravity of product design sits right now. Product teams get rewarded for merged changes and shorter cycle times, not for making you a sharper engineer. We all want fewer keystrokes, so the tools have sanded the friction away. The trouble is that friction was where the learning lived.
A few companies have tried to push back. Anthropic shipped Learning Mode for Claude, which uses Socratic questioning and stops to ask you to write code before continuing; OpenAI and Google have shipped similar features. But honestly, almost nobody uses them for real production work. We've filed them under "for students", and according to Osmani that's a mistake: the same feature that helps a sophomore learn React works for a senior engineer learning Rust. You just have to be willing to feel like a beginner again.
Why understand it?
"If the AI can do it, why do I need to understand it?" Osmani admits it's a fair question, and that for some work the answer is: maybe you don't. If it's boilerplate, glue code, or a throwaway CI script you'll never look at again, delegate it. Memorizing that syntax costs more than it's worth.
But for real software, pure delegation breaks down in five specific places:
- When something breaks. AI-generated code crashes the same way human code does, and "the agent wrote it" doesn't help you debug. Somebody on the team has to understand the architecture.
- When it's confidently wrong. Models still hallucinate, and the only defense against a plausible-looking incorrect answer is enough expertise to spot it. Band-aids like skills or CLIs only get you so far.
- When the foundation changes. Code is temporary; systems are permanent. When a framework updates or a security review flags a structural issue, you can't re-prompt your way out. You need engineers who understand the system well enough to migrate it.
- When you leave the median. AI is brilliant at problems that have been solved a million times on GitHub. The further you stray, the worse it gets. And the hard, undocumented problems, the ones that justify a senior salary, still require deep understanding.
- When the market adjusts. In Osmani's view, engineers who can only ship with AI, and not without it, are entering a labor pool that is already re-pricing what expertise is worth. If you use it to skip learning, you're trading future relevance for a slightly easier Tuesday.
The fix is in how you prompt
The good news is that the same tools that produce cognitive debt can produce sharper engineers. The difference is in what you ask of them. Osmani proposes six habits:
- Form a hypothesis before you ask. Before requesting a fix, write down two or three sentences on what you think the problem is. Use the model's answer to test your theory, not to replace it.
- Ask for the explanation before the code. In unfamiliar territory, your first prompt should be something like "explain how this works, what the alternatives are, and what the tradeoffs are." Ask for the code only after you've grasped the concepts.
- Turn on Learning Mode when you're out of your depth. Yes, it feels slower. That's the point.
- Treat AI output like a pull request from a junior engineer. Read it, critique it, push back on it. Would you merge it just because the tests passed? If not, don't merge it here either.
- Re-derive things by hand once in a while. Take a piece of code the model wrote for you and try to recreate it from scratch. It's the calibration check that tells you how much you've quietly lost.
- Ask the model to teach you what it just did. After it writes a clever function, ask what concepts it used and what you'd need to read to understand that design choice. One extra prompt changes what you take away from the session.
None of these are dramatic. They're small posture shifts inside the same tools you're already using every day.
Two metrics, not one
Osmani has started ending his coding sessions with a simple question: did I learn anything today, or did I just close issues? Sometimes the honest answer is "I just closed issues", and that's fine. But if it's the answer for months in a row, cognitive debt is piling up in the background.
Shipping and learning are two separate metrics. Your manager and your customers will only ever ask about the first one. The second one is on you. Osmani says he'd rather ship 80% of what he could and learn 100% of what he needed than the reverse. It isn't a measured rule, it's his preference, but the argument is clear: over the years, those two strategies produce very different engineers.
Summary
You don't have to choose between using AI and learning, but you do have to choose a workflow that does both, because the defaults won't choose it for you. The studies Osmani cites point the same way: what matters is not how much AI you use, but with what posture and in what order. Form your hypothesis first, ask for explanations before code, review its output as you would a junior's, and every so often, do it by hand. As he puts it, the next boring task you were about to delegate is a good place to start.
Let AI close your tasks, but don't hand it your learning too.
Sources
- "Don't Outsource the Learning", by Addy Osmani, on X (May 17, 2026).
- My post on agent harness engineering, another article by Addy Osmani.
- The video, on my channels: English and Spanish.