Fetch stories and data from Hacker News using the official API.
This plugin also includes a user-analysis tool powered by OpenAI.
Ask Stavrobot to install https://github.com/stavrobot/plugin-hackernews.git.
get_front_pageFetch the top stories from the Hacker News front page. Returns title, URL, author, score, comment count, and timestamp for each story.
Parameters:
limit (integer, optional): Number of stories to fetch (1–500). Defaults to 30.stalkAnalyze a Hacker News user's comment history with OpenAI to answer a question about them.
Parameters:
username (string, required): The Hacker News username to analyze.question (string, required): The question to answer about the user.max_comments (integer, optional): Maximum number of comments to analyze (1–2000). Defaults to 600.submit_storySubmit a story (link post or text post) to Hacker News on behalf of the configured user. Requires the cookie config value to be set (see Configuration below).
Parameters:
title (string, required): The title of the story.url (string, optional): The URL to submit. At least one of url or text must be provided.text (string, optional): Body text for a text post. Can be combined with a URL.Returns: { "id": <item id>, "url": "https://news.ycombinator.com/item?id=<id>" }
api_key (required): OpenAI API key used by the stalk tool.model (optional): OpenAI model for analysis. Defaults to gpt-5.2.cookie (optional): Value of the HN user cookie. Required only for submit_story.user cookiehttps://news.ycombinator.com.user and copy its Value (a long alphanumeric string).cookie in the plugin configuration.The user cookie is long-lived but will be invalidated if you log out of HN. If submit_story reports an invalid or expired cookie, repeat the steps above to get a fresh value.