Module resources

Harness engineering

Checked sources to go further than the lessons. Back to the module.

Recommended learning sequence

Work through these in order.

  1. Building agents with the Claude Agent SDK (opens in a new tab)

    Thariq Shihipar2025Article

    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.

  2. How the agent loop works (Claude Agent SDK) (opens in a new tab)

    Anthropic2026Documentation

    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.

  3. Harness design for long-running application development (opens in a new tab)

    Prithvi Rajasekaran2026Article

    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.

  4. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering (opens in a new tab)

    John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, et al.2024PaperNeurIPS 2024 (Advances in Neural Information Processing Systems 37)

    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.

  5. Tutorial: Build a tool-using agent (opens in a new tab)

    Anthropic2026Documentation

    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.

  6. SWE-agent/mini-swe-agent (opens in a new tab)

    SWE-agent2026Repository

    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

    Anthropic2026Documentation

    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)

    OpenTelemetry2026Specification

    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

Research papers

Hands-on

  • SWE-agent/mini-swe-agent (opens in a new tab)

    SWE-agent2026Repository

    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)

    Prithvi Rajasekaran2026Article

    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.