Co-Developer GPT Engine
Introduction
Would you like to have ChatGPT list, search, read your local files, discuss them with you, and modify them and have it execute (e.g. build and test) actions locally to support you in your development processes? Then this might be for you. The Co-Developer GPT Engine can either work as a ChatGPT plugin or provide the actions for a OpenAI GPT for read or even write access to the files in the local directory it is started in.
In contrast to other approaches like AutoGPT this is not meant to autonomously execute extensive changes (which would likely require a lot of prompt engineering), but to enable the developer to flexibly use the AI within a ChatGPT chat session for various tasks both to analyze code or documentation and to make some changes. A ChatGPT chat does, however, permit to trigger several actions in one message, so it's also possible to e.g. tell it to run the build, fix errors and repeat until it succeeds.
The project is quite stable and useable. In fact I use it regularly in my own development - both on itself and on my other projects. Using it does, however, require that you have a paid ChatGPT account that can use plugins / GPTs. There are three ways to use it within ChatGPT: put it as actions into a GPT, register it as an unverified plugin or run it as a localhost plugin if you are registered as a plugin developer. See the respective documentation for details. It is open source under the Apache 2.0 license - it's source is available on GitHub. See also my blog for some background.
Functionality
The Co-Developer GPT Engine
provides ChatGPT with read and optionally write access to the directory in which it
is started. It provides ChatGPT with several operations that it can use on the files in that directory, including:
- Listing the files in a directory
- Reading the contents of a file
- Writing content to a file / changing file content by search and replace
- searching for regular expressions in files
- Execute actions you can define yourself, possibly with additional input from ChatGPT
- fetch the text content of an URL in the internet
More details about the functionality are here. The video on the right contains a quick demo what it can look like to work with the GPT.
Preconditions
To use the Co-Developer GPT Engine
, you need a ChatGPT Plus account,
since only then OpenAI will let you use plugins / GPTs.
The program is an executable Java JAR, so you need a Java runtime environment (JRE) of at least version 11 to run it.
Also, you will have to make it reachable from OpenAI's servers via https -
there are several ways to do this.
Getting started
To start up quickly you can follow the steps in the quickstart instructions, or you can go into depth with the corresponding documentations:
- First, you have to install the program locally
- Second, you have to make it reachable from OpenAI's servers.
- Third, run it in a directory you want to access.
- Fourth, you have to create a GPT with it as action, or register it as a ChatGPT plugin.
Then you can use it from ChatGPT and enjoy working with your newly found AI assistant.