Find and fix the macOS LaunchAgent bugs that fail silently, plus a circuit breaker for agents that keep failing.
pip install launchd-doctor Copy PIP instructions
Your LaunchAgent is "loaded" but never runs. Or it runs 84 times a day. Or it exits 78 and writes nothing at all. launchd-doctor finds the macOS launchd bugs that fail silently, explains them in plain English, and fixes them.
$ launchd-doctor ✗ com.me.nightly-report StandardOutPath is inside ~/Documents. launchd can't open files there, so the job fails with exit 78 and no output at all. Move logs to ~/Library/Logs. [fixable] ✗ com.me.backup StartCalendarInterval has Hour and Minute in separate dicts: fires 84x/day instead of 1x. [fixable] ✗ com.me.ollama last run exited 1: the program exited with an error — check its log KeepAlive job has started 159 times and isn't running — crash loop? 137 agents scanned, 3 with problems. Run `launchd-doctor fix` to see automatic fixes. $ launchd-doctor fix --apply # backs up each plist, rewrites it, reloads the job Single file, Python stdlib only, macOS 12+.
Read the full story of the first bug: Why your LaunchAgent exits 78 with no output.
A job that fails on every run wastes CPU and buries the real error in its log. watch pauses it and retries later:
launchd-doctor install-watch --prefix com.myname. # runs `watch` every 30 min launchd-doctor breakers # what's paused, and when it retries launchd-doctor resume com.myname.job # un-pause now watch only touches agents matching --prefix, never Apple's or other vendors' agents.
pip install git+https://github.com/naviidaviimusic/launchd-doctor # or just grab the one file: curl -O https://raw.githubusercontent.com/naviidaviimusic/launchd-doctor/main/launchd_doctor.py python3 launchd_doctor.py Commands launchd-doctor [scan] [--prefix P] [-v] find problems (exit 1 if any) launchd-doctor fix [--apply] [--prefix P] fix what can be fixed (dry run by default) launchd-doctor watch --prefix P [--trip N] [--dry-run] launchd-doctor install-watch --prefix P launchd-doctor breakers launchd-doctor resume LABEL Why this exists I run 100+ LaunchAgents for a local AI system on one Mac. Each of these bugs took it down at some point. The split-calendar bug sent 97 agents firing 83× a day and produced 49,000 duplicate events. The privacy-folder log path broke every agent that got reloaded, and none of them logged anything. This tool is what I wish I'd had.
All 2 files in this release have provenance metadata.
macos launchd launchagent launchctl tcc automation
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




