# Prism - AI-Powered Screen Reader & Time Tracker

๐Ÿ” Intelligent Desktop Ecosystem That Understands Your Work

Analyzing and breaking down complex activities into understandable components

## ๐ŸŒŸ Core Vision An intelligent desktop ecosystem that understands your work patterns, learns from your behavior, and evolves into a comprehensive productivity assistant. ## ๐Ÿš€ Current Features (Phase 1 - MVP) ### Observer Agent - **Screen Analysis**: Periodic screenshots with OCR and window detection - **Activity Classification**: ML-powered categorization of work activities - **Privacy-First**: All processing happens locally on your machine - **Basic Time Tracking**: Application usage and activity duration logging - **Simple Dashboard**: Real-time activity monitoring and daily summaries ## ๐Ÿ—๏ธ Architecture ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Prism Core โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โ€ข Event Bus (Agent Communication) โ”‚ โ”‚ โ€ข Privacy & Security Layer โ”‚ โ”‚ โ€ข Data Management (Local SQLite) โ”‚ โ”‚ โ€ข Agent Registry & Plugin System โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ–ผ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Observer Agent โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โ€ข Screen Capture โ€ข OCR Processing โ”‚ โ”‚ โ€ข Window Detection โ€ข Activity Classificationโ”‚ โ”‚ โ€ข Time Tracking โ€ข Data Storage โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ``` ## ๐Ÿ› ๏ธ Tech Stack - **Backend**: Python 3.9+ - **Screen Capture**: PyAutoGUI, Pillow - **OCR**: Tesseract (via pytesseract) - **ML Classification**: scikit-learn, transformers - **Database**: SQLite - **GUI**: Tkinter (future: PyQt or Electron) - **Privacy**: Local-only processing, encrypted storage ## ๐Ÿ“ฆ Installation ### Prerequisites - Python 3.9 or higher - Tesseract OCR engine ### macOS Setup ```bash # Install Tesseract brew install tesseract # Clone the repository git clone cd prism-ai-screen-reader # Install Python dependencies pip install -r requirements.txt # Initialize the database python -m prism.core.database init # Run Prism python -m prism.main ``` ### Security Permissions (macOS) Prism requires screen capture permissions. When first running: 1. Go to System Preferences โ†’ Security & Privacy โ†’ Privacy 2. Select "Screen Recording" from the left sidebar 3. Add Terminal (or your Python environment) to the allowed applications ## ๐ŸŽฏ Usage ```bash # Start the Observer agent python -m prism.main --mode observer # View activity dashboard python -m prism.dashboard # Export activity data python -m prism.export --format json --date-range 7d ``` ## ๐Ÿ—บ๏ธ Roadmap ### โœ… Phase 1: Foundation (Current) - [x] Screen capture and OCR - [x] Basic activity classification - [x] Local data storage - [x] Simple time tracking - [ ] Dashboard interface ### ๐Ÿ”„ Phase 2: Intelligence Layer (Next) - [ ] Pattern recognition and work rhythm analysis - [ ] Automatic project detection - [ ] Productivity metrics and insights - [ ] Smart notifications and break reminders ### ๐Ÿ”ฎ Phase 3: Automation & Assistance - [ ] Workflow automation suggestions - [ ] Context-aware assistance - [ ] Resource recommendations - [ ] Meeting intelligence ### ๐ŸŒ Phase 4: Ecosystem Expansion - [ ] Specialized agent marketplace - [ ] Team collaboration insights - [ ] Health and wellness monitoring - [ ] Advanced integrations ## ๐Ÿ”’ Privacy & Security - **Local Processing**: All AI analysis happens on your device - **Encrypted Storage**: Sensitive data is encrypted at rest - **No Cloud Dependencies**: Works completely offline - **Granular Controls**: Fine-tune what data is collected and analyzed - **Data Ownership**: You own and control all your data ## ๐Ÿค Contributing We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details. ## ๐Ÿ“„ License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ## ๐Ÿ†˜ Support - ๐Ÿ“š [Documentation](docs/) - ๐Ÿ› [Issue Tracker](issues/) - ๐Ÿ’ฌ [Discussions](discussions/) ---

Built with โค๏ธ for productivity enthusiasts who value privacy