agentleFS
dvy1987dvy1987/agent-loom/.agents/skills/harness-engineering/SKILL.md

harness-engineering

Skill4 starsChanged 3 months agoMITView on GitHub

Orchestrator for agent harness work — the setup that makes AI agents follow project rules and improve when they fail. FIRES PROACTIVELY when agents misbehave, repeat mistakes, ignore instructions, skip skills, or when AGENTS.md exists but docs/harness/manifest.json is missing. Also triggers on: harness engineering, agent scaffold, agent keeps failing, agent not following instructions, make agents reliable, agents going off rails, agent forgot context, improve agent setup, self-improving agents, agents keep making mistakes, why is my agent bad, agent quality, agent setup broken, agents ignore skills, same mistake again, fix agent behavior, tune agent instructions, set up agent infrastructure, after project setup agents still bad. Routes bootstrap vs evolution. Not multi-agent topology — agent-builder.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use self-improvement-loops, bdi-mental-states and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DVwebBiz11Skill

    self-improvement-loops

    This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target: recursive self-improvement (RSI) loops, meta-harnesses, self-improving harnesses that mine their own failures and propose bounded edits, evolutionary or population-based search over agent scaffolds, acceptance gates for self-modifying systems, and agentic context evolution where the mechanism that produces context is versioned and evolved. Route governance of a single autonomous loop (locked surfaces, durable logs, rollback, novelty gates, approval boundaries) to harness-engineering, measurement and quality-gate design to evaluation, judge design to advanced-evaluation, and remote sandbox infrastructure to hosted-agents.

    Also in 4 projects that use this

  • Downey6689Skill

    bdi-mental-states

    Transforms external RDF context into BDI mental states. Invoke when modeling beliefs, desires, and intentions.

    Also in 5 projects that use this

  • Downey6689Skill

    hosted-agents

    Guidance for hosted/sandboxed agents. Invoke when running background agents in isolated VMs or multi-client setups.

    Also in 5 projects that use this

  • DVwebBiz11Skill

    long-horizon-prompting

    This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal task briefs that define terms and an exact success predicate linguistically, enumerate non-counting outcomes, set persistence rules with explicit stop and return conditions and effort floors, manage a diverse portfolio of parallel approaches with an approach registry and blocked-route bookkeeping, and gate the return on adversarial audit. Route agent topology and coordination protocols to multi-agent-patterns, runtime control surfaces and loop governance to harness-engineering, evaluator and quality-gate construction to evaluation, judge design to advanced-evaluation, and compaction or memory mechanics to context-compression and memory-systems.

    Also in 4 projects that use this

  • AbdelrhmanAlquranSkill

    latent-briefing

    This skill should be used when the user asks to "share memory between agents", "KV cache compaction for multi-agent", "orchestrator worker context", "latent briefing", "reduce worker tokens", "cross-agent memory without summarization", or discusses Attention Matching compaction, recursive language models with workers, or token explosion in hierarchical agents.

    Also in 4 projects that use this

  • abdullah1854Skill

    context-degradation

    Also in 5 projects that use this

  • +2 more from Downey6689

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never conflate harness work with agent-builder — topology is who.

    line 41
  2. Very specific:

    Never route to harness-evolution without eval harness — bootstrap eval first.

    line 42
  3. Very specific:

    Never skip harness-generation on greenfield projects before evolution.

    line 43
  4. Distinctive:

    Never execute child skill workflows yourself — delegate and synthesize reports.

    line 44
  5. Distinctive:

    Never present the route plan before invoking child skills (unless user said "go ahead").

    line 45
  6. Very specific:

    Read references/harness-readiness-gate.md.

    line 53
  7. Very specific:

    No manifest → bootstrap. Manifest + symptoms → evolution.

    line 54
  8. Very specific:

    Read references/routing.md for disambiguation vs project-setup and project-orchestrator.

    line 67
  9. Very specific:

    If missing: run bootstrap substeps, then harness-evolution.

    line 86
  10. Distinctive:

    When user is building multi-agent systems:

    line 90
  11. Distinctive:

    Run round 2 only if held-out plateaus </output> </example> </examples>

    line 147

“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Harness Engineering

You are the harness orchestrator. You route bootstrap vs evolution vs audit, ensure eval prerequisites exist, and keep harness work separate from agent topology design.

Trigger Discipline

Proactive — user need not say "harness." Fire when: agent misbehavior symptoms; AGENTS.md without docs/harness/manifest.json; post-project-setup backfill; self-improvement claims. Full symptom table: references/harness-readiness-gate.md.

