Skip to main content

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.

  1. Set up a virtual environment. This helps to avoid any conflicts with other installed Python packages.

    python3 -m venv hack_mentor_env
    
  2. Activate the virtual environment.

    On Linux or MacOS:

    source hack_mentor_env/bin/activate
    

    On Windows:

    .\hack_mentor_env\Scripts\activate
    
  3. Install Hack Mentor via pip.

    pip install hack_mentor
    
  4. Set up your OpenAI API key

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

hack_mentor-0.7.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

hack_mentor-0.7-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page