Xpersona
A

Agent Harness

CLAWHUB · Unverified

Production-grade Agent Harness combining execution discipline, knowledge compounding, and product thinking into a single adaptive workflow. Use when: (1) bui... Skill: Agent Harness Owner: christianye Summary: Production-grade Agent Harness combining execution discipline, knowledge compounding, and product thinking into a single adaptive workflow. Use when: (1) bui... Tags: agent:1.0.0, engineering:1.0.0, harness:1.0.0, latest:2.0.1, tdd:1.0.0, verification:1.0.0, workflow:1.0.0 Version history: v2.0.1 | 2026-06-10T16:20:00.796Z | user v2.0.1 patch — internationalization fix

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/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 s17bsjyfzzr9b73vsdr9mcdk9n84f96d:trinity-harness
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  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-christianye-trinity-harness/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

49,610 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: agent-harness
description: "Production-grade Agent Harness combining execution discipline, knowledge compounding, and product thinking into a single adaptive workflow. Use when: (1) building features or fixing bugs with AI agents, (2) user says 'build', 'plan', 'spec', 'review', 'ship', 'debug', (3) managing multi-step or multi-agent tasks, (4) need structured engineering workflow with quality gates. Provides: task complexity auto-grading (simple/medium/complex), anti-rationalization guards, concurrent subagent scheduling (≤4 hard limit), tool-chain continuity enforcement, context budget management, verification protocols, and experience compounding. Triggers: 'agent harness', 'engineering workflow', 'build protocol', 'multi-agent task', 'coding discipline', 'subagent orchestration'."
version: 2.0.1
---

# Agent Harness

A unified engineering harness combining execution discipline, knowledge compounding, and product thinking. Born from ~450k characters of real-world AI textbook writing + 15+ production incidents.

> **GAIA benchmark shows scaffold design = 30pp+ performance boost** — same model, HAL scaffold 74.6% vs bare model ~44%. The harness is the multiplier.

## Core Philosophy

> Agent = Model + Harness. The model provides capability; the harness provides discipline.

Three layers, one workflow:

1. **Challenge** — Is this the right thing to build?
2. **Execute** — Build it with engineering rigor
3. **Compound** — Learn from what happened

## Task Complexity Auto-Grading

Before starting any task, assess complexity. This determines which workflow steps to run.

**🟢 Simple** (bug fix, config change, small tweak)
- Skip spec/plan → Direct edit → Verify → Done

**🟡 Medium** (new feature, module, integration)
- Plan → Build incrementally → Test → Review → Done

**🔴 Complex** (architecture change, multi-module, new system)
- Full pipeline: Challenge → Spec → Plan → Build → Test → Review → Ship

When unsure, start at 🟡. Upgrade to 🔴 if you discover hidden complexity. Never downgrade mid-task.

## Layer 1: Challenge (🔴 Complex tasks only)

Before writing any code, answer these questions:

1. **Problem validity** — Is the user solving a real problem?
2. **Simplest approach** — Is there a simpler way?
3. **Scope clarity** — Can you explain "done" in one sentence?
4. **Risk assessment** — What's the worst outcome if this goes wrong?

Output: A one-paragraph problem statement the user confirms before proceeding.

## Layer 2: Execute

### Spec (🟡🔴 only)

- **Goal**: One sentence describing the outcome
- **Interface**: Inputs, outputs, API contracts
- **Constraints**: What you will NOT do
- **Acceptance criteria**: How to verify it works (must be testable)

### Plan (🟡🔴 only)

Break the spec into atomic tasks:
- Each task modifies ≤3 files
- Each task has a clear verification step
- Tasks ordered by dependency (independent tasks can parallelize)

### Build

