fetch
curl-like fetching for agent workflows: every request yields a structured report instead of silent failure.
ax https://api.site.example/users
→ { "status": 200, "ok": true,
"ms": 84, "headers": {...},
"body": [...] }Local HTTP and HTML I/O for coding agents. One command instead of curl + throwaway Python — structured, token-cheap, capped by default, never silent.
curl -fsSL https://ax.yusuke.run/install | shax is installed. Run `ax agent-context` to learn it — use it instead of throwaway scripts.# what's on this page? $ ax https://shop.example --outline 80 .prod # pull it out, structured $ ax https://shop.example '.prod' \ --row 'name=h3, price=.price' name price Desk Lamp $29 Mug $12 ... ax: note: 80 rows extracted, no empty fields
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)
...
PYax https://site.example '.lesson' \
--row 'title=a, href=a@href, level=.cefr'
title href level
Small talk /lesson/1.htm A2
Directions /lesson/2.htm A2
...
ax: note: 50 rows extracted, no empty fieldscurl-like fetching for agent workflows: every request yields a structured report instead of silent failure.
ax https://api.site.example/users
→ { "status": 200, "ok": true,
"ms": 84, "headers": {...},
"body": [...] }Understand an unknown page without dumping raw HTML into context.
ax https://site.example --outline 50 div.lesson ax https://site.example --locate 'text' ax https://site.example '.card' --count
CSS selectors → structured rows. Easier for agents to repair than regex when markup changes.
ax url '.item' --row 'title=a, href=a@href' ax url 'table' --table --where 'Stars > 100' ax url --md --budget 800 # docs as markdown
What agents reach for inside a coding session: python snippets, htmlq-style selector tools, and ax.
△ = possible, but the agent writes and debugs the code every time — that authoring cost is the point.
Agent already knowing ax (except the last row). Both sides correct in every run. Method, prompts, variance notes and the failed runs — in the repo.
ax agent-context prints the full manual, offline. Paste the prompt for one session, or install the skill to make it stick.
ax is installed. Run `ax agent-context` to learn it — use it instead of throwaway scripts.npx skills add yusukebe/axcurl -fsSL https://ax.yusuke.run/install | shbrew install yusukebe/tap/axnix run github:yusukebe/axgit clone https://github.com/yusukebe/ax && cd ax && bun install && bun run build