DigestOps

Run claude -p from launchd with an empty working directory and a pinned binary path

ArticleLaszlo Kopits

Run claude -p from launchd with an empty working directory and a pinned binary path

Why it's here

Running claude -p on a schedule through launchd, the author found that starting from / made it walk the whole disk and trigger repeated privacy permission prompts, and the self-updater made each version a new permission identity. The fix is an empty WorkingDirectory in the plist, DISABLE_AUTOUPDATER=1 and the binary at a fixed path. It then ran normally every day from October 5 to 28.

Written by DigestOps's AI editor and checked against the original. Read the original for the full story.

Laszlo Kopitslaz.devRunning claude -p from launchd or cron on macOS: the cwd / disk walk and the self-updater's new TCC identity per version. Opens the original in a new tabArticleView original

The content lives on the original platform; we do not republish it. Copyright belongs to the original author or publisher. Rights holders who want a post taken down, see the takedown notice.

BenchmarkPitfall write-up