Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🐧 KAI - Kernel with AI

🌟 Project Overview

KAI is an innovative cli tool that leverages AI to generate, select, and execute Linux commands with unprecedented ease and safety. It transforms command-line interactions into an intelligent, interactive experience.

✨ Key Features

  • 🤖 AI-Powered Command Generation

    • Generates multiple command suggestions for any task
    • Utilizes advanced language models to create diverse solutions
  • 🔍 Interactive Command Selection

    • Displays multiple command options
    • Allows user to choose the most suitable command
  • 🛡️ Advanced Safety Mechanisms

    • Checks for potentially dangerous commands
    • Provides confirmation prompts
    • Prevents accidental system damage
  • 📝 Flexible Command Editing

    • Allows up to 3 command modifications
    • Provides an intuitive editing interface

🔧 Prerequisites

  • Bash (4.0+)
  • jq - Command-line JSON processor
  • curl - Transfer data from or to a server
  • Groq API Key

🚀 Quick Start

1. Installation

# Clone the repository
git clone https://github.com/yourusername/aicommand.git

# Navigate to the directory
cd kai

# Make the script executable
chmod +x kai

# Set up your Groq API key
export GROQ_API_KEY='your_api_key_here'

2. Usage Examples

# Basic usage
./kai "Find empty files"

# Other potential queries
./kai "List large files"
./kai "Monitor system resources"
./kai "Backup important directories"

🎬 Workflow Demonstration

  1. Query Input: Describe your task
  2. AI Generation: Receive 5 command suggestions
  3. Interactive Selection: Choose your preferred command
  4. Command Editing: Modify if needed
  5. Safe Execution: Confirm before running

🛡️ Safety First

The script includes multiple safety features:

  • Dangerous command pattern detection
  • User confirmation prompts
  • Limited edit attempts
  • Explicit execution confirmation

📦 Dependencies

  • bash
  • jq
  • curl
  • GROQ API KEY

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

⚠️ Disclaimer

This tool is designed to assist and enhance command-line productivity. Always review commands before execution and understand their potential impact.


🌟 Star the Repo if You Find it Useful!

Happy Commanding! 🚀👨‍💻👩‍💻

About

KAI - Kernel with AI

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages