Turning websites into micro CLIs for Claude Code to save on tokens
Source
github.com
Author
hyes
Date
Context
only-cli reduces how much webpage content an AI agentAn AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.Full definition → must read at once. Its oc open command returns a compact view with numbered links and text regions. The agent can follow a number, search the saved page or request more of a region without fetching the page again. The README describes a default target of 500 model tokenThe chunk of text a model reads and writes in — roughly three-quarters of a word — and the unit AI usage is billed in.Full definition → for the initial view, with further content available through subsequent commands.
That saving comes from presenting selected content first, so an initial response is not necessarily the whole page. The documented v0.1 targets mostly static pages and available server-rendered data. JavaScript rendering and authenticated pages remain outside its stated support, limiting where it can replace a browser.
Terms in this piece · Glossary
AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
token — The chunk of text a model reads and writes in — roughly three-quarters of a word — and the unit AI usage is billed in.
agent skill — A reusable instruction file that teaches an agent how to do one job well — the procedure, the tools, and what counts as done.