Start your agent, close your laptop, and put it in your bag. Your Mac will go to sleep once the agent completes the work or if the battery falls below a certain percentage.
I was using the pmset command, but I would almost always forget to turn it off, and my Mac would end up dead in the morning.
I promise i will release this one soon 🥲