Skip to content

**Product Name**: Sam (macOS AI Assistant) **Development Approach**: AI-First with Strategic Human Oversight **Timeline**: 16 weeks (4 months) to MVP **Budget**: $15K-25K (tools, services, minimal human consultation) **Target**: Functional AI assistant with 25-30 core tasks

License

Notifications You must be signed in to change notification settings

code-craka/sam-aI-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Sam - macOS AI Assistant

Sam AI Assistant

Your intelligent macOS assistant that performs actual tasks

License: MIT Swift macOS Version

Overview

Sam is a native macOS AI assistant that represents a new paradigm of human-computer interaction. Unlike traditional AI assistants that only provide instructions, Sam actually performs tasks through deep system integration and natural language commands.

Key Features

  • 🎯 Task Execution: Actually performs tasks vs. instruction-giving
  • πŸ”’ Privacy-First: Local processing with minimal cloud dependencies
  • 🍎 Native Integration: Deep macOS system and app integration
  • 🧠 Contextual Intelligence: Learns and adapts to user workflows
  • πŸ’¬ Real-time Streaming: Character-by-character response streaming
  • ✏️ Message Management: Edit and delete messages with full history
  • 🎨 Modern UI: Native SwiftUI interface with accessibility support

Quick Start

Requirements

  • macOS 13.0 (Ventura) or later
  • Xcode 15.0 or later
  • Apple Silicon or Intel Mac

Installation

  1. Clone the repository:
git clone https://github.com/sayemrihan/sam-macos-ai-assistant.git
cd sam-macos-ai-assistant
  1. Open the project in Xcode:
open Sam/Sam.xcodeproj
  1. Build and run the project (⌘R)

First Launch

  1. Grant necessary permissions when prompted
  2. Configure your AI preferences in Settings
  3. Start chatting with Sam!

Usage Examples

File Operations

"Copy file.pdf to Desktop"
"Organize my Downloads folder"
"Find all .txt files in Documents"

System Queries

"What's my battery level?"
"Show me storage usage"
"List running applications"

App Control

"Open Safari and go to apple.com"
"Close all Chrome windows"
"Switch to Finder"

Automation

"Create a workflow to backup my photos"
"Set up a daily reminder at 9 AM"
"Automate my morning routine"

Architecture

Sam is built with a modern, privacy-first architecture:

  • Frontend: Native SwiftUI with MVVM pattern
  • AI Processing: Hybrid local/cloud processing
  • Data Storage: Core Data with encryption
  • System Integration: Native macOS APIs and AppleScript
  • Performance: <200MB memory baseline, <2s response time

Development

Project Structure

Sam/
β”œβ”€β”€ Models/           # Data models and Core Data
β”œβ”€β”€ Views/            # SwiftUI views and UI components
β”œβ”€β”€ Managers/         # Business logic and state management
β”œβ”€β”€ Services/         # External integrations and system APIs
β”œβ”€β”€ Utils/            # Helper functions and extensions
└── Resources/        # Assets and configurations

Building from Source

  1. Install dependencies:
# Install SwiftLint for code quality
brew install swiftlint

# Install SwiftFormat for consistent formatting
brew install swiftformat
  1. Run code quality checks:
swiftlint lint --config .swiftlint.yml
swiftformat Sources/ --config .swiftformat
  1. Build and test:
xcodebuild -project Sam.xcodeproj -scheme Sam -configuration Debug build
xcodebuild test -project Sam.xcodeproj -scheme Sam -destination 'platform=macOS'

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests and code quality checks
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Privacy & Security

Sam is designed with privacy as a core principle:

  • Local Processing: 80%+ of tasks processed locally
  • Minimal Cloud Data: Only complex queries sent to external services
  • No Training Data: Your data is never used for AI model training
  • Encryption: Local data encrypted at rest
  • Transparency: Full control over data sharing preferences

Roadmap

See our Project Roadmap for upcoming features and improvements.

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Sayem Abdullah Rihan

Acknowledgments

  • Apple for the excellent macOS development frameworks
  • The Swift community for amazing tools and libraries
  • Beta testers and early adopters for valuable feedback

Made with ❀️ by Sayem Abdullah Rihan

About

**Product Name**: Sam (macOS AI Assistant) **Development Approach**: AI-First with Strategic Human Oversight **Timeline**: 16 weeks (4 months) to MVP **Budget**: $15K-25K (tools, services, minimal human consultation) **Target**: Functional AI assistant with 25-30 core tasks

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published