Using LLM in the shebang line of a script
Signal
65
Hype
25
In three linesSimon Willison documents using LLM in script shebang lines. The LLM CLI supports fragments (-f), tool calls (-T), and YAML templates defining Python functions. Examples: generate SVG, write haiku with current time, or run calculations with gpt-5.4-mini.Read source
Your take?
Summary generated by Claude — human-verified