🪓

One binary.
No more throwaway scripts.
Just ax.

A scriptless multitool for AI agents. Extract from HTML, query JSON and YAML, process text, decode and convert — in one line instead of a python heredoc. Token-cheap output, structured errors, capped by default.

1installcurl -fsSL https://ax.yusuke.run/install | sh
2teach agentThe ax CLI is installed. Run `ax agent-context` to learn it, then use it instead of writing throwaway python/regex scripts.

Agents keep writing this.

before — 3m19s, 8.6k tokens
python3 - <<'PY'
import re
h=open('page.html',errors='replace').read()
blocks=re.findall(
  r'<li class="lesson">([\s\S]*?)</li>',h)
rows=[]
for b in blocks:
  href=re.search(r'href="([^"]+)"',b)
  title=re.search(r'<a [^>]*>([^<]+)</a>',b)
  ...
PY
after — one line
ax html page.html '.lesson' \
  --row 'title=a, href=a@href, level=.cefr'

[
  { "title": "Small talk",
    "href": "/lesson/1.htm",
    "level": "A2" },
  ...
]

Six commands. JSON is the lingua franca.

01

ax html

CSS selectors, structured rows, tables, and discovery for unknown pages.

ax html url '.card' --row 'title=a'
ax html url 'table' --table
ax html url --outline / --locate
02

ax json

A jq-subset path language plus --where expressions.

ax json api.json '.items[].name'
ax json api.json '.users[]' \
  --where 'age > 20'
03

ax yaml

Same paths, same flags — for compose, CI, k8s configs.

ax yaml compose.yml \
  '.services[].image' --raw
04

ax text

grep, extract, frequency tables — the shell idioms, built in.

ax text app.log --grep 'ERROR' --count
ax text a.css --extract '#\w{6}' --freq
05

ax enc

base64, url, hex, JWT peek, hashes. No more python -c.

ax enc jwt "$TOKEN"
ax enc base64 -d 'aGVsbG8='
06

ax time

epoch ⇔ ISO ⇔ timezones ⇔ relative, in one call.

ax time 1783332078
ax time now --tz America/New_York

Built for agents, not just humans.

Output is capped by default (never silently). Errors are one structured line with a hint. --help costs a few dozen tokens, and ax agent-context prints the whole playbook offline. Your agent can also learn ax from two fetchable files:

GET /llms.txt — full reference for any agentGET /skill.md — a Claude Code skill, ready to drop in

Install