agentleFS
OpenThrottleOpenThrottle/monorepo/packages/AGENTS.md

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.

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:

    No deep imports between workspace packages: consume via the main entry (import { X } from '@openthrottle/foo') and re-export new symbols …

    line 21

≈ “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

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 by openthrottle-server; typically forRoot/forRootAsync-style modules with a real build target shipping dist/.
  • react-router-* — shared UI/client libraries (shadcn, ui, testing, utils, graphql, chat, ide, …) consumed source-first by the React Router apps; no build target 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-showroom is 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.targets in the package's package.json: __build / __build-package placeholder keys mean intentionally no build target (consumers' Vite/tsc compiles the source). A real build or build-package target means it ships dist/.
  • nestjs-* is built, always. Every technology:nestjs package points main/module/types and every exports condition at dist/ and declares live build and dev targets (dev because openthrottle-server:dev cascades ^dev — without it the package's dist/ goes stale under you) — enforced by scripts/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 build target by design — see MONOREPO.md § Projects without a build target. Do not audit that set by diffing pnpm nx show projects against --with-target=build: Nx infers a build target from a package's vite.config.ts, so source-first packages like nodejs-utils and openthrottle-showroom appear in that list too. Grep for the __build placeholder in package.json instead — that is the discriminator named above. Never add build to them; validate with lint/typecheck/test, then run dev or build on a consumer app (e.g. openthrottle-developer) as the integration check. pnpm nx affected --target=build will not schedule them.
  • Packages that openthrottle-server imports must keep top-level exports → dist (not only publishConfig), or the Docker runtime fails with ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING on src/*.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's index.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.ts dynamic imports; never import Node-only packages into browser code.

Gotchas

  • packages/openthrottle-postgres/ contains only a stray dist/ — no package.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.

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.