<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>goguma · writing</title>
  <subtitle>How macOS sleep, cron, launchd and coding agents actually interact.</subtitle>
  <link href="https://getgoguma.com/feed.xml" rel="self"/>
  <link href="https://getgoguma.com/blog/"/>
  <id>https://getgoguma.com/blog/</id>
  <updated>2026-08-20T00:00:00Z</updated>
  <author><name>Jun Nam</name></author>
  <entry>
    <title>Why your Mac's cron jobs don't run while it's asleep</title>
    <link href="https://getgoguma.com/blog/cron-jobs-dont-run-mac-asleep/"/>
    <id>https://getgoguma.com/blog/cron-jobs-dont-run-mac-asleep/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>cron skips a job whose time passed while the Mac was asleep — no error, no retry, no record. launchd behaves differently. Here is exactly what happens, and what to do about it.</summary>
  </entry>
  <entry>
    <title>How to wake a Mac for a scheduled job with pmset</title>
    <link href="https://getgoguma.com/blog/wake-mac-for-scheduled-job-pmset/"/>
    <id>https://getgoguma.com/blog/wake-mac-for-scheduled-job-pmset/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>The complete method — computing the wake time, arming it, holding sleep off until the job finishes, and re-arming for next time — plus the four things that go wrong.</summary>
  </entry>
  <entry>
    <title>How to find which of your scheduled jobs your Mac has been missing</title>
    <link href="https://getgoguma.com/blog/find-missed-scheduled-jobs-mac/"/>
    <id>https://getgoguma.com/blog/find-missed-scheduled-jobs-mac/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>cron keeps no record of a job it skipped, so you have to reconstruct it — replay each schedule against the machine's own sleep history. Here is how, by hand.</summary>
  </entry>
  <entry>
    <title>launchd vs cron on macOS — which one survives sleep</title>
    <link href="https://getgoguma.com/blog/launchd-vs-cron-sleep/"/>
    <id>https://getgoguma.com/blog/launchd-vs-cron-sleep/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>launchd re-fires a missed calendar job on wake; cron skips it silently. Which one you are using decides whether a sleeping Mac is a problem or a non-event.</summary>
  </entry>
  <entry>
    <title>caffeinate vs pmset vs Amphetamine — what each one actually does</title>
    <link href="https://getgoguma.com/blog/caffeinate-vs-pmset-vs-amphetamine/"/>
    <id>https://getgoguma.com/blog/caffeinate-vs-pmset-vs-amphetamine/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>Three tools people reach for interchangeably that behave completely differently with the lid closed, on battery, and when the thing holding the assertion dies.</summary>
  </entry>
  <entry>
    <title>Why caffeinate doesn't work when you close the lid</title>
    <link href="https://getgoguma.com/blog/caffeinate-lid-closed/"/>
    <id>https://getgoguma.com/blog/caffeinate-lid-closed/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>caffeinate asserts against idle sleep. Closing the lid is a different sleep path entirely, which is why your job dies the moment the MacBook shuts — and what actually holds it.</summary>
  </entry>
  <entry>
    <title>Amphetamine alternatives for macOS, compared honestly</title>
    <link href="https://getgoguma.com/blog/amphetamine-alternatives-mac/"/>
    <id>https://getgoguma.com/blog/amphetamine-alternatives-mac/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>Every keep-awake app for the Mac, what each actually does with the lid closed, and the question that separates them — what happens when you forget to turn it off.</summary>
  </entry>
  <entry>
    <title>You cannot tell whether an AI coding agent is working by watching it</title>
    <link href="https://getgoguma.com/blog/cannot-detect-ai-agent-working/"/>
    <id>https://getgoguma.com/blog/cannot-detect-ai-agent-working/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>Measured over ten seconds, the idle Claude Code session used more CPU than the one actively working. Here is the data, and why every process-watching approach to agent sleep prevention is built on sand.</summary>
  </entry>
  <entry>
    <title>Is it safe to keep a MacBook awake with the lid closed in a bag?</title>
    <link href="https://getgoguma.com/blog/macbook-awake-in-bag-safe/"/>
    <id>https://getgoguma.com/blog/macbook-awake-in-bag-safe/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>The two real risks are thermal and battery, and the reason lid-closed is the dangerous case is that you cannot see anything is wrong. What a safety cutoff has to check, and the sensor trap that makes a naive one useless.</summary>
  </entry>
  <entry>
    <title>How to keep Claude Code or Codex running when you close the MacBook lid</title>
    <link href="https://getgoguma.com/blog/keep-coding-agent-running-lid-closed/"/>
    <id>https://getgoguma.com/blog/keep-coding-agent-running-lid-closed/</id>
    <updated>2026-08-20T00:00:00Z</updated>
    <summary>Why the agent dies the moment the lid shuts, the three ways to fix it ranked by how badly each fails, and the hook configuration for all four major harnesses.</summary>
  </entry>
</feed>
