# I kept losing overnight Claude Code runs by closing my MacBook, so I made a free app to stop it — retained record

> Retained reddit record from reddit:ClaudeAI.

Canonical: https://highsignal.app/data/records/bc82d5f6b418777e

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeAI)  published 2026-09-03 17:16 ingested 2026-09-04 02:38

[original source ↗](https://www.reddit.com/r/ClaudeAI/comments/1w6dng4/i_kept_losing_overnight_claude_code_runs_by/)

## retained text



```
Every time I had Claude Code grinding on something long and closed the lid to go home or to bed, the Mac slept and the run just died. Lost a few good multi-hour sessions that way before I got annoyed enough to fix it.



So I made Clawake. It's a little menu bar app that keeps the Mac awake with the lid shut, no external monitor needed, so the session keeps going and I can SSH back in later from my phone or another machine.



It's free and the source is on GitHub (MIT). Full disclosure, I made it.



Two things I learned building it that might save you a session: for overnight runs, plug in (on battery it'll eventually sleep no matter what), and turn the heat guard down or off, because a closed lid runs warm under load.



[https://github.com/ItaiZeilig/clawake](https://github.com/ItaiZeilig/clawake)



Does it hold up on your setup? Curious if anyone's doing long agent runs clamshell.
```



document fetched 2026-09-04 00:28 · canonical https://reddit.com/r/ClaudeAI/comments/1w6dng4/i_kept_losing_overnight_claude_code_runs_by
