28 Unix tools. One binary. Zero dependencies.·the missing coreutils for the agent era·try vrk in your browser at vrk.sh/play·curl vrk.sh/install.sh | sh - ready in 5 seconds·

tag

#prompt

11 posts tagged #prompt

recipe

Token-checked LLM call

· 2 min read

If the prompt is over the budget, the pipeline stops and the model never sees a prompt that only half fits. Count the tokens in a prompt and stop the ...

recipe

Retry flaky API call

· 2 min read

A transient 500 does not stop the run, because coax retries the call with backoff. Retry an LLM call with exponential backoff, and fail the attempt ...

recipe

Preview LLM request

· 2 min read

You see the exact request, after masking, before any money or secrets leave your machine. Add --explain to vrk prompt to print the request as a curl ...

recipe

Fetch and summarise a page

· 1 min read

If the page is too long, the pipeline stops before the API call, so you do not pay for a request that cannot fit. Fetch a web page as markdown, check ...

recipe

Diff review budget

· 2 min read

A diff that is too big fails fast and cheap, instead of being cut off halfway through the review. Check the token count of a git diff, then send it ...

recipe

Daily token budget

· 2 min read

The counter refuses the call once the daily limit is reached, so a runaway loop cannot use up your API budget. Add each prompt's token count to a kv ...

recipe

Cache LLM response

· 2 min read

The content hash is the cache key, so a rerun with the same input makes no API call. Hash the input, look the hash up in kv, and call the model only ...