One next action
Write the smallest useful task the agent can complete. If it needs broader scope, the correct behavior is to stop and say why.
One more prompt loop
The fix is not more willpower. It is a bounded run: one task slice, hard stop rules, host heartbeat, and a morning receipt.
Write the smallest useful task the agent can complete. If it needs broader scope, the correct behavior is to stop and say why.
Set a wall-clock cap, retry cap, max diff size, and baseline test requirement. Good overnight work fails closed.
Require files changed, commands run, failed checks, stop reason, host heartbeat, battery, heat, and restored sleep settings.
Host heartbeat
Run this next to the agent. Missing timestamps mean the host failed, not that the agent made no progress.
while true; do date >> ~/sleep-friendly-agent-host.log; sleep 30; done
Take A Coffee gives Codex temporary awake mode, battery and heat checks, restore step, and a receipt for local macOS and Windows runs.