Topics ▾
Multi-bot setups ·

Keep each Bot's rulebook in a repo where changes need a second approver

Advanced, 60 minutes

SpaceXSI's finance team moved its Bots' rulebooks out of editable docs into a code repo: one person proposes a change, a different person approves it, and every rule has a dated changelog line.

Published

How this helps you

Every change to how your Bot behaves gets a second pair of eyes and a written reason, so a bad edit can't go live by accident and you can always answer "why does it do that?".

✦ Try it
Your rulebook lives in [repo]/[bot folder]. At the start of every task, read its instructions, hard rules, skills and reference files, and follow them over anything in your memory. Never edit the repo yourself. If someone asks you to change how you work, or you notice a rule that's missing or wrong, write the suggested change and why, and send it to [owner] instead of acting on it.

Fill in: [repo]/[bot folder] is the folder for this Bot. [owner] is the person (or channel) who reviews rulebook changes. The prompt is ours, written from the workshop.

What they did

In the official Grok Bot for Finance Teams workshop, Will Smerdon (Finance Partner at SpaceXSI) explains why the team stopped keeping Bot instructions in a wiki: anyone with access can edit it, the edit is live immediately, and the Bot reads it on its next trigger, with version history but no approval step. Because the rulebook is the Bot's behaviour, they moved every Bot's rulebook into a code repository and treat it like code. There is one folder per Bot, each with standing instructions and hard rules, reference knowledge, step-by-step skills, a changelog, and an owner file naming who must approve changes to that folder. Nobody edits a rulebook directly: a change is a pull request with one changelog entry saying what changed and why, and a different person must approve it, admins included, with no override switch. A rollback is another reviewed pull request. The Bots read the repo as their source of truth every time they're triggered, and anyone can suggest a change by asking the Bot, which passes it to the owners. Paul Bains (Accounting Manager) gives an example: the provisioning Bot missed a few deals, so instead of telling it once, they changed its rule. It still triggers on every new post in their closed-won Slack channel, but once a day it also rechecks the last 48 hours and logs every deal before it starts, so nothing is missed or done twice.

Who it's for: Teams running Bots on work where someone will later ask "why did the Bot do that?": finance, ops, support or anything audited.

Before you start

How to try it

  1. Create one folder per Bot with: instructions and hard rules, reference knowledge, skills, a CHANGELOG, and an owners file naming who approves that folder.
  2. Turn on required reviews for the main branch so no one can merge their own change, admins included.
  3. Tell each Bot (in its description) to read its folder at the start of every task and to never edit the repo itself (we haven't verified exactly how SpaceXSI wires this step).
  4. When a Bot makes a mistake, don't correct it in chat. Open a pull request that changes the rule and adds one dated changelog line saying what changed and why.
  5. Have a second person approve it. To undo a change, open another reviewed pull request.
  6. Ask the Bot to pass on suggestions from anyone it works with to the folder's owners instead of acting on them.

What to expect

From the workshop: the provisioning Bot missed some deals. The fix became a reviewed rule (recheck the last 48 hours once a day and log every deal before starting), with a changelog line and pull request number, so anyone asking why the Bot does that can trace it to one change.

Common mistakes

Related tips

Worth knowingCarved from the official workshop on the Grok YouTube channel, starting at 13:30. Paraphrased by us. They use Origin, Cursor and SpaceXSI's internal code hosting, and say GitHub works the same way. Will adds that keeping rulebooks in code lets them run a Bot on the same scenario with two rule sets and compare the results.

Questions about this tip

Why not keep a Bot's rules in Notion or Google Docs?

SpaceXSI's finance team says anyone with access can edit those and the change is live immediately, with no approval step. In a repo with required reviews, a second person approves every change first.

How do you stop a Bot missing items that arrive while it's busy?

In the workshop, the provisioning Bot kept its Slack trigger but also rechecks the last 48 hours once a day, and logs every deal before starting so nothing is done twice.

Next in Multi-bot setups →Group chats are going read-only: move your Bot team

Learn more: How to Use Grok Bot: A Beginner's Guide (2026) · All Grok Bot multi-bot setups tips

Related Grok Bot tips

More Multi-bot setups →
Multi-bot setups

Group chats are going read-only: move your Bot team

Grok Bot's team plans to make group chats read-only. Their migration advice: one main Bot hands work to the specialist who owns it, rules become skills, and project state lives in one shared file.

How this helps you Your Bot team keeps working when group chats go read-only, and fewer Bots wake up for each job, which saves usage.
Spotted by @ericzakariasson · 30 Nov 2026
Read more
Multi-bot setups

Make your Bot the manager of a T3 Code coding team

Connect T3 Code to Grok Bot over MCP so a labelled GitHub issue becomes a brief, a coding thread on your own Claude, Codex or Grok Build plan, and a pull request you review.

How this helps you Your Bot turns issues into briefs and follows up, while the coding runs on agents and subscriptions you already have, with you approving the start and the merge.
Spotted by @0xRafy · 24 Nov 2026
Read more