A product's own rules
If your company keeps its own rules for building a product, give them to the box. A playbook is an AGENTS.md, or a SKILL.md with the wiki pages it links to, in a GitHub repository. “Every agent working for this product starts each task with them.” This includes Bob and its roles, and any other agent installed for the product.
Your rules can make agents stricter, never give them more rights: “no rule can allow a merge, a deploy, sending or deleting.” Only a plan you approve can let the box merge, see Merges inside an approved plan.
Who can do this
Section titled “Who can do this”The administrator. The rules are set on Settings › Your company, part Products and documents.
What you need
Section titled “What you need”- The product on the box. See Add a product.
- The playbook in a repository that the box’s GitHub connection covers. With several GitHub organizations, it can be in any of them: see Several GitHub organizations. Without a connection the panel says “Connect GitHub first: Settings > Advanced > Connections. The rules are read from a repository the connection covers.”
- The path of the entry file, for example
AGENTS.mdorskills/our-product/SKILL.md.
Attach the rules
Section titled “Attach the rules”- Open Settings › Your company, part Products and documents, and press Open on the product. The panel Products opens.
- Press Rules on the product’s row. The panel Rules for … opens under the list.
- Under Repository with the rules, choose the repository.
- Under Entry file, keep
AGENTS.mdor type the path. “AGENTS.md, or SKILL.md (its name and description show here). Always the current default branch: only merged changes count.” - Leave Reviews by another AI company than the coding tool (Claude Code) ticked, unless you do not want it (see Reviews by another AI company).
- Press Use these rules.
The box reads the rules at once and shows:
- “Rules: …” with the title, the repository and the entry file;
- for a
SKILL.md, “Skill: …” with its name and description; - “Last change: …” with the commit;
- “Last read: …” with the time.
Link the people the rules name
Section titled “Link the people the rules name”If the rules name people by their GitHub handle (for example who decides, who merges, who deploys), the panel lists them under People the rules name.
- For each
@handle, choose the person on the box, or keep Nobody on this box. - Press Save rules.
“Link each GitHub handle to a person on this box: the product’s approval and merge requests go to their Needs you. Agents never merge or deploy.”
Reviews by another AI company
Section titled “Reviews by another AI company”With Reviews by another AI company than the coding tool (Claude Code) ticked, Bob’s QA Reviewer, Security Reviewer and Merge Gate review the product’s work only on an AI model from another company than Anthropic. The box checks this before the review starts.
- Set at least the Standard lane to such a model: Settings › Advanced › AI, panel Model lanes. See Model lanes.
- A review that runs starts with a line that names both companies: “Reviewed by: …, …. Coder: Anthropic.”
- If the lane is from Anthropic, the review does not run and says why: “… did not review: reviews for … must come from another AI company than …”. Home tells the administrators which lane to set, for example “Set the standard lane to another AI company than Anthropic”.
Merges inside an approved plan
Section titled “Merges inside an approved plan”The same Rules panel has a block Merges inside an approved plan. It decides when the box may merge a pull request of a plan you approved. It works once the Merge Gate’s next store update is installed; until then a person merges.
- Under Checks that must be green (one per line, as GitHub names them), list the checks. “Leave the list empty to require every check on the commit.” At least one check must have run.
- Under How the box merges, choose A merge commit, Squash into one commit or Rebase.
- Press Save merge settings.
When a plan with a merge step for Bob - Merge Gate is approved, the box merges each of the plan’s pull requests itself, and only when:
- the review says SHIP on exactly the pull request’s latest commit, from an AI of another company than the one that wrote the code;
- every required check is green on that commit;
- the pull request belongs to the plan and goes into the repository’s main branch;
- the plan is still in force.
The box merges exactly the reviewed commit and notes it on the pull request (“Merged by … for plan …”). The plan shows Merged and “Merged #12 (abc1234).” If something is missing, the plan says in one line why not, for example “Not merged: 2 checks are not green yet.” or “Not merged: new changes came after the review.” Merged means built and tested, not delivered: nothing goes live by a merge.
Without such a plan, a person merges.
Let Claude Code follow the same rules
Section titled “Let Claude Code follow the same rules”The coding tool can read the same playbook in your code repository. Open The coding tool follows the same rules in the panel and follow its five steps:
- In the product’s code repository, add the workflow shown in the panel as
.github/workflows/claude-code.yml. Copy the workflow copies it. - Install the Claude GitHub App on that repository.
- Add the secret
CLAUDE_CODE_OAUTH_TOKEN: a Claude Pro or Max subscription token, with no per-use cost. If the company pays per use, addANTHROPIC_API_KEYinstead. - Create a key pair. Add the public key to the playbook’s repository as a read-only deploy key, and the private key to the code repository as the secret
PLAYBOOK_DEPLOY_KEY. - Label an issue “claude”: Claude Code reads these rules as a skill, works on a branch and links a pull request. A person merges.
The box does not push the workflow to GitHub. You add it.
What you see afterwards
Section titled “What you see afterwards”- Every task for the product starts with the rules, always as merged on the default branch. Agents read the pages the rules link to when they need them, from that repository only.
- Agents follow the rules where they are stricter than their own instructions, and they name a conflict once in their result.
- Agents run no script from the rules. They map its steps to their roles and give deploys and anything touching live data to a person, with the steps drafted.
- The product’s approval requests appear in Needs you of the people you linked.
- When the entry file changes, the administrators see one line on Home: “The rules for … changed: …” with the commit’s title, once per commit. Today this line is shown under Today, in the group Mail, tagged Warning, with the line written for suspicious mail under it; the title is what counts. A change to a linked page shows no line; agents read it at their next task.
- The rules never leave the box, and agents of other products never see them.
If it does not work
Section titled “If it does not work”| What you see | What to do |
|---|---|
| “The rules could not be read:” with the reason and one step, then “Tasks for … do not start until they can be read again.” | Do the step the line names (see When the rules cannot be read), then press Check now. |
| A task for the product: “The rules for … could not be read (…), so this task did not start. Nothing ran.” | The same. Tasks of other products run normally. |
| “The GitHub connection covers no repository yet” in the repository list. | Choose the repositories on GitHub for the connection first: Connections. |
| A review says it did not review and names the lane. | Set that lane to a model of another AI company, then press Apply to installed agents. |
When the rules cannot be read
Section titled “When the rules cannot be read”Rules says the reason in one line, then the one step that fixes it. The saved repository always stays shown; when the GitHub connection’s list does not name it, it is marked “not in the GitHub connection’s list: press Refresh there”.
| Reason the box shows | The step it names |
|---|---|
| “the box has no GitHub connection for their repository’s organisation” | Connect that organisation. |
| “the box’s GitHub App does not include their repository” | On GitHub, add the repository to the App (Change repositories on the GitHub connection), then press Refresh there. |
| “GitHub refused the box’s App for their repository’s organisation” | Press Refresh on the GitHub connection; if that fails too, connect the organisation again. |
| “GitHub does not show the box their repository” | Check the repository’s name, then press Refresh on the GitHub connection. |
| “GitHub did not answer” | Nothing to do: the box tries again in a few minutes. |
| The entry file is not found | Check the entry file’s name, or add the file to the repository. |
With several GitHub organisations, the box reads each product’s rules with the connection of that repository’s own organisation (since release 2026.10.28-3ef8a18). The Refresh for a GitHub connection is on the card of an agent that uses it, under Connections it uses (Connections).
Your choices
Section titled “Your choices”| Choice | What it does | When to pick it | Can you undo it? |
|---|---|---|---|
| Use these rules / Save rules | Attaches the rules, or saves a change. | When the product has a playbook. | Yes: Remove rules. |
| Check now | Reads the rules again. | After you fixed a problem. | n/a |
| Remove rules | Asks again (“Remove: agents work without these rules”); a second press removes them. | When the product no longer has a playbook. | Attach them again. |
| Reviews by another AI company than the coding tool | Lets the reviews run only on another AI company than the coding tool’s. | Leave it on when Claude Code writes the code. | Yes: untick and save. |