react 0.1.0
How the React repository runs its agents: deny rules that keep them on the right package manager, and skills for tests, Flow, feature flags and fixes.
Owner: Baudrier AI · MIT · from facebook/react at edae846
Claude Code 7 of 7 guards holdCodex 7 of 7 guards holdGitHub Copilot 7 of 7 guards hold
Install
$ uv tool install baudrier # once
$ baudrier install react --dry # look first: nothing is written
$ baudrier install react # for the agents your repository uses; or --to claude|codex|copilot|generic
It shows what it will write, hook scripts first, and asks before it writes.
Last step: paste the line the install prints last into your agent, opened in your repository. It fits the harness to your repository. Don’t skip it. For Claude Code:
Read .baudrier/harness/react/FINISH_SETUP.claude.md and follow it.
For another agent, the file ends in .codex.md, .copilot.md or .generic.md.
What each agent keeps
- Claude Code: 9 native, 0 emulated, 0 lost. Checks validated by the publisher: 7 of 7 guard cases give the expected decision, run on 2026-11-27.
- Codex: 19 native, 6 emulated, 5 lost. Checks validated by the publisher: 7 of 7 guard cases give the expected decision, run on 2026-11-27.
- GitHub Copilot: 8 native, 6 emulated, 1 lost. Checks validated by the publisher: 7 of 7 guard cases give the expected decision, run on 2026-11-27.
- Any agent: 7 native, 0 emulated, 8 lost. Its guards are written as instructions: nothing enforces them.
What Codex rebuilds or loses (11)
flags: $ARGUMENTSlost, Codex does not substitute $ARGUMENTS; the agent reads the request insteadflow: $ARGUMENTSlost, Codex does not substitute $ARGUMENTS; the agent reads the request insteadtest: $ARGUMENTSlost, Codex does not substitute $ARGUMENTS; the agent reads the request insteadverify: $ARGUMENTSlost, Codex does not substitute $ARGUMENTS; the agent reads the request insteadBash(yarn download-build:*)rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the commandBash(yarn download-build-for-head:*)rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the commandBash(npm:*)rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the commandBash(pnpm:*)rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the commandBash(bun:*)rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the commandBash(npx:*)rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command7 rule(s) for Skilllost, Codex rules cover shell commands only. Nothing is less protected: Codex follows its own approval settings for these tools. The rules: Skill(extract-errors), Skill(feature-flags), Skill(fix), Skill(flags), Skill(flow), Skill(test), Skill(verify)
What GitHub Copilot rebuilds or loses (7)
Bash(yarn download-build:*)rebuilt, a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)Bash(yarn download-build-for-head:*)rebuilt, a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)Bash(npm:*)rebuilt, a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)Bash(pnpm:*)rebuilt, a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)Bash(bun:*)rebuilt, a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)Bash(npx:*)rebuilt, a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)18 rule(s)lost, Copilot keeps allow and ask rules outside the repository (--allow-tool, its own approvals). Nothing is less protected: Copilot asks as it always does. The rules: Skill(extract-errors), Skill(feature-flags), Skill(fix), Skill(flags), Skill(flow), Skill(test), Skill(verify), Bash(yarn test:*), Bash(yarn test-www:*), Bash(yarn test-classic:*), Bash(yarn test-stable:*), Bash(yarn linc:*), Bash(yarn lint:*), Bash(yarn flow:*), Bash(yarn prettier:*), Bash(yarn build:*), Bash(yarn extract-errors:*), Bash(yarn flags:*)
What Any agent rebuilds or loses (8)
Bash(yarn download-build:*)lost, written in AGENTS.md as an instruction; nothing enforces itBash(yarn download-build-for-head:*)lost, written in AGENTS.md as an instruction; nothing enforces itBash(npm:*)lost, written in AGENTS.md as an instruction; nothing enforces itBash(pnpm:*)lost, written in AGENTS.md as an instruction; nothing enforces itBash(bun:*)lost, written in AGENTS.md as an instruction; nothing enforces itBash(npx:*)lost, written in AGENTS.md as an instruction; nothing enforces it18 rule(s)lost, your agent's own approval settings applySessionStart → iflost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it
The 7 guard cases
| Case | Must | Claude Code | Codex | GitHub Copilot |
|---|---|---|---|---|
| deny rule Bash(yarn download-build:*) blocks `yarn download-build` | block | ✓ blocks | ✓ blocks | ✓ blocks |
| deny rule Bash(yarn download-build-for-head:*) blocks `yarn download-build-for-head` | block | ✓ blocks | ✓ blocks | ✓ blocks |
| deny rule Bash(npm:*) blocks `npm` | block | ✓ blocks | ✓ blocks | ✓ blocks |
| deny rule Bash(pnpm:*) blocks `pnpm` | block | ✓ blocks | ✓ blocks | ✓ blocks |
| deny rule Bash(bun:*) blocks `bun` | block | ✓ blocks | ✓ blocks | ✓ blocks |
| deny rule Bash(npx:*) blocks `npx` | block | ✓ blocks | ✓ blocks | ✓ blocks |
| a harmless command is allowed | allow | ✓ allows | ✓ allows | ✓ allows |
The checks are the publisher's own run: the hub never runs a harness. baudrier selftest runs them again in your repository.
Hooks (run on your computer) 1
SessionStartrunsif [[ "$PWD" != */compiler* ]]; then cat .claude/instructions.md 2>/dev/null ...
Refused 6
Bash(yarn download-build:*)Bash(yarn download-build-for-head:*)Bash(npm:*)Bash(pnpm:*)Bash(bun:*)Bash(npx:*)
Allowed 18
Skill(extract-errors)Skill(feature-flags)Skill(fix)Skill(flags)Skill(flow)Skill(test)Skill(verify)Bash(yarn test:*)Bash(yarn test-www:*)Bash(yarn test-classic:*)Bash(yarn test-stable:*)Bash(yarn linc:*)Bash(yarn lint:*)Bash(yarn flow:*)Bash(yarn prettier:*)Bash(yarn build:*)Bash(yarn extract-errors:*)Bash(yarn flags:*)
Skills 7
extract-errorsUse when adding new error messages to React, or seeing "unknown error code" warnings.feature-flagsUse when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.fixUse when you have lint errors, formatting issues, or before committing code to ensure it passes CI.flagsUse when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.flowUse when you need to run Flow type checking, or when seeing Flow type errors in React code.testUse when you need to run tests for React core. Supports source, www, stable, and experimental channels.verifyUse when you want to validate changes before committing, or when you need to check all React contribution requirements.
Notes from the publisher
- **Its session-start hook prints
.claude/instructions.md**, a file of the React repository that is not part of the harness. Elsewhere the hook does nothing. - The six deny rules keep agents on yarn:
npm,pnpm,bunandnpxare refused. Change them if your project uses another package manager. - **Seven
Skill(...)allow rules have no equivalent in Codex.** Nothing is less protected: Codex follows its own approval settings for skills.
Files 12
- 1.7 kB
- 2.2 kB
- 762 B
- 1.1 kB
- 1.1 kB
- 285 B
- 2.6 kB
- 495 B
- 1.0 kB
- 884 B
- 2.1 kB
- 724 B
Loading harness.yaml...
MIT (recognised from the licence file), its licence file travels with every install; from facebook/react at edae846, absorbed on 2026-11-26. The files are the source repository authors' work, copied unchanged; Baudrier AI is not affiliated with that project.