Hush: a local Gemma 2B notification filter that only interrupts for real emergencies
- Models & engines
- Ollama with a quantized Gemma 2B on CPU or Metal
- Key gotcha
- The 100% figures come from 15 staged test cases, not a large real-world sample.
What they built
Rajan Mishra wanted to turn off notifications without the worry of missing a hospital call, a fraud alert or a stranded family member. Hush ingests macOS notification center items and IMAP email and shows four lines every three hours, interrupting only when an event clears an emergency threshold.
Everything runs on the local machine with Gemma 2B through Ollama, because notifications carry one-time codes, bank balances, test results and family chats. The live instance runs at localhost:8484; the public web pages are a demo sandbox.
Setup
- Python 3.11+
- Ollama with a quantized Gemma 2B on CPU or Metal
- Temporal Python SDK for durable timers
- SQLite in WAL mode
- A plain CSS/JS dashboard
How it works
- Gemma only extracts urgency (0 to 1), a category (health, money, person, deadline, work, promo) and a deadline from each item.
- Python then computes a score as urgency times a fixed category multiplier times a deadline decay; health is weighted 1.00 and promo 0.05.
- Scores of 0.55 or more interrupt, 0.15 to 0.54 go into the three-hour brief, and lower scores go to a discard pile with an audit log.
- Temporal timers survive laptop sleep and run a one-time escalation if an emergency alert isn't acknowledged within 10 minutes.
Results & numbers
- On a staged drill of 10 emergencies and 5 hard negative controls, it caught all 10 and silenced all 5 at temperature 0.
- The author reports that during a week of testing, 147 pings and emails became three briefs, with a bank fraud alert and a server ping breaking through within 3.9 seconds.
Gotchas
- The 100% figures come from 15 staged test cases, not a large real-world sample.
- The author doesn't trust the model to decide whether the phone rings at 2am, which is why the final decision is deterministic code.
Do it yourself
- Install Ollama and pull a Gemma 2B model.
- Clone github.com/aiwithrajan/hush (MIT licensed) and follow its README to set up Python 3.11+ and Temporal.
- Connect macOS notifications and your IMAP mailbox.
- Open the local dashboard at http://localhost:8484.
- Review the discard pile's audit log to tune category weights and thresholds.
Similar setups
Slothsort: a local Gemma 3 agent that renames and files a messy Downloads folder overnight
Cody Topp built Slothsort, which uses Gemma 3 4B via Ollama plus Tesseract OCR to give every loose file a searchable name and folder, with a plan page before moving anything and a full undo.
Torpor: an overnight inbox digest that runs on Qwen3 8B and local embeddings
A developer built Torpor, a command-line tool that reads a night's worth of messages, sorts out the few that need a human, and writes a short summary, all with Ollama models on a laptop and no internet.
Gist: an offline exam-prep partner that mines past papers with Ollama
A student built Gist so a friend could study from lecture PDFs and three-plus years of past exam papers without uploading copyrighted course material anywhere; parsing, embeddings, search and the LLM all run on the laptop with Wi-Fi off.
A mock-interview coach where a local 4B model must quote you to mark you down
Yuva Kunaal built Local AI Interviewer, an open-source app that runs mock interviews on your own computer with qwen3.5:4b through Ollama and only reports a mistake when the model can quote it from your answer.