English | 中文
Harness Engineering Skills
Stometa's public curated Claude Code skillset — a small, opinionated set of skills we use ourselves, published periodically.

At a glance
What it is: A Claude Code plugin with two engineering skills — review-loop (cross-model code review) and harness (multi-agent task orchestration). This repository is their public canonical source; changes are reviewed and released here.
What it does: Coordinates a Plan → Generate → Evaluate → Retro pipeline with hard, engine-enforced constraints: two isolated sessions, a fresh sub-agent per checkpoint, an engine script as the sole gatekeeper, and a cross-vendor peer review before any PR lands.
What problems it solves:
| Failure mode | How it shows up | What Harness does |
|---|
| Context drift | Planning, coding, and review share one growing context — the model drifts further with each turn | Two-session split + fresh sub-agent per checkpoint (eigenbehavior reset) |
| Self-certification | The LLM that wrote the code also judges whether it passes | Engine script rejects any pass-checkpoint where the evaluator session id matches a prior checkpoint in the same task |
| Echo-chamber review | The same model reviews its own work and misses its own blind spots | review-loop enforces a different-vendor peer (Codex or Gemini) and runs a fresh-session final approval before closing |
Workflow at a glance
Two phases, hard context boundary between them. Each phase contains its own fresh-sub-agent iteration loop. The engine script is the only entity that can advance phase state — the LLM cannot self-certify.
flowchart TB
YOU(["You"])
subgraph P["① Plan · Session 1"]
direction LR
PL["Planner"] <-->|"draft ↔ revise"| SE["Spec Evaluator\nfresh sub-agent"]
end
subgraph E["② Execute · Session 2 (one fresh sub-agent per checkpoint)"]
direction TB
GN["Generator\nfresh sub-agent"] <-->|"implement ↔ verify"| EV["Evaluator\nfresh sub-agent"]
EV -->|"all CPs pass"| RL["Cross-model peer review\nCodex ∣ Gemini"]
end
PR[/"Open PR"/]
RT[("Persistent retro\nlearnings → next task")]
YOU -->|"harness plan"| P
P -. "context isolation" .-> E
RL --> PR --> RT
RT -.->|"accumulated learnings"| YOU
classDef fresh stroke:#d97706,stroke-width:2px
class SE,GN,EV fresh
Legend — orange-bordered nodes are fresh independent sub-agents (drift firewall); dashed arrows are cross-session / cross-task information flows that carry no shared context.
Hosts and roles
The model running each role is decoupled from the model hosting the session — that's why the same pipeline works whether you start in Claude Code or Codex.
| Role | Who plays it | Notes |
|---|
| Orchestrator host (Session 1 + 2) | Claude Code CLI or Codex CLI | Symmetric. Recommended split: Claude Code for Session 1, Codex for Session 2. |
| Spec Evaluator | Claude (sub-agent or via claude-agent-invoke.sh) | Stable across hosts. |
| Generator | Active host LLM (Claude or Codex) | Inherits the host. |
| Evaluator / E2E / Retro | Claude (sub-agent or via claude-agent-invoke.sh) | Engine rejects same-context self-evaluation. |
review-loop peer (cross-model gate) | codex CLI or gemini CLI — allowlisted | Claude is not a peer here by design — same-vendor review would defeat the cross-model purpose. |
Heads-up on the peer allowlist: the bundled review-loop skill enforces peer ∈ {codex, gemini} in preflight. If Claude is hosting, the peer is naturally a different vendor; if Codex is hosting, picking codex still gives you a fresh isolated context (different CODEX_HOME, no MCP, stripped credentials), and gemini gives you a true cross-vendor read.
What makes Harness different