My manual workflow was not optimal. JSON metadata for AI wasn't clean and contained "trash" - unnecessary fields that just bloat up the context window.
I created a script to clean metadata to keep only relevant data.
I wrapped it all into chrome extension that I was using locally for my analyze and summarize purposes of long threads to extract valuable information.