The right way to do this is Google Jules: the boundary is a git repository, the interface is a chat window you can open anywhere (yes, even simultaneously), the output is a diff you can choose to merge.
But, for whatever reason, no one uses Google Jules.
I don't want my phone to have the ability to execute things on my computer. Much less with a LLM in-between!
Google might shut it down soon.