All projects

Inbox

A single-binary macOS Go CLI that syncs iMessage/SMS, Gmail, LinkedIn notifications, and X into a local SQLite database every 10 minutes via launchd for fast triage and AI-assisted review.

Stack: Go, SQLite, macOS launchd, Gmail & X APIs, CLI

What it is

Inbox is a personal, local-first macOS Go CLI compiled to a single binary (inbox). Every 10 minutes, a background launchd job syncs four sources into a local 0600 SQLite database: iMessage and SMS via local imsg JSON-RPC, Gmail via Gmail API v1, LinkedIn messages and comments parsed read-only from DMARC-verified Gmail notification emails, and X mentions and DMs via X API v2 with OAuth 2.0 PKCE.

The CLI normalizes incoming messages into threads with a six-state triage lifecycle (unread, needsreply, drafted, snoozed, triaged, done) and native deep-links back to each app. You or a local AI assistant can inspect status (inbox status), scan actionable threads (inbox list), spot unanswered threads over 24 hours (inbox list --waiting-on), search history offline (inbox search), and stage local drafts bound to a SHA-256 hash (inbox draft). Outbound sending is off by default, LinkedIn has no send path in code, and message bodies render inside explicit untrusted-data markers (<<<UNTRUSTEDMESSAGE>>>).

What problem it solves

Personal messages and follow-ups split across Apple Messages, Gmail, LinkedIn, and X. Checking four separate apps makes it easy to drop a reply or lose track of threads you are waiting on, while third-party multi-network chat bridges rely on session cookies that violate LinkedIn's Terms of Service and risk account bans.

Syncing everything locally into one SQLite file solves both problems without handing credentials to a middleman. One CLI gives fast offline search, groups rapid-fire texts into a single triageable thread, and lets local assistants review open conversations and draft replies while keeping final send approval gated behind explicit hashes and flags.

Current status

Personal local CLI tool in daily use on macOS (private repo, synced every 10 minutes via launchd with 90-day automatic body pruning and outbound sending disabled by default).