AWS Builder Center

Weekend Agent Challenge: Always-On Self-Employed Assistant

An autonomous AI agent that provides daily morning briefings and real-time change monitoring for self-employed professionals, powered by Amazon Bedrock Nova.

AWS Certified Solutions Architect – Cloud migration strategies.

Vision & What the Agent Does

As a self-employed professional, I juggle multiple projects, monitor GitHub repositories for changes, track tasks across different clients, and try to stay on top of my calendar — all before my first coffee. I needed an assistant that works while I sleep, summarizes my day before I wake up, and alerts me in real-time when something important happens in my repos or inbox.
The Always-On Self-Employed Assistant is a fully autonomous AI agent that solves two core problems:
  1. Morning Executive Summary — Every day at 6:00 AM (my local timezone), the agent reads my active projects, pending tasks, and calendar events from an S3-based state store. It then invokes Amazon Bedrock Nova to generate a structured morning briefing with five sections: today's calendar, top 3 priorities, active project status, risks and blockers, and a single actionable focus recommendation. The result is saved to S3 and emailed to me automatically.
  1. Smart Change Monitor — Every 15 minutes, the agent polls my configured sources (GitHub repos, email inboxes). It fetches current state, computes a diff against the last known snapshot, and if changes are detected, asks Bedrock to score their relevance on a 0-to-10 scale based on my current work context. Only changes scoring above a configurable threshold trigger a notification. This means I get alerted about a critical PR merge on my active project but not about a minor README typo.
The agent runs entirely on its own — no human trigger required. EventBridge Scheduler handles the cron and polling schedules. It reports back via email (SES) and persists all outputs (summaries, change reports, snapshots) to S3 for auditability.

How I Built It

I used Kiro's spec-driven development workflow to go from a rough idea to a fully tested, deployed system in a single weekend. The process was:
  1. Requirements Phase — I described my vision and Kiro helped me formalize 14 detailed requirements with acceptance criteria and correctness properties.
  1. Design Phase — We produced a technical design document covering the architecture, data flows, error handling strategies, and module interfaces.
  1. Task Generation — Kiro generated a 57-task implementation plan with a dependency graph organized in waves for parallel execution.
  1. Implementation — Tasks were executed bottom-up: shared infrastructure modules first (config, secrets, state store, logger, Bedrock client, notifier), then the Summary Lambda, then the Monitor Lambda with its source fetchers (GitHub, email), differ, scorer, and report builder. Finally the SAM template.
  1. Property-Based Testing — I defined 11 correctness properties validated with Hypothesis (Python's property-based testing library). For example: "if the relevance score is below threshold, SES must never be called" and "compute_diff must detect all additions, removals, and modifications." These run with 100-200 generated examples each.
Key decisions:
  • Pure functions where possible (differ, scorer, report builder) — easy to test, no side effects
  • Fault isolation pattern in the Monitor Lambda — one source failing never blocks others
  • Exponential backoff for Bedrock calls (1s, 2s, 4s) with immediate failure on non-retryable errors
  • Relevance scoring via LLM rather than rule-based filtering — adapts to my changing priorities
Challenges:
  • Lambda import paths: Production code uses  from src.shared...  which works locally but breaks in Lambda where  src/  is the root. Solved by setting  CodeUri: ./  in the SAM template so the full project structure is preserved.
  • Gmail self-send filtering: SES sandbox emails sent from/to the same Gmail address get silently dropped by Gmail. Solved by using a separate verified domain email as the recipient.
  • Hypothesis + moto interaction: Property tests with moto mocks require careful state isolation. Each test gets its own mock context to prevent leakage.

AWS Services Used / Architecture Overview

Service
Role
Amazon Bedrock (Nova Lite)
Generates morning summaries and scores change relevance
AWS Lambda (Python 3.12)
Hosts both agent functions (SummaryLambda, MonitorLambda)
Amazon EventBridge Scheduler
Triggers SummaryLambda daily at 6 AM and MonitorLambda every 15 min
Amazon S3
Persists state: context data, snapshots, summaries, change reports
Amazon SES
Delivers email notifications
AWS Secrets Manager
Stores GitHub tokens and email credentials securely
AWS CloudFormation / SAM
Infrastructure as Code for the entire stack
Amazon CloudWatch Logs
Structured JSON logging with execution metrics

Architecture Diagram



What I Learned

  • Property-based testing changes how you think about correctness. Instead of checking "does this specific input produce this specific output," you define invariants that must hold for ALL inputs. Finding bugs becomes systematic rather than anecdotal. Hypothesis found edge cases I never would have written manually.
  • Amazon Bedrock Nova is remarkably good at structured output. When given a clear prompt with explicit section requirements, it consistently produces well-organized, actionable briefings. The key is being prescriptive about format in the prompt.
  • Spec-driven development with Kiro dramatically accelerates delivery. Going from idea → requirements → design → 57 implemented tasks with 141 passing tests in a weekend would be impossible manually. The structured approach also means every piece of code is traceable back to a specific requirement.
  • Fault isolation is non-negotiable for multi-source agents. One flaky API should never take down your entire monitoring pipeline. The try/catch-per-source pattern with structured error logging gives you resilience AND observability.
  • SAM + EventBridge makes serverless scheduling trivial. The entire infrastructure — two Lambdas, an S3 bucket, IAM roles, and two schedules — deploys in under 2 minutes with  sam deploy .

Link to Repo

The repo contains the full source code, SAM template, 141 tests (including 11 property-based tests), and deployment instructions. Clone, configure your  samconfig.toml  with your own email and GitHub token, and deploy with  sam build && sam deploy .
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article