A new milestone reached! I've completed the telemetry collection functionality for Windows, with Linux following shortly. It has been a fun experiment to figure out when a user is working with programming tasks vs other activities on their computer. And I believe I've found a good way.
The client also handles authentication against the online service so that it's authorized to send in telemetry data for a user.