llm-hacker-news

April 8, 2025 ยท View on GitHub

PyPI Changelog Tests License

LLM plugin for pulling content from Hacker News

For background on how this works:

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