{"slug": "hush-i-hid-10-emergencies-in-my-own-notifications-an-on-device-gemma-os-found-10", "title": "Hush: I Hid 10 Emergencies in My Own Notifications. An On-Device Gemma OS Found All 10.", "summary": "A developer built Hush, a fully on-device attention router that ingests macOS notifications and IMAP email, classifies them with a locally run Gemma 2B model via Ollama, and scores urgency against a deterministic cost model. The system surfaces four lines every three hours and only interrupts the user when a message clears an emergency threshold of 0.55, with everything else queued or discarded into an audit log. In a staged test, Hush reportedly caught all 10 planted emergencies spanning health, banking fraud, and family scenarios without sending notification content off the machine.", "body_md": "*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady](https://dev.to/challenges/hacktoberfest-week3-2026-10-19)*\n\nModern devices bombard us with over 120 notifications every day. Every ping fractures our focus, spikes cortisol, and creates constant cognitive fatigue. Yet we cannot simply turn on \"Do Not Disturb\" because of the lingering anxiety: *What if the hospital calls? What if my card is charged fraudulently? What if my family is stranded?*\n\n**Hush** is a 100% local, on-device attention operating system. It ingests every incoming notification (macOS notification center, WhatsApp, Slack, Teams, SMS) and background IMAP emails, evaluates them against an inspectable deterministic attention cost model using a local open-weight **Gemma 2B** model, and presents exactly **four lines every three hours**. \n\nHush breaks your silence **only** when an incoming event clears a strict emergency threshold ($T_{\\text{high}} \\ge 0.55$) — such as a hospital admission, banking fraud alert, or family roadside breakdown. Everything else is quietly queued into your 3-hour brief or silently discarded with a transparent audit log.\n\n**Who gets to be lazy?**\n\nKnowledge workers, software engineers, writers, and deep-work practitioners. You get to be productively \"lazy\" by never checking your notification shade again, knowing an unblinking local guardian will wake you up if and only if your real world is on fire.\n\n*Note on Live Web Demos*: The interactive web dashboard runs in demo sandbox mode on Vercel/GitHub Pages with zero installation required, while your live production instance runs strictly on-device on your local machine (`http://localhost:8484` / mobile LAN) to guarantee 100% data privacy.\n\n**A local attention router that reads every notification so you only have to read four.**\n\n🌐 **Live Web App (Vercel)**: [https://hush-ai-os.vercel.app](https://hush-ai-os.vercel.app)\n\n🌐 **Mirror (GitHub Pages)**: [https://aiwithrajan.github.io/hush/](https://aiwithrajan.github.io/hush/)\n\n🎥 **Demo Video (1080p)**: `hush_demo_1080p.mp4`\n\nBuilt for the **Hacktoberfest Open-Source AI Challenge, Week 3 — \"Slow and Steady\"**.\n\n**Hush** is an on-device attention router. It reads every notification your Mac receives, ranks them against an inspectable deterministic cost model, and presents exactly **four lines every three hours**. It interrupts you only when an incoming message clears a threshold high enough to justify breaking your silence ($T_{\\text{high}} = 0.55$).\n\nEverything runs locally on-device using an open-weight **Gemma** model via **Ollama**. No notification bodies, titles, or message contents ever leave the machine.\n\nHush is defined by an empirical test, not a feature list:\n\n**10 staged emergencies** spanning health, banking fraud, family…\n\nHush is built with a rock-solid, zero-trust architecture designed around two foundational pillars:\n\n```\n[ macOS Notification DB ] ──┐\n                            ├──> [ Ingestion Engine ] ──> [ SQLite WAL DB ]\n[ Direct IMAP Email SSL ] ──┘                                    │\n                                                                 ▼\n[ Gemma 2B (Local Ollama) ] <────── Prompts ───────────── [ Classifier ]\n        │\n        ▼ (urgency, category, deadline)\n[ Deterministic Cost Scorer ]\n        │\n        ├─► [ Emergency (Score ≥ 0.55) ] ──> [ Temporal Never-Nag-Twice Escalation ]\n        ├─► [ 3-Hour Brief (0.15 - 0.54) ] ──> [ Quota Router: 4 Lines / 3 Hours ]\n        └─► [ Discard Pile (< 0.15) ] ─────> [ Transparent Audit Log ]\n```\n\nWe run Google's **Gemma 2B** quantized model on local CPU/Metal inference via **Ollama**. No cloud APIs. Zero monthly tokens. Zero external latency.\n\nGemma extracts three atomic variables from every notification without seeing private user IDs:\n\n`health`, `money`, `person`, `deadline`, `work`, `promo`)\nLarge Language Models are probabilistic and can hallucinate. You cannot trust an LLM to directly decide whether your phone rings at 2:00 AM.\n\nHush enforces a strict **Determinism Boundary**:\n\n`health: 1.00`, `money: 0.90`, `promo: 0.05`), and deadline decay exponentially increases weight as real-world cutoffs approach.\nHush relies on **Temporal** durable execution for capabilities impossible with basic Python scripts:\n\n`asyncio.sleep` drifts or dies. Temporal's durable timers preserve state in persistent storage. When your laptop wakes up, execution resumes without skipped cadences.`activity_classify_pending`, ensuring zero notification drops.\nBefore trusting Hush, we built an empirical **Notification Fire Drill** into the core engine. We staged **10 real-world emergencies** (ER hospitalization, Chase fraud, stranded sister, production database failover) and **5 hard negative controls** (*\"50% Off Flash Sale\"*, funny WhatsApp memes with *\"EMERGENCY 😂\"*, routine Jira tickets).\n\nThe local Gemma + Temporal engine scored:\n\nOpen innovation is not just an ideological choice for Hush; **it is the only architecture that makes this product legally, ethically, and technically viable.**\n\nThis project was built through autonomous agent pair-programming:\n\n`FLPM6kshMRqqZ2uqq6FN1byt`\nDuring testing this week, Hush turned **147 raw pings and emails** into just **three 4-line briefs**:\n\n**Quantified time saved**:\n\nThe average recovery time after a context switch is 23 minutes. By reducing daily interruptions from 25+ to zero non-emergency interruptions, Hush saves an estimated **1.5 to 2 hours of fractured attention every single day**. You get to be lazy about managing pings, so your brain can stay in effortless flow.", "url": "https://wpnews.pro/news/hush-i-hid-10-emergencies-in-my-own-notifications-an-on-device-gemma-os-found-10", "canonical_source": "https://dev.to/rajan_mishra_a9f78ad216b4/hush-i-hid-10-emergencies-in-my-own-notifications-an-on-device-gemma-os-found-all-10-m3g", "published_at": "2026-10-23 04:03:04+00:00", "updated_at": "2026-10-23 04:11:48.507454+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-agents", "ai-tools", "ai-safety"], "entities": ["Hush", "Gemma 2B", "Ollama", "Google", "Vercel", "GitHub Pages", "Hacktoberfest"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/hush-i-hid-10-emergencies-in-my-own-notifications-an-on-device-gemma-os-found-10", "markdown": "https://wpnews.pro/news/hush-i-hid-10-emergencies-in-my-own-notifications-an-on-device-gemma-os-found-10.md", "text": "https://wpnews.pro/news/hush-i-hid-10-emergencies-in-my-own-notifications-an-on-device-gemma-os-found-10.txt", "jsonld": "https://wpnews.pro/news/hush-i-hid-10-emergencies-in-my-own-notifications-an-on-device-gemma-os-found-10.jsonld"}}