Skip to main content

AI Coding Assistant Shell

Project description

AIDebug Console

https://github.com/00-Python/AI-Debug/assets/8343312/c8425e57-f1b4-499e-a838-d5d3aa4ba12d

Alt Text

AIDebug Console is a Python-based command line application that leverages the power of OpenAI's GPT models to assist with debugging and developing software projects. It provides a user-friendly interface for interacting with your codebase, running your project, and even debugging your code with the help of AI.

Features

  • Project Management: Select and deselect project files and directories.
  • Project Configuration: Configure specific project details such as language, type, framework, and run command.
  • Code Execution: Run your project directly from the console. (Automatically catches errors and asks user if they want to debug)
  • AI Debugging: Debug your project with the help of OpenAI's GPT Models.
  • AI Feature Request: Request a feature for your project from OpenAI's GPT Models.
  • AI Code Documentation: Get a README.md file for your project's GitHub repository.

Installation

Install With Pip

pip install aidebug

Manual Build and Install

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Install the required Python packages using pip:
pip install setuptools wheel
  1. Build the project with setup.py:
python setup.py sdist bdist_wheel
  1. Change directory to the built project:
cd dist
  1. Install the built .whl file with pip:
pip install aidebug-0.0.8-py3-none-any.whl

Usage

  1. Set the necessary environment variables. You need to provide your OpenAI API key:
export OPENAI_API_KEY=your_openai_api_key
  1. Run the project:
aidebug
  1. Use the help command to see a list of available commands.

Environment Variables

  • OPENAI_API_HOST: The API host for OpenAI. Default is https://api.openai.com.
  • OPENAI_API_KEY: Your OpenAI API key.

Commands

Here is a brief explanation of the commands available in the AIDebug Console:

  • cd <directory>: Change the current working directory.
  • exit: Exit the AIDebug Console.
  • project select: Select project files and directories.
  • project deselect: Unselect files and directories by id.
  • project run: Run the project.
  • project files paths: Prints selected files paths.
  • project files contents: Prints selected files path and contents.
  • config project language <language>: Set the programming language of your project.
  • config project type: Set the type of your project.
  • config project framework: Set the framework that your project is using.
  • config project run <command>: Set the command used to run your project.
  • config openai model <model>: Set the OpenAI model to be used.
  • config openai temperature <temperature>: Set the OpenAI model's temperature.
  • debug <error>: Debug your project with the help of OpenAI's GPT Models.
  • feature <feature_request>: Request a feature for your project from OpenAI's GPT Models.
  • readme <optional_message>: Request a README.md file for your project's GitHub repository from OpenAI's GPT Models.

Remember to replace <directory>, <language>, <command>, <model>, <temperature>, <error>, <feature_request>, and <optional_message> with your actual values.

Running System Commands

AIDebug Console allows you to run native system commands directly from the shell. Simply input the desired command, and it will be executed in the console.

For example, to list the files in the current directory, you can use the command ls:

> ls

This feature provides flexibility and convenience for running various system tasks alongside your project debugging and development.

Credits

This project has borrowed code from TheR1D's shell_gpt project. I would like to express my gratitude for the contribution to the open-source community which has greatly aided the development of this project.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the GNU v3 GPL-3.0 License. See the LICENSE 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

aidebug-0.1.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

aidebug-0.1.0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file aidebug-0.1.0.tar.gz.

File metadata

  • Download URL: aidebug-0.1.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for aidebug-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f86c104aee61936431552228f927f2f299c3960ea6b4ae16122443ba817051a6
MD5 c31805d0cc0c84ef09d8fc8b9937ceed
BLAKE2b-256 bcf3449b30e3c583cd41d77c018a00ee0a8375ce5252f39650197d7851e49ec6

See more details on using hashes here.

File details

Details for the file aidebug-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aidebug-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for aidebug-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2bf25edff147b623f5d4335dfd6fcc193dafbd4493ebb0d3726e54f77088f1e
MD5 ae3757000e235ec7cb7b0de1e87432f0
BLAKE2b-256 ae88d9fef982ad49fe72f651b0ce03352b5264899b6a812d3c5d71dc784fe7b1

See more details on using hashes here.

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