Show HN: NoSleepAgent – keep your MacBook awake until your agents finish (github.com)

🤖 AI Summary
A new tool called NoSleepAgent has been introduced, designed to prevent MacBooks from going to sleep while AI agents are performing tasks. This utility allows users to close the lid of their devices without interrupting ongoing processes, enabling seamless workflow with AI models like Claude Code and Codex. The underlying mechanism involves a root daemon that checks activity every 30 seconds and uses a simple timestamp system rather than a complex state machine to determine whether the system should remain awake or allow normal sleep. The significance of NoSleepAgent lies in its ability to enhance productivity for developers and researchers working with AI/ML models by eliminating interruptions that could occur from the MacBook's sleep function. The tool operates by disabling the sleep mode when the agents are busy and re-enables it once they become idle, making it particularly useful for long-running computations or data processing tasks. With straightforward installation and user control features, including an at-a-glance status icon, NoSleepAgent is positioned to streamline workflows in the AI community, making development smoother and more efficient.
Loading comments...
loading comments...