Featured image of post SCM: Local-First AI Search for macOS Photos and Video Frames, Private LLM Chat Built In

SCM: Local-First AI Search for macOS Photos and Video Frames, Private LLM Chat Built In

A macOS-native AI search tool enabling semantic image lookup, scene-level video search, and private offline LLM chat.

Core Announcement: SCM Open-Sourced with Homebrew Support

Core Announcement: SCM Open-Sourced with Homebrew Support
Core Announcement: SCM Open-Sourced with Homebrew Support|News screenshot

SCM (Search Computer Memory), a local-first AI search tool for macOS media, is now open-source and available via Homebrew. Designed for Apple Silicon Macs running macOS 12+, the project uses Bun as its package manager and Electron for packaging. All inference runs locally—zero accounts, no uploads, and full offline operation after initial model download. Key facts:

  • Installation: Homebrew Cask (brew install --cask allenv0/scm/scm);
  • Initial downloads: CLIP base model ~435MB; Whisper tiny.en ~150MB or base.en ~300MB for transcription;
  • OCR packs: English included; 36 languages supported (default includes English; additional languages可按需启用, ~2.4–5MB each);
  • Run commands: bun run dev for development; bun run dist for installer build;
  • Source: GitHub (https://github.com/allenv0/SCM)

Multi-Modal Search: Vision, Text, and Speech

SCM offers four independent search modes, each optimized for specific content types:

  • Visual Semantic Search: Local ONNX models (e.g., CLIP) generate image embeddings; natural-language queries score via cosine similarity with gated phrase/filename boosts and near-duplicate filtering. CJK queries use bigram overlap for better recall (e.g., “台北車站” matches both “台北” and “車站”).
  • OCR Text Search: Tesseract-based extraction stores word boxes for highlighting; robust to fractured addresses (e.g., [at], gmail,com), TLD splits, and dictated formats (“at” vs “@”, “dot” vs “.”). No visual model required—works while AI engine is offline.
  • Whisper Dialogue Search: Utterance-level transcripts enable three retrieval tiers: Exact Line (contiguous), Exact Words (single utterance or ≤8s window), and Words Spoken (anywhere in video). Clicking a result seeks directly to that timestamp.
  • Scene-Level Video Search: ffmpeg detects shot boundaries; segments embed midpoint frames with poster thumbnails. A noise gate filters gibberish matches; each video contributes at most 3 scenes.

An unexpected design tradeoff: OCR and speech search operate independently of visual models, ensuring baseline functionality remains available even when AI inference is warming up or disabled.

System Capabilities: Auto-Maintained Library & Smart Views

System Capabilities: Auto-Maintained Library & Smart Views
System Capabilities: Auto-Maintained Library & Smart Views|News screenshot

The tool emphasizes user control and privacy:

  • Smart Tab System: Built-in views (All/Videos/Screenshots/Email); Screenshots/Email toggleable in Settings. Saved queries (up to 20) are renamable and persist state (prompt + mode: Files/Scenes/OCR/Dialogue).
  • Rename-Proof Screenshot Classification: Four-tier signal system: 1) Manual override (right-click), 2) Filename vocabulary (30+ localized OS names), 3) PNG/EXIF metadata probe (reads “screenshot” in user comment fields), 4) Source-folder context.
  • Content-Hashed Deduplication & Watched Folders: SHA-256 inode-independent hashing; auto-watches imported folders with live fs.watch + launch-time resync. Retry logic capped at 3 attempts.
  • Model Hot-Swap & Library Snapshots: Five ONNX models supported; switching triggers background re-embedding with keyword-only fallback. Up to 10 named embedding snapshots (index + bins + scene/transcript sidecars) for rollback or “Fresh Start” reset.
ModuleDefault SizeOne-time DownloadSwitch Behavior
CLIP (Vision)~435MBYesRe-embeds library in background
Whisper tiny.en~150MBYesRe-transcribes all videos
Whisper base.en~300MBYesRe-transcribes all videos
OCR Language Pack2.4–5MBPer-languageNo reprocessing needed

Local LLM Chat: RAG on Extracted Evidence

An optional llama.cpp sidecar (enable in Settings → LLMs Chat) answers questions from indexed evidence without联网:

  • Sources: Dialogue lines, OCR text, filename keyword hits
  • Corpus Narrowing: /screenshots, /videos, /email prefixes filter scope before model invocation
  • UX: Streaming tokens with real-time tok/s display; numbered citations are clickable
  • Control: Stop button preserves partial answer; empty evidence short-circuits inference

This merges search results with summary generation, reducing context-switching for deep analysis workflows.

Who Should Try It—and Who Should Wait

Who Should Try It—and Who Should Wait
Who Should Try It—and Who Should Wait|News screenshot

Ideal for users with:

  • Search-heavy workflows (snapshots, video interviews, email threads);
  • Strict privacy requirements (no cloud trust assumptions);
  • Video editing needs (exact dialogue line定位).

Delay until later if you:

  • Use Intel Macs (Apple Silicon + macOS 12+ required);
  • Manage huge libraries (>100GB videos) where indexing time matters;
  • Rely on cross-device sync (no account system, fully local-only).

Final Notes

SCM represents a mature pivot in local AI: from isolated inference to persistent indexing, multi-modal retrieval, and private conversation. Its architecture—local First, opt-in intelligence, content-as-source-of-truth—demonstrates that privacy and capability can coexist. As ONNX Runtime and model efficiency improve, such tools may evolve into essential infrastructure for knowledge workers.