monorepo / packages
AGENTS.md2 starsChanged 2 months agoApache-2.0View on GitHub
Family-shared notes for everything under packages/. Per-project deltas live in each package's own AGENTS.md; monorepo-wide rules live in the root AGENTS.md / CLAUDE.md.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- applications/AGENTS.mdAGENTS.md
- databases/AGENTS.mdAGENTS.md
- infra/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/nx-rules.mdcCursor rule
- frontend-designSkill
- grillingSkill
- improveSkill
- link-workspace-packagesSkill
- monitor-ciSkill
- nx-workspaceSkill
- agents-ralphSkill
- github-commitSkill
- github-pull-requestSkill
- github-squashSkill
- ot-foldersSkill
- ot-generatorsSkill
- ot-loopSkill
- ot-onboardingSkill
- ot-plansSkill
- ot-postgresSkill
- ot-skill-syncSkill
- ot-stackSkill
- ot-worktreeSkill
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
- Very specific: line 21
No deep imports between workspace packages: consume via the main entry (import { X } from '@openthrottle/foo') and re-export new symbols …
≈ “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.
Files
packages/ — agent notes
Family-shared notes for everything under packages/. Per-project deltas live in each package's own AGENTS.md; monorepo-wide rules live in the root AGENTS.md / CLAUDE.md.
Three families
nestjs-*— NestJS server modules (auth, bullmq, graphql, typeorm, redis, repositories, …) consumed byopenthrottle-server; typicallyforRoot/forRootAsync-style modules with a realbuildtarget shippingdist/.react-router-*— shared UI/client libraries (shadcn, ui, testing, utils, graphql, chat, ide, …) consumed source-first by the React Router apps; nobuildtarget by design.openthrottle-*— agentic/product libraries (agentic-ralph, workflows, mcp, ide, skills, notifications, developer-codegen, showroom, …); mixed build story — check each package, don't assume.openthrottle-showroomis the @OpenThrottleAI screencast pipeline: typed episode scripts, demo flows, Playwright capture, narration, ffmpeg assembly and a pre-publish leak scan.- A few one-offs sit outside those prefixes:
graphql-codegen,node-client,nodejs-graphql.
Source-first vs built — how to tell
- The reliable discriminator is
nx.targetsin the package'spackage.json:__build/__build-packageplaceholder keys mean intentionally no build target (consumers' Vite/tsc compiles the source). A realbuildorbuild-packagetarget means it shipsdist/. nestjs-*is built, always. Everytechnology:nestjspackage pointsmain/module/typesand everyexportscondition atdist/and declares livebuildanddevtargets (devbecauseopenthrottle-server:devcascades^dev— without it the package'sdist/goes stale under you) — enforced byscripts/check-package-entrypoints.ts, keyed on the tag rather than on whether the package contains decorators. Do not move one to source-first because it looks clean; the whole tag flips at once when NestJS supports ESM. Reasoning: docs/monorepo/source-first-packages-and-strip-only.md.- A sizable set of projects has no
buildtarget by design — see MONOREPO.md § Projects without abuildtarget. Do not audit that set by diffingpnpm nx show projectsagainst--with-target=build: Nx infers abuildtarget from a package'svite.config.ts, so source-first packages likenodejs-utilsandopenthrottle-showroomappear in that list too. Grep for the__buildplaceholder inpackage.jsoninstead — that is the discriminator named above. Never addbuildto them; validate withlint/typecheck/test, then rundevorbuildon a consumer app (e.g.openthrottle-developer) as the integration check.pnpm nx affected --target=buildwill not schedule them. - Packages that
openthrottle-serverimports must keep top-levelexports→dist(not onlypublishConfig), or the Docker runtime fails withERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPINGonsrc/*.ts.
Import and export rules
- No deep imports between workspace packages: consume via the main entry (
import { X } from '@openthrottle/foo') and re-export new symbols from the package'sindex.ts. Do not add subpath exports just to expose one symbol. - Server/client boundary: Node-only engines (e.g.
openthrottle-ide) are consumed by UI packages via type-only imports plus*.server.tsdynamic imports; never import Node-only packages into browser code.
Gotchas
packages/openthrottle-postgres/contains only a straydist/— nopackage.json, not an Nx project. Don't model new packages on it.- Some packages carry their own codegen targets (
codegen-graphql, e.g.openthrottle-mcp,openthrottle-agentic-ralph); their__generated__output follows the root codegen flow — regenerate, never hand-edit.
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
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.

