惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
B
Blog
D
Docker
C
Check Point Blog
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
WordPress大学
WordPress大学
Jina AI
Jina AI
罗磊的独立博客
月光博客
月光博客
博客园 - Franky
L
LangChain Blog
H
Help Net Security
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
小众软件
小众软件
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
That quote I half-remember at 2am? I can find it now.
Amadeo Bonde · 2026-05-22 · via DEV Community

gemma-brief: I built an AI that keeps up so I don't have to

I'm a broke college student. Base MacBook Air. No API budget. Constantly behind.

I follow too many YouTube channels. Research, tech, founders, stuff that actually matters. But I'm in class, I'm studying, I'm sleeping. By the time I get to a video it's been 3 days and I've already forgotten why I saved it. And rewatching to find that one quote I half-remember? Not happening.

The problem isn't that the content isn't good. The problem is I don't have time to absorb it. And when I do sit down, I can't remember what I already learned.

I needed something that could do the watching while I slept, and have answers ready when I woke up.

So I built gemma-brief.

It monitors the YouTube channels I care about, downloads new videos overnight, transcribes them locally with Whisper, summarises everything with Gemma 4 E4B running on Ollama, enriches with Wikipedia for context, and drops a formatted PDF into my Telegram. Every morning when I wake up, my briefs are waiting. And if I half-remember something from last week, I just ask.

Zero cloud. Zero cost. Runs on my base MacBook Air while I sleep.


Demo


What I Built

A fully local intelligence pipeline that turns YouTube uploads into structured briefs. On autopilot, overnight.

The flow:

  1. Add a YouTube channel to a playlist called gemma-brief
  2. Scheduler checks for new uploads every night at 02:00
  3. yt-dlp pulls the audio
  4. Whisper transcribes it locally, no OpenAI
  5. Gemma 4 E4B reads the full transcript (up to 32K tokens) and writes a structured brief
  6. Wikipedia enriches every person, company, and concept mentioned
  7. PDF gets built and lands in my Telegram

The brief is the same structure every time: TL;DR → The Thesis → Key Quotes → Wikipedia Context. I can read it in 2 minutes over coffee and know whether it's worth a full watch.

And there's a /explain command. Ask anything, like "/explain gemini spark", and it searches across every brief I've ever received and returns the exact voice clip with the timestamp. Not a text answer. The actual moment from the actual video.

Stack:

  • gemma4:e4b via Ollama
  • Whisper (local transcription)
  • yt-dlp
  • Python-Telegram-Bot
  • ReportLab (PDF)
  • Wikipedia API

The Output

This is what lands in my Telegram every morning. Three real briefs from three real channels, generated overnight, zero input from me.

Fireship brief (PDF)
Two Minute Papers brief (PDF)
Google I/O brief (PDF)

Every brief follows the same structure: TL;DR, The Thesis, Key Quotes, Wikipedia context on every person and company mentioned. I can read any of them in under 2 minutes and know if the video is worth going back to.

The Telegram bot also takes commands:

  • /explain [topic] searches everything you've ever received and returns the exact voice clip with the timestamp. Not a summary. The moment.
  • /list shows all your briefs
  • /search [query] full text search across your entire vault

Code

github.com/amadeobonde/gemma-brief

Open source. Clone it, point it at your channels, run gemma-brief run.


How I Used Gemma 4

Gemma 4 E4B is doing all the thinking, entirely on my machine.

The 32K context window is what made this viable. A 45-minute video transcribes to ~8,000 words. Gemma 4 reads the whole thing in one shot and produces a structured brief without me chunking anything or setting up retrieval pipelines.

response = ollama.chat(
    model='gemma4:e4b',
    messages=[{
        'role': 'user',
        'content': BRIEF_PROMPT.format(transcript=transcript, title=title)
    }]
)

Enter fullscreen mode Exit fullscreen mode

No LangChain. No vector DB. No API key. The model runs locally via Ollama and the output parses cleanly into PDF sections.

I also use Gemma 4 for /explain. Given a query and a set of brief excerpts, it identifies the most relevant moment and returns it with the timestamp.

32K context + local inference = no API costs, no rate limits, no data leaving my Mac

The E4B variant was the right call. Fast enough to process a full channel's weekly uploads in a nightly batch, small enough to run on a base M-series MacBook Air, smart enough that I actually trust the summaries.

I set it to run at 2am. By 8am, everything's been processed. I wake up, check Telegram, spend 10 minutes reading briefs instead of 3 hours watching videos I might not even finish.


The Real Problem I Solved

It's not about being lazy. It's about being realistic.

There's too much good content and not enough hours. I was either missing things entirely or watching at 2x speed and retaining nothing. Both felt like failure.

gemma-brief changed the equation. Now I can follow 10 channels seriously, actually remember what I learned, and go deep on the stuff that's worth it. No paid API, no cloud subscription, no machine I can't afford.

It runs while I sleep. The answers are there when I wake up.

Built for the Gemma 4 Challenge on DEV.to.