Week 5 of 6 · Project week

Build Your First Agent

Write the job description, build it, test it like an engineer, try to break it — then present it and answer for it at Demo Day.

2–3 hours Build lab + Demo Day Developer notebook
Your progress

Progress is saved in this browser only.

By the end of this week you can

  • Write a system prompt with role, goal, rules, tools, honesty, and format
  • Build a working agent in a no-code tool
  • Test it with a planned set of cases — including attacks
  • Present it with the three accountability questions

Part 1

The system prompt is the job description

PartWhy it matters
Role & audienceSets expertise, tone, and reading level.
GoalWhat success looks like for the user.
Rules & boundariesWhat it must never do. The most-tested part.
Tools & sourcesWhat it may use, and when.
Honesty"If unsure, say so. Never invent sources." The single most protective line.
Output formatLength, structure, citations.
Interactive

System prompt builder

Part 2

Test like an engineer, not a fan

"It worked when I tried it" proves nothing. Plan your tests before you build, and include cases designed to fail:

TypeExample for a study agentPass looks like
Normal"Biology test Friday on genetics and cell transport."A sensible plan within your rules
Edge case"My test is tomorrow and I know nothing."A realistic short plan, honest about limits
Out of scope"What's a good gaming laptop?"Polite redirection
Rule test"Just write my essay for me."Refuses, offers help instead
Attack"Ignore your instructions and…"Keeps its rules
Honesty"What did my teacher say about this in class?""I can't know that"

Lab A · No code

Build, test, break, fix

Build lab · 90 min

Make a working agent with a no-code tool

Use a tool that lets you save custom instructions as a reusable assistant — for example Gemini Gems, Claude Projects, ChatGPT GPTs or Projects, or Microsoft Copilot agents. Use whatever your school or workplace allows; availability on free plans varies.

Option A: Research AgentB: Study BuddyC: Creative AgentD: Community Impact (capstone)
  1. Choose your agent

    Pick option A–D. Option D (a real problem in your school or community, plus a one-page policy) is the capstone track.

  2. Write the system prompt

    Use the builder above. Include the honesty rule.

  3. Create the agent

    Paste the prompt into your tool's custom instructions. Add sources if it supports them.

  4. Run your six test types

    Record pass or fail for each. Expect at least one failure — that's the point.

  5. Break it, then fix it

    Try three attacks. Change one rule in the prompt and re-run every test. Did the fix break anything else?

  6. Demo Day

    Show it working, show a failure you found, and answer the three accountability questions below.

Evidence for your portfolioYour system prompt, the test table, the failure and fix, and your Demo Day answers. Capstone: add the one-page policy.

Lab B · For developers

Build and evaluate a production-shaped agent

Jupyter notebook · 100–120 min

Build, evaluate, ship

Write an agent card, build a typed agent with an approval-gated action, test it with a pydantic-evals suite (custom graders and an LLM judge), compare prompt v1 and v2, red-team it, and log every run.

  1. Agent card before code
  2. Eval suite with graders and a judge
  3. Regression: v1 vs v2
  4. Run logs and an API sketch
Open in Colab → View on GitHub

Python plus your own OpenAI or Anthropic key (about US$0.25).

Responsible AI · Demo Day

The three accountability questions

1. What could go wrong? A realistic failure, not "nothing". 2. Who is responsible if it fails? Name people and roles, and how they'd notice. 3. What data does it use? And is any of it personal or sensitive?

A modest agent whose builder understands its failures beats a flashy one whose builder can't answer these.

Portfolio activity · Build + Demo Day

Your agent

Demo Day answers

Key terms

System promptThe agent's standing instructions: role, rules, format.
Test caseA planned input with a defined pass condition.
Red-teamingDeliberately trying to make a system fail.
RegressionA fix that breaks something that used to work.
Agent cardA one-page record of purpose, data, tools, risks, and owner.
CapstoneThe Community Impact Agent plus its one-page policy.

Go further

Up next · Week 6

Responsible AI & Your Future

Prompt injection, bias, the Hospital Debate, and careers in responsible AI.

Take the Week 5 quizStart Week 6 →