Module 3 of 13
Agents and harnesses
How AI agents actually work: the loop, tool calls, MCP servers, coding agents and agent SDKs, and how to tell when a task needs an agent at all.
6 lessons · 54 min readingLab · about 100 minQuiz · 10 questions
What's in this module
- Lesson 1 · 10 minThe agent loopGoal, think, call a tool, observe, repeat, stop: what turns a model into an agent, and the harness that runs it.
- Lesson 2 · 9 minTool calling explainedHow a model asks for a tool, how your code runs it, and how read and write permissions keep a brokerage safe.
- Lesson 3 · 9 minMCP servers: one plug for many toolsThe Model Context Protocol in plain words: hosts, clients and servers, local and remote servers, and how to vet one.
- Lesson 4 · 9 minCoding agents: Claude Code, Codex and CursorWhat each coding agent is as of October 2026, what it costs, and how a non-coder directs one to build a small tool.
- Lesson 5 · 8 minAgent SDKs: OpenAI Agents SDK, Vercel AI SDK and friendsWhat an agent SDK gives a developer, how the main ones compare, and when a no-code tool is the better choice.
- Lesson 6 · 9 minChatbot, routine or agent?Five questions that tell you which shape a brokerage task needs, with worked examples.
- Lab · 100 minBuild a calculator with a coding agent and connect an MCP serverDirect a coding agent to build an Ontario mortgage payment and land transfer tax estimator, then let an AI app read your lab folder through an MCP server.
- QuizModule 3 quizTen scenario questions. Pass with 8 or more; retake as often as you like.
Template · Markdown
Agent design canvas
A one-page plan for any agent: goal, users, triggers, tools with read and write permissions, data, human checkpoints, failure modes, logging, cost and success measures.
Sources and further reading
- Architecture overview · Model Context Protocol
- Versioning · Model Context Protocol
- Security best practices · Model Context Protocol
- Connect to local MCP servers · Model Context Protocol
- Plans and pricing · Anthropic
- Use Claude Code in the cloud · Anthropic
- Agent SDK overview · Anthropic
- Codex pricing · OpenAI
- Pricing · Cursor
- Google Antigravity pricing · Google
- OpenAI Agents SDK · OpenAI
- Agents overview · Vercel AI SDK