Notes on building and running AI agents