Home / use case

Torpor: an overnight inbox digest that runs on Qwen3 8B and local embeddings

At a glance
Models & engines
Ollama serving nomic-embed-text for embeddings and qwen3:8b for the summary, on localhost:11434
The chat model is swappable with the TORPOR_CHAT_MODEL environment variable; the author also tested Gemma 3
Key gotcha
A fixed similarity threshold only caught 1 of 3 real urgent messages in testing, because cosine similarity on short text clusters tightly.

What they built

Torpor is a lazy, fully local overnight inbox digest. Instead of reading every message that arrived overnight, you run one command and it reads them for you using only open-weight models on your own machine, then tells you which messages actually need you and which can wait.

It also has a small knowledge-bot mode: point it at any folder, ask a question in plain English, and it finds the relevant parts and answers with file-and-line citations, using the same embed-then-answer pipeline pointed at files instead of messages.

The author's reasoning for keeping it local is that an overnight digest is by definition a summary of everything you haven't read yet, and sending that to someone else's model every night is a real privacy cost.

Setup

  • Ollama serving nomic-embed-text for embeddings and qwen3:8b for the summary, on localhost:11434
  • A Node.js app started with npm start
  • Input is a JSON file of messages
  • The chat model is swappable with the TORPOR_CHAT_MODEL environment variable; the author also tested Gemma 3

How it works

  1. Each message is embedded locally and scored by meaning against a handful of 'this needs a human' reference phrases, not by keyword matching.
  2. Messages are split into 'needs you' and 'can wait' using an adaptive threshold: the inbox's own mean score plus half a standard deviation.
  3. A local model then writes a 2 to 3 sentence summary of what actually matters, followed by a ranked list of messages with their scores.
  4. The ask mode chunks a folder, embeds it locally, and answers questions with citations.

Results & numbers

  • On the 10-message demo inbox it flagged 3 messages (an NDA signature, an overdue invoice and a failed production deploy) and the whole run took a few seconds on a laptop, offline.
  • Both the digest and the ask command worked end to end with Gemma 3, though Gemma tended to answer in numbered lists where qwen3:8b wrote flowing sentences.

Gotchas

  • A fixed similarity threshold only caught 1 of 3 real urgent messages in testing, because cosine similarity on short text clusters tightly.
  • The split is a simple statistical heuristic, not a trained classifier; it missed a security alert in testing that landed just under the threshold. The author calls it good enough for a weekend build, not a production safety net.
“Your messages never leave your machine.”— chiragmangaldev3112

Do it yourself

  1. Install Ollama and pull qwen3:8b and nomic-embed-text.
  2. Export your messages to a JSON file.
  3. Embed each message and score it against a few reference phrases that describe what needs your attention.
  4. Use the inbox's own score distribution (for example mean plus half a standard deviation) as the cutoff instead of a fixed number.
  5. Send the flagged messages to the local chat model and ask for a short summary of what matters.
  6. Clone the project from github.com/chiragmangaldev3112/torpor to start from working code.
ollama pull qwen3:8b
ollama pull nomic-embed-text
npm start
Source: chiragmangaldev3112 (DEV Community) · Published 2026-10-23 · Added 2026-10-23. This write-up summarizes the original source; see it for full details.

Similar setups

PatchPal TinyAgent: a coding agent on a 4B model and a 6GB laptop GPU

WiseProbe adapted its PatchPal coding agent to run Gemma 4 E4B or Qwen3.5 4B through Ollama on a 6GB RTX A1000, using handoff-note compaction and capped file reads to work inside a 16K or 32K window.

WiseProbe Blog · 2026-11-25

Local AI: a one-click Windows app that picks a model for your PC and sets up Ollama for friends

Tired of setting up local LLMs for friends, a developer built a free MIT-licensed Windows app that detects your GPU and RAM, installs Ollama without admin rights, pulls a fitting model and opens a private chat.

Oleg Che (DEV Community) · 2026-11-04

A €200 mini PC as an offline AI box: a week with Gemma and Qwen

Diogo Soares ran Gemma 4 E4B and Qwen2.5-Coder 7B on a cheap NiPoGi P1 mini PC firewalled off the internet, used it from his Mac for a week, and measured what was fast and what wasn't.

Diogo Soares (DEV Community) · 2026-10-30

Getting OpenCode to work with a local Ollama model by fixing the 4,096-token context

OpenCode on a local Ollama model ignored files, invented tasks or looped, because each ~23k-token request was silently cut to fit Ollama's default 4,096-token context on a 16 GB GPU.

DEV Community (Davidrs) · 2026-11-27