2 Commits
Author SHA1 Message Date
Alex Hunt f66a39d1cd Update AGENTS.md (#58099)
Summary:
Further updates to AGENTS.md, motivated by cloning this repo in additional environments (Cursor Cloud).

**Changes**

Restructure the guidance around what an agent needs to know before it starts, and correct several details against the repo.

- Add an Environment section covering the package manager and which toolchain each surface needs.
- Rescope Gotchas to the Yarn install and codegen build rough edges.
- Correct the commands table: `yarn format-check` checks Prettier only, `yarn fantom` builds a native tester on first run, and JavaScript CI is the `lint`, `test_js`, and `build_js_types` jobs.
- Separate RNTester into its own section.

Changelog: [Internal]

Pull Request resolved: https://github.com/react/react-native/pull/58099

Test Plan: —

Reviewed By: christophpurrer

Differential Revision: D117215889

Pulled By: Abbondanzo

fbshipit-source-id: 29f83724bbf09540d16cc6fe6b904aa8d11f6e30
2026-08-24 11:13:58 -07:00
Alex Hunt 2e4e8303ea Update agent guidance, move to AGENTS.md (#57944)
Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57944

The V1 of our `CLAUDE.md` was mostly contributor boilerplate. Revise this towards a plan overview of the repo — giving the agent immediate context on working in the codebase (and reducing exploratory file reads).

Also moves `CLAUDE.md` to `AGENTS.md`, for interop with non-Claude harnesses — `CLAUDE.md` is now a pointer to this source.

New contents:

- Repo structure
- Common commands
- Gotchas
- Contributing guidelines

This remains intentionally high level rather than exhaustive, to keep the context window lean. We can move towards nested `AGENTS.md` files over time.

**Notes**

- `CONTRIBUTING.md` is unchanged — already a short pointer to reactnative.dev. (Possible candidate for later deletion.)

Changelog: [Internal]

Reviewed By: Abbondanzo

Differential Revision: D115564651

fbshipit-source-id: 8e237cd1ab6189632bf59b2bd865c5f06fef8bcc
2026-08-13 07:20:06 -07:00