Agent Harness Construction
/install agent-harness-construction
\r \r
Agent Harness Construction\r
\r Use this skill when you are improving how an agent plans, calls tools, recovers from errors, and converges on completion.\r \r
Core Model\r
\r Agent output quality is constrained by:\r
- Action space quality\r
- Observation quality\r
- Recovery quality\r
- Context budget quality\r \r
Action Space Design\r
\r
- Use stable, explicit tool names.\r
- Keep inputs schema-first and narrow.\r
- Return deterministic output shapes.\r
- Avoid catch-all tools unless isolation is impossible.\r \r
Granularity Rules\r
\r
- Use micro-tools for high-risk operations (deploy, migration, permissions).\r
- Use medium tools for common edit/read/search loops.\r
- Use macro-tools only when round-trip overhead is the dominant cost.\r \r
Observation Design\r
\r Every tool response should include:\r
status: success|warning|error\rsummary: one-line result\rnext_actions: actionable follow-ups\rartifacts: file paths / IDs\r \r
Error Recovery Contract\r
\r For every error path, include:\r
- root cause hint\r
- safe retry instruction\r
- explicit stop condition\r \r
Context Budgeting\r
\r
- Keep system prompt minimal and invariant.\r
- Move large guidance into skills loaded on demand.\r
- Prefer references to files over inlining long documents.\r
- Compact at phase boundaries, not arbitrary token thresholds.\r \r
Architecture Pattern Guidance\r
\r
- ReAct: best for exploratory tasks with uncertain path.\r
- Function-calling: best for structured deterministic flows.\r
- Hybrid (recommended): ReAct planning + typed tool execution.\r \r
Benchmarking\r
\r Track:\r
- completion rate\r
- retries per task\r
- pass@1 and pass@3\r
- cost per successful task\r \r
Anti-Patterns\r
\r
- Too many tools with overlapping semantics.\r
- Opaque tool output with no recovery hints.\r
- Error-only output without next steps.\r
- Context overloading with irrelevant references.\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agent-harness-construction - After installation, invoke the skill by name or use
/agent-harness-construction - Provide required inputs per the skill's parameter spec and get structured output
What is Agent Harness Construction?
Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. It is an AI Agent Skill for Claude Code / OpenClaw, with 56 downloads so far.
How do I install Agent Harness Construction?
Run "/install agent-harness-construction" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Agent Harness Construction free?
Yes, Agent Harness Construction is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Agent Harness Construction support?
Agent Harness Construction is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Agent Harness Construction?
It is built and maintained by 2072932870wh-ui (@2072932870wh-ui); the current version is v1.0.0.