I started tracking everything I ate three years ago and even posted about it via this comment: https://news.ycombinator.com/item?id=32552288
I updated it substantially via AI this summer (includes micros, compounds, and various other stats and a webpage with charts now) and then I started making diet changes based on these new features. Is really neat to compare data from before and after those changes. And like you suggested, I keep making improvements to the system and to myself and it becomes really satisfying / motivational.
Is still driven by simple text files.