Native Apple ecosystem AI assistant. Runs on-device, costs nothing, learns your preferences.
Super lightweight. Designed to be invisible. Learns from you. Grows with you. Task-specific. Makes your life easier without replacing your brain.
Platforms: macOS (menu bar daemon) • iOS (Share Sheet) • iPadOS (Split View)
What's happening: Full rewrite from TypeScript → Swift for native Apple ecosystem integration.
What works: Architecture design, research complete, Swift foundation started.
What's coming:
- Phase 1: macOS daemon (LaunchAgent, FSEvents, Core ML)
- Phase 2: iOS Share Extension (screenshot renaming, OCR, privacy redaction)
- Phase 3: iPadOS enhancements (Split View, Drag & Drop)
- Phase 4: CloudKit sync (results across devices)
Timeline: Phase 1 (Q1 2026), iOS beta (Q2 2026), App Store (Q3 2026)
⭐ Star this repo to follow Swift development.
Imagine you take a screenshot on iPhone. tinyArms reads it via Share Sheet, extracts text via OCR, and offers 3 intelligent names:
Screenshot_2025-11-02.png
tinyArms suggests:
1. hero-section-mobile-v1.png
2. landing-page-screenshot.png
3. website-mockup-draft.png
You pick #1 (or type your own).
tinyArms learns: "This user prefers structured names with platform + version."
Next screenshot → Better suggestions. Every choice trains the system.
Cross-device sync: Rename on iPhone, search from Mac via Spotlight (CloudKit sync).
macOS: Menu bar daemon, Spotlight indexing, Quick Look previews iOS: Share Extension, Shortcuts/Siri, Widgets, Live Activities iPadOS: Split View, Drag & Drop batch processing Sync: CloudKit (results searchable across all devices)
- macOS: Local LLM inference (Ollama or MLX Swift)
- iOS/iPadOS: Core ML models (SmolLM2-360M, MobileBERT, CLIP)
- No cloud: Your code, files, data never leave your devices
- No API keys: No OpenAI/Anthropic accounts needed
- No subscriptions: Free tier forever (Pro tier optional for advanced skills)
Model stack:
- macOS: Qwen2.5-Coder-3B via Ollama or MLX Swift (1.9GB)
- iOS: Core ML SmolLM2-360M (250MB, Apple Neural Engine optimized)
Not everything needs AI. 🦖 tinyArms routes tasks intelligently:
Level 0: Deterministic Rules (<1ms, 60-75% of tasks)
- Hardcoded color detection: bg-[#3B82F6]
- File type detection, kebab-case formatting
↓ (no match)
Level 1: Semantic Routing (<100ms, 20-25% of tasks)
- Core ML embeddings (MobileBERT 100MB)
- Intent classification, similarity search
↓ (complex task)
Level 2: On-Device LLM (2-3s, 10-15% of tasks)
- macOS: Qwen2.5-Coder-3B (code linting, refactoring)
- iOS: SmolLM2-360M (grammar, simple rewrites)
↓ (deep analysis)
Level 3: Optional Large Model (10-15s, <5% of tasks)
- macOS: Qwen2.5-Coder-7B (architectural violations)
- iOS: Cloud fallback (optional, explicit user consent)
Result: Simple tasks instant, complex tasks 2-3s. Best of both worlds.
Planned for Phase 5: Adaptive prompts that improve through user feedback.
- Accuracy drops? System generates 3 new prompt variants (offline)
- You vote on outputs (Thompson Sampling A/B test)
- Best prompt auto-promoted
- 99% offline, <$0.06/year cloud cost
Reference: ideas/future-prompt-evolution.md
| Platform | RAM | Storage | Performance |
|---|---|---|---|
| macOS | 8GB (16GB recommended) | 2-6GB models | M1+ (Apple Silicon required) |
| iOS | 4GB+ | 500MB-1GB models | iPhone 12+ (A14+ for Neural Engine) |
| iPadOS | 6GB+ | 500MB-1GB models | iPad Pro 2020+ or iPad Air 4+ |
Platforms: macOS 13.0+ (Ventura), iOS 17.0+, iPadOS 17.0+
# Download from GitHub Releases
open TinyArms-macOS-v0.2.0.dmg
# Grant permissions (LaunchAgent, File Access, Spotlight)
# Menu bar icon appears → Ready
# Or build from source:
git clone https://github.com/nqh/tinyArms
cd tinyArms
open TinyArms.xcodeproj
# Build & Run (Cmd+R)1. Install TestFlight from App Store
2. Scan QR code (beta invite)
3. Open tinyArms app
4. Take screenshot → Share → tinyArms
5. Rename suggestion appears → Tap "Apply"
-
code-linting (macOS)
- Pre-commit hook integration
- Detects: hardcoded colors, magic numbers, file size >350 LOC
- Speed: 2-3s per file (Qwen2.5-Coder-3B)
-
privacy-redaction (iOS/macOS)
- Auto-detect PII (emails, phone numbers, API keys)
- Blur before sharing (Share Extension integration)
- Pre-commit hook (block commits with secrets)
-
context-aware-clipboard (macOS)
- Semantic search clipboard history (MobileBERT embeddings)
- Auto-format on paste (URL → markdown, JSON → pretty-print)
-
file-naming (iOS/macOS)
- Screenshot → descriptive names
- Learns from your choices (prompt evolution)
- 00-SWIFT-QUICKSTART.md - 5-minute Xcode setup
- 01-SWIFT-ARCHITECTURE.md - TinyArmsKit package structure
- 02-MACOS-DAEMON.md - LaunchAgent, FSEvents, menu bar
- 03-IOS-PLATFORM.md - Share Extension, Shortcuts, Widgets
- 04-IPADOS-PLATFORM.md - Split View, Drag & Drop
- 05-COREML-MODELS.md - Model conversion, Neural Engine
- 06-CLOUDKIT-SYNC.md - Cross-device sync architecture
- 08-APP-STORE-DEPLOYMENT.md - Code signing, TestFlight
- research/ - Tiered routing, confidence scoring, semantic caching (11 papers)
- research/06-apple-foundation-models-integration.md - Apple FM vs tinyArms analysis
- Swift architecture design
- Research complete (tiered routing, industry validation)
- Xcode project setup (TinyArmsKit package)
- LaunchAgent daemon
- FSEvents file watching
- Ollama/MLX Swift integration
- Menu bar app (SwiftUI)
- Share Extension (image, text, file input)
- Core ML models (SmolLM2-360M, MobileBERT)
- Result UI (SwiftUI card)
- CloudKit sync (basic)
- Split View support
- Drag & Drop batch processing
- Shortcuts integration (Siri)
- Widgets + Live Activities
- Code signing + notarization
- TestFlight public beta
- App Store submission
- StoreKit 2 (subscriptions)
Like a T-Rex: Small arms, but surprisingly capable when working WITH larger tools.
tinyArms doesn't replace your brain or workflow. It's the invisible AI assistant that learns your preferences, handles repetitive tasks, and gets better over time—without you thinking about it.
Platform-first: Designed for how you already work (Share Sheet, Shortcuts, Spotlight, menu bar).
See CONTRIBUTING.md for Swift development setup.
Requirements:
- Xcode 15.0+ (macOS Sequoia SDK)
- Apple Developer account ($99/year for code signing)
- Swift 5.9+
- macOS 14.0+ (development machine)
MIT 🦖
Native Apple ecosystem. On-device ML. Learns from YOU.
