jjyr

Vibe Caffeine — Development skill for Claude Code

Development community

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 IOPMAssertionCreateWithName with kIOPMAssertionTypeNoDisplaySleep
  • File Monitoring: CoreServices FSEventStream with 1-second latency
  • **Z