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
pipandapt. - 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:
-
Clone the Repository:
git clone https://github.com/BSchoolland/terminal_assistant cd terminal_assistant
-
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.
- For Linux:
-
Set up a Virtual Environment (optional but recommended):
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install Dependencies:
pip install -r requirements.txt
Usage
To use the terminal assistant:
-
Start the Assistant:
python main.py -
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.
- Fork the Repository: Click the "Fork" button on the top right of the repository page.
- Clone Your Fork:
git clone https://github.com/BSchoolland/gptautocli cd terminal_assistant
- Create a Branch:
git checkout -b your-feature-branch
- Make Your Changes: Add your improvements or new features.
- Commit Your Changes:
git add . git commit -m "Description of your changes"
- Push to Your Fork:
git push origin your-feature-branch
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2af6515b56a9a2e91167c894d043fb4aacff0c26f974daec8645fd3efe29b0ae
|
|
| MD5 |
badb9f833f075ae26269d15849cbd416
|
|
| BLAKE2b-256 |
6e6e723b5116899f878cf985ffc8f1167ee88285d57f96745c4522eb45ff5e80
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edaff3ac39f90a5c2be711fdfaee0d903689c9463a4b6bdd2d2a89fbc2457c6e
|
|
| MD5 |
a3d7f626a81b37ce75969c26c7429fa1
|
|
| BLAKE2b-256 |
620fd5ff2da8076f7d9773a180aa0da5eb7c0374c06d208ef3cd271333f9546a
|