CodePrompt is the code repository loader interface that consumes your relevant code and turns it into a GPT prompt — allowing the GPT to write more complex code for you.
CodePrompt is an experiment and an attempt to let GPT write more complex code while taking into consideration of the project's context. This includes tasks such as implementing a function that evolves edits on multiple files, creating new components while reusing existing functions, etc.
The inspiration and ideas for this project were primarily drawn from mpoon/gpt-repository-loader. However, due to its limitations in loading all files into the prompt and encountering token context limit issues, using gpt-repository-loader is currently impractical.
So in CodePrompt, we add functionalities such as file selection and code editing, which enable developers to selectively choose relevant files and specific portions of code to build a GPT prompt based on their requirements.
Try it yourself, Report a Bug / Request a Feature
- Choose a GPT model from the available options, such as GPT-3.5, GPT-4, or GPT-4-32K.
- Select a public repository that you want to work with.
- Choose the relevant files from the repository that you want to include into the prompt.
- Remove any irrelevant code and add specific instructions as needed.
- Copy the prompt to your chosen GPT model to generate the desired output.
-
Clone the repository:
git clone [email protected]:chunrapeepat/codeprompt.git
-
Install the required packages:
cd codeprompt && yarn
-
Build the application:
yarn build
-
Start the development server:
yarn start
Contributions to CodePrompt are welcome and encouraged! To contribute, please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Push your changes to your fork
- Submit a pull request
Or, if you have any fun ideas, go to the issues page and post them there 🔥
Crafted with 💖 by @chunrapeepat