When I run long tasks with Codex, the moment I walk away the PC goes to sleep and by the time I'm back the task died long ago. Set it to never sleep and it just stays awake doing nothing, pure wasted power. What's worse, quota often only resets in the middle of the night — I'm not setting a 3am alarm just to crawl out of bed and click "continue".
Got fed up enough that I wrote a little tool called Agent Awake to fix exactly these two problems: while a task is running it holds Windows awake (screen off / locked doesn't matter), and when there's nothing running it leaves the machine alone to sleep; when quota runs out it lets the PC rest and wakes back up after the reset to keep going. These days I just check the results in the morning, haven't pulled an all-nighter since.
Written in pure Rust, no Electron, just a bit over 1.1M, sits in the tray with basically zero presence. Works with both Codex desktop and CLI, Antigravity is supported too — though the desktop version has no official way to resume a run, so it can only ping you at the reset time; that one really can't be forced.
Just released v0.1.0, unzip and run, no install needed. Anyone who's suffered the same thing can give it a try, and just open an issue if something's wrong.
https://github.com/LiangOptics/agent-awake
https://github.com/LiangOptics/agent-awake/releases/tag/v0.1.0
用 Codex 跑长任务的时候,人一走开电脑就睡了,回来任务早断了;改成永不睡眠吧,没活的时候也硬醒着,纯属浪费电。更折磨的是额度用完经常半夜才恢复,我总不能定个凌晨三点的闹钟爬起来点“继续”吧。
被折腾烦了,干脆自己写了个小工具叫 Agent Awake,专门治这俩毛病:有任务在跑就按住 Windows 不让休眠(息屏锁屏都不影响),没活的时候不管它,该睡睡;额度用完了就先让电脑歇着,等半夜恢复了再自己醒过来接着跑。反正我现在都是早上起来直接看结果,没起过夜。
纯 Rust 写的,没套 Electron,就 1.1M 多一点,缩在托盘里基本没存在感。Codex 桌面版和 CLI 都能用,Antigravity 也支持,只是桌面端没官方的续跑方式,只能到点提醒一下,这个实在没法硬编。
刚发了个 v0.1.0,解压就能跑,不用安装。被同样问题折磨过的可以试试,有问题直接提 issue 就行。
https://github.com/LiangOptics/agent-awake
https://github.com/LiangOptics/agent-awake/releases/tag/v0.1.0
Translated by AI from 简体中文Original (简体中文)
还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。
6 replies
Sort order