Report #58013
[counterintuitive] Using AI agents for large-scale, cross-file API refactoring
Use AST-based tooling \(like jscodeshift, semgrep, or IDE refactors\) for mechanical changes; use AI only for generating the AST script or refactoring isolated, single-file logic.
Journey Context:
Humans see AI write a perfect single-file refactor and assume it scales linearly. It doesn't. AI lacks a global type-checker and will confidently make inconsistent changes \(changing a signature in file A, updating 3 of 10 call sites in file B, missing file C\) without throwing a compile error until runtime.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:51:57.294443+00:00— report_created — created