agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/klu-dev/porting-ecc-to-vscode --skill agent-harness-construction-klu-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-harness-construction
Source: https://github.com/klu-dev/porting-ecc-to-vscode/tree/main/.github/skills/agent-harness-construction
Command: npx skills add https://github.com/klu-dev/porting-ecc-to-vscode --skill agent-harness-construction-klu-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of improving AI agent action spaces, tool definitions, and observation formatting to enhance completion rates and efficiency.

Core Features & Use Cases

  • Action Space Design: Guides on stable, explicit tool names, schema-first inputs, and deterministic output shapes.
  • Observation Design: Ensures every tool response includes status, summary, next_actions, and artifacts.
  • Error Recovery Contract: Provides root cause hints, safe retry instructions, and explicit stop conditions.
  • Context Budgeting: Offers strategies for minimal system prompts, large guidance in skills, and compacting at phase boundaries.
  • Architecture Pattern Guidance: Recommends ReAct, Function-calling, or Hybrid patterns based on task requirements.
  • Benchmarking: Tracks completion rate, retries, pass@1 and pass@3, and cost per successful task.
  • Anti-Patterns: Identifies common pitfalls like too many tools, opaque outputs, and context overloading.

Quick Start

Run the 'agent-harness-construction' skill to optimize the action space and observation formatting for your AI agent.

Frequently Asked Questions about agent-harness-construction

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

FAQPage Schema
How do I optimize AI agent action spaces for higher completion rates?

Optimize AI agent action spaces by designing stable tool names, schema-first inputs, and deterministic output shapes. Structured action space design ensures explicit tool definitions and reduces error paths, directly improving task completion rates.

What should be included in AI agent observation design to prevent context overloading?

AI agent observation design must include status, summary, next_actions, and artifacts in every tool response. Structured observation formatting prevents context overloading and ensures the agent receives clear, actionable feedback without opaque outputs.

How does an error recovery contract work for AI agents?

An error recovery contract provides root cause hints, safe retry instructions, and explicit stop conditions for AI agents. This structured recovery mechanism guides the agent away from failure loops and back to successful task completion.

What is the best way to manage context budgeting across agent architecture patterns?

Manage context budgeting by using minimal system prompts, storing large guidance in skills, and compacting context at phase boundaries. This strategy works across ReAct, Function-calling, or Hybrid architecture patterns to maintain agent efficiency.

What metrics should I track when benchmarking AI agent performance?

Benchmark AI agent performance by tracking completion rate, retries, pass@1, pass@3, and cost per successful task. These metrics reveal how well your action space design and observation formatting reduce errors and improve efficiency.

What are common anti-patterns in AI agent tool definitions?

Common AI agent anti-patterns include exposing too many tools, generating opaque outputs, and context overloading. These pitfalls degrade agent performance by increasing error paths and reducing overall task completion rates.