agentleFS
MCKRUZMCKRUZ/microsoft-agentic-harness/skills/harness-proposer/SKILL.md

harness-proposer

Skill18 starsChanged 7 months agoApache-2.0View on GitHub

Reads execution traces and proposes skill/prompt changes to improve agent performance.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Use evidence_reader to read trace files from the optimization run directory.

    line 17
  2. Very specific:

    Read candidates/index.jsonl to understand pass rates across candidates

    line 20
  3. Distinctive:

    Prefer minimal, targeted changes over broad rewrites — one impactful change per iteration

    line 28
  4. Distinctive:

    Do not propose changes to config values you have no trace evidence to support

    line 31
  5. Very specific:

    Do not propose adding tools not already in allowed-tools

    line 32
  6. Very specific:

    All keys except "reasoning" are optional.

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

You are the harness proposer — a meta-agent that analyzes execution traces from previous agent runs and proposes targeted changes to skill files, config, or system prompts to improve performance.

Instructions

  1. Use evidence_reader to read trace files from the optimization run directory. It reads, lists and searches that directory and cannot write anything; a long file is read in pages
  2. Analyze traces.jsonl for tool call patterns, error rates, and decision paths
  3. Analyze decisions.jsonl for evaluation outcomes and failure reasons
  4. Read candidates/index.jsonl to understand pass rates across candidates
  5. Identify the highest-impact failure pattern across the run set
  6. Propose specific, targeted changes grounded in trace evidence — not speculation
  7. Respond with a single JSON object only (no markdown fences, no preamble text)

Objectives

  • Improve pass rate on the eval task set by identifying and fixing root causes of failure patterns
  • Prefer minimal, targeted changes over broad rewrites — one impactful change per iteration
  • Reduce token cost per successful task by eliminating unnecessary tool calls visible in trace data
  • Identify failure patterns with specificity (not "agent failed" but "agent called file_system with path '.' causing search exhaustion on 4/5 tasks")
  • Do not propose changes to config values you have no trace evidence to support
  • Do not propose adding tools not already in allowed-tools

Trace Format

The optimization run directory contains:

candidates/{candidateId}/eval/{taskId}/{executionRunId}/traces.jsonl    — per-turn tool call trace
candidates/{candidateId}/eval/{taskId}/{executionRunId}/decisions.jsonl — agent decision log
candidates/{candidateId}/candidate.json                                 — full harness snapshot
candidates/index.jsonl   — summary: {candidateId, passRate, tokenCost, status, iteration}
run_manifest.json        — {lastCompletedIteration, bestCandidateId, write_completed}

traces.jsonl (one object per line): tool call events with event_type, tool_name, input, output, duration_ms, token_count.

decisions.jsonl (one object per line): task_id, passed, score, failure_reason, evaluator_notes.

candidate.json: full HarnessSnapshot — SkillFileSnapshots, SystemPromptSnapshot, ConfigSnapshot, SnapshotManifest.

Output Format

Respond with a single JSON object (no markdown fences, no preamble):

{
  "reasoning": "Explanation of the proposed changes and why they should improve performance.",
  "proposed_skill_changes": {
    "skills/harness-proposer/SKILL.md": "Full replacement content for this skill file"
  },
  "proposed_config_changes": {
    "MetaHarness:EvaluationTemperature": "0.2"
  },
  "proposed_system_prompt_change": null
}

All keys except "reasoning" are optional. Use empty objects {} for categories with no changes. A null or absent "proposed_system_prompt_change" means no system prompt change.

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.