At an event in San Francisco, CEO Satya Nadella showed how its Windows operating system will be a box for AI agents, with many tasks running locally and not on cloud.