izhimu

Pi Harness2 — AI skill for Claude Code

AI community

In modern LLM coding agents, model weights are frozen.

How to install Pi Harness2

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

What Pi Harness2 does

In modern LLM coding agents, **model weights are frozen**. All adaptable intelligence, domain specialization, and operational reliability reside in the **Harness**: system prompts, guardrails, persistent memory, tool contracts, subagents, skills, deterministic scripts, and plugin middleware.

Alternatives in AI

  • Artifacts Builder — Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech 97.5k ★
  • AI SDK Cpp — The AI Toolkit for Modern C++ 183 ★
  • ClaudeCode Mastery Handbook — A complete, modern, developer-focused handbook for mastering Claude Code, Vibe Coding techniques, AI-powered w 87 ★

README

pi-harness2

[![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE) [![pi extension](https://img.shields.io/badge/pi-extension-green.svg)](https://github.com/earendil-works/pi) [![omp plugin](https://img.shields.io/badge/omp-plugin-purple.svg)](https://github.com/can1357/oh-my-pi) [![npm version](https://img.shields.io/npm/v/@izhimu/pi-harness2.svg)](https://www.npmjs.com/package/@izhimu/pi-harness2) [![Paper: arXiv 2610.14224](https://img.shields.io/badge/Paper-arXiv%3A2610.14224-B31B1B.svg)](https://arxiv.org/abs/2610.14224)

Continuous self-improvement, recursive harness optimization, and reporting plugin for [pi](https://github.com/earendil-works/pi) and [oh-my-pi (omp)](https://github.com/can1357/oh-my-pi).

Based on Google's research: **[Harness²: Recursive Agent Harnessing for an Open World](https://arxiv.org/abs/2610.14224)**.


Why Harness²?

In modern LLM coding agents, **model weights are frozen**. All adaptable intelligence, domain specialization, and operational reliability reside in the **Harness**: system prompts, guardrails, persistent memory, tool contracts, subagents, skills, deterministic scripts, and plugin middleware.

When an agent encounters friction — such as tool execution retry loops, syntax mismatches, or context spills — traditional workflows require tedious manual prompting and rules editing.

**`pi-harness2` closes this loop autonomously**:

  1. Observes: Ingests real session logs directly from the host without duplicate disk overhead.
  2. Diagnoses: Performs answer-free contrastive failure analysis and grounds proposals in concrete error tokens.
  3. Optimizes: Synthesizes targeted adaptations across 8 harness components with strict anti-bloat safeguards and automatic skill trigger-line registration.
  4. Governs: Logs every change in an immutable ledger with atomic 1-click rollback.

Features

  • 🔄 Dual-Host Isomorphic Support: Seamlessly detects and adapts to either `