Capstone: Build a Custom CAIPE Sub-Agent and Open a Draft PR
Capstone for CAIPE 101: copy the upstream template/, build a real sub-agent end-to-end, register it with the supervisor, write eval cases, and open a draft PR — all on a self-contained, offline-friendly stack.
Lab Overview
This is the capstone lab for CAIPE 101. You will build a brand-new sub-agent — `forecast_explainer` — by following CAIPE's contribution model end-to-end at release `0.4.10`:
- Bring up the CAIPE stack on a single Ubuntu host using IDP Builder v0.10.2 (kind + ArgoCD + Gitea + Backstage)
- Fork the upstream layout and copy `ai_platform_engineering/agents/template/` into a new agent directory
- Implement an MCP server with one realistic tool (`explain_forecast`) over a mocked data source
- Register the agent with the supervisor via `AgentCard(...)` in `utils/a2a_common/a2a_server.py`
- Write three eval cases (happy path, ambiguous prompt, out-of-domain) and run them
- Drive the new agent end-to-end through the supervisor on a real prompt
- Open a draft PR to the local Gitea-hosted fork that IDP Builder ships, and generate the would-be Slack post for `#cnoe-sig-agentic-ai`
Why a mocked weather-flavored agent? CAIPE 0.4.10 already ships `agents/weather/` as a reference. Building a *second* weather-flavored agent with a different mocked data source is the safe teaching choice — you learn the contribution mechanics without depending on a third-party API key, and you don't pollute the real upstream repo with a redundant clone. The lab targets local Gitea for the draft PR step (see Task 6) and documents the real-world workflow (PR to `cnoe-io/ai-platform-engineering` on github.com + post in CNCF Slack `#cnoe-sig-agentic-ai`) so you can repeat it for real after the lab.
Key resources:
What You'll Learn
Bring up the CAIPE 0.4.10 stack on a single Ubuntu host via IDP Builder
Fork the upstream layout and scaffold a new sub-agent from the template/
Implement an MCP server that exposes a real tool to the agent
Register the agent with the supervisor via AgentCard
Write and run eval cases that gate the contribution
Open a draft PR and prepare the SIG announcement
Prerequisites
Completed CAIPE 101 sections 1-5
Completed Lab A (run-caipe-locally-idp-builder)
Comfortable with Python, Make, and basic kubectl
Technologies Covered
Part of a Course
This lab is part of the CAIPE 101: Build an AI Platform Engineer course
View All CoursesChoose your plan
Simple, Transparent Pricing
Unlock full access to TeKanAid courses, labs, and bootcamps
Pro
Course content without labs
Renews automatically. Cancel anytime.
Final price verified at checkout.
- Full access to all courses
- Progress tracking
- Certificate of completion
- Community access
- Bootcamp participation
- New content access
Premium
Full access with hands-on labs
Renews automatically. Cancel anytime.
Final price verified at checkout.
- Everything in Pro
- Unlimited hands-on labs
- Lab AI Assistant
- Accelerator bootcamps with live office hours
- Priority support
Prefer a single course?
Purchase individual courses for a one-time fee of $79. Full access to course content, quizzes, certificates, and community features, lab access is not included.
Browse CoursesTry it free, no credit card
Three free ways to start. All bridge into the paid Premium catalog when you're ready.
Not ready to commit? The crash course is email-only. No academy account required.
Ready to Get Started?
Start this hands-on lab and build real-world Platform Engineering skills
Get Access Now