There is ob-aider, maybe interesting for you to try.

https://github.com/emacsmirror/ob-aider