{"slug": "roastguard-v2-2-0-automating-self-discipline-with-google-gemma-4-when-you-re-too", "title": "RoastGuard v2.2.0: Automating Self-Discipline with Google Gemma 4 When You're Too Lazy to Stop Doomscrolling 🦥", "summary": "A developer released RoastGuard (Doom Roast) v2.2.0, an open-source MIT-licensed Android app that uses Google's open-weight Gemma 4 model to generate context-aware overlay roasts when users exceed time limits on Instagram, YouTube Shorts, Reddit, or TikTok. The update adds a four-tier sanitization pipeline to strip leaked <think> reasoning tokens from model output and an asynchronous prefetch cache that dispatches overlays with 0ms latency, with Groq-hosted Llama 3 or Gemma as a fallback provider.", "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\nDoomscrolling is a trap of cognitive exhaustion. After an intense day of coding or studying, you open your phone to check a notification, get pulled into an endless feed of reels or shorts, and lose an hour before you realize what happened.\n\nYour brain knows you need sleep, but closing the app requires mental willpower—and when you’re drained, **you are simply too lazy to discipline yourself.**\n\nMost digital wellbeing tools fail because they demand *more* active effort:\n\nIn honor of **International Sloth Day**, **RoastGuard (Doom Roast) v2.2.0** turns this dynamic upside down: **Let an open-weight AI do the hard work of disciplining you so you don't have to lift a finger.**\n\nRoastGuard is an automated Android anti-doomscrolling companion. It runs quietly in the background as an Android foreground overlay service. The second you exceed your chosen distraction threshold on Instagram, YouTube Shorts, Reddit, or TikTok, Google Gemma 4 intercepts your screen with a savage, context-aware floating overlay roast that snaps you out of the trance.\n\nWho gets to be lazy? **You do.** You don’t have to summon willpower or manage timers. The AI does the heavy lifting of breaking your screen addiction.\n\n`Mild`, `Medium`, `Savage`, or `Nuclear`).\nThe entire project is open-source under the permissive MIT license:\n\n**The app that roasts you for doomscrolling.**\n\nDoom Roast monitors your screen time on social media apps and delivers brutally honest roast overlays when you exceed your time limit. It's the productivity app you didn't ask for, but desperately need.\n\n*(Direct repository link: [https://github.com/YadneshTeli/roast_guard](https://github.com/YadneshTeli/roast_guard))*\n\nThe **v2.2.0 update** transforms RoastGuard from a basic timer into an intelligent, open-weight mobile guardian. Here is the technical architecture behind it:\n\nWe integrated Google's **Gemma 4** as the primary intelligence engine. Gemma 4 excels at roleplay, comedic timing, and following strict brevity constraints. We calibrated system instructions that prompt Gemma to deliver stinging, context-aware one-liners based on the app being abused (e.g., calling out endless reels vs. doomscrolling Twitter arguments).\n\n`<think>` Reasoning Token Leaks\nNewer open-weight reasoning models often emit internal chain-of-thought tokens (`<think>...</think>`). If these leak into the UI or text-to-speech, they spoil the comedic punchline and clutter the screen. In v2.2.0, we engineered a multi-tiered sanitization pipeline:\n\n`OverlayService.kt` renders the text view.\nWaiting 2–3 seconds for an LLM response when an overlay needs to trigger ruins the intervention. RoastGuard uses an asynchronous Riverpod prefetch pipeline: as soon as you change your threshold or AI settings, Gemma pre-generates a pool of roasts in the background, caching them locally so overlay dispatch is **0ms instantaneous**.\n\n``` php\nflowchart TD\n    User([📱 User scrolling Reels / Shorts]) -->|Exceeds Time Threshold| Tracker[⏱️ Screen Time Monitor<br>Android UsageStats API]\n\n    Tracker -->|Trigger Event| Router{⚡ AI Provider Router}\n\n    Router -->|Primary: Open Weights| Gemma[💎 Google Gemma 4<br>Open-Weight Inference]\n    Router -->|Secondary: High Speed| Groq[🚀 Groq API Llama 3 / Gemma]\n\n    Gemma -->|Raw Stream| Sanitizer[🛡️ 4-Tier Reasoning Sanitizer<br>Strips think tokens]\n    Sanitizer --> Cache[(💾 In-Memory & SharedPrefs Cache)]\n\n    Cache -->|Immediate 0ms Trigger| Overlay[🚨 Native Floating Overlay<br>Kotlin OverlayService.kt]\n    Overlay -->|Savage Reality Check| User\n```\n\nProprietary wellness tools (like Opal or Forest) charge up to $100/year and upload your intimate app-usage habits to remote corporate analytics servers.\n\nAn open-source, open-weight approach is essential for this use case:\n\nThis update was planned, architected, and built with AI pair programming using DevRelay. You can inspect the entire interactive transcript, tool invocations, and code modifications here:\n\n*(Direct session transcript link: [https://dev.to/agent_sessions/building-roastguard-automating-self-discipline-with-google-gemma-4-15nlz9](https://dev.to/agent_sessions/building-roastguard-automating-self-discipline-with-google-gemma-4-15nlz9))*\n\nHow much effort does RoastGuard actually save?", "url": "https://wpnews.pro/news/roastguard-v2-2-0-automating-self-discipline-with-google-gemma-4-when-you-re-too", "canonical_source": "https://dev.to/yadneshteli/roastguard-v220-automating-self-discipline-with-google-gemma-4-when-youre-too-lazy-to-stop-7b2", "published_at": "2026-10-26 04:08:48+00:00", "updated_at": "2026-10-26 04:13:54.815998+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "ai-agents", "developer-tools"], "entities": ["RoastGuard", "Google", "Gemma 4", "Groq", "Llama 3", "YadneshTeli", "Android", "Hacktoberfest"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/roastguard-v2-2-0-automating-self-discipline-with-google-gemma-4-when-you-re-too", "markdown": "https://wpnews.pro/news/roastguard-v2-2-0-automating-self-discipline-with-google-gemma-4-when-you-re-too.md", "text": "https://wpnews.pro/news/roastguard-v2-2-0-automating-self-discipline-with-google-gemma-4-when-you-re-too.txt", "jsonld": "https://wpnews.pro/news/roastguard-v2-2-0-automating-self-discipline-with-google-gemma-4-when-you-re-too.jsonld"}}