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.1.tar.gz (13.4 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.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gptautocli-0.1.1.tar.gz
  • Upload date:
  • Size: 13.4 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.1.tar.gz
Algorithm Hash digest
SHA256 9e877a4daa38b30e1e0ecac5c276a0d56b96406d40f0dd0d5cab89a9861713b9
MD5 c1818e70415527da434b44655c024f00
BLAKE2b-256 421cbf4aab922000275b14c849a128b0bb1ab54c01166aa059ec357bbff3e5c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gptautocli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23e597c5870220b4327fec11409917769a9167c702078c29deaedb1cb6f253d9
MD5 85d9edeb54a520a9f76212615d5dfc49
BLAKE2b-256 7bd38cd4065eafcf6221709dbd35c68b784054b464b5ea1f0fdecd97c0812951

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