Control your entire desktop intelligently, safely, and naturally.
Kiro is an advanced AI-powered operating system automation framework designed to understand natural language commands and execute complex system tasks with intelligent planning, safety validation, and automatic recovery mechanisms.
Built as a modular, extensible agent system, Kiro combines the power of large language models with local system integration to provide truly autonomous desktop assistance.
- Breaks down complex user requests into executable subtasks
- Learns from execution history and past patterns
- Adaptive planning based on system context
- Command validation before execution
- Risk assessment and confirmation for critical actions
- Automatic rollback on failures
- Comprehensive action logging
- Intelligent file organization by type and category
- Duplicate file detection and removal
- Large file identification and analysis
- Folder structure optimization
- Real-time CPU, RAM, and disk monitoring
- System health checks and alerts
- Cleanup scanning for old and temporary files
- Performance analysis and recommendations
- Screenshot analysis using Google Gemini
- Optical Character Recognition (OCR)
- Visual problem detection and troubleshooting
- Screenshot-based task automation
- Conversational command understanding
- Multi-turn conversation support
- Context-aware request interpretation
- User preference learning
- Persistent execution history
- Context storage and retrieval
- Preference management
- Task outcome tracking
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β User Input (Natural Language) text/voice β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββ
β Master Agent - Central Orchestrator β
β - Intent Extraction & Goal Definition β
β - Multi-agent coordination β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββ΄βββββββββββββ
β β
βββββββββΌβββββββββ ββββββββββΌβββββββββββ
β Intent Router β β Task Planner β
β - Intent β β - Breakdown tasks β
β detection β β - Prioritization β
β - Action β β - Optimization β
β mapping β ββββββββββ¬βββββββββββ
βββββββββ¬βββββββββ β
β β
ββββββββββββββ¬ββββββββββββ
β
ββββββββββββββΌβββββββββββββ
β Execution Engine β
β - Safe execution β
β - Error handling β
β - Logging β
ββββββββββββββ¬βββββββββββββ
β
ββββββββββββββββ΄βββββββββββββββ
β β
βββββββΌβββββββββ ββββββββββΌβββββββ
β Tool Modules β β LLM Services β
β - File Mgmt β β - Gemini β
β - System β β - Groq β
β - Diagnosis β βββββββββββββββββ
β - Web β
ββββββββββββββββ
Central orchestrator that coordinates all system operations:
- Receives and interprets user requests
- Manages task planning and execution flow
- Maintains memory and context
- Provides feedback and reporting
- Location:
agent/master_agent.py
Intelligent task decomposition and planning:
- Converts goals into executable task sequences
- Handles dependencies between tasks
- Estimates execution time and resource requirements
- Adapts plans based on execution feedback
- Location:
agent/task_planner.py
Manages safe task execution:
- Pre-execution validation and safety checks
- Handles task execution with error recovery
- Logs all operations for audit trails
- Implements automatic rollback on failures
- Location:
agent/execution_engine.py
Maintains system state and learning:
- Execution history tracking
- Context and preference storage
- Performance metrics recording
- Learning from past executions
- Location:
agent/memory_manager.py
Multi-LLM support for flexible AI backend:
- Gemini Client: Google's advanced language model for vision and text
- Groq Client: High-speed inference for real-time responses
Comprehensive file and folder management:
manager.py- Main orchestratorfile_organizer.py- Auto-organize files by typeduplicate_detector.py- Find and remove duplicateslarge_file_scanner.py- Identify large filesfolder_finder.py- Smart folder discoveryllm_organizer.py- AI-powered categorization
System integration and action execution:
file_tools.py- File operationssystem_tools.py- System control (shutdown, restart, etc.)system_config.py- System configuration managementdiagnostics_tools.py- Health checks and monitoringapp_tools.py- Application launchingweb_tools.py- Web searching and browsinghelp_commands.py- User guidance
Advanced problem diagnosis and resolution:
vision_analyzer.py- Visual problem analysisscreenshot_tool.py- Screenshot capture and analysissolution_parser.py- Parse and format solutionsauto_fix_engine.py- Automated fixing mechanisms
Computer vision capabilities:
vision_engine.py- Image analysis and OCR- Screenshot-based automation support
User preference and behavior learning:
personalisation_tools.py- Customization features- User profile management
Intent-based command routing:
intent_router.py- Maps intents to actions- Multi-intent support for complex requests
- Python 3.8+
- Windows 10/11 (or Linux/macOS with adaptation)
- API Keys: Google Gemini, Groq (optional but recommended)
-
Clone the repository
git clone https://github.com/yourusername/Kiro.git cd Kiro -
Create a Python virtual environment
python -m venv venv venv\Scripts\activate # Windows source venv/bin/activate # Linux/macOS
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
# Create .env file in root directory GOOGLE_API_KEY=your_gemini_api_key GROQ_API_KEY=your_groq_api_key -
Run Kiro
python main.py
> organize my downloads
β
Analyzed 245 files
β
Created 8 category folders
β
Moved 187 files successfully
> find large files on my desktop
π Scanning: C:\Users\YourName\Desktop
β
Found 12 files over 100MB
β’ video_backup.mp4 (2.3GB)
β’ old_project.zip (890MB)
> what's my system health
π₯ System Health Check
CPU Usage: 34%
RAM Usage: 62% (8.9GB/16GB)
Disk Usage: 71% (425GB/600GB)
Status: β
HEALTHY
> scan for old files
ποΈ OLD FILES SCAN
Files older than 7 days: 23
Total recoverable space: 2.4GB
Use 'confirm cleanup' to delete
> take a screenshot and analyze it
πΈ Captured screenshot
π€ Analysis:
- Browser window detected
- Showing error message
- Recommended: Check browser console logs
help - Show available commands
history - View recent executions
stats - Display execution statistics
status - Agent system status
clear history - Reset execution memory
exit - Shutdown Kiro
Manage system-wide settings:
- LLM model selection
- Execution timeouts
- Safety levels
- Logging verbosity
execution_history.json- Past execution logscontext.json- Current system contextpreferences.json- User preferencesplans.json- Saved task plans
Kiro implements multiple layers of protection:
- Intent risk assessment
- Command whitelisting/blacklisting
- User confirmation for critical actions
- System32 directory
- Registry operations
- Forced process termination
- Mass file deletion
- Real-time operation logging
- Resource usage tracking
- Error detection and handling
- Pre-execution snapshots
- File restoration on failures
- Process restart mechanisms
- State rollback on user request
Kiro/
βββ main.py # Entry point
βββ requirements.txt # Dependencies
βββ README.md # This file
β
βββ agent/ # Core agent system
β βββ master_agent.py # Central orchestrator
β βββ task_planner.py # Task decomposition
β βββ execution_engine.py # Safe execution
β βββ memory_manager.py # State management
β βββ task.py # Task definition
β
βββ llm/ # LLM integrations
β βββ gemini_client.py # Google Gemini
β βββ groq_client.py # Groq API
β
βββ file_manager/ # File management suite
β βββ manager.py # Main orchestrator
β βββ file_organizer.py # Auto-organization
β βββ duplicate_detector.py # Deduplication
β βββ large_file_scanner.py # Size analysis
β βββ folder_finder.py # Folder discovery
β
βββ tools/ # System tools
β βββ file_tools.py # File operations
β βββ system_tools.py # System control
β βββ diagnostics_tools.py # Health & monitoring
β βββ app_tools.py # App launching
β βββ web_tools.py # Web integration
β βββ help_commands.py # User guidance
β
βββ troubleshooter/ # Problem diagnosis
β βββ vision_analyzer.py # Image analysis
β βββ screenshot_tool.py # Screenshot capture
β βββ solution_parser.py # Solution parsing
β βββ auto_fix_engine.py # Auto-fixing
β
βββ vision/ # Computer vision
β βββ vision_engine.py # Vision processing
β
βββ router/ # Intent routing
β βββ intent_router.py # Command routing
β
βββ personalisation/ # User customization
β βββ personalisation_tools.py
β
βββ agent_memory/ # Persistent storage
β βββ execution_history.json
β βββ context.json
β βββ preferences.json
β βββ plans.json
β
βββ utils/ # Utility functions
βββ prompt_loader.py # Prompt management
βββ json_parser.py # JSON utilities
βββ system_monitor.py # Monitoring
βββ prompt_loader.py # Prompt loading
| Component | Technology | Purpose |
|---|---|---|
| LLM | Google Gemini, Groq | Natural language understanding & generation |
| Vision | EasyOCR, Pillow | Image analysis and OCR |
| System Monitoring | psutil | CPU, RAM, Disk metrics |
| Screenshots | mss | Screen capture |
| GUI | CustomTkinter | Desktop interface (optional) |
| HTTP | requests | Web operations |
| Config | python-dotenv | Environment management |
Monitor Kiro performance:
# Execution statistics
stats = agent.get_execution_stats()
print(f"Success Rate: {stats['success_rate']:.1f}%")
print(f"Avg Task Time: {stats['avg_execution_time']}s")
print(f"Total Executions: {stats['total_executions']}")
# Agent status
status = agent.get_agent_status()
print(f"Memory Entries: {status['memory_entries']}")
print(f"History Count: {status['execution_history_count']}")Potential improvements and future phases:
- Multi-language support
- Real-time collaboration features
- Custom automation workflow builder
- Advanced scheduling capabilities
- Database integration for complex queries
- Mobile app companion
- Cloud sync for cross-device support
- Advanced ML-based pattern recognition
- Plugin system for third-party integrations
This project is provided as-is for educational and personal use. Ensure compliance with your operating system's terms of service when using automation features.
We welcome contributions! Please feel free to submit issues, feature requests, and pull requests.
For issues, questions, or feature requests, please open an issue on the project repository.
Built with β€οΈ as an advanced AI desktop automation framework.
Last Updated: February 2026