Building a ChatGPT Code Assistant Plugin
As an avid coder, I embarked on a personal experiment to enhance my coding experience and boost my productivity. ChatGPT was a valuable tool, but copying and pasting generated code into my editor often proved inconvenient and disrupted my creative flow.
I also faced challenges due to ChatGPT's inability to access my local file system and external documentation, as it couldn't utilize my current project's code as context. This meant I had to copy my code to the website for further generation manually.
To overcome these limitations, I created the ChatGPT Code Assistant Plugin. By granting ChatGPT access to both my local file system and the internet, it can now effortlessly:
You can use online documentation to provide accurate API calls and avoid guesswork.
Incorporate the code from my current project as context, generating more relevant and coherent suggestions.
Read and utilize files within my project to improve overall code integration.
Directly write to files in my project, streamlining the coding process and eliminating the need for manual copy-pasting.
Through this personal experiment, I have experienced the enhanced capabilities of the ChatGPT Code Assistant Plugin and revolutionized the way I code. It feels like having an intelligent and diligent intern coding with me.
This was a simple experiment, but I learned a lot. The chat interface with plugins will be highly flexible, allowing users to customize their experience according to their unique needs and preferences. By integrating various plugins, individuals can adapt the platform to different use cases, making it a versatile solution for both personal and professional communication. Furthermore, the open architecture encourages developers to contribute their own innovations, ensuring that the interface remains dynamic and up-to-date with the latest advancements in technology. In this way, the chat interface with plugins has the potential to revolutionize the way we interact and collaborate in the digital realm.
ChatGPT plugins are a json explaining how to use an API. Developing an API for a ChatGPT plugin is like developing any other API. I used FastAPI to build mine in less than a day. You can find the plugin source code here: https://github.com/edmar/chatgpt-code-assistant