Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

R&D Management 17 min read

Cognitive Surrender: AI Coding's Real Risk Is Losing System Understanding

Addy Osmani warns that the greatest risk of AI-assisted coding isn't job replacement but 'cognitive surrender'—developers accepting AI outputs without understanding, leading to cognitive debt. He advocates for decision records, guardrails, human ownership of critical systems, and preserving engineering judgment over mere implementation speed.

AI's Answers Are Becoming Your Answers

Cognitive debt doesn't explode in a single commit; it accumulates as context is gradually lost. First an agent fills in a function, then it modifies a call chain, then it fixes failing tests. Each step looks reasonable and tests stay green. Weeks later, when a production incident hits the same module, you know code changed but cannot explain why.

Addy Osmani argues that the more developers rely on models, the more their memory and understanding of the problem erode. The dangerous tipping point is when developers start treating the model's conclusions as their own.

Addy Osmani: The more you use AI, the easier you lose memory of the problem you're handling, and the harder it is to retain true understanding. Addy Osmani: So-called 'cognitive surrender' is when you stop questioning and take the AI's answer as your own. Addy Osmani: We still need to understand how the system works. When things break, humans must be able to fix them, not just pray the agent solves it.

Addy illustrates with a payment system duplicate-charge scenario: an agent can locate the relevant function, add an idempotency check, and make tests pass. But the developer must still answer whether historical orders need compensation, whether retries amplify traffic, whether database constraints are backward-compatible, and whether accounts reconcile after rollback. These questions live outside the code; the model can propose a solution, but responsibility does not transfer with the answer.

20 Agents Running Simultaneously, Humans Can't Review the Process

"Review every step" sounds right but becomes impractical in multi-agent workflows. Addy notes a single task may spawn 20 to 30 sub-agents. Opening every trajectory, tool call, and intermediate reasoning would take longer than doing the task manually.

He now focuses on what remains at the end of a task. After an agent finishes, it should record key decisions, why a path was chosen, what blockers appeared, and what remains uncertain. Without this record, Addy keeps probing the decision process.

A complication: models can retroactively fabricate a plausible-sounding rationale. Decision summaries help humans spot risks quickly but cannot replace tests, logs, and code reviews.

For teams, a practical approach is to keep critical artifacts in the repository: architectural trade-offs in decision records, affected services and data in PRs, verified scenarios in test reports, uncovered paths in risk lists. The next person taking over shouldn't need to read an entire conversation to see the rationale behind a change.

Agent and Engineer: At Least One Must Keep Getting Smarter

Addy sets a rule for his workflow: the agent accumulates experience, and the engineer must also be "getting better every day."

Addy Osmani: "getting better every day" Addy Osmani: Every day you have to do better than the day before.

Agents can record repository rules learned, pitfalls encountered, and effective patterns so similar issues are resolved faster next time. Engineers must distill system knowledge from those records: which modules are fragile, which tests don't cover real traffic, which changes always ripple downstream.

If only the agent grows familiar with the codebase while humans merely click "accept," the team reaches an awkward state: the model knows how to modify the system, but the employees cannot explain it.

This is the difference between cognitive surrender and normal tool use. Offloading repetitive work is fine; the key is whether the developer retains reusable understanding after each delivery.

No Matter How Fast the Software Factory Runs, Someone Must Hold the Brakes

Addy describes the next phase of software development as "loop engineering." Systems continuously ingest logs, user feedback, and test results; agents generate changes based on these signals, run verification, and iterate on failures. From the outside it looks like a non-stop production line.

But a production line that receives error signals will manufacture errors faster. Addy calls unguarded automated builds a "recipe for disaster."

Guardrails are more than extra unit tests. For changes to authentication, payments, data migrations, and release processes, agents should have different permission tiers. Operations that delete data, adjust accounting, or access secrets require human confirmation. Before deployment, canary and rollback paths must be ready. Acceptance criteria must be machine-executable, not vague statements like "optimize performance."

