My hours now write themselves every 15 minutes, from a 4B model that never leaves my Mac
Описание и применение
Автоматизированный сбор и запись рабочего времени на Mac с использованием локальной модели Gemma 4, без передачи данных в облако.
Задача
The author could not track where hours were spent, had to guess timesheets, and disliked cloud apps watching screens.
Результат
Automated, privacy‑preserving daily time tracking on a Mac, eliminating manual logging and cloud dependencies.
Рабочий процесс
- Collect front app and window title every 10 s
- Collect git branch, commit subjects and changed file names every 5 min for selected folders
- Every 15 min run local Gemma 4 (e4b) via Ollama to convert slot into blocks
- Validate blocks with code checks (evidence, project, topic, summary rules)
- Generate card with where‑was, today, yesterday, hours per project
- Copy timesheet line to clipboard
- Write Markdown journal page and hours CSV at day end
Доказательства
Every 15 minutes Gemma 4 e4b, running in Ollama on the same Mac, turns each finished slot into blocks of work: a project, a topic and a short summary.
No screenshots, no keystrokes, no clipboard reading, no browser history, no file contents. Nothing leaves my Mac.
The collector reads the front app from NSWorkspace and the focused window's title through the Accessibility API.
- Дата записи: 2026-10-24T22:11:22.038Z