Repository navigation
Agent Awake v0.1.0
Agent Awake is a lightweight, pure-Rust native Windows x64 utility for precise AI Agent anti-sleep arbitration and quota-recovery auto-resume, supporting OpenAI Codex and Google Antigravity.
Windows SmartScreen Notice: This initial open-source release is unsigned. Windows SmartScreen may display "Windows protected your PC" on first launch; verify the
SHA256SUMS.txtchecksum below, then click More info → Run anyway if you trust the build (or build from source withcargo build --release).
Highlights
- Precise Windows Power Arbitration: Uses native
PowerCreateRequest/PowerSetRequest(PowerRequestSystemRequired)/PowerClearRequestto prevent automatic system sleep only while Codex or Antigravity tasks are actively running, while allowing the display to turn off, Windows lock screen, and manual sleep. - OpenAI Codex Support:
- Official
~/.codex/hooks.jsonintegration (safe backup, merge, repair, and clean uninstall). - Incremental
~/.codex/sessions/**/*.jsonlrollout monitoring for reasoning, tool calls, remote SSH commands, cancellation (turn_aborted), and quota exhaustion (usage_limit_exceeded).
- Official
- Google Antigravity Support:
- Native
~/.gemini/config/hooks.jsonintegration under a dedicatedagent-awakekey (without blockingPreToolUse). - Read-only
conversation_summaries.db+-walmonitoring via Windows built-inwinsqlite3.dll, cross-checked against live process creation-time fingerprints. - Optional lightweight stdio MCP server (
agent-awake mcp).
- Native
- Quota-Exhaustion Auto-Resume & Wake Scheduler:
- Mode A (Energy-Saving, default): Releases the wake lock during quota cooldown and schedules a per-user Windows Task Scheduler
<WakeToRun>true</WakeToRun>task under\AgentAwake\. - Mode B (Reliable Resume, opt-in): Keeps the system awake during quota cooldown while allowing the display to turn off.
- Official headless resume for Codex (
codex exec resume --skip-git-repo-check) and Antigravity CLI (agy --conversation <id> --print), plus honestManualOnlynotifications for Antigravity Desktop sessions (no UI click simulation).
- Mode A (Energy-Saving, default): Releases the wake lock during quota cooldown and schedules a per-user Windows Task Scheduler
- Modern Native Windows 11 UI & System Tray:
- Pure Rust Win32 + DWM + GDI+ Fluent interface with dark/light mode, deep status Hero Card, pastel frosted-glass Agent cards, Toggle Switch, custom multi-resolution icon, 4-state system tray, and
--legacy-uifallback.
- Pure Rust Win32 + DWM + GDI+ Fluent interface with dark/light mode, deep status Hero Card, pastel frosted-glass Agent cards, Toggle Switch, custom multi-resolution icon, 4-state system tray, and
Quick Install (Windows x64 Portable)
- Download
Agent-Awake-v0.1.0-windows-x64-portable.zipandSHA256SUMS.txtfrom the assets below. - Verify the SHA-256 checksum in PowerShell:
Get-FileHash .\Agent-Awake-v0.1.0-windows-x64-portable.zip -Algorithm SHA256
- Extract the archive and either run
agent-awake-app.exedirectly (portable mode) or runinstall-windows.ps1to install into%LOCALAPPDATA%\Programs\AgentAwake\.
Upstream Credits
Built by integrating and extending ideas from two MIT-licensed open-source projects:
cb-117/barista(v0.1.2, MIT)Subham-Maity/agent-power-guard(v1.3.6, MIT)
Full attribution and third-party crate notices are included in LICENSE and THIRD_PARTY_NOTICES.md.
SHA-256 Checksums
e10ab2b5e65fc5fa3484a876b4b7719e7cacfb36756c4fd10b5f0cc146f90680 Agent-Awake-v0.1.0-windows-x64-portable.zip
744f4d1be246a15bbb0ab78726648443bac3aaf70d8b7de845c83eca3632861e agent-awake-app.exe
59c290e4d8c73de8ce26a53907d57952d8274aecfe1a59c8c6e61e52ad56b244 agent-awake.exe