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.
npx skills add sjarmak/coding-agent-workflows --skill agent-harness-designgit clone --depth 1 https://github.com/sjarmak/coding-agent-workflowsWrote 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.
[](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/agent-harness-design)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
- 1mo ago First seen · 119 lines · 30 tokens per session scan A 5299dd60a3bb
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.
agent-harness-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-harness-designsjarmak/coding-agent-workflows | Skill | 7 | 2d ago | MIT | A | 30 | Claude Code, Codex |
| reverse-engineer-anythingmxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 83 | Claude Code, Codex |
| browser-tracemxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 88 | Claude Code |
| planning-with-filesmxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 117 | Claude Code |
| bopomofo-rescuemxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 332 | Claude Code |
| ai-elementsmxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 46 | Claude Code, Codex |
| exa-searchmxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 33 | Claude Code, Codex |