Xpersona
H

Harness Engineer

CLAWHUB · Unverified

A persistent autonomous engineering harness runtime that transforms any repository into a self-improving software system. Use this skill whenever the user wa... Skill: Harness Engineer Owner: louis-szeto Summary: A persistent autonomous engineering harness runtime that transforms any repository into a self-improving software system. Use this skill whenever the user wa... Tags: latest:5.3.0 Version history: v5.3.0 | 2026-04-09T04:05:36.021Z | user - More extensive review scope - Detailed nested subtasks breakdown instructions - accept Obsidian-type LLM Wiki - Allow clean pass

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fbg5b5sjf4h5kjgtrpme04d83p15n:harness-engineer
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-louis-szeto-harness-engineer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: harness-engineer
description: >
  A persistent autonomous engineering harness runtime that transforms any repository into a
  self-improving software system. Use this skill whenever the user wants to: build or run an
  autonomous coding agent, set up a self-healing engineering loop, orchestrate multi-agent
  software development, implement harness engineering principles, create a doc-driven
  development workflow, or run long-horizon autonomous software tasks. Trigger on phrases like
  "autonomous agent", "self-healing codebase", "harness engineering", "multi-agent pipeline",
  "continuous improvement loop", "OpenClaw skill", or any request for an agentic engineering
  system that runs without constant human input. Primarily designed for Claude Code and
  OpenClaw environments.

metadata:
  platform_enforcement: required
  platform_note: >
    This skill is instruction-only. Safe operation depends on the host platform
    enforcing: MCP tool router (blocked sensitive reads, protected writes, output
    redaction), sandboxed test execution, scoped git credentials (no direct push to
    main), and human approval gates. If these cannot be confirmed, run single-pass
    with manual oversight only. Full checklist in PLATFORM_REQUIREMENTS.md.
  required_platform_capabilities:
    - mcp_tool_router
    - sandboxed_test_execution
    - git_credential_scoping
    - human_approval_gates
  safe_defaults:
    - loop_mode: single-pass
    - verify_platform_requirements_before_first_use: true
---

# HARNESS ENGINEER

A production-grade skill for Claude Code and OpenClaw that transforms a repository into a
self-improving software system using six core harness engineering principles.

---

## SIX CORE PRINCIPLES

### P1: CONTEXT ENGINEERING
Treat context as a finite, precious resource. Curate aggressively.
See: runtime/context-engineering.md, runtime/compaction.md

### P2: TOOL USAGE
Each sub-agent receives only the tools it needs -- no more.
See: tools/TOOL_REGISTRY.md, references/mcp-tools.md

### P3: VERIFICATION MECHANISM
Every output is verified by someone other than who produced it.
See: agents/reviewer.md, references/testing-standards.md

### P4: STATUS MANAGEMENT
State lives outside the context window, in the repo.
See: runtime/status-management.md, templates/handoff.md

### P5: OBSERVABILITY AND FEEDBACK CLOSED-LOOP
Track what happens. Feed failures back into the harness, not the code.
See: runtime/observability.md, runtime/memory-system.md

### P6: HUMAN SUPERVISION
Humans approve high-impact events. The harness surfaces them explicitly.
See: runtime/autonomy-rules.md, runtime/prioritization.md

---

## NON-NEGOTIABLE RULES

1. CLAUDE.md / AGENTS.md IS GROUND TRUTH -- read it first, every session.
2. CODEBASE OVER DOCS -- when they conflict, trust the code.
3. 40% CONTEXT RULE -- compact or sub-agent before crossing 40% of context window.
4. NO IMPLEMENTATION WITHOUT a research output, a plan, and validation criteria.
5. GENERATION AND REVIEW

_meta.json

{
  "ownerId": "kn7etc0mnffc33nwft9sm1131n83p6nd",
  "slug": "harness-engineer",
  "version": "5.3.0",
  "publishedAt": 1775707536021
}

references/constraints.md

# CONSTRAINTS

This file is populated automatically by the self-improvement engine.
Every Prevention Rule derived from a recurring failure is recorded here.

Agents MUST read this file before starting any non-trivial task and apply all
applicable constraints.

---

## FORMAT

```
---
CONSTRAINT-NNN
Source:    MEMORY.md entry reference
Added:     YYYY-MM-DD
Trigger:   <what situation activates this constraint>
Rule:      <what agents must do or must not do>
Enforced by: <test name | harness-rules.md section | reviewer checklist>
---
```

---

## CONSTRAINTS

<!-- Prevention rules are prepended here as they are generated -->

references/git-workflow.md

# GIT WORKFLOW

## STRATEGY: TRUNK-BASED DEVELOPMENT

