
Weekend Agent Challenge: Daily GitHub Trend Agent
Meet your new tireless intern: a fully autonomous AI agent built with AWS Lambda, EventBridge, and Amazon Bedrock. It wakes up on a daily schedule to fetch and summarize trending open-source projects, keeping you updated without the endless scrolling.
Vision & What the Agent Does
As a Full Stack developer and community organizer out here in Lahore, my calendar is usually screaming for mercy. Between running developer events, managing tech communities, and actually writing production code, I simply do not have the hours to endlessly scroll through GitHub to see what new frameworks are trending. I needed an intern that doesn’t sleep, doesn't drink all the chai, and handles the boring stuff for me.
My vision was to build an agent that wakes up while I’m fast asleep, reads the latest open-source trends, and leaves a neat, summarized tech brief waiting for me. Built for the AWS Builder Center Anniversary Weekend Challenge, this agent runs entirely hands-free. No "Click here to run" buttons, no manual spinning wheels, just an automated, always-on script that digs up the highest-growth JavaScript repositories from the past week and gives me the highlights before my morning coffee.
How You Built It
Building this in under three hours was a masterclass in chaotic, high-speed engineering. Because time was ticking away, I built the compute layer using Node.js in an AWS Lambda environment to keep things lightweight, serverless, and fast.
Step 1: The Automated Alarm (EventBridge) First, I set up an Amazon EventBridge rule using a Cron schedule (
cron(0 1 * * ? *) ). This acts as the agent's daily alarm clock, kicking off the code every single morning without me lifting a finger.Step 2: Stealing the Data (GitHub API) Inside the Lambda function, I wrote a basic script using the native JavaScript Fetch API to hit the GitHub Search API. The logic grabs repositories created in the last seven days, sorts them by stars, and clips out the top three absolute winners.
Step 3: The AI Rollercoaster (Bedrock & The Great Pivot) This is where the hackathon drama actually started. My original plan was to throw this data into Anthropic’s Claude 3 Haiku via Amazon Bedrock. AWS had other plans and immediately smacked me with an
AccessDeniedException; turns out my IAM role didn't have the magical AWS Marketplace permissions to subscribe to third-party models yet.With the deadline breathing down my neck, I pulled an audible and pivoted. I switched the AI model to Amazon Nova Micro (
amazon.nova-micro-v1:0 ). Because Nova is AWS's own native model, it skipped the whole Marketplace security line and worked instantly.But the cloud wasn't done playing with me. Right after, I ran into a
ThrottlingException because of account token rate limits. To prevent my "Always-On" agent from becoming an "Always-Broken" agent, I added a quick fallback mechanism in the code. If Bedrock throttles the request, the Lambda function gracefully catches the error and drops a cleanly formatted local fallback summary. Uptime secured, stress levels managed.AWS Services Used / Architecture Overview
The architecture is beautifully simple and completely serverless:
- Amazon EventBridge: The automated trigger that kicks off the workflow.
- AWS Lambda: The brain that orchestrates the API calls and logic.
- Amazon Bedrock (Amazon Nova Micro): The AI engine summarizing the raw text.
- GitHub API: Our external target data source.
EventBridge triggers Lambda, Lambda yanks data from GitHub, and then formats it into a clean prompt for Bedrock via the
ConverseCommand . If the AI succeeds, it prints the summary; if AWS throttles it, the fallback engine steps in so the execution stays green.What You Learned
This sprint reminded me that out in the wild, error handling isn't an afterthought, it's what keeps your agent alive when the APIs start fighting back. On a technical note, I was honestly shocked by how clean the AWS SDK v3
ConverseCommand is. Swapping my entire backend from Anthropic Claude over to Amazon Nova Micro took exactly one line of code modification. No rewriting headers, no shuffling custom environment variables, just swap the ID string and deploy.Link to App or Repo
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article