AI-powered terminal session logger and analyzer
- Record terminal sessions
- Analyze terminal sessions using GPT
- Save terminal sessions to CSV
- Search terminal sessions
- View recorded terminal sessions
Clone the directory to your local machine:
git clone https://github.com/ANG13T/intellishell
cd intellishell
Open the config.yaml file and configure the following variables:
openai_api_key: "your_openai_api_key"
log_dir: "path/to/log/directory"
session_catalog: "path/to/session_catalog.csv"
prompt: "You are a programmer and UNIX system and terminal master. You understand every command emmaculately and can articulate what terminal commands do at a high and concise level. Do not use any redundancy in how you speak. Be clear and straight to the point. You have a keen perception for ANSI escape codes."You can generate an OpenAI API key by visiting the OpenAI API page.
log_dir is the directory where the terminal sessions will be saved.
For session_catalog, you MUST generate a session_catalog.csv file. This file will be used to store the terminal sessions.
You can change the prompt variable to any prompt you want to use for the GPT model to analyze the session.
chmod +x intellishell
Add the following to your .bashrc or .zshrc path file:
export PATH=$PATH:/path/to/intellishellOnce you have the path configured, you can run the tool:
intellishell
intellishell is open to any contributions. Please fork the repository and make a pull request with the features or fixes you want to implement.
If you enjoyed IntelliShell, please consider becoming a sponsor or donating on buymeacoffee in order to fund my future projects.
To check out my other works, visit my GitHub profile.
