# Agent harness construction

> Agent harness construction is an open-source agent skill for developer tools. Guides an agent to design tool sets, observations and error recovery for better completion. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/agent-harness-construction
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** agent-harness-construction
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/agent-harness-construction)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/agent-harness-construction)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Agentic engineering](https://ai-powered.com/skills/agentic-engineering): Agentic engineering is an open-source agent skill for developer tools.
- [Agent architecture](https://ai-powered.com/skills/agent-architecture): Agent architecture is an open-source agent skill for developer tools.
- [Ecc workflow](https://ai-powered.com/skills/ecc-workflow): Ecc workflow is an open-source agent skill for developer tools.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.
- [Dynamic workflow mode](https://ai-powered.com/skills/dynamic-workflow-mode): Dynamic workflow mode is an open-source agent skill for developer tools.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging): Agent introspection debugging is an open-source agent skill for developer tools.
- [Enterprise agent ops](https://ai-powered.com/skills/enterprise-agent-ops): Enterprise agent ops is an open-source agent skill for developer tools.
- [Harness engineering](https://ai-powered.com/skills/harness-engineering): Harness engineering is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/agent-harness-construction
