You can get arbitrarily creative with it, too: cat script.rb | llm -s ‘This code is janky. Write some test cases for it, focusing particularly on validating the command line args and that it exits prior to calling the API if it detects an error.’ > test/script_test.rb
@patio11
-
Software Business Success Beyond Writing Code
By
–
"The software business is not primarily about writing software" might be the through-line of most of my career. I enjoy coding but found myself producing most of the value doing other things and so leaned into them progressively more heavily over the years.
-

Using DALL-E with detailed prompts for better image generation options
By
–
Dall-E, though I usually use Midjourney. I did something a bit different than my usual one-line prompt on the title/themes/style to hit and asked it to give me some options, then said:
-
Occasional Programming Work on Personal Software Projects
By
–
It isn’t a major professional focus for me since I sold my last software company but I occasionally either get the itch or need to do maintenance programming on my own sites.
-
Command line flag allows selecting multiple models by default
By
–
Defaults to that out of box, but you can pick a few models via a command line flag.
-
Managing LLM Context Windows: Input Truncation Strategy
By
–
"Why did you pipe the output of the git commands to head above?" Because LLMs have limited context windows and if you exceed the length of them this tool fails gracefully, so by habit I chop the input to it down prior to asking to process it.
-
LLM CLI Tool Available on GitHub and PyPI
By
–
If you want to play with it, available on pip / Github / etc. Requires an OpenAI account for batteries-included operation or you can install an LLM locally https://
github.com/simonw/llm -
Using LLM CLI for Linux Command Generation and Automation
By
–
You can, of course, imagine many things you could do with this based on whatever you do in the terminal most frequently. A thing I find myself gravitating to immediately is acting as superman: $ llm 'Linux one liner for current date in most commonly used U.S. format please.'
-

Using Git diffs with LLM to summarize commit changes
By
–
git show 57ee | head -c 4000 | llm -s 'This is the first part of a diff. What did this commit actually *do*? Your answer should fit in a tweet.'
-

Simon Willison’s LLM command line tool demo
By
–
You might not know about @simonw
's command line 'llm' tool. Here let me demo it. git log | head -n 200 | llm -s "Of the most recent 5 commits, which is probably the most important? I use 'Minor' and similar commit messages to mark unimportant commits."