Vibe Caffeine — Development skill for Claude Code
A tool auto prevent mac sleep during vibe coding, support opencode / claude / codex.
How to install Vibe Caffeine
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jjyr/vibe-caffeine and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Vibe Caffeine does
A tool auto prevent mac sleep during vibe coding, support opencode / claude / codex.
Alternatives in Development
- Vibe Kanban — Get 10X more out of Claude Code, Gemini CLI, Codex, Amp and other coding agents 23.5k ★
- Hapi — App for Claude Code / Codex / Gemini / OpenCode, vibe coding anytime, anywhere 3.6k ★
- Agent Of Empires — Manage multiple Claude Code, OpenCode agents from either TUI or Web for easy access on mobile 3.1k ★
README
Vibe Caffeine ☕
Vibe Caffeine keeps your Mac awake while AI coding tools (Claude Code, Codex, OpenCode, pi) are working. No more interrupted tasks due to system sleep.
The app runs in your menu bar with a simple icon:
| Icon | Meaning |
|---|---|
| 🍵 | idle — No AI tools are working, Mac can sleep |
| ☕️ | active — AI tool is working, sleep prevented |
| 🔒 | manual — Manually force Mac awake |
**Left-click** the icon to switch between Auto and Manual modes.
Installation
Homebrew (Recommended)
brew install jjyr/tap/vibe-caffeine
Manual Installation
Download the latest release from [GitHub Releases](https://github.com/jjyr/vibe-caffeine/releases), unzip, and move `Vibe Caffeine.app` to `/Applications`.
Usage
- Left-click — Toggle between Auto and Manual modes
- Right-click — Open menu with status info, Launch at Login toggle, and Quit option
Development
Requirements
- macOS 13.0+
- Swift 5.9+
- Xcode Command Line Tools
Build Commands
# Debug build
make build
# Release build (creates .app bundle)
make release
# Run debug executable
make run
# Run the .app bundle
make run-app
# Install to /Applications
make install
# Clean build artifacts
make clean
Project Structure
Sources/VibeCaffeine/
├── App/
│ └── AppDelegate.swift # Application lifecycle
├── Features/
│ ├── FileMonitoring/
│ │ ├── FileMonitor.swift # FSEvents directory watching
│ │ └── AIToolDetector.swift # Monitored paths configuration
│ ├── MenuBar/
│ │ └── MenuBarManager.swift # Menu bar UI and interactions
│ └── SleepPrevention/
│ └── SleepManager.swift # IOKit sleep assertion control
└── State/
└── AppState.swift # Central state machine
Technical Details
- Sleep Prevention: Uses IOKit's
IOPMAssertionCreateWithNamewithkIOPMAssertionTypeNoDisplaySleep - File Monitoring: CoreServices FSEventStream with 1-second latency
- **Z
Related Skills
Caffeine
Keep your Mac awake while you work, then let it sleep when your coding agent waits for you.
Agent Caffeine
Keep macOS awake while a CLI coding agent works, and let it sleep when the network dies
Goguma
Wakes your Mac for scheduled jobs, holds it awake while long work finishes, and lets it sleep otherwise. Finds
WakeBar
A native macOS menu bar sleep guard that keeps coding agents running with OFF, AUTO, and ON modes.
Architecture Decision Records
Capture architectural decisions made during coding sessions as structured ADRs. Auto-detects decision moments,
9remote
📱 Terminal in Your Pocket — Control Claude Code, Codex, Gemini CLI & your Mac/Linux/Windows from any phone or
Related Agents
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode
Aux Delegator
Invokes external CLI coding agents (Codex, OpenCode, Claude -p, ACP). Use whenever a task should be offloaded