Build a personal activity monitor. It watches one machine — yours — and nothing leaves it. Be explicit in the README about scope: this is self-measurement. Deploying anything like it on other people's machines raises consent and employment-law obligations that differ by country and are not a technical matter. Stack: a small desktop agent plus a local web dashboard. Any language with OS-level window APIs; SQLite for storage; everything on localhost with no remote endpoint at all. The agent samples every few seconds and records: the active application, the window title, and whether input has occurred since the last sample. It never captures screen content and never records keystrokes — say so in the README and mean it. Derived measures: - **Idle**: no input for longer than a configurable threshold ends the current block. On return, prompt once for what that gap was, with options to discard it, mark it as a break, or assign it to a project. - **Sessions**: contiguous activity in one category, with a minimum length so a two-second glance at a browser does not fragment an hour of work. - **Context switches per hour**, which is a more honest attention measure than any single focus score. - **Categories**: you assign applications and window-title patterns to categories yourself. Ship no default classification — an inherited productivity rating is somebody else's opinion about your work. Privacy controls, first-class rather than an afterthought: - A pause button that stops sampling entirely, with the paused periods visible as such rather than silently missing. - Per-application title redaction: for chosen apps, store only the application name, never the window title. - Retention: raw samples are deleted after N days by default, leaving only the aggregates. Make N small. - One command that deletes everything. Dashboard: a day timeline, category totals, context switches per hour, and a week-over-week trend. CSV export. Write tests for idle detection at the threshold boundary, for session merging with a short interruption, and for retention actually removing raw rows. Do not add remote reporting, screenshots, keystroke logging, or any way to observe another machine.