Section 1: Anatomy of a Harness
How a harness differs from a framework, and who owns the control flow
The components of an agentic AI system: model, loop, tools, context and policy
Dissecting commercial coding agents to see what each part does
Configuring the Claude Code and Cursor setups used in class to work from specs
Section 2: The Agent Loop
The observe, decide, act and verify cycle of an agent
Setting step budgets and token budgets per task
Stop conditions and detecting loops that never finish
Structured tracing so you can replay what the agent decided at each turn
Section 3: Workshop: Building the Agent Loop from a Spec
Write a loop spec with explicit step and token ceilings
Define the stop conditions and the trace format you need
Have a coding agent implement the loop in async Python
Review the result, find design flaws the tests miss, and direct the fixes
Section 4: The Tool Layer
Tool descriptions are part of the prompt and must be designed deliberately
Schemas precise enough that the model never has to guess parameters
Error surfaces that state the cause and the fix so the agent can self-correct
Idempotency for side-effect tools, and truncating oversized results before they return to the context
Section 5: Workshop: File Read, File Edit and Run Command Tools
Write specs for file read, file edit and run command tools
Design error messages the agent can act on
Have the coding agent build the tools and wire them into the loop from the first workshop
Test failure cases and very large outputs
Section 6: Hooks and Middleware
Policy belongs in the runtime, not in the prompt
Deterministic lifecycle hooks that run before and after tool calls
Ordering a middleware chain and what changes when the order changes
Workshop: have the coding agent build a middleware chain from a spec without touching the loop code