Skip to content

MaruthiKo/kai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages