Ideas from AI Engineer talks Curated by Alex Vidal (@dobleio) and Borja Pérez (@borjaperfra) 76 ideas · 101 talks · 5 events

The Engineering Brief

Lauren Tan's team turns each correction to a coding agent into a check or a code change

Lauren Tan ranks lint rules, types and API design above AGENTS.md for fixing a coding agent's mistakes. Her team also bans most code comments, because agents used them to justify workarounds that the next agent then copied.

Lauren TanAIE CODE 20263 min read
Watch from 2:24

Recording by AI Engineer.

The idea

The speaker’s argument, in our words.

Tan argues that the codebase is one of the largest inputs a coding agent has, so workarounds, deprecated code and anti-patterns already in the repository look like the established style and get copied. A correction written in prose (a rules file, a skill, AGENTS.md) is less reproducible and less trustworthy than one enforced in code. She orders the investment as an inverted pyramid: code design and static analysis first, both deterministic, then runtime and formal verification, and prose last, for things that need judgment.

She applies the same reasoning to code comments. In her experience agents use comments and other markdown to write down why a shortcut was acceptable, which makes the shortcut look sanctioned to the next agent, and a comment cannot be enforced. A lint rule whose error message points to the root cause runs on every change. Her team's rule is that each correction to an agent becomes a deterministic check, or the problem is designed out through the API or the architecture, so there is less left to catch in review.

What they found

From the talk. Figures are self-reported unless stated.
  • Spend effort on the agent's environment in this order: codebase design and static analysis (both deterministic), then runtime and formal verification, then prose rules for judgment calls.

    Presented as an inverted pyramid. Her reasoning (3:34): a correction encoded in code is more reproducible and can be trusted more than another line in a rules file.

    Technical recommendation

    2:24
  • In her team's desktop framework (Dune), useEffect is banned in product code and only allowed in some places inside framework APIs, which she says removed that class of problem from code review.

    Dune is described as roughly a Next.js for Electron apps, built for her team's product.

    Case study

    6:16
  • After seeing agents import main-thread code into the renderer in Cursor (also an Electron app), causing long tasks and jank, her team split code into electron main and electron renderer directories and banned imports between them via a dependency graph analyzer and lint rules.

    The Cursor observation is an example she cites; the transcript does not state her relationship to Cursor.

    Case study

    6:49
  • Agents patched a clash between VS Code's imperative style and React's declarative style with imperative timers and wrote comments justifying them; the timers spread and the app suffered garbage-collection lag and jank. Her team now bans about 99% of comments and uses lint rules whose error messages tell the agent to fix the root cause.

    The timer example is from Cursor; the transcript does not state her relationship to Cursor. No measurement of the performance impact. The 99% is a rough characterization, not a measurement.

    Case study

    7:43

Why it matters

Our reading. Not said in the talk.

Instruction files tend to grow every time an agent misbehaves, and a comment explaining a workaround can end up teaching it. Tan's ordering gives a simple test for each correction: can it be enforced in code instead of written down?

What one could try

  • Keep a log of the corrections you give agents for a week and, for each one, consider a lint rule, type constraint or wrapper API before adding an instruction.
  • Search the codebase for comments that justify a workaround ("hack", "temporary", "needed because") and treat each as a candidate for a lint rule or refactor, cleaning up existing instances so agents stop copying them.
  • Make architectural boundaries physical (separate directories or packages) and enforce them with an import-boundary check.

Limitations

  • The outcome figures she gives (about 11,000 PRs shipped last month, a revert rate steady at about 0.5%) are self-reported, with no earlier rate to compare and no separation from other factors such as model upgrades.
  • The comment and timer examples are anecdotes, and the talk does not weigh what banning comments costs human readers.
  • Examples come from Electron and React desktop apps; she says reaching this point took six months, and she closes by recommending her team's product.

Original sources

This is our synthesis of the talk, checked against the transcript at the linked moments.

Related ideas