emretufekci

Agent Awake — Development skill for Claude Code

Development community

macOS menu bar app: keep your Mac awake until Claude Code / Codex agents in tmux finish, then sleep.

How to install Agent Awake

This entry records only its repository, not the path inside it, so there is no exact command to give. Open emretufekci/agent-awake and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Awake does

macOS menu bar app: keep your Mac awake until Claude Code / Codex agents in tmux finish, then sleep.

Alternatives in Development

  • Quosparr — 🐦 Native menu bar & tray app for macOS, Windows and Linux: track Codex, Claude Code and Grok quotas, resets 288 ★
  • Cc Bar — Native macOS menu bar app: track quota, usage and cost for Codex (multi-account) and Claude Code, from your me 119 ★
  • Agent Cat Releases — Agent Cat downloads — a free macOS menu bar and Windows tray app that shows Claude Code, Codex and Gemini CLI 57 ★

README

AgentAwake

A tiny macOS menu bar app that keeps your Mac awake while your **AI coding agents** (Claude Code, Codex, Gemini, Aider, OpenCode, …) are working — in **tmux**, **iTerm2** or **Terminal** — and puts the Mac to sleep when they're done. If an agent hits its usage limit, AgentAwake sleeps until the limit resets, wakes the Mac and types `continue`.

Plain Swift, no dependencies, no Xcode project.

Install

**Homebrew**

brew tap emretufekci/tap
brew trust emretufekci/tap   # Homebrew 7+ asks you to trust third-party taps
brew install --cask agent-awake

**From source** (needs Xcode Command Line Tools: `xcode-select --install`)

git clone https://github.com/emretufekci/agent-awake.git
cd agent-awake
./build.sh --install    # universal build → ~/Applications, then launches

Requires macOS 11+.

Features

  • **Wait for agents, then sleep.** Watches agents side by side in:

    • tmux panes, iTerm2 and Terminal.app windows. AgentAwake reads the screen: esc to interrupt means the agent is working.
    • Other terminals (Ghostty, VS Code, …). These are judged by CPU only: ≥5 % of one core means working. A working Claude Code uses about 10–15 %; an idle one uses 0–1.5 %.

    Once every agent has been idle for a grace period (default 3 min), the Mac sleeps.

  • **Questions in the menu bar.** When an agent waits for your answer (a permission prompt, a question, `y/n`), the menu bar shows `❓1`, a notification shows the question, and the agent list shows it. A waiting agent counts as idle, so the Mac may still sleep.

  • **Auto-resume after usage limits.** When Claude Code or Codex hits its 5-hour or session limit, AgentAwake reads the reset time from the screen (`resets 3pm`, `try again in 2 hours 13 minutes`, `try again at 3:45 PM`, …). It sleeps the Mac until then, wakes it and types `continue` into the agent's pane or window.

    • Waking from sleep needs pmset schedule wake, which needs root. *Settings → Allow waking from sleep… (admi