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
Who's talking about ax-llm/ax
- @gakuueda.bsky.social“TypeScriptによるAgentフレームワーク。比較的とっつきやすいです。 github.com/ax-llm/ax”Bluesky · Dec 23, 2024 · 2 likes
- anomalyco/opencode“[FEATURE]: Self-Improving Prompt Learning System (GEPA + DSPy/DSRs Integration)”GitHub · Mar 15, 2026 · 1 reactions
- sudosubin/agents.nix“agent-skills.github.ax-llm.ax: init at 25.0.0”GitHub · Oct 3, 2026
- dx-corp/kestrel“build(deps): bump the prod-minor-patch group across 1 directory with 10 updates”GitHub · Sep 29, 2026
- Promethe-us/awesome-jev“docs: refresh verified Jev ecosystem and research”GitHub · Sep 26, 2026
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
- Mar 15, 2026[FEATURE]: Self-Improving Prompt Learning System (GEPA + DSPy/DSRs Integration) — anomalyco/opencode1 reaction · 4 comments
- Oct 3, 2026agent-skills.github.ax-llm.ax: init at 25.0.0 — sudosubin/agents.nix0 reactions
- Sep 29, 2026build(deps): bump the prod-minor-patch group across 1 directory with 10 updates — dx-corp/kestrel0 reactions · 1 comment
- Sep 26, 2026docs: refresh verified Jev ecosystem and research — Promethe-us/awesome-jev0 reactions
- Sep 25, 2026build(deps): Bump @ax-llm/ax from 19.0.45 to 24.0.20 — marolinik/waggle-os0 reactions · 3 comments
39 more on GitHub
- Sep 22, 2026build(deps): bump the prod-minor-patch group with 6 updates — dx-corp/kestrel0 reactions · 2 comments
- Sep 8, 2026build(deps): bump @ax-llm/ax from 23.0.11 to 24.0.17 — dx-corp/kestrel0 reactions · 1 comment
- Sep 2, 2026chore(copy): anti-tell pass over the playbook skill — 24601/halligan0 reactions
- Sep 2, 2026ci: stable mcp-event lockfile, unconditional hygiene gate, docs-only PRs satisfy the ruleset — 24601/halligan0 reactions
- Sep 2, 2026chore(copy): anti-tell pass over the architecture, AxIR, event runtime, mind, and changelog docs — 24601/halligan0 reactions
- Sep 2, 2026chore(copy): anti-tell pass over the core Ax skills — 24601/halligan0 reactions
- Sep 2, 2026feat(release): publish-time Halligan package identities for npm, PyPI, crates.io, and Maven — 24601/halligan0 reactions
- Sep 2, 2026chore(copy): anti-tell writing skill, deterministic copy-tells gate, and a first rewrite pass over halligan docs — 24601/halligan0 reactions
- Aug 28, 2026chore(deps): bump @ax-llm/ax from 19.0.45 to 24.0.20 — marolinik/waggle-os0 reactions · 4 comments
- Aug 18, 2026build(deps): bump the prod-minor-patch group with 5 updates — dx-corp/kestrel0 reactions · 2 comments
- Aug 11, 2026build(deps): bump the prod-minor-patch group across 1 directory with 5 updates — dx-corp/kestrel0 reactions · 1 comment
- Aug 4, 2026build(deps): bump the prod-minor-patch group across 1 directory with 4 updates — dx-corp/kestrel0 reactions · 2 comments
- Jul 28, 2026build(deps): bump @ax-llm/ax from 22.0.3 to 23.0.5 — dx-corp/kestrel0 reactions · 2 comments
- Jun 30, 2026build(deps): bump the prod-minor-patch group across 1 directory with 6 updates — dx-corp/kestrel0 reactions · 3 comments
- Jun 23, 2026build(deps): bump the prod-minor-patch group with 4 updates — dx-corp/kestrel0 reactions · 3 comments
- Jun 16, 2026build(deps): bump @ax-llm/ax from 21.0.14 to 22.0.3 — dx-corp/kestrel0 reactions · 2 comments
- Jun 5, 2026[Add] Ax (ax-llm/ax) — PyTorchKR/landscape0 reactions · 2 comments
- May 26, 2026build(deps): bump the prod-minor-patch group across 1 directory with 7 updates — dx-corp/kestrel0 reactions · 1 comment
- May 20, 2026build(deps): bump the prod-minor-patch group with 6 updates — dx-corp/kestrel0 reactions · 2 comments
- May 12, 2026build(deps): bump @ax-llm/ax from 20.0.1 to 21.0.0 — dx-corp/kestrel0 reactions · 2 comments
- May 10, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 21.0.0 — HOPE-sauced/2Reson8-Labs0 reactions
- May 5, 2026build(deps): bump the prod-minor-patch group with 5 updates — dx-corp/kestrel0 reactions · 3 comments
- May 3, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 20.0.1 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Apr 28, 2026build(deps): bump @ax-llm/ax from 19.0.45 to 20.0.0 — dx-corp/kestrel0 reactions · 2 comments
- Apr 26, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 20.0.0 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Apr 25, 2026build(deps): Bump the prod-minor-patch group with 5 updates — dx-corp/kestrel0 reactions · 2 comments
- Apr 19, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 19.0.45 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Apr 12, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 19.0.43 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Apr 10, 2026chore(deps): bump @ax-llm/ax from 19.0.37 to 19.0.42 in /agentcrawls-ts — jadecli/researchers0 reactions
- Apr 5, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 19.0.41 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Apr 3, 2026chore(deps): bump @ax-llm/ax from 19.0.37 to 19.0.41 in /agentcrawls-ts — jadecli/researchers0 reactions · 2 comments
- Mar 29, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 19.0.38 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Mar 22, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 19.0.28 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Mar 15, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 19.0.16 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Mar 8, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 19.0.13 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Mar 1, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 19.0.11 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Feb 22, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 18.0.7 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Feb 15, 2026chore(deps)(deps): bump @ax-llm/ax from 16.1.12 to 17.0.2 — HOPE-sauced/2Reson8-Labs0 reactions · 1 comment
- Feb 9, 2026Research: Evaluate AX (TypeScript DSPy) for prompt optimization — medic/cht-agent0 reactions · 1 comment
On Bluesky · 1
- Dec 23, 2024TypeScriptによるAgentフレームワーク。比較的とっつきやすいです。 github.com/ax-llm/ax — @gakuueda.bsky.social2 likes and reposts
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.
- docs/CLAUDE.mdCLAUDE.md
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
- Very specific: line 7
Use it for repo-specific rules, workspace conventions, and pointers to the deeper subsystem docs in src/ax/skills/.
- Distinctive: line 9
Do not turn this file into a second full API manual.
- Distinctive: line 28
Prefer the modern factory-style API:
- Very specific: line 30
use ai(...), ax(...), agent(...), flow(...), optimize(...)
- Very specific: line 31
prefer string signatures and s(...)
- Very specific: line 32
prefer fn(...) for tools
- Distinctive: line 34
Avoid deprecated patterns in new code:
- Distinctive: line 41
When adding or updating any example, default, or test that names a model, pick a current generation — newer beats biggest.
- Very specific: line 51
Use the skill files in src/ax/skills/ as the primary subsystem documentation:
- Distinctive: line 67
When adding or changing a subsystem, update the relevant skill instead of expanding this file.
- Very specific: line 70
Use tools/axir/skills/axir-language-backend/SKILL.md when adding generated language backends.
- Very specific: line 72
Use tools/website-md/skills/website-md-language-docs/SKILL.md when changing features, languages, examples, API symbols, AxIR capabilities, …
- Very specific: line 80
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 …
- Distinctive: line 89
If the changed code is intentionally not portable, such as a browser-only provider around a host runtime, add a scoped non-portable …
- Very specific: line 119
Do not run npm install inside individual workspace folders.
- Very specific: line 136
if exports change, update source exports and run npm run build:index --workspace=@ax-llm/ax
- Very specific: line 139
keep src/ax/ browser-compatible.
- Common: line 140
never commit API keys; use environment variables
- Very specific: line 150
run changed runnable examples from the repo root with npm run tsx src/examples/<example-file>.ts.
≈ “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
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/axsrc/ai-sdk-provider/- Vercel AI SDK provider:@ax-llm/ax-ai-sdk-providersrc/examples/- runnable examples and integration-style demoswebsite/- Hugo documentation site, deployed to axllm.dev via GitHub Pagesdocs/- 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`...`ands`...`
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 referencesrc/ax/skills/ax-ai.md- AI providers, models, presets, embeddings, thinkingsrc/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 APIsrc/ax/skills/ax-gen.md- generators and structured outputsrc/ax/skills/ax-agent.md- agents, runtime, discovery, delegation, shared fieldssrc/ax/skills/ax-agent-optimize.md-agent.optimize(...), evals, judges, artifactssrc/ax/skills/ax-flow.md- workflows and orchestrationsrc/ax/skills/ax-mcp.md- native MCP clients, transports, auth, catalogs, tasks, subscriptions, and Ax integrationsrc/ax/skills/ax-event-runtime.md- event ingestion, wake/resume, continuations, stores, and sinkssrc/ax/skills/ax-gepa.md- Pareto optimizationsrc/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:validateIf 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:validateMost 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:axirPackage 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-docsDo 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/axImportant Repo Constraints
src/ax/index.tsis 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 addfs,path, orosthere - 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
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.

