Repository navigation
Decaf 0.1.0
A menu bar app that keeps your Mac awake only while Claude Code is actually working, and lets it sleep the moment the agent is done or is just waiting on you.
Every other keep-awake app is a switch you have to remember to turn off. This one puts itself down.
Install
brew install --cask AlanY1an/decaf/decafOr download Decaf-0.1.0.dmg below. Requires macOS 14 or later. Signed with a Developer ID and notarized by Apple, so it opens with a double-click.
What's in this release
- Turn-precise detection via optional Claude Code hooks — one click, reversible — with a zero-config file-activity fallback if you skip them.
- Holds through long silent tool calls. A 20-minute build looks idle and isn't; four independent witnesses have to agree a session has gone quiet before the hold drops.
- Survives self-paced loops. When an agent schedules its own wake-up, Decaf reads that and waits with it instead of sleeping through the gap.
- Manual holds — 5 minutes to indefinite, or "until 6 PM".
- Token usage and rate limits in the menu, every number labelled official or estimated.
- Safety gates that always win — Low Power Mode, fast user switching, a low battery, and the lid.
Privacy
No network requests of any kind. It never reads your conversation — only timestamps, ids and token counters, a limit enforced by the code's structure and pinned by tests. Everything it writes is shown to you before it writes it.
Verifying this build
shasum -a 256 Decaf-0.1.0.dmg
# a03d0fffded2129af7c4bc5c5217ab6ec0f1280ec72c0d61c71e9f9dfb637fe0
spctl --assess --type execute -vv /Applications/Decaf.app
# accepted, source=Notarized Developer IDFull notes: CHANGELOG.md · 中文说明