Codebase Enhancer with ChatGPT is an open-source tool that helps developers analyze and improve their code using the power of OpenAI's ChatGPT. This tool streamlines the process of code review, refactoring, and generating insights to improve your codebase. By using this tool, you can enhance your code's readability, maintainability, and performance, and get expert suggestions with just a few clicks! ๐
Contributions are welcome! This project is for the community, so we encourage everyone to contribute and help make this tool even better. Feel free to open issues, submit pull requests, or share your ideas for improvements. Let's make this project amazing together! ๐ค
- Analyze codebase for improvements and insights
- Divide codebase into manageable sections
- Process code sections concurrently with ChatGPT
- Integrate suggestions and modifications back into the codebase
- Validate and test the modified codebase
- ... and more!
- Load the codebase: The tool fetches your codebase from a specified GitHub repo URL.
- Divide the codebase: It divides the codebase into manageable sections for processing.
- Process code sections: It sends the code sections to OpenAI's ChatGPT to generate insights, suggestions, and modifications.
- Integrate results: The tool integrates ChatGPT's responses back into the codebase.
- Validate and test: The modified codebase undergoes validation and testing to ensure everything works as intended.
- Save results: The modified codebase and insights are saved in JSON format for further analysis or implementation.
- User input: Users can submit feature requests and get feedback from ChatGPT.
- Clone the repo
- Install the required Python packages listed in
requirements.txt
- Set your OpenAI API key as an environment variable
- Run
main.py
and follow the prompts
- Update the GitHub repo URL in
main.py
with your own repository's URL - Run
main.py
and follow the prompts - Review the generated insights and modified codebase
We welcome contributions of all kinds! Whether it's fixing bugs, adding new features, or improving documentation, your help is greatly appreciated. To get started, simply fork the repo, create a new branch for your changes, and submit a pull request when you're ready.
This project is licensed under the MIT License. See the LICENSE
file for more information.
Happy coding! ๐ป๐