Module news_agent

Module news_agent 

Source
Expand description

News headlines agent.

NewsAgent fetches current headlines on demand.

Sources (no API key needed by default):

  • Hacker News — tech/startup news (default)
  • Any RSS/Atom feed URL via NEWS_RSS_URL env var

§Usage (via IO bar)

@news-agent                 → top 5 HackerNews stories
@news-agent 10              → top 10 stories
@news-agent top             → same as above
@news-agent ask             → HN "Ask HN" stories
@news-agent show            → HN "Show HN" stories
@news-agent new             → newest HN stories
@news-agent jobs            → HN job postings
@news-agent help            → show usage

The agent does not poll; it only fetches when it receives a message. It is stoppable and pausable — consumes no resources when idle.

Structs§

NewsAgent