
Weekend Agent Challenge: BoardPilot
An autonomous four-agent "executive boardroom" — Coordinator, Engineering, Finance, and Security — wakes on an EventBridge schedule, pulls live data from GitHub, AWS Cost Explorer, and GuardDuty/Security Hub, debates conflicting priorities, and leaves a ranked, human-approval-pending report waiting every morning. Built on Bedrock AgentCore Runtime, AgentCore Gateway (MCP), AgentCore Memory, and Amazon Nova.
Vision & What the Agent Does
Every founder and engineering lead I know starts the day the same way: open six tabs — GitHub, the AWS Cost Explorer console, GuardDuty, Security Hub — and manually stitch together "what actually happened while I was asleep." That triage tax gets paid every single morning, and it's exactly the kind of work an agent should be doing for you instead of with you.
BoardPilot is an autonomous "executive boardroom" made of four cooperating AI agents — a Coordinator and three department heads (Engineering, Finance, Security) — that wakes up on its own every morning, inspects real systems, argues out conflicting priorities, and leaves a ranked executive report waiting in my inbox before I've had coffee.
What triggers it: An Amazon EventBridge Scheduler cron rule fires at a fixed time each morning (or on-demand for a demo run) — no button, no chat prompt, no human in the loop to kick it off.
What it does on its own:
- The Engineering Agent connects through Amazon Bedrock AgentCore Gateway (MCP) to pull real open PRs, issues, and CI run status from a live GitHub repository.
- The Finance Agent calls AWS Cost Explorer directly (
GetCostAndUsage,GetCostForecast) to check month-to-date spend against a configured monthly budget.
- The Security Agent queries GuardDuty and Security Hub for active findings above a severity threshold, and diffs today's finding IDs against yesterday's — courtesy of AgentCore Memory — to know what's new versus what's been open for three days and still unresolved.
- Each department agent returns a structured
DepartmentReport(findings, severity, recommended action) to the Coordinator, who runs a bounded, procedural debate: draft a synthesis, flag cross-department conflicts (e.g., "Engineering says PR #123 is ready to merge; Security just flagged its new dependency as CRITICAL"), give only the implicated agent one challenge-round reply, then rank everything P0–P3 with a written rationale for any override.
How it reports back: The Coordinator emits a single
ExecutiveReport — JSON for machines, Markdown/HTML (rendered with Jinja2) for humans — with an explicit approval_status: "pending_human_review" . It lands in DynamoDB and S3. Nothing ever auto-executes; BoardPilot's entire job is to have the decision ready, not to make it for me.Here's an actual excerpt from this morning's run against my sandbox account — no editing, this is what was waiting for me:
## Priorities
1. [P0] Potential Kubernetes cluster compromise of eks-demo-cluster indicated by a sequence of actions. (security) - Action: Investigate and remediate the AttackSequence:EKS/CompromisedCluster finding (id 18f125865f3d450cbbdb234771dd5636). - Requires human approval: True2. [P1] Data source unavailable (engineering) - Action: Retry later - Requires human approval: True...### Finance — Finance Department Monthly Cost ReportMetrics: current_month_to_date_usd=0.0 forecasted_month_total_usd=5.8- No findings.
Notice line 2: the GitHub Gateway session hiccuped mid-run and returned an internal error. BoardPilot didn't crash or hallucinate a fake PR list — the Engineering Agent honestly reported "data source unavailable," the Coordinator ranked that as a P1 in its own right, and the report still shipped. That's the behavior I wanted from an unattended agent: degrade honestly, never fabricate.
How I Built It
I built BoardPilot one small piece at a time, in order, so I'd catch problems early instead of on the last night of the weekend:
- Step 1: Define the data shapes first. Before writing any agent, I decided exactly what a "report" and a "debate turn" look like (
DepartmentReport,DebateTurn,ExecutiveReport). Every agent had to produce data in that exact shape. Result: when I built the three department agents separately, none of them broke the Coordinator — they all spoke the same format from day one.
- Step 2: Get the GitHub connection working before writing the agent that uses it. I set up the AgentCore Gateway (the piece that lets an agent call GitHub through MCP, with login handled by Cognito) first, and tested it on its own — list the tools, call one, check the data matches GitHub's UI. Only after that worked did I write the Engineering Agent on top of it. This caught a login/permissions bug early, while it was easy to fix.
- Step 3: Add one agent at a time, and prove each one before moving on. Engineering went in first, alone, and I checked its output against real GitHub data. Then I connected just the Coordinator and Engineering Agent together — that was the first real end-to-end test of the whole idea. Only after that worked did I add Finance, then Security, each checked against its own AWS console before joining the full group.
- Decision: keep the agents' "debate" simple and predictable, not a free-flowing chat. The Coordinator writes a draft, only the agent that caused a conflict gets one chance to respond, then the Coordinator makes a final call. I could have let all four agents argue back and forth freely — it looks more impressive, but it's unpredictable, and this thing has to run alone at 6 AM with nobody watching. Predictable and easy to debug won over clever.
- Decision: not every tool needs to go through the Gateway. GitHub has a clean API that's easy to plug into the Gateway, so I used it there. Cost Explorer and GuardDuty don't have that same clean setup, so instead of forcing them through the Gateway too, Finance and Security agents just call AWS directly (via boto3). Using the fancy new tool only where it actually helps, instead of everywhere "for consistency," was the right call.
- Biggest challenge: I used only real data, no fake/mock data, from the start. That meant real GitHub issues, real AWS billing numbers, real GuardDuty security alerts. This caused real problems along the way — like the GitHub connection failing mid-run, or needing to separately turn on access to the Nova Premier model in my AWS account. It was more work, but it's also why I trust the report the agent hands me every morning — it was tested against real failures, not clean mock data.
AWS Services Used / Architecture Overview
Services: Amazon Bedrock AgentCore Runtime · AgentCore Memory · AgentCore Gateway (MCP) · Amazon Cognito (Gateway inbound auth) · Amazon Nova Premier / Pro / Lite · Amazon EventBridge Scheduler · AWS Lambda · Amazon DynamoDB · Amazon S3 · AWS Cost Explorer · Amazon GuardDuty · AWS Security Hub · AWS IAM · Amazon CloudWatch (AgentCore Observability traces) · AWS CDK (Python) for all infrastructure-as-code.
Trigger path (the "runs on its own" part):

