Skip to content

Welcome to Learn Harness Engineering ​欢迎学习 Harness Engineering(工程约束设计)

Learn Harness Engineering is a course dedicated to the engineering of AI coding agents. We have deeply studied and synthesized the most advanced Harness Engineering theories and practices in the industry. Our core references include:Learn Harness Engineering 是一门专注于 AI 编程智能体工程设计的课程。我们深入研究并综合了业内最先进的 Harness Engineering 理论与实践。我们的核心参考资料包括:

Through systematic environment design, state management, verification, and control systems, this course teaches you how to make agentic coding tools like Codex and Claude Code truly reliable. It helps you build features, fix bugs, and automate development tasks by constraining your AI coding assistant with explicit rules and boundaries.通过系统化的环境设计、状态管理、验证和控制系统,本课程将教你如何使 Codex 和 Claude Code 等智能体编程工具真正变得可靠。它能帮助你通过明确的规则和边界来约束 AI 编程助手,从而构建功能、修复漏洞并实现开发任务自动化。

Get started ​开始学习

Choose your learning path to get started. The course is divided into theoretical lectures, hands-on projects, and a copy-ready resource library.选择你的学习路径以开始。本课程分为理论讲座、实践项目和可直接使用的资源库。

The Core Mechanism of a Harness ​约束设计的核心机制

A harness doesn't "make the model smarter"; rather, it establishes a closed-loop working system for the model. You can understand its core workflow through this simple diagram:约束设计并不会“让模型变得更聪明”;相反,它为模型建立了一个闭环的工作系统。你可以通过这张简单的图表理解其核心工作流程:

Encounter Issues

Auto-fix

Code Completed

Failed

Passed

Clear Objective
AGENTS.md

Initialization
init.sh

Run Tasks
AI Agent

Runtime Feedback
CLI / Logs

Verify & QA
Test suite

Cleanup & Handoff
claude-progress.md

74x6m8

What you will learn ​你将学到什么

Here are some of the key concepts you will master:以下是你将掌握的一些关键概念:

  • Constrain agent behavior with explicit rules and boundaries.通过明确的规则和边界来约束智能体行为。
  • Maintain context across long-running, multi-session tasks.在长时运行的多会话任务中保持上下文。
  • Stop agents from declaring victory too early.防止智能体过早宣布任务完成。
  • Verify work using full-pipeline tests and self-reflection.使用全流程测试和自我反思来验证工作成果。
  • Make runtime observable and debuggable.使运行时具备可观测性和可调试性。

Next steps ​后续步骤

Once you understand the core concepts, these guides help you go deeper:一旦理解了核心概念,这些指南将帮助你深入学习:

  • Lecture 01: Why Capable Agents Still Fail: Start with the theory behind harness engineering.讲座 01:为什么强大的智能体仍会失败:从约束设计背后的理论开始。
  • Project 01: Baseline vs Minimal Harness: Walk through your first real task.项目 01:基准与最小化约束设计:完成你的第一个实际任务。
  • Templates: Grab the minimal harness pack (AGENTS.md, feature_list.json, claude-progress.md) for your own projects.模板:获取适用于你项目的最小化约束设计包(AGENTS.md, feature_list.json, claude-progress.md)。