Build a local attention tracker with a focus mode that has teeth. Stack: a background recorder plus a local dashboard, SQLite, no network calls. Consider building on an existing open-source capture layer instead of writing OS hooks. Capture: active application, window title, and input activity, sampled every few seconds, stored run-length compacted. Classification: you define categories and assign a score from -2 to +2. Matching rules are ordered and the first match wins; each rule matches an application name or a window-title pattern. Ship **no** default classification — instead, ship a "classify the unclassified" screen that lists the applications and title patterns taking the most time so far, most time first, so ten minutes of work covers ninety percent of your days. Daily score: time-weighted mean of category scores, shown next to the raw hours so it can never be read without its own denominator. Focus sessions, the half that changes behaviour: - Start a session of N minutes with a chosen blocklist of applications and domains. - Blocking applications: detect the process and bring a full-screen reminder to the front rather than killing it — killing loses unsaved work and turns the tool into an enemy. - Blocking sites: rewrite the hosts file, with the original backed up first and restored on session end **and on process exit**, including a crash. Test that path deliberately; a tool that leaves your hosts file broken after a crash is worse than no tool. - A session can be ended early, but ending it requires typing a sentence you configured, and every early end is logged with the time and the elapsed portion. The friction is the feature; make it visible rather than punitive. - After each session, a one-question prompt: did you do the thing you meant to? Store the answer. Dashboard: today's timeline, category totals, score trend over four weeks, focus sessions completed against started, and the honest early-end count. Privacy: pause control, per-application title redaction, raw-sample retention window, and a wipe command. Write tests for first-match-wins rule ordering, for hosts-file restoration after an abrupt process exit, and for score computation with unclassified time excluded rather than counted as zero. Do not build cloud sync, a mobile app, or a shared team dashboard.