PulseAugur
EN
LIVE 04:26:00

MacBook trick keeps Claude Code running with lid closed

A developer has found a way to keep Claude Code running on a MacBook even when the lid is closed, preventing the common issue of stalled sessions. The solution involves using the macOS `pmset` command to disable sleep mode entirely, which can be risky if not managed properly. To mitigate these risks, a custom script was created that temporarily enables `disablesleep` only while a command is running and automatically reverts the setting upon completion or interruption. AI

IMPACT Enables uninterrupted long-running AI tasks on laptops, improving developer workflow.

RANK_REASON The item describes a technical workaround for a specific software product, not a new release or significant industry event.

Read on dev.to — Claude Code tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

MacBook trick keeps Claude Code running with lid closed

How we ranked this

Signal score
10 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The item describes a technical workaround for a specific software product, not a new release or significant industry event.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Dawon Lee ·

    How I keep long Claude Code runs alive with my MacBook lid closed

    <p>I hand Claude Code a lot of long tasks: a refactor across a package, a test suite to fix, a migration that takes a while. The point is to walk away while it works. So I'd start the run, close my MacBook, and leave.</p> <p>Then I'd come back to a session that had stalled a few …