phuryn

Mini Harness — Development skill for Claude Code

Development community

An agent harness built for teaching: ~1,400 lines of Python with goal mode, permissions, skills, MCP and Claude's server-side compaction.

How to install Mini Harness

This entry records only its repository, not the path inside it, so there is no exact command to give. Open phuryn/mini-harness and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Mini Harness does

An agent harness built for teaching: ~1,400 lines of Python with goal mode, permissions, skills, MCP and Claude's server-side compaction.

Alternatives in Development

  • Magnitude — Open source inference server your agent sets up for you 1.5k ★
  • MiniCode Architecture — 简体中文 This document describes the lightweight architecture decisions behind mini-code 388 ★
  • Raw CLI — The agent harness you can fork 105 ★

README

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](https://github.com/phuryn/mini-harness/blob/main/LICENSE.md) [![Tests](https://github.com/phuryn/mini-harness/actions/workflows/tests.yml/badge.svg)](https://github.com/phuryn/mini-harness/actions/workflows/tests.yml)

mini

An agent harness built for teaching: about 1,400 lines of Python and two dependencies, small enough to read in one sitting.

Other minimal harnesses exist, but none has goal mode, permissions, skills and MCP servers. I wanted a fully working one to explain how a harness is built, down to Anthropic's server-side compaction. That's why it runs on Claude and on other models that speak Anthropic's message format.

It has a tool loop, five local tools plus web search, sessions you can resume, compaction, Agent Skills, MCP servers, subagents, a `/goal` mode with an independent reviewer, permission prompts with an optional AI judge, and memory kept in markdown files.

What's different

  • Built to be read. One small folder, with no framework and no plugin system. Every part exists because something specific broke without it.
  • The worker never grades itself. In /goal mode, a claimed "done" counts only after the verify command passes and a reviewer with a fresh context checks the work.
  • Permissions with an AI judge. Risky actions ask you, or go to a small decision model that answers in about 0.3 seconds for a fraction of a cent.
  • Never edits what it already sent. The conversation is append-only, which keeps Claude's thinking valid and the cache warm across long sessions, resumes and compaction.
  • Uses existing formats. Skills and MCP servers set up for Claude Code work as they are, and hosted OAuth servers like Linear connect through mcp-remote.

How it compares

Mini Harness (this repo) compared with </div> </section>  </div> <section class=

Related Skills