Skip to main content
A powerful AI agent that analyzes HackerNews content and provides insights about tech news, trends, and discussions. Built with Agno framework and powered by Nebius AI’s Qwen model.

Features

  • Deep analysis of HackerNews content including trending topics and user engagement
  • Contextual insights and connections between stories
  • Real-time tech news and trend analysis
  • Interactive command-line interface
  • Built-in HackerNews tool integration

Prerequisites

Installation

1

Clone the repository

git clone https://github.com/Arindam200/awesome-ai-apps.git
cd starter_ai_agents/agno_starter
2

Install dependencies

pip install -r requirements.txt
3

Configure environment

Create a .env file and add your Nebius API key:
NEBIUS_API_KEY=your_api_key_here

Implementation

Agent Configuration

The agent uses Agno’s powerful agent framework with custom instructions:
main.py
from agno.agent import Agent
from agno.tools.hackernews import HackerNewsTools
from agno.models.nebius import Nebius
import os
from dotenv import load_dotenv

load_dotenv()

# Define instructions for the agent
INSTRUCTIONS = """You are an intelligent HackerNews analyst and tech news curator. Your capabilities include:

1. Analyzing HackerNews content:
   - Track trending topics and patterns
   - Analyze user engagement and comments
   - Identify interesting discussions and debates
   - Provide insights about tech trends
   - Compare stories across different time periods

2. When analyzing stories:
   - Look for patterns in user engagement
   - Identify common themes and topics
   - Highlight particularly insightful comments
   - Note any controversial or highly debated points
   - Consider the broader tech industry context

3. When providing summaries:
   - Be engaging and conversational
   - Include relevant context and background
   - Highlight the most interesting aspects
   - Make connections between related stories
   - Suggest why the content matters

Always maintain a helpful and engaging tone while providing valuable insights."""

# Initialize tools
hackernews_tools = HackerNewsTools()

# Create the agent
agent = Agent(
    name="Tech News Analyst",
    instructions=[INSTRUCTIONS],
    tools=[hackernews_tools],
    show_tool_calls=True,
    model=Nebius(
        id="Qwen/Qwen3-30B-A3B",
        api_key=os.getenv("NEBIUS_API_KEY")
    ),
    markdown=True,
)

Interactive Loop

main.py
def main():
    print("🤖 Tech News Analyst is ready!")
    print("\nI can help you with:")
    print("1. Top stories and trends on HackerNews")
    print("2. Detailed analysis of specific topics")
    print("3. User engagement patterns")
    print("4. Tech industry insights")
    print("\nType 'exit' to quit or ask me anything about tech news!")
    
    while True:
        user_input = input("\nYou: ").strip()
        if user_input.lower() == 'exit':
            print("Goodbye! 👋")
            break
            
        # Add timestamp to the response
        print(f"\n[{datetime.now().strftime('%H:%M:%S')}]")
        agent.print_response(user_input)

Usage

Run the agent:
python main.py

Example Queries

Try these queries with your agent:
  • “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”

Technical Details

Framework Stack

  • Agno: AI agent development framework
  • Nebius AI: Qwen/Qwen3-30B-A3B model for intelligent analysis
  • HackerNewsTools: Built-in tool for accessing HackerNews API

Key Components

Agent

Orchestrates analysis and provides insights

HackerNews Tool

Fetches and processes HackerNews data

Nebius Model

Powers intelligent analysis and reasoning

Instructions

Custom prompts for tech news analysis

Customization

Extend the agent’s capabilities:
  1. Add More Tools: Integrate additional data sources
  2. Modify Instructions: Customize analysis style and focus areas
  3. Change Model: Experiment with different Nebius models
  4. Enable Memory: Uncomment memory=True for context retention

Next Steps

Multi-Agent Systems

Build complex workflows with multiple agents

Memory Integration

Add persistent memory to your agents

Build docs developers (and LLMs) love