agent-harness-construction

Design AI agent action spaces, tool definitions, and observation formats.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/hieuck/Pro5ChromeManager --skill agent-harness-construction-hieuck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-harness-construction
Source: https://github.com/hieuck/Pro5ChromeManager/tree/main/skills/agent-harness-construction
Command: npx skills add https://github.com/hieuck/Pro5ChromeManager --skill agent-harness-construction-hieuck

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design and optimize how AI agents plan actions, select tools, and format observations to improve plan quality, reliability, and task completion rates.

Core Features & Use Cases

  • Architecture pattern guidance: ReAct, function-calling, and hybrid planning to structure exploratory tasks and deterministic tool execution.
  • Granularity rules: Use micro-tools for high-risk operations, medium tools for common edit/read tasks, and macro-tools only when round-trip cost dominates.
  • Observation design: Enforce consistent response fields such as status, summary, next_actions, and artifacts to enable reliable automation.
  • Error recovery contract: Specify root-cause hints, safe retry instructions, and explicit stop conditions for every error path.
  • Context budgeting: Keep system prompts minimal and move large guidance into on-demand skills; prefer file references over long inline documents.
  • Benchmarking and guardrails: Track completion rate, retries, and pass@1/3; surface anti-patterns to improve reliability and safety.

Quick Start

Describe your target agent task and ask the AI to design an action space, tool usage plan, and observation schema according to the Agent Harness Construction guidelines.

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 and observation schema for AI agent planning?

To design AI agent planning, structure action spaces using micro-tools for high-risk operations and macro-tools for costly round-trips. Format observations with consistent fields like status, summary, next_actions, and artifacts to enable reliable automation.

What is the best way to structure error recovery for AI agent tool invocation?

The best way to structure error recovery for AI agent tool invocation is to implement an explicit contract. Specify root-cause hints, safe retry instructions, and explicit stop conditions for every potential error path to ensure robust automated handling.

How does context budgeting improve complex automation task completion?

Context budgeting improves complex automation task completion by keeping system prompts minimal. Move large guidance into on-demand skills and prefer file references over long inline documents to optimize the available context window.

When do I need micro-tools versus macro-tools in function-calling architecture?

You need micro-tools for high-risk operations requiring granular control, medium tools for common edit and read tasks, and macro-tools only when round-trip cost heavily dominates the function-calling architecture and execution latency.

How to benchmark AI agent reliability and track task completion rates?

To benchmark AI agent reliability, track completion rate, retries, and pass@1/3 metrics. Surface anti-patterns during testing to establish guardrails that actively improve overall reliability and safety for complex tasks.