ax-agent

ax-agent is a skill for Claude Code, Codex from ax-llm/ax. It costs 131 tokens per session (8,705 once invoked), scanned A, original, Apache-2.0.

A guide for building ordinary AxAgent assistants with tools, child agents, named functions, clarification, and error handling. It helps choose the smallest agent configuration for the job.

In plain words
What is it for?
Use it to create tool-using assistants, delegate work to child agents, expose grouped functions, request clarification, or control how errors reach the caller.
Why use it?
Agent code can become unnecessarily complex when specialized features are added to a simple assistant, or when the wrong Ax API is used. The guide separates basic agent behavior from runtime, memory, and integration concerns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create tool-using assistants, delegate work to child agents, expose grouped functions, request clarification, or control how errors reach the caller.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ax-llm/ax/ax-agent
About the project

Ax is a TypeScript-first programming framework for building applications with large language models through typed generation, agents, workflows, and optimization tools. It is intended for developers who want one model for LLM programs across TypeScript, Python, Java, C++, Go, Rust, and other runtimes.

ax-llm/ax · 3,001 stars · on GitHub · axllm.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ax-llm/ax --skill ax-agent
Clone the repo
git clone --depth 1 https://github.com/ax-llm/ax

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ax-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/ax-llm/ax/ax-agent/github.svg)](https://agentmods.dev/skills/ax-llm/ax/ax-agent)
Your own site
<a href="https://agentmods.dev/skills/ax-llm/ax/ax-agent"><img src="https://agentmods.dev/badge/skills/ax-llm/ax/ax-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ax-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/ax-llm/ax/ax-agent"><img src="https://agentmods.dev/badge/skills/ax-llm/ax/ax-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,705 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00131 $0.08705
Opus 5.5 $0.00052 $0.03482
Sonnet 5.5 $0.00026 $0.01741
Haiku 4.5 $0.00013 $0.00870

Measured yesterday against content hash 56f5b3bcfe80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ax-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • ax-agent — 88% identical, 33 lines differ
website/static/typescript/.well-known/agent-skills/ax-agent/SKILL.md · 715 lines

How it starts

The opening of the file, as written. The whole thing — 715 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AxAgent Codegen Rules (@ax-llm/ax)

Use this skill to generate small, correct AxAgent code. Prefer modern factory-style APIs and copyable patterns. Do not write tutorial prose unless the user explicitly asks for explanation.

Your job is to choose the smallest correct AxAgent shape for the user's needs:

  • If the user wants a normal tool-using assistant, keep the config minimal.
  • If the user wants long-running code execution, use the ax-agent-rlm skill.
  • If the user wants callbacks, logs, tracing, or usage data, use the ax-agent-observability skill.
  • If the user wants dynamic memory retrieval or skill-guide loading, use the ax-agent-memory-skills skill.
  • If the user wants tuning or eval with agent.optimize(...), use the ax-agent-optimize skill.
  • If the user wants MCP transports, authentication, catalogs, subscriptions, tasks, Apps, or event-driven wake/resume, use the ax-mcp skill.

Use These Defaults

For Typesafe/Jev decisions inside an agent, keep a generative model for the actor's tools/code/prose and call Typesafe in a separate decision step. See the ax-typesafe skill for supported signatures and native questions; Jev cannot supply a general tool-using actor's output contract.

  • Use agent(...), not new AxAgent(...).
  • Prefer string signatures or f() signatures over hand-written signature objects.
  • Put ai, judgeAI, and agentIdentity on the agent(...) config when you want instance defaults or child-agent metadata.
  • Prefer fn(...) for host-side function definitions instead of hand-writing JSON Schema objects.
  • Prefer namespaced functions such as utils.search(...) or kb.find(...).
  • Pass child agents directly in functions: [...]. They land under their agentIdentity.namespace (or utils if unset), exactly like a fn() tool.
  • If discovery is enabled, call discover(...) before using callables whose docs are not already in the prompt.
  • Use explicit child agents in functions: [...] for specialist delegation; do not model that as recursive llmQuery(...).
  • Add bubbleErrors only for fatal infrastructure errors that should abort .forward().

Read the full file on GitHub · 715 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 56f5b3bcfe80
  2. 4d ago Changed 5934e3dba19c
  3. 6d ago Changed e03761ca7e3f
  4. 7d ago Changed 1b068e87e10c
  5. 17d ago Changed d0286ca03cc0
  6. 18d ago Changed · +3 lines 00b06eb51b53
  7. 19d ago Changed · +1 lines deacedb487fd
  8. 23d ago Changed 6f471a250e6c
  9. 28d ago Changed c5f0c3aeb76f
  10. 1mo ago First seen · 711 lines · 131 tokens per session scan A fbd0e5e6a424

Subscribe to this mod's changes

ax-agent is a skill published in the GitHub repository ax-llm/ax (3,001 stars, last pushed today), licensed Apache-2.0. It adds 131 tokens to every session and 8,705 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

ax-agent compared with skills from other repositories

ax-agent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ax-agentax-llm/axSkill3.0ktodayApache-2.0A131Claude Code, Codex
add-harness-packagevercel/aiSkill28ktodaynoneA41Claude Code, Codex
add-provider-packagevercel/aiSkill28ktodaynoneA33Claude Code, Codex
output-dev-evaluator-functiongrowthxai/outputSkill444yesterdayApache-2.0A31Claude Code
output-dev-http-client-creategrowthxai/outputSkill444yesterdayApache-2.0A37Claude Code
output-dev-prompt-filegrowthxai/outputSkill444yesterdayApache-2.0A36Claude Code
output-dev-step-functiongrowthxai/outputSkill444yesterdayApache-2.0A34Claude Code