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 skillberry-ai/cap-evolve --skill agent-harnessgit clone --depth 1 https://github.com/skillberry-ai/cap-evolveWrote 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/skillberry-ai/cap-evolve/agent-harness)<a href="https://agentmods.dev/skills/skillberry-ai/cap-evolve/agent-harness"><img src="https://agentmods.dev/badge/skills/skillberry-ai/cap-evolve/agent-harness/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/skillberry-ai/cap-evolve/agent-harness"><img src="https://agentmods.dev/badge/skills/skillberry-ai/cap-evolve/agent-harness.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.00140 | $0.02852 |
| Opus 5.5 | $0.00056 | $0.01141 |
| Sonnet 5.5 | $0.00028 | $0.00570 |
| Haiku 4.5 | $0.00014 | $0.00285 |
Grade A, and why
agent-harness 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 3d 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 — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Capability: agent harness
The harness is every piece of code and configuration that is not the model: the loop that calls it, what goes into its context, what it remembers between tasks, how tool errors come back, how many samples it draws, and whether it delegates. Changing only the harness, with the model fixed, moved a coding agent from 52.8% to 66.5% on Terminal Bench 2.0 (LangChain, 2026). This capability makes that layer the optimizable artifact.
Other capabilities own the neighbouring layers. What the agent is told belongs to
system-prompt; what a tool does or how it is described belongs to tools or
mcp-tool. Use this capability when the failure is in how the loop runs: the same
instruction and the same tools would succeed under a different loop. Classify the
failure clusters first (./guidance/diagnose/SKILL.md, when present).
The artifact
<capability_dir>/
harness.json settings the adapter wires into the agent (sections below)
memory/lessons.jsonl cross-run lessons, one JSON object per line
hooks/*.py harness code the adapter imports (compaction, checks, ...)
harness_policy.json optional: allowed edit kinds and the "wired" setting list
harness.json sections: loop, context, memory, tool_errors, sampling,
subagents, and free-form custom. The known keys, types and ranges are in
scripts/abstract.py (SCHEMA); validate() rejects a wrong type or an out-of-range
value and warns on an unknown key.
A setting does something only if the adapter reads it. The adapter author lists
the paths it wires in harness_policy.json ("wired": ["loop.*", "memory.*"]), and
apply() refuses a set on any other path. If the policy still says "*", open the
adapter and confirm the key is read before you spend a gate evaluation on it.
Pick the lever by trace symptom
Each row is one bounded edit. Ship every row the traces call for in one candidate,
each one aimed at a named cluster. Depth and sources for each row:
references/concepts.md.
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3d ago First seen · 191 lines · 140 tokens per session scan A a116f91fa269
agent-harness is a skill published in the GitHub repository skillberry-ai/cap-evolve (71 stars, last pushed today), licensed Apache-2.0. It adds 140 tokens to every session and 2,852 once invoked, about $0.0006 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-11-27.
agent-harness compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-harnessskillberry-ai/cap-evolve | Skill | 71 | today | Apache-2.0 | A | 140 | Claude Code |
| wiki-ingestpaperclipai/paperclip | Skill | 118k | yesterday | MIT | A | 61 | Claude Code, Codex |
| agent-v3-memory-specialistruvnet/ruflo | Skill | 83k | today | MIT | A | 25 | Claude Code |
| hindsight-localvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 32 | Claude Code, Codex |
| hindsight-coding-agentvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 74 | Claude Code, Codex |
| memory-contextvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 47 | Cursor |
| memory-retainvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 46 | Cursor |