agentleFS
fiveonecodefiveonecode/agent-skills/harness-engineering/SKILL.md

harness-engineering

Skill20 starsChanged 2 months agoMITView on GitHub

Build and improve agent-first engineering harnesses where AI agents perform most implementation work and humans steer architecture, constraints, and review. Use when defining or upgrading AGENTS.md rules, repository conventions, task decomposition, CI guardrails, merge strategy, quality gates, or cleanup loops to increase autonomous coding throughput and reliability.

25 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

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to translate harness engineering principles into concrete repository changes that improve agent speed, correctness, and …

    line 10
  2. Distinctive:

    Prefer deterministic entry points:

    line 33
  3. Distinctive:

    Remove conflicting guidance and duplicate docs.

    line 37
  4. Distinctive:

    Prefer one clear pattern over many equivalent ones.

    line 41
  5. Distinctive:

    Add concise examples for fragile tasks.

    line 43
  6. Distinctive:

    Keep checks strict enough to prevent regressions, but fast enough for daily use.

    line 53
  7. Distinctive:

    Prefer rapid merge and follow-up fixes over long-lived divergence.

    line 61
  8. Distinctive:

    Use this model whenever changing tests, manifests, verifier profiles, generated artifacts, QA summaries, or completion gates.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 22 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

Overview

Use this skill to translate harness engineering principles into concrete repository changes that improve agent speed, correctness, and maintainability.

Workflow

1) Assess the current harness

  • Inspect AGENTS.md, contributor docs, CI workflows, and repo scripts.
  • Map the actual path from prompt to merged change.
  • List concrete failure modes: ambiguous instructions, repeated mistakes, slow reviews, merge conflicts, stale docs, or noisy CI.

2) Define operating boundaries

  • Separate decisions by layer:
    • Human layer: architecture, taste, policy, and final risk acceptance.
    • Agent layer: implementation, refactors, test updates, and routine maintenance.
  • Define non-negotiable constraints before coding starts:
    • Required tests and linters.
    • Directory ownership and file-scoping rules.
    • Branch, PR, and commit conventions.

3) Make the repository the system of record

  • Encode process in files, not tribal knowledge.
  • Prefer deterministic entry points:
    • Single source for setup.
    • Canonical command wrappers (make, just, or scripts).
    • Stable templates for PRs, issues, and specs.
  • Remove conflicting guidance and duplicate docs.

4) Increase agent legibility

  • Prefer one clear pattern over many equivalent ones.
  • Standardize naming, folder layouts, and module boundaries.
  • Add concise examples for fragile tasks.
  • Eliminate hidden behavior and implicit coupling.

5) Add mechanical guardrails

  • Enforce checks automatically:
    • Fast local checks for iteration.
    • CI gates for merge readiness.
    • Static analysis for known failure classes.
  • Fail with actionable messages that point to exact fixes.
  • Keep checks strict enough to prevent regressions, but fast enough for daily use.
  • For any verifier or generated QA artifact, check verifier integrity before trusting a pass result.

6) Optimize merge throughput

  • Encourage smaller, composable changes instead of large batches.
  • Isolate independent work streams to reduce collisions.
  • Define explicit integration rules for overlapping files.
  • Prefer rapid merge and follow-up fixes over long-lived divergence.

7) Build entropy-control loops

  • Schedule regular cleanup work: dead code removal, doc pruning, flaky test fixes.
  • Track recurring failure patterns and encode permanent safeguards.
  • Retire obsolete scripts, prompts, and templates quickly.

Deliverable format

  • Harness snapshot: current bottlenecks with evidence.
  • Proposed harness changes: files to add or edit and why.
  • Guardrail plan: checks to enforce and where they run.
  • Rollout plan: phased adoption with fallback strategy.
  • Entropy plan: recurring cleanup cadence and ownership.

Verifier integrity model

Use this model whenever changing tests, manifests, verifier profiles, generated artifacts, QA summaries, or completion gates.

  • Oracle truth: the verifier defines correctness explicitly and cannot pass because the assertion is vacuous, normalized too broadly, or missing the negative case.
  • Coverage truth: the verifier reaches the intended files, rows, paths, states, profiles, and generated outputs.
  • Artifact truth: summaries, reports, and persisted artifacts cannot claim pass when required completeness or source evidence failed.
  • Failure-signal truth: the exact broken condition produces a non-zero or blocking result with an actionable message.
  • Binding truth: each verifier names the requirement, policy, or contract it proves, and each required contract names the verifier that owns it.

For generated or tool-driven pipelines, also check input normalization, output validation, retry/idempotency, redaction, source-to-runtime inventory alignment, and fail-closed behavior when storage or semantic inventories drift.

Classify failure semantics before implementation:

  • deterministic failure: invalid state or broken contract; fail immediately.
  • retryable failure: transient dependency or transport issue; retry only within a bounded policy.
  • silent discard: forbidden unless a spec explicitly permits it and defines observability.

References

  • For detailed principles, anti-patterns, and direct implementation checklists, read references/harness-engineering-principles.md.

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.