Thank you for the update.
I used to use MS FoxPro. It kept a running text file of all keyboard activity, which it opened with each startup. That's the “model” I was thinking of. It was great for referring to “the query I ran last week.”
Yes, I know I could save the daily activity manually, but I have a very good reason for not doing so: I'm lazy 🙂