mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
The compact view hides link URLs because printing them is most of what makes a page expensive, which left an agent re-fetching the same page as --json or raw just to learn where [15] pointed. oc open now saves the handles it numbered to a small JSON file per session under ~/.only-cli (OC_HOME relocates it), and oc do <n> resolves one and renders the target exactly as open would. Search engine tracking redirects are unwrapped so a result link opens the destination instead of a script page. Errors name the command that fixes them, since agents read them: an out-of-range number reports the valid range, an input says to use fill, a button says the page handles it itself. Two hops on Hacker News cost about 3k characters this way, against roughly 23k for the re-fetch route.