agentleFS
OpenThrottleOpenThrottle/monorepo/applications/AGENTS.md

monorepo / applications

AGENTS.md2 starsChanged 2 months agoApache-2.0View on GitHub

Family-shared notes for everything under applications/. Per-project deltas live in each app's own AGENTS.md; monorepo-wide rules live in the root AGENTS.md / CLAUDE.md. Every app keeps its own .env + .env.default in its project root. Local port map (from .env.default files): developer 6020, server 6021, admin 6022 (6023 is reserved for a CMS app), email 6024, website 6025; Postgres 6010, Redis 6011. Workbench (Storybook) runs on 6006, outside the 60xx block — see openthrottle-workbench/AGENTS.md. Apps with tests/e2e/ run Maestro flows…

  • Reads credentials

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every app keeps its own .env + .env.default in its project root.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

applications/ — agent notes

Family-shared notes for everything under applications/. Per-project deltas live in each app's own AGENTS.md; monorepo-wide rules live in the root AGENTS.md / CLAUDE.md.

What lives here

  • Three React Router v8 + Vite apps: openthrottle-developer, openthrottle-admin, openthrottle-website.
  • One NestJS app: openthrottle-server — the only backend, owner of the code-first GraphQL schema (schema.gql).
  • One Storybook host: openthrottle-workbench — Storybook 10 for @openthrottle/react-router-shadcn. Not a React Router app; production:false, local dev tool only, never deployed. See openthrottle-workbench/AGENTS.md.
  • openthrottle/ is not an Nx project (no package.json): a standalone consumer-install docker-compose.yml + Dockerfiles running published images. Local dev Postgres/Redis come from the root docker-compose.yml via pnpm run database:start, not this directory.

Ports and env

Every app keeps its own .env + .env.default in its project root. Local port map (from .env.default files): developer 6020, server 6021, admin 6022 (6023 is reserved for a CMS app), email 6024, website 6025; Postgres 6010, Redis 6011. Workbench (Storybook) runs on 6006, outside the 60xx block — see openthrottle-workbench/AGENTS.md.

React Router app family conventions

  • dev/build/start targets are inferred by @nx/react/router-plugin (see root nx.json), so they do not appear in an app's package.json nx.targets. The real typecheck target is explicit per app; the plugin's inferred one is renamed __NOT_USED__typecheck.
  • Layout: app/routes/ route modules (registered in app/routes.ts) stay thin and delegate to app/routing/<area>/ feature folders (components/, data/, hooks/, utils/), imported via the ~/* → app/* tsconfig alias. Component vs data file boundaries: docs/monorepo/code-style.md.
  • GraphQL entity props on components/hooks/fixtures are typed from generated XxxFragment types, not NonNullable<Route.ComponentProps['loaderData']['x']> or NonNullable<GetXQuery['field']>: packages/graphql-codegen/README.md.
  • app/__generated__/ is codegen output from the per-app codegen-graphql / codegen-react-router targets — regenerate, never hand-edit. Fresh worktrees need codegen to run before Vitest suites can even collect.
  • tests/setup.ts is the single shared setupReactRouterTest call (root CLAUDE.md); app-specific jsdom shims stay local in that file rather than moving into @openthrottle/react-router-testing (see the developer app's WebGL/visualViewport shims).

E2E

Apps with tests/e2e/ run Maestro flows via pnpm nx run <app>:test-e2e (configurations: smoke, full, watch, record, studio; cwd is tests/e2e/). Run E2E against a production build (build, then NODE_ENV=production react-router-serve ./build/server/index.js), not the Vite dev server. react-router-serve does not auto-load env files — source .env.default first. Canonical write-up: openthrottle-developer/tests/e2e/README.md.

Server/schema gotcha that affects everyone

autoSchemaFile is the cwd-relative string 'schema.gql' (set in packages/nestjs-graphql), and the openthrottle-server dev/start targets run with cwd at the project root, so booting pnpm nx run openthrottle-server:dev writes applications/openthrottle-server/schema.gql. That is the single committed schema; every consumer reads it via @openthrottle/graphql-codegen's defineCodegen. Boot, then run consumer codegen and commit both.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.