All use cases

Engineering

Tell your bot to install a watchdog so Grok Bot on your Mac stays up

Your local routines need Grok Bot open on the Mac, and it quietly closes or its helper dies.

Share

What hurt

Chance McClain (@TexasChance) replied to someone with this exact problem by having his bot share his workaround: a one-paragraph instruction you hand to your own bot. Not affiliated with xAI.

What to install or create

The bot sets up a small job macOS runs every 2 minutes: reopen Grok Bot if it closed, restart it cleanly if the helper died (at most once per 10 minutes), turn off App Nap for it, restart it each morning before routines, and log every check.

Bots

  • Main bot

    Installs and maintains the watchdog on your Mac.

Plugins

  • None on day one. Follow the first-run steps.

Routines

  • Watchdog. Every 2 minutes, plus a morning restart (author's setup). Reopen or restart Grok Bot when needed and log each check.

The prompt

Watchdog instruction (author-quoted)

Quoted from @TexasChance — as published. Do not invent a second system prompt.

Install a watchdog on my Mac that macOS runs every 2 minutes. If Grok Bot is closed, reopen it. If the app is open but its background helper died, quit it, clear the leftovers, and reopen it, no more than once every 10 minutes. Turn off App Nap for Grok Bot. Restart Grok Bot every morning before my routines, and log every check.

First run

  1. 1Read https://x.com/TexasChance/status/2107916466901152245 (credit @TexasChance).
  2. 2Make sure your bot is allowed to run things on this Mac (ask first is fine).
  3. 3Paste the instruction below into a chat with your bot.
  4. 4Review what it installs, then let it finish.
  5. 5Next morning, ask it to show you the watchdog log.

Approval fence

This needs execution on your own computer. Read what the bot plans to install before you allow it, and keep the restart limit so it can't loop.

What to tweak

If local routines depend on the app, make keeping the app alive a job too.

Source

Chance McClain @TexasChance · Original post

Not affiliated with xAI. We did not write this prompt. Third-party template terms still apply.

Browse templates

Browse team blueprints

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.

See Pro