Re:LLM-hacker-news: LLM plugin for pulling content from Hack...
by cratermoon on Tuesday April 08, 2025 @10:29AM
(#43622214)
llm -f https://news.ycombinator.com/reply?id=43621396&goto=item%3Fid%3D43620125%2343621396 "summarize the comment"
Normally fragments are specified using filename or URLs:
Or: I also added a plugin hook that lets you do this: Here the plugin acts on that hn: prefix and fetches data from the Hacker News API, then applies the specified system prompt against LLM's default model (gpt-4o-mini, unless you configure a different default).I wrote more about the Hacker News plugin here: https://simonwillison.net/2025/Apr/8/llm-hacker-news/
It uses the Algolia JSON API https://hn.algolia.com/api/v1/items/43615912 and then converts that into a (hopefully) more LLM-friendly text format.
Another neat fragments plugin is this one, which grabs a full clone of the specified GitHub repository and dumps every non-binary file in as a fragment at once: https://github.com/simonw/llm-fragments-github
Example usage: