Module 08

Make Your Own Agent

An agent isn't science fiction. It's a small program that can take actions, loop through steps, and report back — running while you sleep. In Module 8 you build one.

⏱ ~55 min self-directed 🤖 Build an agent 🏁 Final module
Your progress0%

Read the sections · build your agent roadmap = 100%

🤖 What is an agent, actually

The word "agent" has been used so loosely in AI marketing that it's become nearly meaningless. Let's cut through it.

A chatbot does one thing: you ask, it answers. The conversation ends there. An agent does something more: it receives a goal, breaks it into steps, takes actions (calling tools, reading files, browsing websites), checks the results, and loops until the goal is met. Then it reports back.

The key differences:

You have already used agents. Claude Code, Cursor, and Cline — the tools from Modules 5 and 6 — are all agentic IDEs. They read your files, write code, run commands, check results, and loop. The difference between those and what you'll build here is complexity, not kind.

🔬 The anatomy of a simple agent

Every agent — no matter how sophisticated — has the same four basic components. Understanding this means you can evaluate any agent framework intelligently rather than being impressed or confused by the marketing.

📥
Step 1
Input
Goal, task, or question. Could be text, a file, a URL, or a structured prompt.
🧠
Step 2
Think
The LLM decides what to do next: which tool to use, what to search for, what to write.
Step 3
Act
Takes an action: calls an API, reads a file, runs a search, writes to a database.
📤
Step 4
Output
Returns a result. If the goal isn't met, loops back to Think with the new information.

The loop: Think → Act → Observe result → Think again — until done.

That's it. Everything else — multi-agent systems, memory architectures, tool registries — is elaboration on this loop. The complexity comes from what tools are available in Step 3 and how sophisticated the thinking is in Step 2. The structure is always the same.

🛠️ Your first agent — a research assistant

The simplest useful agent is a research assistant: give it a topic, it searches, reads, synthesises, and returns a structured briefing. No external tools required for the basic version — you can build one right now in any AI chat, using only prompt structure.

Research agent system prompt You are a research assistant agent. When I give you a topic, follow these steps exactly: STEP 1 — SCOPE: Restate the research question in your own words and identify 3 key sub-questions that need answering. STEP 2 — RESEARCH: For each sub-question, state what you know with confidence, what is uncertain, and what you would search for if you had web access. STEP 3 — SYNTHESIS: Write a 200-word briefing on the topic that integrates the answers. Use plain language. Cite uncertainty where it exists — do not fill gaps with plausible-sounding guesses. STEP 4 — GAPS: List the 2 most important things this briefing does not know and where a human would find that information. Begin when I give you a topic.

Paste that into Claude or ChatGPT, then follow up with a topic — anything relevant to your work or life. Watch how it structures its response differently from a normal chat answer. That structure — scope, research, synthesise, flag gaps — is the agent loop made visible in a single prompt.

Why this matters: You've just built an agent without writing a single line of code. The "agent" is the structured prompt that forces the model to loop through steps. This is the foundation everything else builds on — including the code-based agents we'll look at next.

🌐 Connecting agents to the real world

A pure prompt-based agent is powerful but limited — it can only use the knowledge baked into the model. The real capability unlocks when you connect an agent to external tools: the file system, the web, APIs, spreadsheets, email.

Here's what's actually possible right now, without needing to be a developer:

The practical path: Start with the file system (Claude Code, Cline) and web search (Perplexity, Gemini). These are immediately useful and need no setup beyond what you already have. Build from there.

🌿 The open-source agent landscape — an honest map

Since early 2024, GitHub has seen an explosion of open-source agent frameworks. Some have attracted enormous attention — tens of thousands of stars, viral demos, breathless write-ups. It's worth knowing what's out there and having a clear-eyed view of what it is and isn't.

The honest take: Most of these frameworks are calling the same underlying models you already have access to — Claude, GPT-4o, Gemini. The framework is a harness, not magic. If you understand the Think → Act loop and can prompt clearly, you already understand what these frameworks are doing internally. They add complexity as much as they add capability. Use them when you have a clear problem they solve better than a direct API call — not because the GitHub star count is impressive.

🚀 Where agents are going

The trajectory of AI agents over the next few years is one of the clearest things in an otherwise unpredictable field. Three things are happening simultaneously:

You don't need to build multi-agent systems right now. But understanding that this is where the technology is heading helps you read the landscape clearly — and not be surprised when something that felt futuristic six months ago is suddenly a standard feature in your IDE.

The question that matters most: Not "what can AI agents do?" but "what would an agent do for my life or work that I currently spend time on?" That's what the final exercise is for.

Raglan agent ideas — steal these
  • Grant finder: An agent that searches Creative New Zealand, Lion Foundation, and local council funding databases weekly — and emails you a summary of new opportunities relevant to your arts practice.
  • Surf report digest: An agent that pulls surf forecasts, tide times, and UV ratings every morning and sends a single "worth paddling out today?" message to your phone.
  • Café stocktake assistant: An agent that reads your weekly sales data and tells you which products to reorder, what's slowing down, and what seasonal items to push — before you open on Monday.
  • Tourism content generator: An agent that monitors Waikato/Raglan events, then drafts Instagram posts and email newsletter segments for your accommodation or tour business — ready to review and send.
Exercise 8.1 — Build a Research Agent
Use the research agent prompt on a real topic

The research agent system prompt is above in Section 3. Use it now on a topic that's actually relevant to your work or life.

  1. Open Claude or ChatGPT.
  2. Paste the research agent system prompt from Section 3. Hit send.
  3. Follow up with a topic that's genuinely relevant to you — a business question, a local issue, a topic you're teaching, anything.
  4. Read the structured response. Notice the GAPS section — this is the agent telling you what it doesn't know. That honesty is a feature, not a bug.
  5. Ask one follow-up question based on the gaps it identified. Watch how the loop continues.
Exercise 8.2 — Your Agent Roadmap
Plan the agent that would genuinely help your life

The most useful agent is the one that does a real, recurring task you currently do manually. Use the questions below to plan yours. Your answers are saved locally to this device — they're for you, not for us.

What's a task you do repeatedly that is mostly information-gathering or writing?
What does that task currently cost you? (Time per week, or stress, or money)
What would a perfect agent do, step by step?
What tool from this workshop series could you start with?

✓ Saved to this device. Open this module any time to review it.

🪞 Before you go — five-minute reflection

Eight modules is a lot of ground. The best way to make it stick is to name it in your own words. Your answers save to this browser only — they go nowhere and are for you.

Take five minutes. No right answers. Just what actually landed for you.

What is the one tool or technique you will actually use in the next week?
What surprised you most about working with AI across these sessions?
Name one thing you want to build or automate that you couldn't have before this workshop.

✓ Saved to this device. Open this module any time to find it again.

You've done all eight modules.

You started with "I've heard people talking about it at the school gate." You're finishing with a working build, a debug loop, a research agent, and a roadmap for the agent that solves a real problem in your life.

That's not nothing. That's actually quite a lot.

The modules will still be here. The tools you've opened still have free tiers. The build you made still exists. The next step is whichever one you actually do — not the most ambitious one, the most doable one.

All eight modules done. 🎉

Kia ora. You know more about AI than most people who work with it every day. Go build something real.

All 16 branch modules are yours to explore — pick whatever matches where you want to go next:

Working in health? There's a specialist add-on built for NZ clinicians: