agentleFS
adalineadaline/gateway/AGENTS.md

gateway

AGENTS.md608 starsChanged 8 months agoMITView on GitHub

This repository ships the Adaline Gateway SDK: a local, typed TypeScript SDK for calling many LLM providers through one interface.

The file

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

12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Use pnpm, never npm or yarn.

    line 17
  2. Distinctive:

    Prefer the smallest possible change in the relevant package instead of broad refactors.

    line 18
  3. Distinctive:

    Keep imports and exports aligned with existing package barrel patterns.

    line 20
  4. Very specific:

    Do not hand-edit release artifacts or .changeset files unless the task is explicitly about release/versioning.

    line 21
  5. Very specific:

    When changing provider behavior, review the matching provider package and shared contracts in packages/types and packages/provider.

    line 22
  6. Very specific:

    Before finishing a non-trivial change, run at least pnpm run lint and the relevant pnpm run test scope.

    line 44
  7. Distinctive:

    If a change affects published behavior or package surfaces, mention whether a changeset is required.

    line 45
  8. Distinctive:

    Use Zod schemas at runtime boundaries and export both schema and inferred type when the package already follows that pattern.

    line 49
  9. Very specific:

    Prefer unknown plus validation over any.

    line 50
  10. Distinctive:

    Add or update tests for public API behavior, edge cases, and provider-specific error handling.

    line 51
  11. Very specific:

    Read core/providers/AGENTS.md before editing any provider package.

    line 56
  12. Very specific:

    Read packages/types/AGENTS.md before changing shared schemas or message/content types.

    line 57

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

AGENTS.md

This repository ships the Adaline Gateway SDK: a local, typed TypeScript SDK for calling many LLM providers through one interface.

Stack

  • Node.js 18+
  • pnpm 9+ only
  • Turborepo
  • TypeScript + tsup
  • Vitest
  • ESLint + Prettier
  • Changesets for releases

Working Agreement

  • Use pnpm, never npm or yarn.
  • Prefer the smallest possible change in the relevant package instead of broad refactors.
  • Preserve dual-output package behavior: ESM, CJS, and type declarations.
  • Keep imports and exports aligned with existing package barrel patterns.
  • Do not hand-edit release artifacts or .changeset files unless the task is explicitly about release/versioning.
  • When changing provider behavior, review the matching provider package and shared contracts in packages/types and packages/provider.

Repository Map

  • core/gateway/: gateway orchestrator, plugins, handlers, errors
  • core/providers/: provider implementations
  • packages/types/: shared Zod schemas and inferred types
  • packages/provider/: base provider contracts
  • tools/: shared eslint and tsconfig packages

Commands

  • Install: pnpm install
  • Build all: pnpm run build
  • Test all: pnpm run test
  • Lint all: pnpm run lint
  • Format all: pnpm run format
  • Clean: pnpm run clean

Validation

  • For provider or shared type changes, run the narrowest package test/build that proves the change works.
  • Before finishing a non-trivial change, run at least pnpm run lint and the relevant pnpm run test scope.
  • If a change affects published behavior or package surfaces, mention whether a changeset is required.

Coding Rules

  • Use Zod schemas at runtime boundaries and export both schema and inferred type when the package already follows that pattern.
  • Prefer unknown plus validation over any.
  • Add or update tests for public API behavior, edge cases, and provider-specific error handling.
  • Mock external provider calls in tests. Do not hit live APIs from test code.

Nested Instructions

  • Read core/providers/AGENTS.md before editing any provider package.
  • Read packages/types/AGENTS.md before changing shared schemas or message/content types.

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.