Direct answer
You can know, but you have to build it yourself. With three things, process checks, logs and scheduled heartbeat notifications, you get alerted when the agent stops or hangs. The platform does not watch application-level tasks for you.
Basis
- A live process is not the same as work getting done. The agent may be stuck waiting for confirmation or in a retry loop, so besides checking the process with
pgrep, also check whether the log has anything new. - A heartbeat is more reliable than error notifications. Have a script send an "I'm still here" message at a set interval; the one that fails to arrive tells you something is wrong. If you only notify on errors, you get nothing at all when the whole machine drops offline.
- launchd is the job management mechanism built into macOS. It can be set to relaunch a process after it exits and to start it at login, which is steadier than opening a terminal by hand.
- The platform's monitoring covers connection, operation and security state and is used for maintenance. It will not tell you how far along a particular agent is in its work.
Boundaries: when the answer is different
These are all general macOS and Unix practices, not features we provide; the configuration and the notification channel are yours to choose. Automatic relaunch has a side effect: an agent that crashes because of a logic error gets restarted again and again and may keep consuming your usage allowance, so give it a retry limit. Even the most thorough monitoring only lets you find out sooner. It cannot prevent an interruption from happening.
How to do it
- At startup, append both standard output and standard error to a log file, with timestamps.
- Write a launchd configuration, put it in
~/Library/LaunchAgents, and turn on KeepAlive. - Add a scheduled script that checks the log's last-modified time and sends a notification when it is older than the interval you set.
- Add a heartbeat message at a fixed interval, sent to the chat tool or mailbox you normally use.
- Every few days, connect remotely and take a look at disk space and log size.
Related questions
- Mac mini for 24/7 AI agents? Only worth it when the agent needs a desktop or macOS apps
- How to keep long tasks running on a remote Mac mini after you disconnect
- Can I still connect to a remote Mac mini after it restarts?
- Can I connect to a remote Mac mini from my phone to check on my agent?
- Does a long Claude Code task stop when my remote connection drops?
Use case
This question belongs to the use case: Mac mini for 24/7 AI agents? Only worth it when the agent needs a desktop or macOS apps
Other questions in the same use case:
- Can I automate iMessage and AppleScript on a rented Mac mini?
- Do I need to back up the data on a remote Mac mini myself?
- My remote Mac mini rental is about to expire. How do I renew?
- What happens to the machine and my data if I don't renew?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support