EventBridge Scheduler (cron) │ ▼ AWS Lambda ── bedrock-agentcore:InvokeAgentRuntime ──▶ │ ▼Bedrock AgentCore Runtime (BedrockAgentCoreApp) │ ▼ Coordinator Agent (Nova Premier) │ ├──▶ Engineering Agent (Nova Lite/Pro) ──▶ AgentCore Gateway (MCP) ──▶ GitHub API ├──▶ Finance Agent (Nova Lite/Pro) ──▶ boto3 ──▶ AWS Cost Explorer └──▶ Security Agent (Nova Lite/Pro) ──▶ boto3 ──▶ GuardDuty / Security Hub │ AgentCore Memory (cross-day continuity, per-department namespace) │ bounded debate → ExecutiveReport (P0–P3, pending_human_review) │ Jinja2 render (Markdown + HTML) → S3 (artifact) + DynamoDB (history)
EventBridge Scheduler has no direct AgentCore integration, so the thin Lambda in the middle exists purely to make the
InvokeAgentRuntime call — a detail that isn't obvious until you go looking for a "Scheduler → AgentCore" target and discover it doesn't exist.Every agent is defined with the Strands Agents SDK — instructions, tools, model choice, and memory hooks per agent — running inside a single
BedrockAgentCoreApp entrypoint on AgentCore Runtime. Nova Premier handles the Coordinator's synthesis/debate reasoning; Nova Pro/Lite handle the cheaper, more mechanical department-level analysis, using cross-region inference profile IDs so model calls aren't pinned to a single AZ's capacity.All infrastructure — the DynamoDB table and S3 bucket for report history/artifacts, the Gateway's Cognito user pool and OpenAPI target, the AgentCore Runtime and Memory resources, and the Scheduler + Lambda trigger — is defined in AWS CDK (Python), deployed stack by stack in the same order the agents were built, so every layer had a working, verifiable checkpoint before the next one went on top of it.
What I Learned
- MCP over AgentCore Gateway is genuinely different from a hand-rolled REST wrapper. Registering GitHub's OpenAPI spec as a Gateway target and letting the Strands MCP client discover tools at runtime meant the Engineering Agent's tool list wasn't hardcoded — it's a real lesson in how much of "giving an agent tools" AWS is willing to manage for you versus how much you still own.
- Cross-region inference profiles matter more than I expected. Nova Premier access is gated separately from Pro/Lite in
us-east-1, and using theus.amazon.nova-*profile IDs instead of raw model IDs was the difference between "works" and a cryptic access-denied at 2 AM.
- Bounded, deterministic multi-agent debate beats open-ended chat for anything unattended. It was tempting to let the four agents just talk to each other until they converged. Forcing a fixed draft → one challenge round → resolution shape made the whole system loggable, testable, and — critically — predictable when nobody's watching it run.
- Scoping decisions are architecture decisions. Choosing not to put Cost Explorer and GuardDuty behind the Gateway wasn't a shortcut — it was recognizing that MCP earns its complexity budget only where there's a real OpenAPI surface to wrap. Direct
boto3tools were simply the more honest choice for those two.
- An agent that fails honestly is more trustworthy than one that never fails. The Gateway hiccup that showed up as "[P1] Data source unavailable" in a real report taught me more about designing for unattended operation than a dozen clean successful runs would have.
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