A number of companies are developing tech that plugs into human brains, which can decode what’s going on in our minds and has the potential to erode mental privacy and supercharge authoritarian surveillance.