Keep your Mac awake while coding agents work with a menu bar app
A marketer got tired of jiggling his trackpad so Claude Code could keep running, so he made Midnight Oil, a small macOS app that lives in the menu bar and keeps the Mac awake while agents, builds and downloads finish.
Source
@coreyhainesco on X · 2026-10-13
Written in our own words. Credit to the original author. Link checked 2026-10-22.
What they did
A marketer got tired of jiggling his trackpad so Claude Code could keep running, so he made Midnight Oil, a small macOS app that lives in the menu bar and keeps the Mac awake while agents, builds and downloads finish.
Result (as claimed)
Shipped as a menu bar app; long agent runs no longer stop when the Mac goes to sleep.
Tools they used
Cost: Claude Code: from $17/mo.
Set it up
Write a one-page brief
Describe the app in plain words: who it is for, the 3 core screens or actions, and what "done" looks like.
Start the project with your agent
Open Claude Code and paste the brief. Ask it to propose a stack and a file plan before writing code.
Build one slice at a time
Ship the smallest working flow first, run it, then add features one by one. Commit after each working step.
Test it like a user
Click through on desktop and phone. Ask the agent to add basic tests and fix anything that breaks.
Check security and ship
Keep keys in environment variables, check auth and database rules, then deploy and share the link.
Copy the full setup prompt
Paste into your agent and it will walk you through the setup, asking before anything that sends, posts or spends.
You are helping me set up this AI use case end to end in Claude Code. Goal: Keep your Mac awake while coding agents work with a menu bar app What the original author did: A marketer got tired of jiggling his trackpad so Claude Code could keep running, so he made Midnight Oil, a small macOS app that lives in the menu bar and keeps the Mac awake while agents, builds and downloads finish. Reported result (as claimed by the author): Shipped as a menu bar app; long agent runs no longer stop when the Mac goes to sleep. Source: https://x.com/coreyhainesco/status/2110014203918733594 Tools they used: Claude Code, macOS Category: Vibe coding & apps Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Codex. Goal: Keep your Mac awake while coding agents work with a menu bar app What the original author did: A marketer got tired of jiggling his trackpad so Claude Code could keep running, so he made Midnight Oil, a small macOS app that lives in the menu bar and keeps the Mac awake while agents, builds and downloads finish. Reported result (as claimed by the author): Shipped as a menu bar app; long agent runs no longer stop when the Mac goes to sleep. Source: https://x.com/coreyhainesco/status/2110014203918733594 Tools they used: Claude Code, macOS Category: Vibe coding & apps Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Grok Bot. Goal: Keep your Mac awake while coding agents work with a menu bar app What the original author did: A marketer got tired of jiggling his trackpad so Claude Code could keep running, so he made Midnight Oil, a small macOS app that lives in the menu bar and keeps the Mac awake while agents, builds and downloads finish. Reported result (as claimed by the author): Shipped as a menu bar app; long agent runs no longer stop when the Mac goes to sleep. Source: https://x.com/coreyhainesco/status/2110014203918733594 Tools they used: Claude Code, macOS Category: Vibe coding & apps Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
The Daily 5
Get five new use cases tomorrow morning
Free. Real sources. Unsubscribe any time.
Guides for this use case
How to build a Mac menu bar app with AI · How to vibe code an app with Claude Code · How to run multiple coding agents together · How to build AI agents for SEO and ads
Related use cases
Let Claude Code install Unity and build a VR app from scratch
On a new MacBook, Claude Code installed Unity 6, the Unity CLI and the Pico headset CLI, then built the first version of a "freeze time" VR app using headless versions of every tool.
Build and ship a native Swift menu bar app solo with Claude Code and Codex
A solo developer builds FavTray, a native Swift and SwiftUI menu bar app, with Claude Code and Codex. He shipped versions 2.1 and 2.2 on consecutive days and still runs and tests every change himself.
Keep coding agents running after you close the laptop lid
Built Lidless for timed closed-lid sessions that stay verified, journaled and restored so Claude Code and SSH agent runs survive closing the Mac.
Let Claude Code control your Mac in the background with Codex's computer use
A developer exposed Codex's computer-use ability to other agents and plugged it into Claude Code, which has no built-in way to drive a Mac from the CLI. Claude Code can now click and type in Mac apps in the background while you keep working.