only-cli/oc ? reverse-engineered prompt

Reverse engineered prompt

Build me a Node based CLI that turns any website into a tiny text interface for AI agents.

I want to be able to run something like oc open <url> and get back a compact, numbered page view instead of raw HTML or a screenshot, so an agent can browse the web using only a few hundred tokens. It should let me open a page, follow a numbered link, read a specific section in full, move to the next chunk of a long page, search within the current page, and pull a distilled markdown version when needed. Also add a few handy site shortcuts for common places like Hacker News, Reddit, GitHub, docs sites, and search engines, so I can say things like oc hn top or oc gh repo owner name.

Make it work well with AI tools like Claude Code and Cursor, and let it run easily through npx with no extra setup. If the page is blocked or heavily scripted, try to fetch it in a browser like way so it still works when normal requests fail.