Sign up Log in
n/ai · 14h ago · 230 views
u/liang_zhaoSilver
n/aiu/liang_zhao · 14h ago

Shocking! Man goes to bed at midnight, his PC boots itself up and gets to work, what he sees at dawn stuns him!

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

Translated by AI from 简体中文

7
6
Log into join the discussion.
海外原生IP VPS,稳定访问全球网络

还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。

lisahost.com Learn more

6 replies

Sort order
  1. zz_z Silver 3 YEARS 14h ago

    Not bad at all

    Translated by AI from 简体中文

    0
  2. liang_zhao Silver OP 13h ago

    Hope you can give it a star!

    Translated by AI from 简体中文

    0
  3. James 💯 Legend MANAGER 14h ago

    Mine's on 24/7 now, works great.

    Translated by AI from 简体中文

    0
  4. local 💬 Diamond 2 YEARS 13h ago

    You can run it on a server

    Translated by AI from 简体中文

    0
  5. liang_zhao Silver OP 11h ago

    How big of a server do you need to run these two? I only have one 4c8g.

    Translated by AI from 简体中文

    0
  6. hehouston Silver 3 YEARS 13h ago

    Yeah, leaving it running for a long time really wastes power.

    Translated by AI from 简体中文

    0