Who it's for
For developers who have built an agent loop or used the Claude Agent SDK or the OpenAI Agents SDK. Take the Claude API or OpenAI API course first if tool calls are new. The examples use Python.
Lessons
- 1What is an agent harness? The loop, tools and checks around a modelAn agent harness is the code around a model: its loop, tools, context, permissions and checks. See what Codex and the SDKs put in one, with a Python sketch.
- 2Tools for AI agents: names, descriptions and results a model uses wellA model knows your tools only by their names, descriptions and results. How to shape, name, describe and size tools for AI agents, and test each change.
- 3Long-running agents: keep one task going across many sessionsKeep an AI agent on one task for hours: an initializer session, a feature list, a progress file, git, end-to-end checks and a loop that restarts it.
- 4AI agent guardrails: sandboxes, permission rules and hooksLimit what an AI agent can do: a sandbox for files and network, permission rules, hooks that check each tool call and approvals for risky actions.
Frequently asked questions
Is this harness engineering course free?
Yes. Every lesson is free to read. The examples call model APIs, and those providers may bill for their use.
What is an agent harness?
It is the code that runs a model as an agent: the loop that calls it, the tools it may use, the context it gets and the checks around each action. Lesson 1 takes one apart.
Do I need a framework to build a harness?
No. A harness can be a short loop in plain Python. SDKs such as the Claude Agent SDK and the OpenAI Agents SDK give you one ready-made, with tools, context handling and permissions.
What should I learn after this course?
The AI security course is next. It covers prompt injection, jailbreaks, the OWASP Top 10 for LLM applications and how to red team your own app. The AI evals course follows it.
