agent-harness-design

agent-harness-design is a skill for Claude Code from yeaight7/agent-powerups. It costs 44 tokens per session (961 once invoked), scanned A, original, Apache-2.0.

Guidance for designing the tools an AI agent uses, including their names, inputs, outputs, error handling, and stopping rules. It focuses on making tool calls clear and predictable.

In plain words
What is it for?
Use it when creating or reviewing agent tools, improving error handling, or diagnosing unreliable tool use.
Why use it?
It reduces repeated attempts, unclear requests, silent failures, and incorrect completion claims.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions subagents.

Part of the agentic-systems plugin — 5 skills shipped together

Good fit Use it when creating or reviewing agent tools, improving error handling, or diagnosing unreliable tool use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeaight7/agent-powerups/agent-harness-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yeaight7/agent-powerups --skill agent-harness-design
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code.

Or install agentic-systems, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-harness-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeaight7/agent-powerups/agent-harness-design/github.svg)](https://agentmods.dev/skills/yeaight7/agent-powerups/agent-harness-design)
Your own site
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/agent-harness-design"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/agent-harness-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-harness-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/agent-harness-design"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/agent-harness-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00961
Opus 5 $0.00022 $0.00481
Sonnet 5 $0.00009 $0.00192
Haiku 4.5 $0.00004 $0.00096

Measured 8d ago against content hash 459f694d55d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

agent-harness-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agentic-systems/skills/agent-harness-design/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Harness Design

Use when designing or improving how an agent invokes tools, handles errors, and decides when to stop.

When to Use

  • Designing tool definitions for a new agent or subagent
  • Observing high retry rates or ambiguous tool invocations
  • Agent is failing silently or completing without verifying outcomes
  • Reviewing an existing agent harness for quality issues

Tool Design Rules

Naming

  • Use explicit, stable names: read_file, run_tests, apply_patch
  • No generic names: do_action, execute, handle
  • One tool per distinct operation; do not overload parameters to compensate

Schema

Keep tool inputs narrow:

  • Required fields only; no optional fields that change behavior
  • Use enums for mode/type values — never free-text strings that require parsing
  • Validate at the boundary; reject malformed input with a clear error, not a fallback
{
  "name": "run_tests",
  "parameters": {
    "path": { "type": "string", "description": "Path to test file or directory" },
    "filter": { "type": "string", "description": "Optional test name filter" }
  }
}

Output Shape

Every tool response must include:

  • status: "success" | "warning" | "error"
  • summary: one-line result (human-readable)
  • next_actions: list of follow-up steps the agent should consider
  • artifacts: file paths or IDs produced (empty list if none)

Catch-All Tools

Avoid run_bash / shell_exec style catch-all tools unless:

  • The task is genuinely open-ended and the toolset cannot be pre-defined
  • You explicitly document the risk and add an allowlist or preflight check

If you must use a catch-all, add a PreToolUse validation hook for dangerous patterns.

Error Path Rules

Every tool must define what happens on failure:

Case Required response
Invalid input Reject immediately with status: "error" and exact field name
Transient failure Include retry_after hint and idempotency note
Non-recoverable State stop: true and describe the manual resolution step

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 121 lines · 44 tokens per session scan A 459f694d55d4

Subscribe to this mod's changes

agent-harness-design is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 44 tokens to every session and 961 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.