Skip to main content

GPT4 in your terminal, watching you code and giving feedback

Project description

Hack Mentor

Quickstart

pip install hack_mentor

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_gpickett00-0.5.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hack_mentor_gpickett00-0.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file hack_mentor_gpickett00-0.5.tar.gz.

File metadata

  • Download URL: hack_mentor_gpickett00-0.5.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for hack_mentor_gpickett00-0.5.tar.gz
Algorithm Hash digest
SHA256 ca819895b4571673c61f2ba946b9ade46d00570be1b8cf9b786c453137aafafe
MD5 c1af0ebd2ed07909572ad36b759107a3
BLAKE2b-256 b6bf523c927611f2ad1541d7ffbaf56fef5304f93806c7c32b2f1af07e8bd350

See more details on using hashes here.

File details

Details for the file hack_mentor_gpickett00-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hack_mentor_gpickett00-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8080674f5c5e56f5b8889c9288eb06da074e67435d7780466bbc4f2d64ce7910
MD5 519b235ad82bc68bcc1fcf449c5e9e88
BLAKE2b-256 de14a5e790d02d32ec6b6871f1f58bfa6c6181a69408b40e4aacbb638fa0bf77

See more details on using hashes here.

Supported by

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