A year ago I added memory to my Emacs helper [0]. It was just lines in org-mode. I thought it was so stupid. It worked though. Sort of.

That's how a trillion dollar company also does it, turns out.

0: https://github.com/karthink/gptel