stfn

Time to build my own AI coding harness

Alright time to build my own harness

Paweł Huryn@PawelHuryn

Everyone is discussing what a harness is. Nobody shows you how to build one. And everyone can.

So, I built my own Claude Code: github.com/phuryn/mini-harness

It's called Mini Harness: about 1,200 lines of Python.

Other minimal harnesses exist, but none has /goal mode, permissions + auto mode, skills and MCP servers. I wanted a fully working one to explain how a harness is built, down to Anthropic's server-side compaction.

Surprisingly, it became the top harness on Claude Haiku.

How it works: 🧵

View on X

More on Building with AI

See all