Awake Only While the Agent Works
Your agent's own hooks tell Lidlezz when a session starts, works, waits for a usage limit or finishes. There is nothing to switch on. Every three seconds Lidlezz asks one question, whether the Mac may sleep right now, and holds sleep off only while an agent is actually working.
Claude Code reports every step. Other agents report what they have.
claudemigrate billing to v3 · 412 tool callsbg QoSclaudewaiting for the usage limit to resetbg QoS