PulseAugur
实时 23:33:33

LLM commands can now be executed directly from script shebang lines

Simon Willison has demonstrated a novel method for executing large language models directly from a script's shebang line. This technique allows users to specify LLM commands, including tool calls and custom system prompts, to automate tasks like generating SVG images or performing calculations. The approach leverages LLM fragments and can even integrate with external APIs, such as the Datasette SQL API, for more complex operations. AI

影响 Enables direct execution of LLM commands within scripts, potentially streamlining AI-powered automation and tool integration.

排序理由 Demonstration of a novel method for executing LLM commands via script shebang lines.

在 Simon Willison 阅读 →

AI 生成摘要 · Google Gemini · 来自 3 个来源。 我们如何撰写摘要 →

LLM commands can now be executed directly from script shebang lines

报道来源 [3]

  1. Simon Willison TIER_1 English(EN) ·

    Welcome to the Datasette blog

    <p><strong><a href="https://datasette.io/blog/2026/new-blog/">Welcome to the Datasette blog</a></strong></p> We have a bunch of neat Datasette announcements in the pipeline so we decided it was time the project grew an official blog.</p> <p>I built this using OpenAI Codex desktop…

  2. Simon Willison TIER_1 English(EN) ·

    Using LLM in the shebang line of a script

    <p><strong>TIL:</strong> <a href="https://til.simonwillison.net/llms/llm-shebang">Using LLM in the shebang line of a script</a></p> <p>Kim_Bruning <a href="https://news.ycombinator.com/item?id=48073246#48090590">on Hacker News</a>:</p> <blockquote> <p>But seriously, you can put a…

  3. Mastodon — mastodon.social TIER_1 English(EN) · [email protected] ·

    Using LLM in the shebang line of a script https://simonwillison.net/2026/May/11/llm-shebang/#atom-everything # AI # Python # OpenSource

    Using LLM in the shebang line of a script https://simonwillison.net/2026/May/11/llm-shebang/#atom-everything # AI # Python # OpenSource