anti-sleep
Pass
Audited by Gen Agent Trust Hub on Jul 26, 2026
Risk Level: SAFE
Full Analysis
- [PERSISTENCE]: The skill utilizes the macOS launchctl utility to register a user-level LaunchAgent. This mechanism is employed to ensure the sleep-prevention process survives the agent's shell cleanup, which is a legitimate use for this functionality.\n- [DYNAMIC_EXECUTION]: The script dynamically generates a .plist configuration file. Potential risks are mitigated through strict input validation: durations and PIDs must be integers, and command flags are validated against a strict whitelist.\n- [COMMAND_EXECUTION]: The tool executes standard macOS binaries (caffeinate, launchctl, pmset) within the user's existing privilege level, avoiding any need for administrative access or sudo.
Audit Metadata