Features

  • Intelligent Analysis: Deep analysis of HackerNews content, including trending topics, user engagement, and tech trends
  • Contextual Insights: Provides meaningful context and connections between stories
  • Engagement Analysis: Tracks user engagement patterns and identifies interesting discussions
  • Interactive Interface: Easy-to-use command-line interface for natural conversations
  • Real-time Updates: Get the latest tech news and trends as they happen

References and Acknowledgements

Tech Stack

  • Agno framework for AI agent development
  • Nebius AI’s for running LLMs. We are using Qwen/Qwen3-30B-A3B reasoning model
  • HackerNews Tool from Agno

Prerequisites

Setup

  1. Get the code:
    git   clone    https://github.com/nebius/ai-studio-cookbook/
    cd    agents/agno-hacker-news-agent
    
  2. Install dependencies:
    using uv:
    # create a venv and install dependencies
    uv  sync
    
    or install using python pip:
    pip install -r requirements.txt
    
  3. Create .env file in the project root and add your Nebius API key:
    cp env.example .env
    
    NEBIUS_API_KEY=your_api_key_here
    

Running the Agent

Using uv:
uv  sync
uv  run   python main.py
Using python pip:
python main.py
The agent will start with a welcome message and show available capabilities. You can interact with it by typing your questions or commands.

Example Queries

  • “What are the most discussed topics on HackerNews today?”
  • “Analyze the engagement patterns in the top stories”
  • “What tech trends are emerging from recent discussions?”
  • “Compare the top stories from this week with last week”
  • “Show me the most controversial stories of the day”