Skip to content
Skill

Agent harness construction

Guides an agent to design tool sets, observations and error recovery for better completion

Agent harness construction is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
66
Last commit
License
MIT
Listing updated

Similar skills

About Agent harness construction

This skill gives an agent a structured model for improving how it plans, calls tools, recovers from errors and reaches completion. It frames agent output quality around four factors: action space, observation quality, recovery quality and context budget. It sets out concrete design rules for tools, such as stable explicit names, narrow schema-first inputs, deterministic output shapes, and choosing micro, medium or macro granularity depending on risk and round-trip cost.

The skill also covers the shape of tool responses, asking for a status, one-line summary, next actions and artifact references, along with an error contract that names a root cause hint, a safe retry instruction and an explicit stop condition. It advises keeping the system prompt minimal, loading large guidance on demand and compacting at phase boundaries. It recommends a hybrid architecture of ReAct planning with typed tool execution, and lists metrics to track such as completion rate, retries and cost per successful task.

An optional section describes a verified work-item flow from the ECC project that runs a deterministic artifact check through a command-line script, requiring an existing session ID and a state database. The skill itself is written as guidance and does not ship scripts in its folder.

When your agent uses it

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent's tool set, action space, or observation format.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (4 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath

Or copy only this skill to ~/.claude/skills/agent-harness-construction:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-harness-construction &&
cp -R "$tmp/.agents/skills/agent-harness-construction" ~/.claude/skills/agent-harness-construction &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/agent-harness-construction inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/agent-harness-construction to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-harness-construction &&
cp -R "$tmp/.agents/skills/agent-harness-construction" ~/.agents/skills/agent-harness-construction &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/agent-harness-construction inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/agent-harness-construction to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-harness-construction &&
cp -R "$tmp/.agents/skills/agent-harness-construction" ~/.cursor/skills/agent-harness-construction &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/agent-harness-construction inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/agent-harness-construction

Or copy the folder to ~/.gemini/skills/agent-harness-construction yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/agent-harness-construction:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-harness-construction &&
cp -R "$tmp/.agents/skills/agent-harness-construction" ~/.copilot/skills/agent-harness-construction &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/agent-harness-construction inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git

Then copy REA_Skill/.agents/skills/agent-harness-construction into your agent's skills folder as agent-harness-construction. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Action space design
Rules for naming, scoping and shaping tool inputs and outputs so agents call them reliably.
Tool granularity guidance
Advice on when to use micro, medium or macro tools based on operation risk and overhead.
Observation format
A standard response layout with status, summary, next actions and artifacts for each tool result.
Error recovery contract
Required root cause hints, safe retry steps and stop conditions for every error path.
Context budgeting
Practices for keeping prompts lean and loading reference material on demand.
Benchmarking metrics
Measures such as completion rate, retries per task and pass@k to evaluate an agent harness.
Verified work-item flow
An optional ECC workflow that runs a deterministic artifact validator before accepting results.

Good for

  • Redesign the tool set an coding agent uses to reduce overlapping tools
  • Add clear error messages and retry guidance to an agent's tool responses
  • Standardize the output format of tools so an agent can parse results consistently
  • Set up metrics to measure how often an agent completes tasks on the first try
  • Trim the system prompt and move long instructions into on-demand reference files

Agent harness construction FAQ

When does Agent harness construction trigger?

It is meant for tasks where you define or revise an agent's tool set, action space or observation format.

Does Agent harness construction run any scripts?

No scripts are included in the skill folder. The verified work-item example refers to commands in the separate ECC project checkout.

Does Agent harness construction train or change models?

No. The skill describes the current flow as not training models or automating repairs of tool calls.

What does the skill need to run?

The skill's folder includes only the SKILL.md and a reference to optional ECC tooling; no specific client or language requirements are stated beyond the agent using it.

How do I install Agent harness construction in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agent-harness-construction to use it in all your projects, or to .claude/skills/agent-harness-construction in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

Does Agent harness construction run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Agent harness construction?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Agent harness construction?

The closest alternatives to Agent harness construction are Agentic engineering, Agent architecture, Ecc workflow, Agent architecture audit and Dynamic workflow mode.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from smartworldarafath/REA_Skill

  1. Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android

    • Open source
    • 66 GitHub stars
    • Developer tools
  2. Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity

    • Open source
    • 66 GitHub stars
    • Developer tools
  3. Compare coding agents head-to-head on your own tasks by pass rate, cost and time

    • Open source
    • 66 GitHub stars
    • Developer tools
  4. Lets an AI agent make x402 payments within per-task budgets and spending policies

    • Open source
    • 66 GitHub stars
    • Finance and payments
  5. Gives agents read-only access to social, video, code and web platforms via one CLI

    • Open source
    • 66 GitHub stars
    • Web search and scraping