SuperScript

Blog

A gh Alias For json Data

The GitHub command-line tool gh has a number of commands that can return json data. For example, this command returns the two fields of data for each repo: gh repo list --json field1,field2 But there is no way to fetch all fields without listing them explicitly. For commands that…

Canary Islands

Today I spoke with a Ukranian entrepreneur now living in the Canary Islands. I didn’t know the population of the islands exceeds 2 million! He told me a number of other things about the islands that were news to me. They experience Calima, sandstorms that blow in from the Sahara…

An llm Plugin Hack

The llm package from Simon Willison has a plugin architecture. So I decided to try it. Any reasonable person would begin with a new model plugin. I decided instead to create llm rag, an encapsulation of rag queries that otherwise requires a pipeline of invocations of both llm and…

Convert Between json and yaml With yq

One of my experimental projects involves fetching data from GitHub with gh, editing the output, and then posting the results back to GitHub. It’s easy to produce json output from gh, but who wants to edit in json? I’d rather use yaml. Enter the yq tool. It works much like jq, but…

Willison's llm

Simon Willison has created a marvelous tool for experimenting with LLMs at the command line: llm. It employs a plugin architecture and offers the ability to connect to hundreds of models, both remote and local, and supports direct prompts and embeddings. This tool makes it extrem…