Refactoring already exists.
Asking for code to manipulate the AST is another route. In python it can do absolute magic.
Re:Less human AI agents, please
by cadamsdotcom on Tuesday April 21, 2026 @05:59PM
(#47855113)
Glad to see others have discovered this! It’s mind boggling - the agent can do sheer wizardry.
You’ll be amazed how good the script is.
My agent did 20 class renames and 12 tables. Over 250 files and from prompt to auditing the script to dry run to apply, a total wall clock time of 7 minutes.
Took a day to review but it was all perfect!