Forward-deployed / AI Knowledge Graph
Harness engineering

<div align=“center”>

Harness engineering — from scratch

Build a coding agent’s harness by hand, one piece at a time. Then run the same piece through the real tools. 10 phases, 41 lessons.

Phases Track

🗺️ Roadmap · 📐 Ten principles

</div>

A harness is the system around the model: the loop, tools, context, memory, permissions, subagents and evals. Here you build each piece yourself with the standard library. Then each Use It section maps the piece to how Claude Code and the SDKs do it.

How it works

Each lesson has five beats: Motto → Problem → Concept → Build It → Use It. Every code file runs offline and ends with assertions, so a broken piece fails loudly. Each phase ends with a short Test yourself.

Start here

Run the code

python3 harness-engineering/phases/01-foundations-and-the-loop/03-the-agent-loop/code/agent_loop.py
python3 harness-engineering/phases/10-capstone/01-assemble-the-agent/code/test_agent.py

Connects to other tracks

You build the harness here. These tracks cover the same problems from other angles.

<div align=“center”><sub>Educational content. Use it, fork it, teach from it.</sub></div>