Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adeelahmad/macpilot
๐ค AI-powered macOS automation framework - Control your Mac with natural language using GPT models. No code needed, just English instructions!
https://github.com/adeelahmad/macpilot
agent agi ai artificial-intelligence automation gpt llama llm local-ai macos natural-language-processing productivity python workflow-automation workflow-automations
Last synced: 5 days ago
JSON representation
๐ค AI-powered macOS automation framework - Control your Mac with natural language using GPT models. No code needed, just English instructions!
- Host: GitHub
- URL: https://github.com/adeelahmad/macpilot
- Owner: adeelahmad
- Created: 2024-11-25T21:10:21.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-26T10:22:20.000Z (2 months ago)
- Last Synced: 2025-01-20T05:11:06.674Z (11 days ago)
- Topics: agent, agi, ai, artificial-intelligence, automation, gpt, llama, llm, local-ai, macos, natural-language-processing, productivity, python, workflow-automation, workflow-automations
- Language: Python
- Homepage:
- Size: 1.5 MB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# ๐ค MacPilot - Advanced macOS UI Automation Framework
[![GitHub stars](https://img.shields.io/github/stars/adeelahmad/macpilot?style=social)](https://github.com/adeelahmad/macpilot/stargazers)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Python](https://img.shields.io/badge/python-3.9%2B-blue)](https://www.python.org)
[![Platform](https://img.shields.io/badge/platform-macOS-lightgrey)](https://www.apple.com/macos)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)**Native macOS UI Automation with GPT-Powered Intelligence**
[Key Features](#-key-features) โข
[Architecture](#%EF%B8%8F-architecture) โข
[Installation](#-installation) โข
[Usage](#-usage) โข
[Roadmap](#-roadmap) โข
[Contributing](#-contributing)## ๐ What is MacPilot?
MacPilot is a state-of-the-art macOS UI automation framework that combines native Apple technologies with GPT intelligence to enable human-like interaction with your Mac. Write instructions in plain English, and let MacPilot handle the automation.
### Perfect For:
- ๐ **Process Automation** - Automate repetitive UI tasks
- ๐งช **UI Testing** - Test macOS applications
- ๐ค **Desktop RPA** - Build robotic process automation
- ๐ **Screen Analysis** - Extract data from UI elements
- ๐งญ **Workflow Automation** - Create complex UI workflows## โจ Key Features
### ๐ง Core Intelligence
- **GPT Integration** - Natural language instruction processing
- **Vision Framework** - Advanced UI element detection
- **State Awareness** - Real-time system state tracking
- **Pattern Recognition** - Learned UI interaction patterns
- **Self-healing** - Automated error recovery### ๐ฏ Native Integration
- **Apple Vision** - Native OCR and element detection
- **AppleScript** - Deep OS integration
- **Accessibility APIs** - Comprehensive UI control
- **Cocoa/AppKit** - Native macOS frameworks
- **Core Graphics** - Low-level screen capture### ๐ Developer Experience
- **Async Architecture** - Built on modern async Python
- **Type Safety** - Full Pydantic validation
- **Actor System** - Modular action execution
- **State Management** - Comprehensive UI state tracking
- **Pattern System** - Reusable interaction patterns### ๐ Application Control
- **Chrome Control** - Deep browser automation
- **Finder Operations** - File system automation
- **System Control** - OS-level operations
- **Menu Navigation** - Application menu control
- **Window Management** - Window state control## ๐๏ธ Architecture
```mermaid
graph TD
A[Natural Language Instructions] --> B[GPT Analysis Layer]
B --> C[Action Planning]
C --> D[Actor System]
D --> E[UI Interaction Layer]
E --> F[State Management]
F --> B
```### Core Components:
1. **Instruction Processing** - GPT-powered instruction analysis
2. **State Management** - UI state tracking and validation
3. **Actor System** - Modular action execution
4. **Pattern System** - Reusable interaction patterns
5. **Vision System** - UI element detection and OCR
6. **Recovery System** - Automated error handling## ๐ Installation
```bash
# Install from PyPI
pip install macpilot# Or install from source
git clone https://github.com/adeelahmad/macpilot.git
cd macpilot
pip install -e .
```## ๐ Usage
### Basic Example
```python
from macpilot import MacPilotasync def main():
pilot = MacPilot()# Simple automation
await pilot.execute("Open Chrome and search for 'Python tutorials'")# Complex workflows
await pilot.execute("""
1. Find all PDFs in Downloads
2. Create a folder named 'Documents'
3. Move PDFs older than 30 days
4. Create a summary spreadsheet
""")if __name__ == "__main__":
asyncio.run(main())
```### Pattern Example
```python
from macpilot.patterns import register_pattern@register_pattern("login_flow")
async def handle_login(username: str, password: str):
return [
{"action": "click", "target": "username_field"},
{"action": "type", "text": username},
{"action": "click", "target": "password_field"},
{"action": "type", "text": password},
{"action": "click", "target": "login_button"}
]
```## ๐ Todo & Roadmap
### High Priority
- [ ] User Interface
- [ ] CLI tool for automation scripts
- [ ] Web dashboard for monitoring
- [ ] Visual workflow builder- [ ] Core Features
- [ ] Local LLM support
- [ ] Improved error recovery
- [ ] Performance optimizations### Medium Priority
- [ ] Documentation
- [ ] API reference
- [ ] Pattern library
- [ ] Example gallery- [ ] Testing
- [ ] Increase test coverage
- [ ] Integration tests
- [ ] Performance benchmarks### Low Priority
- [ ] Additional Features
- [ ] Safari automation support
- [ ] Network request monitoring
- [ ] Advanced screen recording
- [ ] Workflow marketplace## ๐ค Contributing
Contributions are welcome! Areas we're focusing on:
- ๐ Documentation improvements
- ๐งช Testing and bug fixes
- ๐ฏ New application actors
- ๐ Pattern implementations
- ๐ Performance optimizationsCheck our [Contributing Guide](CONTRIBUTING.md) for details.
## ๐ License
MacPilot is MIT licensed. See [LICENSE](LICENSE) for details.
## ๐ Acknowledgments
- Apple for macOS APIs
- OpenAI for GPT models
- Python communityMade with โค๏ธ by the MacPilot Team
[๐ Website](https://macpilot.dev) โข
[๐ Documentation](https://docs.macpilot.dev) โข
[๐ฌ Discord](https://discord.gg/macpilot)