Prevent Cognitive Debt by Manually Retyping LLM-Generated Code — Ankur Sethi
Ankur Sethi found the middle path between doing everything himself and letting coding assistants run free: he asks his LLM to generate code in chat, then manually types every line into his editor. His agent instructions forbid the assistant from creating, editing, or deleting project files — every proposed edit is shown in chat, and he types it in by hand. It’s “grossly inefficient and perhaps slightly comical,” but instead of being 10x faster he’s maybe 2x faster, and in exchange he keeps a real mental model of his codebase. Typing forces him to slow down, which makes him more likely to catch hallucinations and bad design choices, lets him clean up and refactor as he goes, and builds a spatial map of where everything lives — which makes his future prompting better too. He compares it to the old advice never to copy-paste code while learning: type it out, adapt it, understand it. Reviewing AI-generated PRs line by line, he argues, is a miserable way to work — “robots raise PRs, humans review them” — so the alternative isn’t heroic review, it’s never ceding the typing in the first place. His closing warning: the industry is piling up cognitive debt it will soon have to pay back, and shipping software you don’t understand is professional malpractice. ...