hn.today

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

github.com127 points63 comments
Screenshot of Harness Engineering 101: The LLM is the brain, the harness is the body

Harness Engineering 101 presents a practical thesis: large language models are the "brain" while the harness - the program that builds, maintains, and protects the conversation array - is the "body" that makes agents work. It treats every agent feature as a concrete patch to a single synchronous request/response loop (you send a JSON array of turns and get text back), and develops that idea through 16 chapters that repeatedly follow a pattern: the failure, a minimal patch, and the patch's costs. The book grows a runnable ~300-line toy harness in plain Python, covering fundamentals like tools-as-JSON-mapped-functions, the agent loop, caching, context budgeting, subagents, steering long-running tasks, background work, and debugging, then expands to ecosystem and trust topics such as capabilities extension (MCP/skills), guardrails, coding-agent case studies, and reframing RAG as a harness pattern.

The project includes full source, diagrams, build instructions for mdBook, and scripts to regenerate quantitative diagrams, plus a clear repository layout with src/harness implementations. Appendices address advanced patterns - model routing and cost engineering, parallel worktrees, mode enforcement, and retries/rate limits/streaming. Prose is licensed CC BY-NC-ND; code is MIT. Version 1.0 (Sept 2026) by Isuru Wijesiri provides both conceptual framing and concrete, runnable patterns for anyone who wants a principled, incremental approach to building robust AI agents.

Read on github.com63 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

Inception "Mercury 3", 1000 tok/s diffusion LLM

Inception "Mercury 3", 1000 tok/s diffusion LLM

Mercury 3 is the most advanced diffusion-based large language model, outperforming models like GPT-6 Luna and Claude Haiku 5.5 in speed and capabilities, processing over 1,000 tokens per second. It is already used for real-time applications such as web navigation, voice support, and education, demonstrating that diffusion models can scale effectively for commercial use. (inceptionlabs.ai)

How Grok Bot Works

How Grok Bot Works

Grok Bot processes messages using distributed systems components like queues, workflows, and caching to ensure responsiveness and reliability. When a user sends a message, it is immediately shown locally, then queued and handled with priority, with the system maintaining state and recovering from crashes using Temporal. (peterp.me)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.