Is there a port of this to Emacs or integration with gptel?

Hi, not that I know of. Most of the code would not change. It could easily be ported to different editors. The core is the go server (`server/`).

It seems it would be possible to use this with minuet.el. I’m not familiar with it, though.