Hacker News — AI & Agent Stories
Fetch and present the latest Hacker News stories about AI, agents, and Claude.
Source
- API: HN Algolia search (
https://hn.algolia.com/api/v1/search_by_date) - Keywords:
AI OR "agent" OR claude - Type: stories only
Workflow
- Run the script to fetch news:
- Default (past week):
python skills/hn-news/hn.py week - Latest:
python skills/hn-news/hn.py latest - Pagination: add
--page N(0-based)
- Default (past week):
- Parse the output and reformat into a clean, readable digest
Output Format
Present each story as:
### N. Title
👤 Author · ⭐ Points · 🕒 Time
🔗 [Link]
Separate stories with ---.
Add a brief header with the total count and time range:
📰 Hacker News — AI & Agent Stories (Past Week)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Showing N stories from the past 7 days.
Notes
- Default to
weekmode unless user asks for "latest" - If there are many results (>20), show the top 20 and mention total count
- Translate the header to Chinese if the user writes in Chinese
- Keep titles and metadata in original English