Files
oc/tests
only-cli 79ddeebc2e implement oc do so agents can follow a numbered link
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.
2026-08-18 15:00:36 -04:00
..