For those thinking this is about an open source version of copilot (the LLM coding assistant), it's not.

hard to believe that such a thing does not already exist. any tips?

There is, but there’s not nearly enough of them. Check out Fauxpilot https://github.com/fauxpilot/fauxpilot