SpecStory provides that solution through export of chat etc. it can be automatically referenced by Cursor as its in your files.