
Weekend Agent Challenge: Orbit
Orbit is an always-on AI personal assistant that works while I'm away. Every morning it gathers context from my tasks, GitHub, calendar, and email, prioritizes what matters most, and delivers a personalized briefing to my inbox before I even open my laptop.
Vision & What Orbit Does
I wear a lot of hats. Between university, community leadership, personal projects, AWS responsibilities, research, and trying to grow as a backend engineer, there are always more things to do than hours in the day. The problem is not remembering what I have planned. The problem is remembering everything I forgot I had planned.
Most productivity apps expect me to open them before they can help. But if I'm already overwhelmed, opening another app is the last thing I'll remember to do.
That was the idea behind Orbit.
Orbit is an always-on AI personal assistant that works in the background. Instead of waiting for me to ask what I should do, it wakes up every morning before I do, gathers information from the tools I already use, decides what deserves my attention first, and delivers a complete briefing to my inbox.
Every morning at 6:00 AM (Africa/Accra), Orbit automatically:
- Loads my active tasks from Amazon DynamoDB
- Checks activity across my GitHub repositories
- Pulls upcoming Google Calendar events and important Gmail messages (when connected)
- Uses AI to prioritize everything based on deadlines, importance, and how long work has been sitting untouched
- Emails me a structured morning briefing through Amazon SES
- Archives both the report and the context that produced it in Amazon S3
- Records the entire execution in Amazon CloudWatch so every scheduled run can be verified
The briefing always follows the same structure:
- Focus
- Top 3 Priorities
- Deadline Radar
- Stale Alerts
- Quick Wins
Keeping that format consistent was intentional. It makes the report easy to skim in a few seconds while still giving enough context to plan the day.
One challenge was making the project easy for others to explore without exposing my personal data. I solved that by building a public showcase with realistic demo data. Anyone can experience how Orbit works, while my real reports, tasks, and history remain private.



How I Built It
I built Orbit as an AWS SAM application using Node.js 22. My goal was simple: prove that the unattended workflow worked first, then improve everything around it.
The first milestone was getting the complete automation loop running. EventBridge Scheduler wakes the application every morning, Lambda gathers information from multiple sources, AI generates the briefing, the report is archived to Amazon S3, and only then is the email sent through Amazon SES. I deliberately archive before sending the email so that even if delivery fails, the report still exists as proof that the agent completed its work.
Tasks are stored in Amazon DynamoDB using a secondary index that allows Orbit to quickly retrieve active work and upcoming deadlines.
GitHub integration started as a simple repository check but gradually became much more capable. Orbit automatically discovers every repository I own while ignoring archived repositories and forks. It then collects recent commits, open pull requests, open issues, and recent GitHub Actions results. Since I own well over one hundred repositories, I also added concurrency limits to keep the Lambda execution comfortably within its timeout.
One design decision I'm particularly happy with was isolating the AI reasoning into a single function called
getPriorityBriefing(context) . Everything else in the application simply gathers context and passes it into that function. This keeps the architecture clean and means I could swap AI providers later without changing the rest of the system.One of the more interesting problems came from the scheduler itself. During deployment, CloudFormation repeatedly rolled back because my deployment user didn't have permission to manage EventBridge Scheduler resources. Rather than giving broad permissions, I created a properly scoped IAM policy for Orbit's schedules, redeployed the stack, and confirmed the scheduler was running correctly.
Adding Google Calendar and Gmail introduced another challenge. Authentication uses Google's Desktop OAuth flow, with refresh tokens stored securely in AWS Systems Manager Parameter Store. Those integrations are optional, so if credentials aren't available, Orbit simply skips them and continues the morning briefing instead of failing the entire workflow.
The biggest surprise came after connecting GitHub.
Because Orbit scanned over 100 repositories, the "Stale Alerts" section became enormous. Instead of asking the AI to "be shorter," I changed the pipeline itself. Orbit now evaluates every repository, ranks them before they reach the model, and only sends the most actionable ones, such as failing CI pipelines, open pull requests, or recently abandoned projects. The final report became much shorter while still preserving the information that actually mattered.
Finally, I built a React dashboard along with a public showcase. Visitors can explore a realistic demonstration of Orbit without any credentials, while authenticated users can view their real reports, history, and data through a protected API.
AWS Services & Architecture
Orbit is built as a serverless, event-driven application.
Amazon EventBridge Scheduler │ ▼ AWS Lambda │ ▼GitHub • Gmail • Calendar • DynamoDB │ ▼ AI Reasoning │ ┌──────┴──────┐ ▼ ▼ Amazon SES Amazon S3 │ │ └──────┬──────┘ ▼ Amazon CloudWatchAWS Service | Purpose |
|---|---|
Amazon EventBridge Scheduler | Triggers Orbit every morning at 6:00 AM without human interaction |
AWS Lambda | Coordinates the entire workflow and powers the dashboard API |
Amazon DynamoDB | Stores active tasks and metadata |
Amazon SES | Delivers the morning briefing by email |
Amazon S3 | Archives reports and hosts the static website |
AWS Systems Manager Parameter Store | Stores API keys and OAuth credentials securely |
Amazon CloudWatch | Records scheduled executions and application logs |
AWS IAM | Provides least-privilege permissions for every AWS component |
OpenAI is responsible only for prioritization and reasoning. AWS handles everything else: scheduling, orchestration, storage, hosting, security, logging, and email delivery.
What I Learned
This project taught me lessons that went beyond simply building another AI application.
The first was that separating AI reasoning from application logic makes everything easier to maintain. By keeping all model interactions inside a single function, the rest of the application remains independent of whichever model powers the briefing.
The second lesson was that least-privilege IAM policies matter. My first deployment failed because EventBridge Scheduler permissions were missing. Fixing the correct policy instead of granting unnecessary access resulted in a cleaner and more secure deployment.
I also learned that collecting more data does not automatically create a better assistant. Orbit originally dumped information from every repository into the morning report. The result was technically complete but practically useless. Ranking information before it reaches the AI produced a much more focused briefing and made the agent genuinely helpful.
Finally, I learned that building an always-on agent means proving it actually works without you. For me, that proof is simple. Every morning, a new briefing appears in my inbox, backed by CloudWatch logs showing the scheduled EventBridge execution. I don't have to remember to open Orbit because Orbit remembers to work for me.
Links
Orbit runs every morning whether I remember to open a laptop or not. That was the point of the challenge, and that is what shipped.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article