I think the ideal way for these LLMs to work will be using AST-level changes instead of "let me edit this file".
grit.io was working on this years ago, not sure if they are still alive/around, but I liked their approach (just had a very buggy transformer/language).