whatisgithub

What is harness-engineering-demo?

coleam00/harness-engineering-demo — explained in plain English

Analysis updated 2026-05-18

31PythonAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A demo repository showing how to wrap an AI coding agent in rules, hooks, and a plan-implement-validate loop so it works reliably.

Mindmap

mindmap
  root((harness-engineering-demo))
    What it does
      Plan Implement Validate loop
      Self validating hooks
      Multi session automation
    Tech stack
      Python
      Claude Code hooks
      Schedulr demo app
    Use cases
      Structure an AI coding workflow
      Block agent until tests pass
      Chain multiple agent sessions
    Audience
      Developers
      AI tool builders

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

Study the Plan, Implement, Validate loop as a template for structuring an AI coding agent's workflow.

USE CASE 2

Copy the hook scripts that block an agent from finishing until its tests pass.

USE CASE 3

Use the Ralph automation script to chain multiple Claude Code sessions for a long task.

USE CASE 4

Reuse the sub-agent configuration for automated code review.

What is it built with?

PythonClaude Code

How does it compare?

coleam00/harness-engineering-democolor4-alt/citecheckfacebookresearch/autoform-bot
Stars313131
LanguagePythonPythonPython
Setup difficultymoderateeasyhard
Complexity3/52/55/5
Audiencedeveloperresearcherresearcher

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

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Claude Code and the included Schedulr demo app to follow along with the workflow.

License terms are not stated in the description, check the repository directly before using or redistributing this code.

So what is it?

This repository is a companion to a YouTube video explaining harness engineering, a concept about how to structure the environment surrounding an AI coding agent so it behaves like a reliable team member rather than a capable but unpredictable tool. The harness is everything that wraps the agent: the rules it reads, the workflows it follows, the checks that prevent it from finishing until its output meets quality standards, and the hooks that run automatically in the background. The demo uses a real web application called Schedulr, included in the repository, as the target codebase. Around it, the demo builds a three-step loop called PIV: Plan, Implement, and Validate. In the Plan step, the agent reads the codebase and a feature request, then writes a detailed plan to a file. In the Implement step, the agent reads that plan and carries out each task, running a quick code check after every file it edits. In the Validate step, the full test suite and type checks must pass before the agent is allowed to stop. The self-validating behavior comes from hooks: small scripts wired into Claude Code that fire automatically before or after tool calls. One hook runs a code linter after every file edit. Another blocks the agent from ending its turn until tests are green. A third prevents the agent from reading secret files or deleting entire directories, even when running unattended. A separate automation script called Ralph strings multiple Claude Code sessions together end to end, feeding a specification file into each fresh session until a completion marker appears. This allows longer tasks to be handled across several sessions without manual intervention between them. The repository also includes a sub-agent configuration for code review and a custom search tool that lets the agent navigate the codebase by symbol name rather than by file path.

Copy-paste prompts

Prompt 1
Walk me through the Plan, Implement, Validate loop used in this repository.
Prompt 2
Explain how the Claude Code hooks in this repo block the agent until tests pass.
Prompt 3
Show me how the Ralph script chains multiple Claude Code sessions together.
Prompt 4
Help me adapt this repo's hook setup to my own codebase.

Frequently asked questions

What is harness-engineering-demo?

A demo repository showing how to wrap an AI coding agent in rules, hooks, and a plan-implement-validate loop so it works reliably.

What language is harness-engineering-demo written in?

Mainly Python. The stack also includes Python, Claude Code.

What license does harness-engineering-demo use?

License terms are not stated in the description, check the repository directly before using or redistributing this code.

How hard is harness-engineering-demo to set up?

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

Who is harness-engineering-demo for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.