Skip to content
Agentmart
Submit a tool

AGENTS.md · react-cosmos/react-cosmos

AGENTS.md from react-cosmos/react-cosmos: 36 lines covering Architecture, Dependencies, Build & test commands, Cross-package source linking.

Template by react-cosmos

IndexedMIT★ 8,690
Write a review

Chalk Labs

Need help deploying AGENTS.md · react-cosmos/react-cosmos?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/react-cosmos/react-cosmos/main/AGENTS.md -o AGENTS.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that react-cosmos/react-cosmos (8,690 stars) keeps for coding agents. It has 36 lines in 4 sections: Architecture; Dependencies; Build & test commands; Cross-package source linking. Use it as a model for your own project's instructions.

Use cases: frontend-development, code-generation

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.

For
Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
Length
36 lines
File
AGENTS.md

Sections

  1. Architecture
  2. Dependencies
  3. Build & test commands
  4. Cross-package source linking

First lines (shown under the repo's MIT license)

# AGENTS.md

Guidance for agents when working in this monorepo.

Never commit without an explicit prompt — the user reviews changes before they land.

Never add a `Co-Authored-By` line or any other tool attribution to commit messages.

## Architecture

See [docs/pages/docs/dev/architecture.md](docs/pages/docs/dev/architecture.md) for the three-part breakdown of React Cosmos (Server, UI, Renderer) and how they communicate. Keep it in mind when making changes — the boundaries between these parts are load-bearing.

## Dependencies

All npm dependencies are pinned to exact versions (no `^` or `~` prefix). When adding or upgrading a package, use `npm install --save-exact <pkg>` (or `-E`) so the `package.json` entry is an exact version.

## Build & test commands

Use the npm scripts, not raw `tsc` / `vitest` — the scripts wrap custom build orchestration (see `scripts/build.ts`) and shared config that the raw tools don't know about.

- **Build one package**: `npm run build <pkg>` — e.g. `npm run build react-cosmos-core`. Accepts shorthand (`plugin-webpack` → `react-cosmos-plugin-webpack`).
- **Build all packages**: `npm run build` (serial, in dependency order).
- **Clear builds**: `npm run build:clear`.
- **Type-check**: `npm run check-types`.
- **Lint**: `npm run lint`.
- **Format**: `npm run format` (writes) or `npm run format:check` (CI mode).
- **Run tests**: `npm run test:run <filter>` — e.g. `npm run test:run react-cosmos-core`. Without a filter runs the full suite.
- **Watch tests**: `npm run test`.
- **E2E**: `npm run test:e2e` (Playwright).

## Cross-package source linking

`npm run src` rewrites the root shim files (`packages/*/{index,client,vitest}.{js,d.ts}`) to point at `./src/…` so cross-package edits resolve without rebuilding and so cross-package test coverage is measured against source. CI runs it before `check-types`, `lint`, and `test:run` — source-mode must type-check cleanly, not just dist-mode.

`npm run dist` flips them back. Always run this before committing; the repo's committed state is dist-mode.

Signals

Stars
8,690
Forks
382
Open issues
4
Last commit (this folder)
Aug 17, 2026 (2 months ago)
Last release
Aug 31, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get AGENTS.md · react-cosmos/react-cosmos running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying AGENTS.md · react-cosmos/react-cosmos?

CallGet help
Cite this page

AGENTS.md · react-cosmos/react-cosmos. Agent Mart. https://agentmart.dev/templates/react-cosmos-react-cosmos-agents-md (last updated 2026-10-24)