executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
caffeinePrevent the computer screen and system from falling asleep on macOS or Windows. Use when the user wants to keep their display awake, disable sleep, or run a long task without interruption.
Independent GitHub snapshot · Automated classification · Original documentation governs
Keeps your computer awake by preventing display and system sleep.
caffeinate -d
# Keep display awake until Ctrl+C
while ($true) {
$wsh = New-Object -ComObject WScript.Shell
$wsh.SendKeys('{SCROLLLOCK}{SCROLLLOCK}')
Start-Sleep -Seconds 60
}
Uses the built-in caffeinate command (no installation needed).
| Command | Effect |
|---|---|
caffeinate | Prevent sleep until terminated |
caffeinate -d | Prevent display from sleeping |
caffeinate -i | Prevent idle sleep |
caffeinate -s | Prevent system sleep (AC power only) |
caffeinate -t 3600 | Prevent sleep for 1 hour (seconds) |
caffeinate -d -t 1800 | Keep display on for 30 minutes |
Keep display on for 2 hours:
caffeinate -d -t 7200
Keep awake while a command runs:
caffeinate -i -- long-running-command
Run in background:
caffeinate -d &
# To stop later:
pkill caffeinate
Check if running:
pgrep -l caffeinate
Prevent sleep by simulating activity (Ctrl+C to stop):
while ($true) {
$wsh = New-Object -ComObject WScript.Shell
$wsh.SendKeys('{SCROLLLOCK}{SCROLLLOCK}')
Start-Sleep -Seconds 60
}
Disable sleep temporarily:
# Disable sleep on AC power
powercfg /change standby-timeout-ac 0
powercfg /change monitor-timeout-ac 0
# Re-enable later (e.g., 30 minutes)
powercfg /change standby-timeout-ac 30
powercfg /change monitor-timeout-ac 15
# Enable presentation mode (disables sleep + notifications)
presentationsettings /start
# Disable when done
presentationsettings /stop
# Prevent sleep for duration of script
Add-Type -AssemblyName System.Windows.Forms
while ($true) {
[System.Windows.Forms.Cursor]::Position = [System.Windows.Forms.Cursor]::Position
Start-Sleep -Seconds 60
}
caffeinate is built-in; process must stay runningpowercfg changes system settings