← Back to the Hub

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

What Codex rebuilds or loses (11)
  • flags: $ARGUMENTS lost, Codex does not substitute $ARGUMENTS; the agent reads the request instead
  • flow: $ARGUMENTS lost, Codex does not substitute $ARGUMENTS; the agent reads the request instead
  • test: $ARGUMENTS lost, Codex does not substitute $ARGUMENTS; the agent reads the request instead
  • verify: $ARGUMENTS lost, Codex does not substitute $ARGUMENTS; the agent reads the request instead
  • Bash(yarn download-build:*) rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command
  • Bash(yarn download-build-for-head:*) rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command
  • Bash(npm:*) rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command
  • Bash(pnpm:*) rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command
  • Bash(bun:*) rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command
  • Bash(npx:*) rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command
  • 7 rule(s) for Skill lost, 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 it
  • Bash(yarn download-build-for-head:*) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Bash(npm:*) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Bash(pnpm:*) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Bash(bun:*) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Bash(npx:*) lost, written in AGENTS.md as an instruction; nothing enforces it
  • 18 rule(s) lost, your agent's own approval settings apply
  • SessionStart → if lost, 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
CaseMustClaude CodeCodexGitHub 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 allowedallow✓ 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

  • SessionStart runs if [[ "$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-errors Use when adding new error messages to React, or seeing "unknown error code" warnings.
  • feature-flags Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.
  • fix Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.
  • flags Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.
  • flow Use when you need to run Flow type checking, or when seeing Flow type errors in React code.
  • test Use when you need to run tests for React core. Supports source, www, stable, and experimental channels.
  • verify Use when you want to validate changes before committing, or when you need to check all React contribution requirements.
Notes from the publisher

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...

All files as JSON · card.json

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.