mini-harness: a ~1,200-line teaching agent harness with MCP, skills and compaction

PawelHuryn · x · 2026-11-05

Pawel Huryn open-sourced mini-harness, a teaching-oriented agent harness in 1,200 lines of Python with only two dependencies—small enough to read in one sitting.

It covers features most minimal harnesses skip: goal mode, permissions, Agent Skills, MCP servers, resumable sessions, subagents, and compaction including Anthropic's server-side compaction. It runs on Claude and any model speaking Anthropic's message format, is MIT-licensed, and comes with a newsletter that walks readers through building the full harness step by step with copy-paste prompts.

Related event: Developer Open-Sources 1,200-Line Teaching Agent Harness in Python(4 posts)→

Original post →

More from coding & agent

coding & agent channel →