← Back to home Harness Engineering 表紙

Harness Engineering

From Using AI to Controlling AI

Harness Engineering tutorial | AGENTS.md design · hooks implementation · AI agent operations

Your AI agent runs. Does it obey? OpenAI, Anthropic, and LangChain each define harness differently. This book merges all 5 interpretations into one system.

Harness Trilogy [Architecture]. Defining what a harness is, across 5 interpretations.
Read now on Kindle →
Published: Updated:

Overview

Harness Engineering, mapped across the 5 interpretations from OpenAI, Anthropic, LangChain, Martin Fowler, and academia. The first systematic guide that distills the 6 building blocks, the AGENTS.md/CLAUDE.md/hooks implementation patterns, and Self-Evolving Agents — the practical reference for the 2026 keyword.

What you will be able to do

Who is this book for

Problems this book solves

Where this book stands

Why this book

How this differs from other AI books

Compared to This book's difference
Vendor docs (OpenAI / Anthropic / LangChain) Not single-vendor view. This integrates 5 interpretations and explains why they disagree.
Prompt / Context Engineering books Tackles the layer above prompt and context — the third tier of the stack.
Agent Framework guides (LangChain Agents etc.) Not framework-specific. Maps the boundary between harness and Agent Frameworks.

Table of contents

  1. 01 Preface — Why 'Harness' now Free preview
  2. 02 The Three Engineerings (Prompt → Context → Harness) Free preview
  3. 03 Harness Engineering: Definition and Big Picture Free preview
  4. 04 OpenAI's Take — Codex and the million-line experiment
  5. 05 Anthropic's Take — Harness for long-running agents
  6. 06 LangChain's Take — Agent = Model + Harness
  7. 07 Martin Fowler's View — The implicit harness in every codebase
  8. 08 The Academic View — arXiv papers and formal specification
  9. 09 The Six Building Blocks — Anatomy of a harness Free preview
  10. 10 Technology Map — Vibe Coding / Spec Coding / Agent Framework
  11. 11 Reconciling the Differences — What everyone agrees and disagrees on
  12. 12 AGENTS.md / CLAUDE.md Practical Design
  13. 13 Hooks / Lifecycle / Feedback Loops
  14. 14 Self-Evolving Agent — A harness that improves itself
  15. 15 The Future of Harness Engineering
  16. 16 Afterword
  17. 17 References Free preview
  18. 18 About the Author Free preview
  19. 19 Colophon Free preview

The phrase Harness Engineering is everywhere, and means something different to everyone. OpenAI talks about scaling Codex. Anthropic talks about long-running agents. LangChain frames it as Agent = Model + Harness. Martin Fowler points out that every codebase already has an implicit harness.

Each of them is right. But until now, no book has stitched these views into a single system.

This book maps what a harness is, how to design one, and how to operate it. It synthesizes the 5 interpretations into 6 building blocks, then walks through implementation with AGENTS.md, CLAUDE.md, and hooks, all the way to Self-Evolving Agents.

“Prompt was 2024. Context was 2025. Harness is 2026.”

Related books

Dive deeper with related articles

Read on Kindle

Available on Kindle Unlimited

Buy on Kindle
Topics: Harness EngineeringAI AgentAGENTS.mdCLAUDE.mdSelf-Evolving Agent