For example, a task written as "optimize order query" has no clear endpoint. Reframe it as "P95 latency under 200 ms, results match old API, database connection count must not increase"—then the agent knows when to stop, and the engineer has evidence to judge whether the change can ship.

Meeting Spec Doesn't Equal Building a Good Product

Agents excel at checking whether a result matches a specification, but they may not judge "what's good."

Addy Osmani: "what's good" Addy Osmani: What truly counts as done well.

A button's position, an API's response, a loading animation can all precisely match the requirements doc. Whether users will adopt it, whether the team should keep investing—no single test answers those.

This is what Addy calls "taste." It sounds soft but is concrete in development: knowing which performance issues users actually perceive, knowing when to delete a feature, knowing whether a local optimization makes the whole system harder to maintain.

As code becomes cheaper, this judgment becomes the bigger differentiator. Every team can rapidly produce ten versions; the scarce skill is stopping nine of them in time.

The Code Isn't Yours, but the Accident Still Finds You

Addy experienced a simple accountability mechanism at Chrome: OWNERS files. The owner may not have written every line in that directory, but they must understand the subsystem, decide whether a change can merge, and block releases when risk is unacceptable. Agent-generated code doesn't dissolve that responsibility.

Addy Osmani: "answerable" Addy Osmani: Engineers must still be able to answer for the system.

This raises a practical question for teams: do critical directories have explicit human owners? If not, the more agents modify code across repositories, the more responsibility boundaries turn into vacuums. Who judges business risk after tests pass? Who has authority to halt on monitoring anomalies? Who can explain a change after an incident? These cannot be delegated to a model ad hoc.

Future code reviews may not read every machine-generated line, but they must retain review of key decisions, risk evidence, and release outcomes.

The New Watershed for Programmers: Can You Catch the Result?

Historically, engineering prowess was visible in implementation speed—who wrote faster, knew frameworks better, debugged quicker. Agents raise implementation speed, so evaluation shifts to the task's two ends.

The front end is intent: what to do, why, and what acceptance looks like. The back end is accountability: is the result reliable, is the risk acceptable, how do we roll back if production breaks. The middle—code generation—becomes increasingly automated, while both ends demand stronger engineering judgment.

Addy's career advice is a single sentence: "Don't just be an engineer."

Addy Osmani: "Don't just be an engineer." Addy Osmani: Don't just be an engineer who executes requirements.

This doesn't mean every programmer becomes a product manager. The practical shift: developers must understand the user problem behind the requirement, articulate technical trade-offs to other teams, and decide which of the model's feasible options is worth pursuing.

AI can implement features faster, but it won't decide what's worth building for the team.

Comments: Some Accept 'Cognitive Debt,' Others Doubt 'Taste' Holds

The interview's comments cluster around two directions.

One viewer found Addy's "alpha" concept a useful lens for observing how coding agents change software engineering.

Another disagreed, arguing that "taste" could also be codified into templates and refined through feedback loops, so models could learn it too. The real worry is that engineers' attention to code structure is weakening while the industry hasn't figured out the consequences.

Others pushed further: if agents leave full provenance, prompts, and decision traces for every change, could software engineers themselves eventually be removed?

None of these challenges have answers yet. But they show the debate has moved from "will AI write code?" to "when AI writes code, how much understanding and control must humans retain?"

Closing Thoughts

The real danger isn't that an agent wrote a few more files today. The dangerous state is when requirements are interpreted by the model, solutions chosen by the model, code generated by the model, tests filled in by the model, and the human only sees a green checkmark. The system runs faster, yet no one on the team can explain the full causality.

A simple rule for daily work: before a task, humans write expected behavior and failure signals; after the agent finishes, it delivers a decision summary, risk scope, and test evidence; changes touching production data, permissions, or releases are independently verified by another human; every critical directory has a person who truly understands it.

The more agents, the more important this rule becomes. Code can be generated by machines; understanding the system cannot be outsourced. Otherwise programmers haven't been replaced by AI—they've already surrendered their own judgment.

About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

software engineeringtechnical leadershipAI-assisted codingcognitive debtengineering judgmentcognitive surrendermulti-agent workflowsOWNERS files

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion