agent-harness-design

agent-harness-design is a skill for Claude Code, Codex from sjarmak/coding-agent-workflows. It costs 30 tokens per session (1,364 once invoked), scanned A, original, MIT.

A guide to designing the control structure around an AI agent, including its loop, tools, context, delegation, and limits. It distinguishes controls you own from behavior supplied by a hosted service.

In plain words
What is it for?
Use it to design or review an agent harness, define tool boundaries, manage context and prompt caching, and plan delegation between agents or services.
Why use it?
It prevents responsibilities from being mixed together and avoids recommending internal changes to systems you cannot control. It also makes cancellation, budgets, and tool boundaries explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to design or review an agent harness, define tool boundaries, manage context and prompt caching, and plan delegation between agents or services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sjarmak/coding-agent-workflows/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 sjarmak/coding-agent-workflows --skill agent-harness-design
Clone the repo
git clone --depth 1 https://github.com/sjarmak/coding-agent-workflows

Made for: Claude Code, Codex.

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/sjarmak/coding-agent-workflows/agent-harness-design/github.svg)](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/agent-harness-design)
Your own site
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/agent-harness-design"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/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/sjarmak/coding-agent-workflows/agent-harness-design"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/agent-harness-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,364 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.00030 $0.01364
Opus 5.5 $0.00012 $0.00546
Sonnet 5.5 $0.00006 $0.00273
Haiku 4.5 $0.00003 $0.00136

Measured 1mo ago against content hash 5299dd60a3bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

optional/skills/agent-harness-design/SKILL.md · 119 lines

How it starts

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

Agent harness design

Locate companion skills by name in the current host's skill catalog. If a companion skill is unavailable, use the provider's current help/schema and official documentation; do not assume a missing skill or command exists.

Preserve the separation between the loop, tools, context management, and prompt. Treat architecture patterns as choices to justify against the actual system, not a mandatory replacement design.

Establish the boundary

Identify whether the task concerns a locally controlled agent, a hosted agent, or the client driving that agent. Only prescribe internal loop, cache, or compaction changes where the implementation is actually controllable. For a hosted system, document the exposed contract and unavailable controls.

Use the host's model, data, and evaluation skills for their corresponding work. A request to review a harness does not authorize deploying models or starting paid eval jobs.

Loop contract

  • Keep the loop responsible for state, dispatch, budgets, cancellation, and stop reasons. Product adapters own domain state, authorization decisions, persistence, billing policy, and telemetry mapping; the loop enforces the resulting limits and permissions mechanically.
  • Define closed stop reasons that distinguish natural completion, budget exhaustion, cancellation, provider refusal, infrastructure failure, and awaiting an external result. Use stable numeric IDs only when a persisted or telemetry contract needs them; preserve existing wire compatibility.
  • Separate peak context size, cumulative token/cost spend, output allowance, turn count, and wall time. State units and unlimited semantics explicitly. Reserve final-answer capacity within hard limits. A final tools-disabled synthesis call is optional and must not bypass cancellation, refusal, or a hard spending deadline. Otherwise return a persisted partial outcome.
  • Reconcile provider usage with newly appended tool results. Use a tokenizer when available; label byte/character estimates and account for tool schemas, system messages, and non-text inputs. Do not assume characters/4 is accurate for every language, model, or payload, or double-count prior results.
  • Return recoverable argument and tool errors as structured, model-visible results. Redact malformed arguments and sensitive backend detail. Propagate cancellation, authorization failures, and infrastructure failures through their explicit stop/recovery policy instead of blindly continuing.
  • Dispatch independent calls with bounded concurrency and per-call deadlines. Serialize dependent or mutating calls. Every accepted call ID needs a result or explicit skipped/cancelled record, including siblings deferred when an approval or external-result call suspends the turn.
  • Check cancellation before model calls, before side effects, and before committing or publishing results. Use idempotency keys and durable state transitions for retries; a timeout after submission is an ambiguous outcome, not proof that a remote action never happened. Assign one retry owner per boundary and bound its attempts to avoid multiplied retries.

Read the full file on GitHub · 119 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. 1mo ago First seen · 119 lines · 30 tokens per session scan A 5299dd60a3bb

Subscribe to this mod's changes

agent-harness-design is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 2d ago), licensed MIT. It adds 30 tokens to every session and 1,364 once invoked, about $0.0001 per session on Opus 5.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-10-02.

Related

agent-harness-design compared with skills from other repositories

agent-harness-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-harness-designsjarmak/coding-agent-workflowsSkill72d agoMITA30Claude Code, Codex
reverse-engineer-anythingmxyhi/ok-skillsSkill5189d agoApache-2.0A83Claude Code, Codex
browser-tracemxyhi/ok-skillsSkill5189d agoApache-2.0A88Claude Code
planning-with-filesmxyhi/ok-skillsSkill5189d agoApache-2.0A117Claude Code
bopomofo-rescuemxyhi/ok-skillsSkill5189d agoApache-2.0A332Claude Code
ai-elementsmxyhi/ok-skillsSkill5189d agoApache-2.0A46Claude Code, Codex
exa-searchmxyhi/ok-skillsSkill5189d agoApache-2.0A33Claude Code, Codex