Emacs has a number of packages for AI integration which I haven't tried yet. Have you?

I haven’t, so far I’ve only looked into ones that require terminal emulation and I’ve never loved how that works in emacs.