Hard Rules

Never conflate harness work with agent-builder — topology is who; harness is what wraps the model. Never route to harness-evolution without eval harness — bootstrap eval first. Never skip harness-generation on greenfield projects before evolution. Never execute child skill workflows yourself — delegate and synthesize reports. Never present the route plan before invoking child skills (unless user said "go ahead").


Workflow

Step 0 — Harness readiness scan (mandatory)

Read references/harness-readiness-gate.md. Silent: manifest exists? eval interface? symptoms? No manifest → bootstrap. Manifest + symptoms → evolution. Self-improvement claim → reality-check.

Step 1 — Classify intent

SignalRoute
New project / no docs/harness/manifest.jsonStep 2 bootstrap
"Improve" / failures / plateau / self-improvingStep 3 evolution
Legacy repo, no AGENTS.mdretroactive-project-setup → bootstrap
"Is it self-improving?" / claim auditreality-check
Multi-agent / topology / "design agents"agent-builder (harness orthogonal)
Eval onlyeval-output

Read references/routing.md for disambiguation vs project-setup and project-orchestrator.

Step 2 — Bootstrap path

project-setup (if no AGENTS.md) → harness-generation (v0)
  → eval-rubric-design (harness dimensions)
  → eval-pipeline (regression stub)

Skip project-setup if populated AGENTS.md exists — merge via harness-generation only.

Step 3 — Evolution path

Precondition check (delegate verification to harness-evolution Step 0):

  • manifest exists
  • eval harness operational
  • held-out split defined

If missing: run bootstrap substeps, then harness-evolution.

Step 4 — Agent-chain coordination

When user is building multi-agent systems:

  1. harness-generation if no v0 (parallel-safe with process-decomposer).
  2. agent-builder for topology.
  3. setup-evaluation must PASS harness + eval checks before agent-launcher.

Step 5 — Unified report

Present child skill outputs in one summary (see Output Format).


Gotchas

  • Harness is a first-order performance lever — same model, different harness, double-digit pass-rate swings (AlphaEval, Self-Harness).
  • Harness is model-specific — evolved harness vN may not transfer unchanged across model families without re-validation.
  • PROGRAM.md pattern (auto-harness): human writes optimization directive; agent edits declared surfaces only — good for long improvement campaigns.
  • Self-improvement without eval trajectory is a 4/10 claim — reality-check standard.

Output Format

=== Harness Engineering Report ===
Intent: [bootstrap | evolution | audit | topology-handoff]
Routes invoked: [skills]

=== Harness State ===
Version: [vN] | Manifest: [path]
Eval harness: [ready | missing → action]

=== Child Results ===
[per-skill summaries]

=== Next ===
[recommended follow-up]

Example

<examples> <example> <input>Improve my agent harness — it keeps failing on lint steps.</input> <output> === Harness Engineering Report === Intent: evolution Routes: harness-evolution (round 1), eval-pipeline (regression)

=== Harness State === Version: v0 → v1 | Eval harness: ready

=== Child Results === Diagnosed: Verification layer | Promoted middleware pre-lint hook

=== Next === Run round 2 only if held-out plateaus </output> </example> </examples>

Common Rationalizations

ExcuseReality
"agent-builder handles harness"Topology only — run harness-generation
"Skip eval for quick fix"harness-evolution hard-fails — route eval first
"project-setup is enough"One-shot AGENTS.md ≠ versioned harness + eval stub
"I'll evolve prompts only"AHE ablation: prompt-only regresses
"Orchestrator does the work"Delegate to child skills

Verification

  • Correct child skill selected per intent table
  • Evolution not routed without eval precondition
  • agent-builder requests include harness v0 check
  • Unified report presented

Red Flags

  • harness-evolution invoked without eval harness
  • Harness conflated with multi-agent topology
  • Bootstrap skipped on greenfield evolution request

Prune Log

Last pruned: 2026-07-05

  • Deep learn-from: routing.md Pareto frontier; INGEST-QUEUE pairwise compares cleared

Impact Report

Harness engineering: [intent]
Child skills: [list] | Harness version: [vN]
Eval ready: [yes/no] | Promoted: [yes/no]

Reference Files

  • references/routing.md — disambiguation matrix, lifecycle map, PROGRAM.md pattern
  • references/harness-readiness-gate.md — proactive triggers, symptom phrases, readiness checklist
  • references/examples.md — bootstrap, evolution, and agent-chain coordination examples

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.