Finishing Agent Migrations with ast-grep At the AI Engineer Code Summit, Justin Poehnelt reported finishing a stalled Effect migration across a 348,000-line TypeScript codebase by pairing ast-grep lint rules with throwaway agent skills, after an earlier prompt-only migration left error handling decayed: agents mapped one error 29 different ways, 264 of 345 error-mapping calls discarded the original cause, and a catch-all ServiceFailure class spread into 844 files. Poehnelt's five-step method bans each old pattern with an ast-grep rule that fails CI, tracks remaining matches on the rule's ignores list, and pairs a temporary migration skill with a permanent skill describing finished conventions; a rule banning Date.now() inside Effect.gen went from 27 files on ignores to zero the same day, and a companion rule banning Promise.all inside Effect.gen went from 8 files to zero in six days. Finishing Agent Migrations with ast-grep By Justin Poehnelt https://justin.poehnelt.com/about/ Published 10 min read At the AI Engineer Code Summit https://ai.engineer/code/2026/schedule , I shared how I finished a stalled Effect https://effect.website migration across a 348,000-line TypeScript codebase and benchmarked 212 agent migrations slides https://justin.poehnelt.com/posts/one-rule-one-throwaway-skill/ . Agents write most of my code now, and a lot of it is slop. Moving to Effect puts errors and dependencies into the return type, Effect