- One main branch (main or trunk)
- Short-lived feature branches only -- max lifetime: CONFIG.yaml git.branch_max_lifetime
- No long-running feature branches. Decompose large features into shippable increments.

---

## CHECKPOINT COMMIT PROTOCOL

A checkpoint commit is made after every atomic task (T-NNN) is verified.

Rules:
  - Tests must pass BEFORE committing
  - Pre-commit hooks must pass BEFORE committing
  - Update PROGRESS.md (mark task complete) BEFORE committing
  - Never bundle two unverified tasks in one commit

Commit message format:
```
checkpoint(T-NNN): <short description>

Plan: PLAN-NNN.md
Tests: <pass count> passed, 0 failed
Coverage: <percent>%
```

Checkpoint commits are the recovery points. If context resets, the new agent
reads HANDOFF.md and resumes from the last checkpoint commit SHA.

---

## PR REQUIREMENTS (every PR must include)

- [ ] Reference to PLAN-NNN.md in PR description
- [ ] All tests passing (unit + integration + e2e)
- [ ] Pre-commit hooks passing
- [ ] Docs updated (spec, README, API docs as applicable)
- [ ] Security scan clean (scan_vulnerabilities)
- [ ] Coverage >= 90% on changed files
- [ ] All 3 reviewer layers approved (REVIEW-NNN-L1, L2, L3)
- [ ] Human approval (mandatory -- no auto-merge)

---

## MERGE REQUIREMENTS

PRs are merged by a human operator only, after:
  1. All CI checks pass
  2. All 3 reviewer layers have approved
  3. Human has reviewed the diff
  4. Human explicitly merges

There is no auto-merge. The harness creates PRs; humans merge them.

---

## FORBIDDEN ACTIONS

- Direct commits to main/trunk (use PRs)
- Merging with failing tests
- Merging without reviewer cycle completion
- Merging without docs updated
- Force-pushing to shared branches
- Bypassing the reviewer cycle
- Committing without checkpoint message format

---

## WORKTREE ISOLATION

For parallel ITR groups, each group works in an isolated git worktree.

### Protocol

1. Before dispatching an ITR group, create a worktree:
   git worktree add .worktrees/wu-{NNN}-{short-description} -b harness/wu-{NNN}

2. Implementer operates within the worktree:
   - All file reads/writes are scoped to the worktree
   - Tests run within the worktree environment
   - Commit checkpoints go to the worktree branch

3. After ITR cycle completes successfully:
   - All tests pass in the worktree
   - Reviewer approves the changes
   - Merge worktree branch back to trunk
   - Delete the worktree: git worktree remove .worktrees/wu-{NNN}

4. If ITR cycle fails:
   - Delete the worktree and branch (clean slate)
   - No partial state leaks into the main working tree

### Benefits
- True parallelism: multiple ITR groups can modify different files simultaneously
- Isolation: a failing group cannot corrupt the main working tree
- Clean rollback: failed work is deleted entirely, no merge conflicts to resolve

### Integration with Dispatcher

In agents/dispatcher.md, the dispatcher creates and 

references/harness-rules.md

# HARNESS ENGINEERING RULES

These are the non-negotiable principles of harness engineering. They apply to every agent,
every cycle, every PR.

---

## CORE PRINCIPLES

### 1. DOCS ARE GROUND TRUTH
Code is a snapshot. Docs are the system. If it is not in `docs/`, it does not exist.
- Every feature needs a spec.
- Every decision needs an ADR.
- Every plan needs a PLAN-NNN.md.

### 2. SPECIFICATIONS BEFORE IMPLEMENTATION
Never write code without:
- A spec that defines the expected behavior.
- A plan that authorizes the implementation.
- Validation criteria that define "done."

### 3. FAILURES ARE SYSTEM SIGNALS
A bug is not a developer mistake. It is a gap in the harness -- a missing constraint,
test, or documentation that allowed the error to occur. Fix the harness, not just the code.

### 4. EVERY CHANGE IS TRACEABLE
Every commit message must reference a PLAN-NNN.md.
Every PLAN-NNN.md must reference the spec that authorized it.
No orphaned code. No mystery changes.

### 5. TESTS ARE SPECIFICATIONS
Tests are not an afterthought. They are the executable form of the spec.
If a test cannot be written, the spec is not clear enough.

### 6. QUALITY IS A PRIORITY ORDER, NOT A DIAL
Do not trade security for performance. Do not trade correctness for speed.
The priority order is fixed:
1. Security => 2. Correctness => 3. Reliability => 4. Performance => 5. Memory => 6. Maintainability => 7. Cost

### 7. ENTROPY MUST TREND DOWNWARD
Every cycle should leave the system cleaner than it found it.
If it doesn't, the GC agent failed.

Sponsored

Ads related to Harness Engineer and adjacent AI workflows.