explaingit

hendrixer/harness-engineering

Analysis updated 2026-05-18

17TypeScriptAudience · developerComplexity · 3/5Setup · moderate

TLDR

A one-day hands-on workshop teaching developers how to build durable, production-ready infrastructure around AI agents in TypeScript.

Mindmap

mindmap
  root((harness engineering))
    What it does
      Agent harness workshop
      Seven lesson patterns
      Durable production agents
    Tech stack
      TypeScript
      Node.js
      React and Vite
      Postgres
    Use cases
      Crash recovery
      Sandboxed code execution
      Multi agent orchestration
      Human approval steps
    Audience
      Developers
      TypeScript learners

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Learn how to keep an AI agent running reliably through crashes and rate limits.

USE CASE 2

Practice running untrusted AI-generated code safely in a sandbox.

USE CASE 3

Build a system where one supervisor agent coordinates several specialist sub agents.

USE CASE 4

Add a human approval step that pauses and resumes an agent workflow.

What is it built with?

TypeScriptNode.jsExpressReactViteWebSocketsPostgreSQLOpenAI API

How does it compare?

hendrixer/harness-engineeringaaglexx/mcp-mananthony80188/medical-rag-chatbot
Stars171717
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasyhard
Complexity3/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an OpenAI API key from lesson 1, a free Postgres database from neon.new is needed starting lesson 2.

In plain English

This repository contains the materials for a one-day hands-on workshop on building reliable AI agent systems in TypeScript and Node.js. The workshop focuses on the infrastructure layer that surrounds a language model, covering the patterns that keep agents durable, isolated, and coordinated rather than just teaching how to make a single API call and process the response. The course is organized into seven lessons, each on its own git branch. Lesson 1 introduces the basic agent loop. Lesson 2 covers durable execution: checkpointing the agent's progress so that a crash or a rate limit error causes the agent to resume from where it left off rather than starting over. Lesson 3 covers sandboxing, meaning running code that the agent generates in an isolated environment with timeouts so it cannot affect the rest of the system. Lessons 4 and 5 address memory management and orchestration, including how to route tasks to specialized agents and pass context between them. Lessons 6 and 7 cover hierarchical supervision (a coordinator that spawns parallel sub-agents and merges results) and human-in-the-loop approval flows that can pause for minutes or days waiting for a person to respond. Each lesson branch contains the completed solution for the previous lesson, so a participant who falls behind can check out the next branch to catch up. Lesson notes are written in Markdown and can be read directly in a code editor, opened as an Obsidian vault, or served locally as a documentation site using VitePress. The included development setup starts a local server and a browser-based inspector that shows a chat panel on the left and a live event stream on the right. Students add code in each lesson and can watch events flow through the system in real time. The server uses Express and OpenAI's API via the Vercel AI SDK. No deployment is needed, everything runs locally. Prerequisites are comfort with TypeScript and Node.js and a basic understanding of how LLM APIs and agent loops work.

Copy-paste prompts

Prompt 1
Explain what an agent harness is and why it matters for production AI systems.
Prompt 2
Walk me through how durable execution lets an agent resume after a crash.
Prompt 3
Show me how the Harness Inspector UI visualizes the agent event stream.
Prompt 4
Help me design a supervisor agent that spawns and merges results from sub agents.

Frequently asked questions

What is harness-engineering?

A one-day hands-on workshop teaching developers how to build durable, production-ready infrastructure around AI agents in TypeScript.

What language is harness-engineering written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Express.

How hard is harness-engineering to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is harness-engineering for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.