With the previous iterations of AI, I switched to write-novel/update-code look that was really useful. Of course, this was back when I wrote an entire damn text editor with customized keyword highlighting and auto-corrections.
I failed because I was basically trying to write Scrivner.
The more recent iteration is to write a focused tool (ala `git`), and then integrated it into other tools (e.g., Atom, Emacs, VS Code) to handle everything else.