Engineering
Claude Code on a Mac mini: plain script watchdog, not an AI watching the AI
People put another LLM in charge of restarts and burn tokens on heartbeats.
What hurt
cbgrok (@cbgrok) has Grok Bot run Claude Code on a Mac mini without Cursor agents on SuperGrok. Not affiliated with xAI.
What to install or create
A plain script checks each task was received and is moving, restarts if stuck, and only wakes the bot when work is done.
Bots
No new bot. Follow the first-run steps.
Plugins
None on day one. Follow the first-run steps.
Routines
None on the first run. Watch one manual pass first.
The prompt
This is a tip, not a pasteable system prompt. The author did not publish one. Follow the first-run steps.
First run
- 1Read https://x.com/cbgrok/status/2109314840758227389 (credit @cbgrok).
- 2Put Claude Code (or your agent) on a Mac mini the bot can reach.
- 3Write a plain script: received? moving? restart if stuck.
- 4Wake Grok Bot only when work finishes or needs a human.
- 5Log skips so you can see false stuck detections.
Approval fence
Watchdog restarts are fine; deploys still need your yes.
What to tweak
Heartbeats shouldn't need tokens to say still alive.
Source
cbgrok @cbgrok · Original post
Not affiliated with xAI. We did not write this prompt. Third-party template terms still apply.
Pro pack
Want the full setup, not just the idea?
Pro packs give you the job text, prompts, schedules and pitfalls for popular use-cases.