Yesterday I experienced lagging during a [[CoM - How to Build a Collective Brain with AI?|presentation]], then tried to diagnose the reason: 1. First I assigned it to problems with the internet (switching to hotspot) 2. and today to [[Claude agents]] as it was lagging in [[vscode]] as well 3. But what actually appeared was that the problem was [[Foam]] - which I tested on a [[CoM PMO AI Adoption|smaller repository]] (<10 files), - and then "accidentally" switched to my [[Theseus vault]] (including repositories - 23,985 markdown files, 55,970 files total, 1.2 GB). [[Foam]] failed to index such a large repository, and Claude analyzed the logs and wrote: > **Why it hurt so much**: at peak, VS Code held 11.5 GB, total memory was 21 GB of 24 GB used, and the machine went into swap (1.9 GB used, 342k swapouts). That's thrashing — which is why load hit 737 (those are I/O-blocked threads, not CPU work) and why everything, including scrolling, stuttered. For now I disabled the [[Foam]] plugin, and I see a high risk in developing [[CoM Indexer|own indexer]].