And if you want AI integration at your choice and control, agent-shell (and chatgpt-shell, which is LLM-agnostic despite the name) are great packages. They’re totally hackable with elisp like you’d expect, which I personally haven’t done a ton with, because I use AI pretty sparingly, but I imagine the crowd here could come up with plenty of ideas for how to program your editor and your agent interface together.