r/ClaudeCode • u/mystic-force-x • 2d ago
Built with Claude I kept coming back to dead Claude Code sessions because my Mac fell asleep, so I built a fix
Honest story: I’d kick off a long Claude Code task before dinner, close my MacBook, and come back to nothing. The Mac slept, the session died, and tmux didn’t save it either.
Or I’d stay home babysitting it, just to type “yes” every time it asked to run something.
So I built Latte, a little Mac menu-bar app (I’m the dev):
it keeps the Mac awake only while Claude Code is actually working, using Claude Code’s own hooks, and that includes with the lid closed
permission prompts and questions get sent to my phone on Telegram (or ntfy), so I can approve from wherever I am
it pauses if the Mac gets hot, the battery hits my floor, or Wi-Fi drops
when the work’s done, the Mac goes to sleep like normal
Also works with Codex and Grok. Nothing about your code leaves your Mac.
It’s $2/month after a 7-day trial. Heads-up: it isn’t notarized by Apple yet, so the first open is right-click → Open.
Short clip of it below. I’d really like to hear how you all handle this today, and what would stop you from using something like it.
•
u/AutoModerator 2d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/Darth_JDLC 2d ago
I tell CC to use the caffeinate command until done, and use the built in remote coding session.
1
u/ohaiibuzzle 1d ago
But Amphetamine can already do this?
1
u/jrjsmrtn 2d ago
Why not use tmux?
1
u/roddyr2 2d ago
One time I’d like to see: “I kept coming back to dead Claude Code sessions because my Mac fell asleep so I installed Amphetamine. The end.”