Module resources
Harness engineering
Checked sources to go further than the lessons. Back to the module.
Recommended learning sequence
Work through these in order.
Building agents with the Claude Agent SDK (opens in a new tab)
Start with the model builder's view of a harness: the loop of gathering context, taking action and verifying work, built on the harness behind Claude Code. It gives the six families in lesson 1 a concrete shape.
How the agent loop works (Claude Agent SDK) (opens in a new tab)
Then see one real loop documented: turns, tool execution, permissions, turn and budget caps, compaction and hooks. Lessons 2 to 4 describe these pieces in general; this page shows one product's version.
Harness design for long-running application development (opens in a new tab)
A case study of changing the harness around a fixed task: a separate evaluator agent grades what the generator produces. It ties lessons 3 to 6 together and shows a harness being adjusted as the model improves.
SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering (opens in a new tab)
The research paper that argues agents need interfaces designed for them, with an analysis of how the interface shapes behaviour. It is the academic root of the tool-design advice in lesson 2.
Tutorial: Build a tool-using agent (opens in a new tab)
Repeated on purpose: it is listed in module 6, lesson 2. Here it is a hands-on step, so you can build a small tool-using loop before you read a minimal one.
SWE-agent/mini-swe-agent (opens in a new tab)
Finish by reading code: the README describes an agent class of roughly 100 lines of Python that uses only bash. Read it to see how little loop a working agent needs, then name what you would add around it.
All resources
Official documentation
How the agent loop works (Claude Agent SDK) (opens in a new tab)Essential
Documents turns, max-turn and budget caps, permission modes, hooks that can block a tool call, compaction and subagents for context isolation. Lets you compare this module's design choices with a shipped harness.
OpenTelemetry GenAI Semantic Conventions (opens in a new tab)
Repeated on purpose: it is a source used in module 9, lesson 3. Its README describes OpenTelemetry conventions for spans, metrics and events for GenAI clients, so you can see a standard vocabulary for the tracing lesson 6 relies on.
Further reading
Building agents with the Claude Agent SDK (opens in a new tab)Essential
Explains the gather, act, verify loop with an email agent as the running example, and lists rule-based checks, visual feedback and LLM-as-a-judge as ways to verify. Complements lessons 1 and 4.
Research papers
SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering (opens in a new tab)
Introduces SWE-agent and its agent-computer interface for editing files, navigating repositories and running tests, and analyses how interface design shapes agent behaviour. Deepens lesson 2's tool-design material.
SWE-bench: Can Language Models Resolve Real-World GitHub Issues? (opens in a new tab)
Repeated on purpose: it is listed in module 7. Here it shows a benchmark that grades a harness by outcome on real GitHub issues, which is the idea behind lesson 6's evaluation loop.
Design Patterns for Securing LLM Agents against Prompt Injections (opens in a new tab)
Repeated on purpose: it is listed in module 8. Named architectural patterns for limiting what an agent can do after reading untrusted text, a design-level complement to lesson 4's sandbox and permission controls.
Hands-on
SWE-agent/mini-swe-agent (opens in a new tab)
A minimal agent whose README says the agent class is about 100 lines, uses no tools beyond bash and keeps a linear message history. Good for running a bare loop and then adding the guides and sensors of lesson 4. The SWE-agent README says mini-swe-agent has superseded it, and this README calls itself mini-swe-agent v2 and says to consider it your default choice.
Case studies
Harness design for long-running application development (opens in a new tab)
Describes a generator paired with a separate evaluator that tests the running application and returns critique. The author notes the evaluator is still an LLM inclined to be generous to LLM-generated output, so it needed tuning to be skeptical; read it as a caution about model-based graders. The author also removed per-sprint grading once the model improved, which illustrates that harness parts encode assumptions. Supports lessons 4 to 6.