agent-harness-construction

Designs agent action spaces, tool schemas, and observation formats to improve task completion rates.

Updated May 19, 2026
One-click install
npx skills add https://github.com/azusagasaku/--claude-config --skill agent-harness-construction-azusagasaku
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agent-harness-construction
Source: https://github.com/azusagasaku/--claude-config/tree/main/skills/ecc/agent-harness-construction
Command: npx skills add https://github.com/azusagasaku/--claude-config --skill agent-harness-construction-azusagasaku

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents often fail tasks because of poorly designed tool interfaces, opaque tool outputs, and unstructured error handling. This Skill provides a systematic framework for designing and optimizing an agent's action space, tool definitions, observation formats, and error recovery contracts so agents complete tasks more reliably. ## Core Features & Use Cases - Action Space Design: Guidelines for stable tool naming, schema-first narrow inputs, deterministic output shapes, and tool granularity rules (micro, medium, macro tools). - Observation & Recovery Contracts: Standard response fields (status, summary, next_actions, artifacts) and error paths with root cause hints, safe retries, and stop conditions. - Architecture & Benchmarking: Guidance on ReAct vs function-calling vs hybrid patterns, context budgeting, and metrics like completion rate, pass@1/pass@3, and cost per successful task. - Use Case: When building a coding agent that keeps failing on deployment tasks, apply this Skill to split risky operations into micro-tools, add structured error recovery hints to every tool response, and measure retries per task to verify improvement. ## Quick Start Use the agent-harness-construction skill to review my agent's tool definitions and redesign the observation format and error recovery contract.

Frequently Asked Questions about agent-harness-construction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design an action space for an AI agent?▼

Design an agent action space with stable, explicit tool names, schema-first narrow inputs, and deterministic output shapes. Avoid catch-all tools unless isolation is impossible, and match tool granularity to risk: micro-tools for high-risk operations, medium tools for common loops.

What should an agent tool response include?▼

Every tool response should include a status field (success, warning, or error), a one-line summary, actionable next_actions, and artifacts such as file paths or IDs. This structure lets the agent plan follow-up steps without parsing opaque output.

ReAct vs function-calling: which agent architecture should I use?▼

ReAct works best for exploratory tasks with uncertain paths, while function-calling suits structured deterministic flows. A hybrid approach is recommended: ReAct for planning combined with typed tool execution for reliability.

How do I handle errors in agent tool calls?▼

For every error path, include a root cause hint, a safe retry instruction, and an explicit stop condition. Avoid error-only output without next steps, since the agent needs recovery guidance to converge on completion.

What metrics should I track to benchmark an AI agent?▼

Track completion rate, retries per task, pass@1 and pass@3, and cost per successful task. These metrics reveal whether changes to the action space, observation format, or recovery contract actually improve agent performance.

When should I use micro-tools versus macro-tools for agents?▼

Use micro-tools for high-risk operations like deploys, migrations, and permission changes where isolation matters. Use macro-tools only when round-trip overhead is the dominant cost, and medium tools for common edit, read, and search loops.