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?".
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
- A GitHub (or similar) repo your Bot can read, for example through the GitHub connector
- Branch protection on the main branch that requires a reviewer's approval before merging, with no admin bypass
- At least two people who can approve changes
How to try it
- Create one folder per Bot with: instructions and hard rules, reference knowledge, skills, a CHANGELOG, and an owners file naming who approves that folder.
- Turn on required reviews for the main branch so no one can merge their own change, admins included.
- 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).
- 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.
- Have a second person approve it. To undo a change, open another reviewed pull request.
- 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
- Rulebooks in a doc anyone can edit. The change is live the moment it's saved, with no reviewer.
- Fixing a miss once in chat. The workshop fix was a rule change, so the same miss can't repeat.
- A single trigger with no catch-all. Add a daily recheck of recent items, and log each item before starting so the recheck doesn't do it twice.
- Letting one person both write and approve a change. The point is one preparer and one reviewer, every time.
Related tips
- Onboard a Bot like a new hire: observe, propose, then act: SpaceXSI's accounting team gives each Bot one existing job, a written operating manual it can read but not edit, and a three-week onboarding: watch, then propose with approval, then run routine work and escalate exceptions.
- Turn each agent correction into a lint rule: Lauren Tan from the Grok Bot team turns each correction she gives a coding agent into a deterministic check, like a lint rule with an error message that names the real fix, instead of adding another line to the agent's rules.
- Keep lasting rules in the description, not memory: Duplicate a Bot and the description comes along; memory starts empty.
- One governed Team Bot as the source of truth for sensitive data: Put a sensitive workflow, like checking exposure or compliance wording, in one admin-managed Team Bot that every personal Bot asks, instead of everyone building their own.
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.
Learn more: How to Use Grok Bot: A Beginner's Guide (2026) · All Grok Bot multi-bot setups tips