llm-hacker-news
April 8, 2025 ยท View on GitHub
LLM plugin for pulling content from Hacker News
For background on how this works:
- Long context support in LLM 0.24 using fragments and template plugins
- Blog post announcing llm-hacker-news
Installation
Install this plugin in the same environment as LLM.
llm install llm-hacker-news
Usage
You can feed a full conversation thread from Hacker News into LLM using the hn: fragment with the ID of the conversation. For example:
llm -f hn:43615912 'summary with illustrative direct quotes'
Item IDs can be found in the URL of the conversation thread.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-hacker-news
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest