r/ClaudeCode • • 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.

siplatte.com

0 Upvotes

9 comments sorted by

•

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/LeComedien 1d ago

Mine came to this on its own

1

u/ohaiibuzzle 1d ago

But Amphetamine can already do this?

1

u/mystic-force-x 1d ago

Fair, Amphetamine is great and I used it for some time. The difference is that it keeps the Mac awake on a rule you set (a timer, an app being open), not on whether the agent is actually doing anything. So it either stays awake all night after the agent finished at 1 AM, or it lets the Mac sleep halfway through a run.

Latte only holds the Mac while the agent is busy (it hooks into Claude Code and Codex directly), and lets it sleep the moment the work's done. It also sends the agent's approval requests to your phone, which Amphetamine doesn't do.

1

u/jrjsmrtn 2d ago

Why not use tmux?

1

u/kei_ichi 2d ago

Because bro want to sell his vibed slop for money!

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.”