Execute tasks incrementally. After each task:
1. Verify the task works (run 

_meta.json

{
  "ownerId": "kn757z7y3qhq5501ytv82v5p6d84ep08",
  "slug": "trinity-harness",
  "version": "2.0.1",
  "publishedAt": 1781108400796
}

references/checkpoint-patterns.md

# Checkpoint Patterns for Agent Systems

## Why Checkpoint?

Agent tasks can fail mid-execution (idle timeout, API throttling, OOM). Without checkpoints, all progress is lost.

## Three Strategies

### 1. File-Level Checkpoint (Simplest, Recommended)

Write output to file after each subtask completes.

```
Task: Write 5 chapters
→ Complete Ch1 → write ch1.md ✅ (checkpoint 1)
→ Complete Ch2 → write ch2.md ✅ (checkpoint 2)
→ Ch3 crashes → Restart: Ch1, Ch2 exist, only redo Ch3
```

Best for: Subagent orchestration. Each subagent writes to its own file. If one fails, only re-dispatch that one.

### 2. State Machine Checkpoint (Medium Complexity)

Model the task as a state machine. Persist state on each transition.

```json
{
  "taskId": "rebuild-v8",
  "currentStep": 9,
  "totalSteps": 14,
  "completedFiles": ["ch1.md", ..., "ch8.md"],
  "lastCheckpoint": "2026-04-08T15:30:00Z"
}
```

Recovery: Read state file, skip completed steps.

Best for: Sequential multi-step pipelines where order matters.

### 3. Event Sourcing (Most Powerful, Most Complex)

Store all state-change events instead of current state. Recovery = replay events.

Best for: Critical business workflows where you need full auditability and replay capability.

## Practical Rules

1. **Write to file after each step** — Don't accumulate in context memory
2. **Design idempotent tasks** — Re-running a step = same result (write to same file = overwrite = safe)
3. **Only retry the failed step** — Not the whole pipeline
4. **Observable progress** — `ls` shows what's done; don't rely on model's "memory"

## Why Not Just Use Context?

Three ways context fails as a checkpoint:
1. **Idle timeout** — Session killed, context gone
2. **Compaction** — Mid-task details may be summarized away
3. **Hallucination** — Model "remembers" doing step 5, but the file was never written

**File system is the only reliable persistence layer.** `ls` doesn't lie.

references/mast-failure-taxonomy.md

# MAST Failure Taxonomy for Multi-Agent Systems

Classify failures into three categories to determine the correct fix:

## Three Failure Types

| Type | Share | Symptoms | Fix Direction |
|---|---|---|---|
| **Design** | ~40% | Wrong task decomposition, unclear agent boundaries, bad tool selection | Redesign architecture and task splitting |
| **Alignment** | ~35% | Agent understood the task but drifted, wrong output format, creatively bypassed constraints | Improve prompts, add constraints, refine acceptance criteria |
| **Verification** | ~25% | Output looks correct but isn't, missing quality checks, errors amplified downstream | Add Verification Agent, set quality gates |

## Diagnostic Five-Question Protocol

When a multi-agent task fails:

1. **What did the agent believe was happening?** (task understanding) → Alignment issue
2. **What tools were called, in what order?** (execution path) → Design issue
3. **What signal was missing?** (information gap) → Design issue
4. **Which guardrail should have caught this?** (missing protection) → Verification issue
5. **How can we detect this faster next time?** (observability) → All types

## Key Insight

65% of multi-agent failures (Design + Verification) have nothing to do with model capability. Switching to a stronger model won't fix them. Only 35% (Alignment) might benefit from a better model or better prompts.

**Fix the harness first, then consider the model.**

skill-card.md

## Description:

Production-grade Agent Harness combining execution discipline, knowledge compounding, and product thinking into a single adaptive workflow.

This skill is ready for commercial/non-commercial use.

## Publisher:

[christianye](https://clawhub.ai/user/christianye)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineering agents use this skill to structure feature work, bug fixes, reviews, debugging, and multi-step agent tasks with planning, verification, checkpointing, and review practices.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Broad activation wording may route ordinary build, plan, review, ship, or debug requests through this workflow more often than desired.

Mitigation: Review and narrow the activation terms before deployment if the intended routing scope is smaller.

Risk: The workflow encourages agents to run verification commands, write checkpoint or output files, and use limited subagents for larger tasks.

Mitigation: Deploy in an environment with normal command, filesystem, and delegation controls, and review proposed actions before execution.

## Reference(s):

- [Checkpoint Patterns for Agent Systems](references/checkpoint-patterns.md)
- [MAST Failure Taxonomy for Multi-Agent Systems](references/mast-failure-taxonomy.md)
- [ClawHub Skill Page](https://clawhub.ai/christianye/skills/trinity-harness)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Code, Shell commands, Configuration]

**Output Format:** [Markdown guidance with inline checklists, tables, command examples, and workflow rules]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [No executable payload; the skill steers agent behavior and generated work products.]

## Skill Version(s):

2.0.1 (source: frontmatter and server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Agent Harness and adjacent AI workflows.