D1 TS 1.1 · 1.2 · 1.3 · 1.4 · 1.6 · the 27% domain · ~6 hrs · Skip to quiz →
▶ Watch: one coordinator, two specialists · 3 min
Your client says every agent must be registered. A vendor says their product ships twelve agents. A teammate says they built an agent last night. The word is doing three different jobs in those three sentences, and this module starts by pinning it down, because everything else depends on it.
Strip away the marketing and an agent is a stack of three layers:
| Layer | What it is | Who supplies it |
|---|---|---|
| The model | A text completion engine. Text in, text out, one token at a time. It cannot read a file, run a command, remember yesterday, or even loop. It answers once and stops. | Anthropic (or any lab) |
| The harness | An ordinary program wrapped around the model: it assembles context, sends requests to the model's API, and when the reply says "I want to read this file," the harness actually does it and feeds the result back. The loop lives here. Claude Code is a harness. | Anthropic (Claude Code, Agent SDK) |
| The instructions | Text loaded into the model at the start: system prompts, CLAUDE.md files, and the agent definitions this module teaches. | You |
An agent is all three running together: a model supplying judgment, a harness supplying hands and the loop, instructions supplying the job. So when a teammate "builds an agent" by writing a markdown file, what they actually built is layer three: a configuration the harness reads. And when a vendor sells a product with its own credentials running unattended at 2am, that is all three layers deployed as a standing system. Both get called agents, and they deserve very different governance: the markdown file gets reviewed like code, through pull requests and git history, while the standing system gets registered, monitored, and given an owner, like any other production system.
A fair question to ask of any framework, so here is the honest sourcing. No standards body has settled what "agent" means: NIST's AI Risk Management Framework governs AI systems broadly and leaves the word undefined, and every vendor defines it in the shape of their own product. The closest thing to an authoritative anchor is the definition Anthropic published in Building Effective Agents (December 2024), the engineering guide this exam draws on: agents are "systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks." The same guide draws a line the exam also tests: a workflow follows code paths a developer predefined, while an agent decides its own next step. The three layer stack above is this course's way of unpacking Anthropic's definition into parts you can point at during an architecture review. The definition is theirs. The layer names are ours, and when you use them with a client, say so.
If your client builds agents in Microsoft Copilot Studio, they picture something that feels nothing like a markdown file, and the three layers explain why. A Copilot Studio agent is the full stack, rented whole:
| The layer | In Claude Code | In Copilot Studio |
|---|---|---|
| Model | Claude, reached through Anthropic's API | Microsoft's hosted model family, chosen for you |
| Harness | Claude Code on your machine, or a program you write with the Agent SDK | Microsoft's hosted runtime: the loop runs in their cloud |
| Instructions | CLAUDE.md and agent files, in markdown, in git | System instructions authored in the Studio portal |
And Copilot Studio's familiar features map straight onto vocabulary from this course:
The mapping also resolves a governance puzzle before it starts. A subagent in Claude Code is layer three alone: a file riding a harness that a person is operating right now. A Copilot Studio agent is all three layers, hosted, deployed to channels, and standing, which is why it lives in an admin center from the day it exists. Same word, opposite ends of a spectrum: subagent file, then your own session, then an SDK program, then a hosted platform agent. When someone says "agent," find where on that spectrum they are pointing, and half the meeting's confusion evaporates.
Two terms first, restated plainly so this section stands on its own. The harness is the ordinary program wrapped around the model: the software that assembles what the model sees, and that actually reads files and runs commands when the model asks. Claude Code is a harness. The agentic loop is what that program does, over and over, from the moment you press enter to the moment you get an answer. They are two different things: the harness is the machine, and the loop is the cycle the machine runs. The exam expects the cycle's steps cold, so here is one full turn, with a name on every step:
Two things about this loop matter more than the rest:
The agents/ folder has been sitting empty in the repo since the day it was scaffolded. Here is its full explanation.
A subagent is defined by one markdown file in .claude/agents/. This is a complete, real one, built in this module's closing demo:
---
name: researcher
description: Reads background material and produces short, source-cited
summaries. Use for any task that means reading many files and reporting
back, so the main session stays clean.
tools: Read, Grep, Glob
---
You are a research specialist. When given a question and a folder:
1. Find and read every relevant file. Be thorough.
2. Produce a summary of one page or less.
3. Cite the source file for every claim, like (research/2026-07-14-notes.md).
4. End with a "Gaps" line listing what you could not determine and why.
Your reply is your entire report. Anything you leave out is lost.
The frontmatter is the ID card: a name, a description (which works exactly like a skill's description: it is how the main session decides when to delegate), and a tools list. That tools line is quiet but important: this researcher can read, search, and match filenames, and nothing else. It cannot write files or run commands. Scoping tools per agent is least privilege for AI workers, and it is the first thing an enterprise reviewer will praise in your setup.
Below the frontmatter sits the agent's own system prompt: who it is, how it works, what its report must contain.
The part that makes subagents powerful: the separate window. When the main session delegates to the researcher, the harness spins up a fresh context window for it. The researcher reads forty files in there, fills its own briefcase to the brim, writes its one page report, and then that window is thrown away. Only the report crosses back. Know this boundary precisely, because the exam tests it:
| Crosses into the subagent | Stays behind |
|---|---|
| The task prompt the delegator writes | Your conversation history |
| The repo's CLAUDE.md context | Files other agents read |
| Whatever the subagent reads itself | Anything not written into the task prompt |
| Crosses back to you | Stays behind |
|---|---|
| The final report, as text | All forty files it read |
| Nothing else | Its reasoning, dead ends, and working notes |
Read those tables twice, because both directions bite. A subagent does not know what you and Claude discussed for an hour unless the task prompt says it. And you will never see what the researcher read unless its report says it. The boundary is the feature, and the boundary is also the failure mode.
One worker is delegation. Several workers need a shape, and four shapes cover nearly everything real:
| Pattern | The shape | Reach for it when |
|---|---|---|
| Hub and spoke | One coordinator holds the goal, delegates to specialists, synthesizes their reports | The default. Most real work, including everything in this module's demos |
| Parallel fan out | Several workers run the same kind of task on different slices at once | The slices are independent: summarize 8 folders, audit 12 files |
| Pipeline | Worker B's input is worker A's output | The steps genuinely depend on each other: research, then draft, then review |
| Adversarial review | One worker produces, another is instructed to attack the result | The cost of being wrong is high: claims that must survive a hostile reader |
The pattern to internalize first is hub and spoke, because the others are variations of it. The coordinator (usually your main session) owns three jobs: hold the goal, write clear task prompts for the specialists, and synthesize what comes back. The specialists own one job each, and their mess stays in their own windows. What makes the whole thing work is an unglamorous skill: the coordinator writing task prompts that contain everything the worker needs, because the worker starts with an empty window and knows only what the briefing says.
The adversarial review pattern deserves one extra note for your world: it is the cheapest quality control available. The reviewer agent's prompt says "find what is wrong with this," and an agent instructed to attack finds problems an agent instructed to summarize never mentions. The closing demo runs exactly this pair.
Orchestration lives or dies at two moments: when you slice the work, and when the pieces pass between hands.
Three rules cover most cases:
Every delegation is a game of telephone: whatever the researcher fails to write in its report, the reviewer will never know, and the error compounds silently downstream. The defenses are contracts and checks:
The five consultant team at the regional health plan, one more time. The engagement partner asks for a current-state assessment of the client's AI governance: what has actually been decided across six months of steering committee meetings, working sessions, and workshops. The raw material: forty two meeting summaries sitting in the second brain's research/ folder. Due Monday.
A consultant opens one session Friday morning and starts feeding it meeting notes. By early afternoon:
Nothing is broken. The tool is being used against its own physics: one briefcase, forty two files, no chance.
Another consultant, who has read this module, structures it instead:
The assessment went out Sunday night. The main session's window held six pages of reports and one draft, never forty two raw files. Every claim in the final document traces to a source file, because the contract demanded citations at every handoff. And the two consultants did the same amount of directing; only one of them fought the physics.
The researcher is a markdown file in a git repo, reviewed like code. Now imagine the team likes it so much they schedule it: every Friday at 6pm, unattended, with standing credentials, filing reports nobody asked for that week. Same file. At what point did it become a system the client's registry should know about? Here is the working answer, in one sentence you can use in a steering committee: govern agent files like code (peer review before merge, git history as the record) until an agent gains standing access and runs without a person watching, and from that point treat it like any other production system: registered, monitored, owned. The moment of crossing is the moment to register, and everything before it is version control doing its job.
▶ Watch the demo: building your first agent team · 4 min
The prompt pack: every demo prompt, cleaned and explained
The demo applies this chapter prompt by prompt in the practice repo: the researcher agent built with read only tools and a report contract, the reviewer built to attack, a real delegation run against research notes, and then the isolation tests that prove the boundary is real in both directions. The closing beat asks the researcher to fix a file and watches it decline, because its tools list has no Write.
Then run the pack in your own repo. The prompt pack linked above holds every prompt from the demo, cleaned up and explained. Copied as is or rephrased in your own words, check what the demo checked as you go:
Anthropic's Building Effective Agents (anthropic.com/news, December 2024) for the definition and the workflow versus agent distinction; Claude Code docs on Subagents (code.claude.com/docs); the Agent SDK documentation for the loop and stop_reason mechanics.
Take the Module 04 quiz → then hit the Study App for Domain 1, lessons 1.1 through 1.6. This domain is 27% of the exam; drill it heaviest.