Skip to main content

Provides a conversational interface to the terminal, allowing users to run commands and perform tasks using natural language.

Project description

Project Overview

This project contains multiple Python scripts and other files that work together to form a terminal assistant called `gptautocli' powered by OpenAI's flagship GPT-4o model. The primary function of this package is to provide a conversational interface to the terminal, allowing users to run commands and perform tasks using natural language.

DISCLAIMER

This project has not been tested extensively and due to its nature, it is possible that it could cause harm to your system. AI models are not perfect and can make mistakes, and this project GIVES AN AI MODEL THE ABILITY TO RUN ANY COMMAND ON YOUR SYSTEM which has obvious risks. I strongly suggest not using this in a production environment, and cannot be held responsible for any damage caused by this project.

Capabilities

This is a powerful tool that can perform a variety of tasks, essentially capable of anything that can be done in the terminal. Here is a small subset of its capabilities:

  • File Management: Create, delete, and modify files and directories.
  • System Information: Get information about the system, such as the operating system and hardware.
  • Write and Run Code: Write and run code in most languages.
  • Install Packages: Install packages needed for development through package managers like pip and apt.
  • Fix Mistakes: It is able to see command output and will usually be able to fix mistakes that it makes.
  • And Much More: I'm sure there are many more capabilities that I haven't thought of yet!

Limitations

The assistant is not perfect, and there are some limitations to its capabilities. Here are a few of the limitations:

  • Prone to Mistakes: Since the assistant is powered by OpenAI, it can sometimes make mistakes in its responses.
  • Limited access to up-to-date information: The assistant may not have access to the most up-to-date information, as it is not connected to the internet.
  • Limited Ability to interact with commands that require user input: The assistant has trouble interacting with commands that require user input, such as interactive programs or commands that require a password.

Installation

To set up the project locally, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/BSchoolland/terminal_assistant
    cd terminal_assistant
    
  2. Install Python (if not already installed):

    • For Linux:
      sudo apt-get install python3 python3-pip
      
    • For Mac:
      brew install python3
      
    • For Windows: Download and install Python from python.org.
  3. Set up a Virtual Environment (optional but recommended):

    python3 -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
    
  4. Install Dependencies:

    pip install -r requirements.txt
    

Usage

To use the terminal assistant:

  1. Start the Assistant:

    python main.py
    
  2. Interact with the Assistant: Follow the on-screen instructions to interact with the assistant.


Contributing

I welcome contributions to this project! Please contact me (bschoolland@gmail.com) if you would like to contribute, or feel free to simply fork the repository and submit a pull request.

  1. Fork the Repository: Click the "Fork" button on the top right of the repository page.
  2. Clone Your Fork:
    git clone https://github.com/BSchoolland/gptautocli
    cd terminal_assistant
    
  3. Create a Branch:
    git checkout -b your-feature-branch
    
  4. Make Your Changes: Add your improvements or new features.
  5. Commit Your Changes:
    git add .
    git commit -m "Description of your changes"
    
  6. Push to Your Fork:
    git push origin your-feature-branch
    
  7. Open a Pull Request: Click "New Pull Request" on the original repository.

License

This project is licensed under the MIT License. See the LICENSE file for more 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

gptautocli-0.1.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

gptautocli-0.1.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gptautocli-0.1.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for gptautocli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2af6515b56a9a2e91167c894d043fb4aacff0c26f974daec8645fd3efe29b0ae
MD5 badb9f833f075ae26269d15849cbd416
BLAKE2b-256 6e6e723b5116899f878cf985ffc8f1167ee88285d57f96745c4522eb45ff5e80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gptautocli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for gptautocli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edaff3ac39f90a5c2be711fdfaee0d903689c9463a4b6bdd2d2a89fbc2457c6e
MD5 a3d7f626a81b37ce75969c26c7429fa1
BLAKE2b-256 620fd5ff2da8076f7d9773a180aa0da5eb7c0374c06d208ef3cd271333f9546a

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