Ology

What Does It Mean to Understand Code with AI?

Evaluating how AI coding tools affect code comprehension, reasoning, explanation, modification, and retained independent understanding.

5 sessions · 15 readings · 333 views

Curated by Theo Lindqvist

From Plausible Output to Demonstrated Understandingsession 1The Metric Is Not the Outcomesession 2Realism, Control, and the Cost of Clean Evidencesession 3The Tool Leaves the Roomsession 4Designing the Study That Survives the Tool’s Evolutionsession 5

Opening

AI coding tools have moved from autocomplete toward explanation, debugging, refactoring, codebase navigation, and increasingly autonomous implementation. That shift changes the question from whether a tool can produce working code to whether the human using it can still inspect, explain, challenge, and extend what was produced.

The distinction matters because speed, output volume, satisfaction, and understanding can move in different directions. Developers may complete a task faster while becoming reviewers of unfamiliar output, or report large productivity gains while controlled experiments find slower completion. A tool can also make previously uneconomical work possible without making the user more capable of reasoning about the resulting system.

Recent studies have begun to separate these outcomes. Anthropic’s randomized study tests debugging, code reading, code writing, and conceptual knowledge; METR contrasts algorithmic benchmark scores with manual judgments and real task completion; Google’s learning experiments add delayed retention tests rather than relying only on immediate performance. Together, they suggest that “understanding” is not a single variable and that no single productivity metric can stand in for it.

A rigorous research program therefore needs operational definitions, behavioral measures, realistic controls, and tests conducted after assistance is removed. The five sessions investigate how to build such a program without confusing perceived usefulness, task completion, code correctness, and durable independent competence.

Five questions worth arguing about

  1. 1Which observable behaviors best distinguish understanding code from merely accepting plausible code?
  2. 2When do speed, output, satisfaction, and engineering value become misleading substitutes for one another?
  3. 3How much realism should an experiment sacrifice to obtain cleaner causal evidence?
  4. 4Can AI-assisted coding produce durable understanding, or only short-term task success?
  5. 5What study design could detect both skill formation and skill displacement as tools evolve?

The Sessions

1Session 1start here

From Plausible Output to Demonstrated Understanding

The problem

“Code understanding” is often treated as an intuitive concept, but a useful experiment must turn it into observable performance. Reading code, diagnosing a bug, explaining a design choice, writing an extension, and recognizing an inappropriate abstraction are related abilities, not interchangeable outcomes.

Anthropic’s randomized study provides one of the clearest operational decompositions currently available. Its assessment separates debugging, code reading, code writing, and conceptual questions, while its task uses an unfamiliar Python library so that participants must form a new mental model rather than rely only on prior expertise. The study’s central contribution is methodological: it treats understanding as a family of skills relevant to oversight, not simply as confidence or familiarity.

Google’s account of AI-assisted software engineering complicates this framework by observing that the developer increasingly becomes a reviewer. That may make review behavior itself a central outcome: Can a person identify subtle defects, explain why an implementation fits the surrounding system, and decide when not to trust a suggestion? GitHub’s earlier work adds another warning: even “productivity” requires a theory of what counts as meaningful developer performance.

The next question is whether these measures can be connected to outcomes that organizations actually care about, rather than remaining isolated laboratory scores.

2Session 2

The Metric Is Not the Outcome

The problem

A coding tool can reduce keystrokes, increase accepted suggestions, improve task completion, or make work feel easier without increasing the value of the resulting software. The choice between speed, throughput, quality, satisfaction, and broader engineering value is therefore not a technical detail; it determines what an experiment can conclude.

GitHub’s controlled Copilot experiment foregrounds completion time and correctness on a bounded implementation task, producing a large speed effect. METR’s later randomized trial reaches a sharply different result in mature repositories: experienced developers took longer with AI access, despite predicting that they would be faster. The disagreement is not necessarily about which organization is right. It exposes how tool maturity, repository familiarity, task structure, and review burden can change the estimand.

METR’s 2026 survey makes the distinction explicit by separating “speed” from “value.” A tool may cause people to undertake additional work that would not previously have been prioritized, or may enable higher-value tasks without reducing the time required for existing tasks. Those possibilities make self-reported speed, observed elapsed time, and organizational value different variables rather than competing estimates of one variable.

