Totoro-Li / codeprompt

CodePrompt is the code repository loader interface that consumes your relevant code and turns it into a GPT prompt

Home Page:https://codeprompt.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodePrompt

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

πŸ“– How to use:

  1. Choose a GPT model from the available options, such as GPT-3.5, GPT-4, or GPT-4-32K.
  2. Select a public repository that you want to work with.
  3. Choose the relevant files from the repository that you want to include into the prompt.
  4. Remove any irrelevant code and add specific instructions as needed.
  5. Copy the prompt to your chosen GPT model to generate the desired output.

πŸ› οΈ Installation

Local Development Environment

  1. Clone the repository:

    git clone git@github.com:chunrapeepat/codeprompt.git
  2. Install the required packages:

    cd codeprompt && yarn
  3. Build the application:

    yarn build
  4. Start the development server:

    yarn start

πŸ‘₯ Contributing

Contributions to CodePrompt are welcome and encouraged! To contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Push your changes to your fork
  5. Submit a pull request

Or, if you have any fun ideas, go to the issues page and post them there πŸ”₯


Crafted with πŸ’– by @chunrapeepat

About

CodePrompt is the code repository loader interface that consumes your relevant code and turns it into a GPT prompt

https://codeprompt.xyz


Languages

Language:TypeScript 90.1%Language:HTML 8.9%Language:CSS 1.0%