# ax-grep
[](https://www.npmjs.com/package/ax-grep)
[](./tests)
[](./LICENSE)
[](./docs/agent-handoff.md)
[](./skills/ax-grep-cli/SKILL.md)
[](./docs/cli-agent.md)
[](./docs/cli-agent.md)

Compact semantic trees and agent-ready page checks from HTML, URLs, WebViews,
and live browser pages. It approximates browser accessibility trees before
automation, defaults to `impit` for browser-like HTTP/2/TLS fetches, detects
major CAPTCHA and bot-challenge markers, saves 15.4x less peak RAM and 3.0x
fewer decision tokens in the local benchmark, and `--search` auto mode tries
DuckDuckGo, Bing, StartPage, and Google while recording every engine attempt.
## 1. Try With A Prompt
Paste this into a Codex session or subagent prompt before opening a browser
(also works as guidance for Claude, Gemini, OpenRouter, and other agents):
```md
Before opening a browser, inspect pages with ax-grep when possible.
Run:
npx --yes ax-grep@latest