Before asking whether AI improves understanding, researchers must decide which outcome is primary and which are mediators, costs, or moderators. That leads directly to experimental design: how can a study isolate these quantities without destroying the context that gives them meaning?

3Session 3

Realism, Control, and the Cost of Clean Evidence

The problem

The cleanest coding experiment may use a small, self-contained task with automatic tests. The most realistic experiment may involve an unfamiliar repository, incomplete requirements, review conventions, build systems, and coordination overhead that are difficult to standardize. The central design problem is deciding which realism is essential to the claim.

METR’s comparison of algorithmic and holistic evaluation shows why passing tests is insufficient. On real repository tasks, agents often produced functionally correct code that still required work because of formatting, linting, test coverage, or broader code quality. If the dependent variable is merely test passage, an experiment may systematically reward outputs that a human maintainer would reject or substantially revise.

Google’s code-completion and build-repair studies represent a different strategy: deploy assistance inside an instrumented engineering environment and measure behavioral changes at scale. Their measures include coding time, shepherding time, changelist throughput, and application of suggestions. These experiments gain ecological validity, but their effects are tied to a particular tool, workflow, population, and deployment context.

The tension is not resolved by choosing laboratory control or workplace realism once and for all. A strong research program may need a sequence of studies: tightly controlled tests for mechanisms, realistic tasks for external validity, and deployment studies for organizational consequences. The next session asks what happens when the tool is removed entirely.

4Session 4

The Tool Leaves the Room

The problem

Immediate task performance cannot establish learning. A participant may complete an unfamiliar coding task with substantial assistance yet be unable to explain the result, debug a variant, or reproduce the reasoning later. Testing after tool removal is therefore not an optional extension; it changes the construct from assisted performance to retained and independent capability.

Anthropic’s study is valuable because its quiz follows the coding task closely while testing multiple forms of mastery, including debugging and conceptual understanding. Its result suggests that assistance can improve short-term task completion without producing equivalent learning, and that interaction style may mediate retention. Yet the study also raises design questions: How long should the delay be? Should the independent task use the same library, a transfer problem, or a structurally different problem? Should participants know in advance that they will be tested?

Google’s Learn Your Way study offers a useful template for answering some of these questions. It separates immediate assessment from a retention test several days later and combines performance measures with interviews. OpenAI’s later measurement framework extends the idea by distinguishing model behavior, learner behavior, and cognitive outcomes over time. Neither source is a coding study in the narrow sense, but both offer concrete designs for measuring durable understanding rather than momentary fluency.

The remaining challenge is to connect retention tests to workplace learning: not just whether people remember a library, but whether they can independently modify a living codebase after the assistant is unavailable or its suggestions become unreliable.

5Session 5finish here

Designing the Study That Survives the Tool’s Evolution

The problem

AI coding tools change faster than most experiments can be designed, recruited, run, and published. A result may reflect not only whether assistance helps, but who is willing to work without it, which models are available, how participants use agents, and whether the experiment itself selects for unusually AI-tolerant developers.

METR’s follow-up study is a cautionary case. Participants increasingly declined studies that required working without AI, compensation changed, and time measurement became unreliable for users running multiple agents concurrently. The result is not merely a noisy estimate; it demonstrates how the treatment changes the population willing to enter the experiment and threatens the validity of standard control conditions.

Anthropic’s workplace study supplies the complementary observational view. Engineers use AI heavily for debugging and code understanding, report broadening into unfamiliar domains, and simultaneously worry about losing practice in writing and critiquing code. The study’s self-reports cannot establish causal skill loss, but they identify mechanisms and outcomes that a narrow productivity experiment might miss.

OpenAI’s earlier research agenda provides a useful broader frame by treating productivity, skill development, employment, and inequality as distinct outcome areas. The seminar ends here because a credible study of AI and coding competence cannot be a one-shot benchmark. It must track changing tools, changing users, delayed effects, and the possibility that the most important consequence is not faster coding today but a different distribution of who can understand and maintain software tomorrow.

Interested in joining a reading club with top AI experts?

Small groups, great readings, real conversations. Learn faster and grow your network.

A friend that hands you reading lists, not search results.

© Ology 2026