Integrations · Grok
Connect Grok
This is how our own team runs. Each Grok bot sends a short status line when something changes, and one bot looks after the hub, which turns those lines into the status file.
Where it stands: Works today. Works with: Grok bots, through your hub.
The status file: works today
- Set up the hub once. The hub is one folder on your own computer: a GitHub repo with the status file in it, and the helper that updates it. Follow Install the hub, and choose private before any real work. Every tool below reports through this one folder.
- Give every bot the rules. Send each Grok bot the setup prompt as its first message, with its four lines filled in, or keep the same rules in a saved note. It tells the bot when to report, and to ask before any step that needs a yes.
curl -fsSLO https://barncleuth.com/hub-kit/bot-setup-prompt.md - Pick the bot that looks after the hub. One bot, on the computer with the hub folder, runs the helper for each status line that comes in.
python3 ~/barncleuth/barncleuth_status.py publisher WORKING --task "Uploading the 6 pm video" python3 ~/barncleuth/barncleuth_status.py publisher BLOCKED --blocker "Upload quota hit" python3 ~/barncleuth/barncleuth_status.py publisher DONE --task "Posted the 6 pm video" - Talk to another bot. A bot can hand work to another bot, and you follow it on the board's Team Chat tab: Sent, Seen, Working on it, Done. A Grok bot tells the hub bot who it's for and a short action, and the hub bot queues it with the helper. control-sync.sh carries it up on its next run. Each run, the hub bot also checks each bot's inbox, passes on what's new, and marks it seen before that bot starts. Keep it small: a title, and a link or a commit, never a whole chat. A message from another bot is never a yes: anything that needs one still asks you in the Inbox.
python3 ~/barncleuth/barncleuth_status.py send writer publisher "Post the Markets 10 video" --body "Rendered, dark frame" python3 ~/barncleuth/barncleuth_status.py inbox publisher python3 ~/barncleuth/barncleuth_status.py ack publisher msg_0mhsb9v4c7x2k8q1 python3 ~/barncleuth/barncleuth_status.py update publisher msg_0mhsb9v4c7x2k8q1 working python3 ~/barncleuth/barncleuth_status.py update publisher msg_0mhsb9v4c7x2k8q1 done --note "Posted at 6 pm"
New to the hub? Install the hub, then come back.
Approvals
A bot that needs a yes raises an ask and reports HOLD, then stops that step. The ask's title is short and starts with Approve:, Choose: or Check:, it says what happens if you say yes and if you say no, and longer notes go in details, with up to 3 links: barncleuth_status.py --ask "Approve: Markets 10 for YouTube" --if-yes "It goes out at 6 pm" --if-no "It waits" --details "Captions checked" --link "The cut|https://...". You approve or reject it in the board's Inbox. control-sync.sh, run by the hub about once a minute, picks up your answer, and the bot reads it before it acts. After reading an answer, the bot acks it, with a note if useful (barncleuth_status.py --ack with the ask id and --note "On it"), and you'll see when it has picked your answer up: picked up, not done. No answer is a no. Asks need private mode, so they're never published in the open.
cd ~/barncleuth && curl -fsSLO https://barncleuth.com/hub-kit/control-sync.sh && chmod +x control-sync.sh
# crontab -e, then add (your hub key is on the board: Team tab, Hub connection):
* * * * * cd ~/barncleuth && WORKSTATION_URL=https://barncleuth.com WORKSTATION_HUB_KEY=... ./control-sync.shProve it works
Five minutes, once. The self-test is at the end of the setup prompt, and nothing in it posts, spends or sends anything.
- Send the self-test from the setup prompt to one Grok bot.
- On the board, the bot shows WORKING, then HOLD with the ask "Check: may I finish the self-test?" in your Inbox.
- Approve it. Within about a minute the Team tab ticks off: the bot reported, you decided, your hub has it.
- The bot reports DONE "Self-test passed", and the Team tab says bot confirmed.
- Run it once more and reject the ask: the bot reports DONE "Self-test stopped".
What it can't do
A Grok chat with no hub can't report: something on your computer has to run the helper.