Mini Harness — Development skill for Claude Code
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
[](https://github.com/phuryn/mini-harness/blob/main/LICENSE.md) [](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
/goalmode, 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
Related Skills
Claude Code Mini
Async Python implementation of the Claude Code agent harness — real Bash/Read/Glob/Grep tools, three-tier cach
Agent Orchestra
Hands-on experiments with multi-agent orchestration: Claude + LangGraph on the Python side, a thin TypeScript
Mini Agent Framework
A small, reusable, single-agent framework built from scratch in Python. It uses a bounded ReAct execution loop
Odysseus Workshop
Odysseus — a minimal agent harness in Python, built from scratch over five days. Standard library only.
Random Number MCP
Production-ready MCP server that provides LLMs with essential random generation abilities, built entirely on P
Gimp MCP Pro
A production-grade MCP server for GIMP 3.0+. 67 typed tools connecting Claude Desktop to GIMP for image creati
Related Agents
Harness Backend Dev
Backend engineer — APIs, endpoints, services, business logic, auth flows, background jobs and server-side inte
FastAPI Backend Developer
Use this agent when the user requests changes to the FastAPI backend, REST API endpoints, Python services, or
03 Backend Dev
Backend/server/API implementation specialist. Handles Python, Node.js, Go, Rust, Java and all server-side fram