Harness Engineering 101: The LLM is the brain, the harness is the body

Hacker News by 3 min read 142x views
Harness Engineering 101: The LLM is the brain, the harness is the body

Share Post

The LLM is the brain. The harness is the body.

Version 1.0 — September 2026.

A blog sequence concerning construction AI agents from archetypal principles, published as a book.

📖 Read it online: https://isuruwijesiri.com/harness-engineering-101/

An LLM API is stateless. Every turn, you dispatch the complete conversation as a JSON array and get content back. A harness is the program that builds, maintains, and protects that array. Everything the site calls "agents" is a set of patches to that one loop, and all place exists since item tangible broke. This series develops that one idea throughout 16 chapters, expanding a ~300-line toy agent in plain Python as it goes.

The patterns current are developed in complete in One Code, an open-source coding agent built on pi.

The rendered publish says finest online at the nexus above. If you'd fairly read the origin current on GitHub, prosecute the chapters in command below. The full introduction is on the book's landing page.

Every division has the identical shape: the failure, the minimal patch, what the patch costs.

Part I — The Wire (nothing is magic)

Part II — Running Long (the gathering under pressure)

Part III — The Ecosystem (naming what you already understand)

Part IV — Trust, Domains, and Data

Appendix — Advanced Topics

Standalone pieces. Read them whenever you need them.

Path What it holds
src/*.md The chapters and appendices (the publish source)
src/SUMMARY.md The book's array of contents
src/harness/ The runnable toy harness — one document per stage
src/diagrams/ Diagram generators and their generated PNGs
book.toml mdBook configuration
scripts/sync-to-blog.sh Builds the publish and mounts it into the blog for serving

Building the publish locally

cargo instal mdbook mdbook-mermaid # or: beer instal mdbook (+ mdbook-mermaid binary) mdbook assist --open # live-reloading preview at http://localhost:3000 mdbook build # fixed location into ./book

mdbook-mermaid renders the inline mermaid diagrams; without it those blocks show as raw code.

Regenerating the quantitative diagrams

cd src/diagrams && python3 gen_all.py # Python 3.10+, matplotlib

This repository is dual-licensed:

© 2026 Isuru Wijesiri.

Other Article Hacker News
↑
Close Right Ads
Close Left Ads