ShellSense is an advanced, futuristic Zsh terminal plugin designed to integrate intelligent AI capabilities directly into your command-line interface. This plugin leverages state-of-the-art AI models and a suite of powerful tools to provide expert assistance for a wide range of tasks.
- AI Assistant in the Terminal: Get expert assistance directly in your Zsh terminal for various tasks.
- Integrated Tools:
- WebSearchTool: Perform web searches.
- CrawlerTool: Scrape webpage content.
- ProductHuntTool: Get trending products.
- ScreenshotTool: Capture webpage screenshots.
- TranslatorTool: Translate text.
- WikipediaSearchTool: Search Wikipedia.
- CoderTool: Generate code snippets.
- GitHubTool: Fetch GitHub user info.
- CommandExecutionTool: Execute shell commands.
- StockTool: Fetch stock data.
- Python 3.8 or higher
- Zsh shell
- ChromeDriver installed and path set up for the ScreenshotTool to function properly.
-
Clone the Repository:
git clone https://github.com/your-repo/shellsense.git cd shellsense -
Install Dependencies:
./setup.sh
-
Add ShellSense to Your Zsh Configuration: The setup script will automatically add the necessary configurations to your
.zshrcfile. Restart your terminal or runsource ~/.zshrcto activate ShellSense.
-
Setup
shellsense --setup
-
Ask ShellSense a Question
shellsense -q "Your question here" -
Choose an AI Provider
shellsense -p gemini -q "Your question here"
Configure your environment variables in the config/example.env file:
# OpenAI API Keys (Optional)
OPENAI_API_KEY=your-openai-api-key
# Gemini API Keys (Optional)
GEMINI_API_KEY=your-gemini-api-key
# Cloudflare Environment Variables
CLOUDFLARE_ACCOUNT_ID=your-cloudflare-account-id
CLOUDFLARE_AUTH_TOKEN=your-cloudflare-auth-token
FUNCTION_CALL_MODEL=@hf/nousresearch/hermes-2-pro-mistral-7b
FRIENDLY_RESPONSE_MODEL=@hf/mistral/mistral-7b-instruct-v0.2We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Open a pull request with a clear description of your changes.
For comprehensive documentation, please visit the ShellSense Documentation.
Welcome to the ShellSense documentation! This directory contains comprehensive documentation for ShellSense, a universal AI-powered terminal assistant for Linux.
docs/
├── api/ # API Reference documentation
│ ├── providers/ # AI provider documentation
│ ├── tools/ # Tool documentation
│ └── utils/ # Utility documentation
├── guides/ # User guides and tutorials
├── examples/ # Usage examples
└── images/ # Documentation images
- Python 3.8 or higher
- Sphinx documentation generator
-
Install development dependencies:
pip install -e ".[dev]" -
Build the documentation:
cd docs make html -
View the documentation:
# On Linux with xdg-open xdg-open build/html/index.html
Detailed documentation of ShellSense's internal APIs:
- AI Providers: Documentation for Cloudflare, OpenAI, and Gemini providers
- Tools: Documentation for all available tools
- Utilities: Documentation for utility functions and classes
Step-by-step guides for using ShellSense:
- Quickstart Guide: Get up and running quickly
- Configuration Guide: Detailed configuration options
- Provider Guide: Information about different AI providers
- Tool Guide: Details about available tools and their usage
Real-world examples of using ShellSense:
- Basic Usage: Common use cases
- Advanced Usage: Complex scenarios
- Custom Tools: Creating custom tools
We welcome documentation improvements! Here's how you can help:
- Fork the repository
- Make your documentation changes
- Build and test locally
- Submit a pull request
- Use clear, concise language
- Include code examples where relevant
- Follow RST/Sphinx formatting guidelines
- Add docstrings to all Python code
- Keep examples up-to-date
If you find any issues or have suggestions for improving the documentation: