agentleFS
ax-llmax-llm/ax/AGENTS.md

ax

AGENTS.md3k starsChanged 57 days agoApache-2.0View on GitHub

This file should stay short. Use it for repo-specific rules, workspace conventions, and pointers to the deeper subsystem docs in src/ax/skills/. Do not turn this file into a second full API manual. docs/ holds the canonical maintainer markdown. The public site under website/ is built separately with npm run website:build (TypeDoc API markdown → npm run website:prepare → Hugo → Pagefind); never edit the generated copies under website/.generated/ or website/public/. Prefer the modern factory-style API: Avoid deprecated patterns in new…

  • Reads credentials
  • Installs packages

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 3 mentionsMar 2026: 6 mentionsApr 2026: 8 mentionsMay 2026: 6 mentionsJun 2026: 4 mentionsJul 2026: 1 mentionAug 2026: 4 mentionsSep 2026: 11 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the ax-llm/ax repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about ax-llm/ax

The biggest 5 of 45 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 45

Talked about on GitHub and Bluesky (45 times).

On GitHub · 44

39 more on GitHub

On Bluesky · 1

  • 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

19 rules. About 1 is common, 6 are distinctive, and 12 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use it for repo-specific rules, workspace conventions, and pointers to the deeper subsystem docs in src/ax/skills/.

    line 7
  2. Distinctive:

    Do not turn this file into a second full API manual.

    line 9
  3. Distinctive:

    Prefer the modern factory-style API:

    line 28
  4. Very specific:

    use ai(...), ax(...), agent(...), flow(...), optimize(...)

    line 30
  5. Very specific:

    prefer string signatures and s(...)

    line 31
  6. Very specific:

    prefer fn(...) for tools

    line 32
  7. Distinctive:

    Avoid deprecated patterns in new code:

    line 34
  8. Distinctive:

    When adding or updating any example, default, or test that names a model, pick a current generation — newer beats biggest.

    line 41
  9. Very specific:

    Use the skill files in src/ax/skills/ as the primary subsystem documentation:

    line 51
  10. Distinctive:

    When adding or changing a subsystem, update the relevant skill instead of expanding this file.

    line 67
  11. Very specific:

    Use tools/axir/skills/axir-language-backend/SKILL.md when adding generated language backends.

    line 70
  12. Very specific:

    Use tools/website-md/skills/website-md-language-docs/SKILL.md when changing features, languages, examples, API symbols, AxIR capabilities, …

    line 72
  13. Very specific:

    If a PR changes portable TypeScript behavior under src/ax/ai/, src/ax/dsp/, src/ax/agent/, src/ax/flow/, or src/ax/mcp/, either update …

    line 80
  14. Distinctive:

    If the changed code is intentionally not portable, such as a browser-only provider around a host runtime, add a scoped non-portable …

    line 89
  15. Very specific:

    Do not run npm install inside individual workspace folders.

    line 119
  16. Very specific:

    if exports change, update source exports and run npm run build:index --workspace=@ax-llm/ax

    line 136
  17. Very specific:

    keep src/ax/ browser-compatible.

    line 139
  18. Common:

    never commit API keys; use environment variables

    line 140
  19. Very specific:

    run changed runnable examples from the repo root with npm run tsx src/examples/<example-file>.ts.

    line 150

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

Ax Repository Guide

What This File Is For

This file should stay short.

Use it for repo-specific rules, workspace conventions, and pointers to the deeper subsystem docs in src/ax/skills/.

Do not turn this file into a second full API manual.

Repository Layout

  • src/ax/ - main library package: @ax-llm/ax
  • src/ai-sdk-provider/ - Vercel AI SDK provider: @ax-llm/ax-ai-sdk-provider
  • src/examples/ - runnable examples and integration-style demos
  • website/ - Hugo documentation site, deployed to axllm.dev via GitHub Pages
  • docs/ - canonical markdown docs

Canonical Docs

docs/ holds the canonical maintainer markdown. The public site under website/ is built separately with npm run website:build (TypeDoc API markdown → npm run website:prepare → Hugo → Pagefind); never edit the generated copies under website/.generated/ or website/public/.

Current Project Defaults

Prefer the modern factory-style API:

  • use ai(...), ax(...), agent(...), flow(...), optimize(...)
  • prefer string signatures and s(...)
  • prefer fn(...) for tools

Avoid deprecated patterns in new code:

  • new AxAI(...)
  • template literal forms like ax`...` and s`...`

Use current models

When adding or updating any example, default, or test that names a model, pick a current generation — newer beats biggest. The provider model enums are the source of truth for what's current: src/ax/ai/openai/chat_types.ts, src/ax/ai/google-gemini/types.ts, src/ax/ai/anthropic/types.ts. Choose a recent member; a newer small/cheap model (e.g. gpt-5.4-mini, gemini-3.5-flash) is preferred over an old flagship (gpt-4o, gemini-2.x), and never pin a dated -preview when a stable newer one exists. Don't leave examples sitting on an old generation once a newer one lands in the enums.

Skills As Subsystem Docs

Use the skill files in src/ax/skills/ as the primary subsystem documentation:

  • src/ax/skills/ax-llm.md - top-level Ax quick reference
  • src/ax/skills/ax-ai.md - AI providers, models, presets, embeddings, thinking
  • src/ax/skills/ax-typesafe.md - Typesafe/Jev signatures, native questions, criteria, scoring, and hybrid generation (TypeScript)
  • src/ax/skills/ax-audio.md - conversational audio input/output in .chat()
  • src/ax/skills/ax-signature.md - signatures, field types, validation, fluent API
  • src/ax/skills/ax-gen.md - generators and structured output
  • src/ax/skills/ax-agent.md - agents, runtime, discovery, delegation, shared fields
  • src/ax/skills/ax-agent-optimize.md - agent.optimize(...), evals, judges, artifacts
  • src/ax/skills/ax-flow.md - workflows and orchestration
  • src/ax/skills/ax-mcp.md - native MCP clients, transports, auth, catalogs, tasks, subscriptions, and Ax integration
  • src/ax/skills/ax-event-runtime.md - event ingestion, wake/resume, continuations, stores, and sinks
  • src/ax/skills/ax-gepa.md - Pareto optimization
  • src/ax/skills/ax-learn.md - self-improving agent patterns

When adding or changing a subsystem, update the relevant skill instead of expanding this file.

Repo-maintainer skills that should not ship in Ax packages live under tools/*/skills/. Use tools/axir/skills/axir-language-backend/SKILL.md when adding generated language backends. Use tools/website-md/skills/website-md-language-docs/SKILL.md when changing features, languages, examples, API symbols, AxIR capabilities, or generated website language docs. Public language features should keep generated package source, public runnable examples, and website markdown in sync in the same PR.

AxIR Backlog For Portable TS Changes

If a PR changes portable TypeScript behavior under src/ax/ai/, src/ax/dsp/, src/ax/agent/, src/ax/flow/, or src/ax/mcp/, either update AxIR/conformance in the same PR or add a backlog entry:

npm run axir:backlog -- add --title "..." --surface axai --impact "..." --paths src/ax/ai/...
npm run axir:backlog:validate

If the changed code is intentionally not portable, such as a browser-only provider around a host runtime, add a scoped non-portable exemption instead of a backlog item:

npm run axir:backlog -- exempt --id "..." --surface axai --reason "..." --paths src/ax/ai/browser-only-provider --tags browser-only
npm run axir:backlog:validate

Most TS-only PR agents should prefer a backlog entry over attempting an AxIR migration unless they are already working in ir/ or tools/axir/. AxIR maintainers can refresh conformance with:

npm run axir:conformance:check
npm run axir:conformance:write
npm run test:axir

Package Management

Install dependencies from the repo root with workspace flags:

npm i <package-name> --workspace=@ax-llm/ax
npm i <package-name> --workspace=@ax-llm/ax-ai-sdk-provider
npm i <package-name> --workspace=@ax-llm/ax-examples
npm i <package-name> --workspace=@ax-llm/ax-docs

Do not run npm install inside individual workspace folders.

Development Commands

npm run build
npm run fix
npm run test
npm run test --workspace=@ax-llm/ax
npm run dev --workspace=@ax-llm/ax
npm run tsx ./src/examples/<example-file>.ts
npm run build:index --workspace=@ax-llm/ax

Important Repo Constraints

  • src/ax/index.ts is auto-generated; do not edit it manually
  • if exports change, update source exports and run npm run build:index --workspace=@ax-llm/ax
  • Node.js >= 20
  • ES modules only
  • keep src/ax/ browser-compatible; do not add fs, path, or os there
  • never commit API keys; use environment variables

Examples

Examples should usually follow these conventions:

  • top-level executable code
  • minimal logging
  • no unnecessary wrappers
  • export reusable components when helpful
  • run changed runnable examples from the repo root with npm run tsx src/examples/<example-file>.ts; API keys are provided through the repo .env

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.