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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file hack_mentor-0.7.tar.gz.

File metadata

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

File hashes

Hashes for hack_mentor-0.7.tar.gz
Algorithm Hash digest
SHA256 ad897289cffbe5b0af5bea59f511f17f60bbb933833ca0f956a4d0d8929d1ad0
MD5 334ed9817ff8db4fc93777f18ad695a9
BLAKE2b-256 4adee3051e0b4952e0bdc5c49aa77dbce6b9b06a203db52b5cb23566cc45c8bc

See more details on using hashes here.

File details

Details for the file hack_mentor-0.7-py3-none-any.whl.

File metadata

  • Download URL: hack_mentor-0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for hack_mentor-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1c6bb4c061e7d3f47c18ee63473f46cf5b78802e9e9c50de19b332b6aaef85f7
MD5 f73a36e1f5d57053006e11fc320b991d
BLAKE2b-256 6f7c21ed1f616df4ebfc67c1f56de9104b848fa168f3b96d1cdc9ac69f2ceded

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