With the successful construction of a GPT4 co-worker, we can now talk to emacs. (And also understand how disturbingly simple it is to build one – read on!)
With a voice interface, ask the AI to do work or answer questions for you in the context of the current buffer (file/directory). The AI will do the job asynchronously out of the way, leaving you to move on to the next task while the AI plugs away and speaks to you about its completed task.
The code is posted at https://github.com/pv-pterab-s/emacs-pinky-saver. It requires some work to set up (which we won’t cover here), but here are some highlights:
This package functions by giving GPT4 an initial prompt, executing the bash script that it produces, returning STDOUT and STDERR to GPT4, and iterating until GPT4 replies with the string REPLY. The string after REPLY is then synthesized to voice.
I hope that this is enlightening! Ping me at firstname.lastname@example.org if you need help setting this up. Work is continuing; hopefully, this will be a full-fledged package soon!