GPT4 in your terminal, watching you code and giving feedback
Project description
Hack Mentor
Quickstart
pip install hack_mentor
export OPENAI_API_KEY="your-key-here"
Description
This project ues GPT-4 to actively watch you code in your terminal, providing real-time feedback and suggestions.
There are two key modes in Hack Mentor:
-
Bug Mode: Here, Hack Mentor will look for bugs and give concise suggestions for how to fix.
-
Architect Mode: In this mode, Hack Mentor takes a more holistic view, helping you design your code structure and suggesting architectural changes.
Installation
Before starting, ensure you have Python 3.6 or above installed on your system.
-
Set up a virtual environment. This helps to avoid any conflicts with other installed Python packages.
python3 -m venv hack_mentor_env
-
Activate the virtual environment.
On Linux or MacOS:
source hack_mentor_env/bin/activate
On Windows:
.\hack_mentor_env\Scripts\activate
-
Install Hack Mentor via pip.
pip install hack_mentor
-
Set up your OpenAI API key
- change the name of
.env.example
to.env
- go to https://platform.openai.com to get that
Usage
Once you have Hack Mentor installed, you can use it in the following ways:
-
To use Mentor mode with a single file, use:
hack_mentor mentor App.js ~/george/my_cool_app/index.js
-
To use Architect mode with multiple files, use:
hack_mentor architect App.js component.js reducer.js ~/george/my_cool_app/index.js
In both cases, replace App.js
, component.js
and reducer.js
with the actual paths to your JavaScript files.
Hack Mentor is currently optimized for JavaScript, but we're actively working on supporting more languages. Stay tuned!
Contributing
We welcome contributions! Please see our CONTRIBUTING.md for more information.
License
This project is licensed under the MIT License. See the LICENSE.md file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hack_mentor-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c6bb4c061e7d3f47c18ee63473f46cf5b78802e9e9c50de19b332b6aaef85f7 |
|
MD5 | f73a36e1f5d57053006e11fc320b991d |
|
BLAKE2b-256 | 6f7c21ed1f616df4ebfc67c1f56de9104b848fa168f3b96d1cdc9ac69f2ceded |