better-harness

better-harness is a skill for Claude Code from QoderAI/better-harness. It costs 53 tokens per session (2,546 once invoked), scanned A, original, MIT.

A skill for reviewing the coding-agent system itself: its context, execution, controls, feedback, stored agent assets, sessions, and learning. It supports review reports and selected repair workflows.

In plain words
What is it for?
Use it to review or repair an agent harness, a system that runs and manages coding agents, and to produce findings or durable reports within the supported workflow.
Why use it?
It helps find problems in how an agent operates over time, such as repeated work, weak feedback, unclear lifecycle controls, or poorly separated project and session data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the better-harness plugin — 11 skills, 1 command shipped together

About the project

Better Harness is an open-source platform for studying and improving how coding agents work on tasks, using written harnesses, controlled tests, and evidence from projects and sessions. Coding teams use it to identify workflow problems and turn them into prioritized improvements and verifiable next steps. Its catalogue entries extend coding-agent workflows for supported hosts such as Claude Code, Codex, Cursor, and others.

QoderAI/better-harness · 2,168 stars · on GitHub · qoderai.github.io

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.

agentmods
npx agentmods add skills/qoderai/better-harness/better-harness
Any agent
npx skills add QoderAI/better-harness --skill better-harness
Clone the repo
git clone --depth 1 https://github.com/QoderAI/better-harness

Made for: Claude Code.

Or install better-harness, the plugin that ships this one along with the rest of its 11 skills, 1 command.

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 better-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/qoderai/better-harness/better-harness.svg)](https://agentmods.dev/skills/qoderai/better-harness/better-harness)
Your own site
<a href="https://agentmods.dev/skills/qoderai/better-harness/better-harness"><img src="https://agentmods.dev/badge/skills/qoderai/better-harness/better-harness.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00053 $0.02546
Opus 5 $0.00026 $0.01273
Sonnet 5 $0.00011 $0.00509
Haiku 4.5 $0.00005 $0.00255

Measured 6d ago against content hash f5ebdb715e19, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

better-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 6d 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.

skills/better-harness/SKILL.md · 216 lines

How it starts

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

Better Harness

Review the coding-agent system: context, execution, control, feedback, and learning; keep Sessions, project, and Agent assets independent.

Step 1: Resolve Scope and Collect the Evidence Bundle

Route:

  • <better-harness-fix-output>: Finding-bound Fix.
  • No callback plus leading fix, repair, or \u4fee\u590d: Manual Direct Fix.
  • Review/evaluation/reporting or mixed review-and-fix: Step 1.

Resolve the Skill path, <better-harness-root> as ../.., a supported <node>, and <cli> as <node> <better-harness-root>/scripts/better-harness.mjs. Stop if any owner is missing; never select another cache or runtime by search order.

Resolve absolute target, decision, acceptance boundary, risks, locale (request language by default), output mode, provider, and depth. Quick uses three items and 7 days; normal uses five and 30 days. Default Qoder/Cursor to durable Canvas and other rendering hosts to HTML. Providers without REPORT_RENDERING proceed only inline or no-files and must not create HTML, Markdown, or Canvas output. Keep providers separate. Use the current one unless project-wide review explicitly authorizes multiple supported providers. Qoder project Memory title metadata is part of the selected workspace baseline. Memory bodies, Codex Memory, Qoder global Memory, user-home, raw Session, installed-plugin, marketplace, and historical-insight access require explicit scope.

Before delegation, collect one versioned evidence bundle per authorized provider:

<cli> harness evidence-bundle --platform <provider> --workspace <target> --cwd <effective-cwd> --language <locale> --depth <quick|normal> --since <window-start> --until <window-end> --format json [--include-memories] [--include-user-home] [--canvas-out <run-dir>/canvas.json]

Use --canvas-out only for Qoder/Cursor durable reports. For Qoder, keep the default project Memory-title scan; --include-user-home widens it to authorized global Memory/config and other user assets. For Codex, Memory metadata requires --include-memories; user/global or installed-Plugin metadata requires --include-user-home. Apply both when both scopes are authorized. Neither flag authorizes Memory bodies.

Read the full file on GitHub · 216 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. 6d ago First seen · 216 lines · 53 tokens per session scan A f5ebdb715e19

Subscribe to this mod's changes

better-harness is a skill published in the GitHub repository QoderAI/better-harness (2,168 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 2,546 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

capability-recommender

Use when the need is read-only capability design only: skills, hooks, MCP servers, subagents, plugins, scripts, or CI/headless automation. For cross-surface workbench bootstrap or repair, use harness-builder.

YSAA1/harness-workflow · 51 tokens

agent-instructions-maintainer

Use when durable agent instructions need audit or repair only: AGENTS.md, CLAUDE.md, .claude.md, .claude.local.md, canonical rules/.mdc, or Cursor rule mirrors. For cross-surface workbench bootstrap or repair, use harness-builder.

YSAA1/harness-workflow · 62 tokens

implement

用于在一个 scoped active slice 上做最小代码或文档改动。触发条件:用户请求/Spec/Executable Plan 已清楚,工作面和验证路径足够明确。不要在需求、active slice、根因或工作面不清时使用;局部检查只是反馈,ready 只能交给 verify。.

YSAA1/harness-workflow · 73 tokens

plan

用于把已批准 Spec 或足够明确的非平凡请求转成 Executable Plan。触发条件:需要 active slice、planning surface、验证路径、能力缺口或 commit unit。不要在需求/验证策略不清时使用;先回 brainstorm。项目工作面不清时转 harness-builder。.

YSAA1/harness-workflow · 68 tokens

diagnose

用于把 build/test/lint/typecheck/CI 或运行时失败诊断成可复现 root cause。触发条件:命令红、行为坏、flaky 或本地/CI 不一致且根因未知。不要在 RED->GREEN 的已知失败或根因已清楚时使用;修复前必须先复现和验证单一假设。.

YSAA1/harness-workflow · 83 tokens

find-skills

Use this helper to discover reusable agent skills for a clear task or capability gap. Trigger it when the user asks how to do X, find a skill, or extend agent capabilities. Do not install or adopt a skill just because it is related; project adoption belongs to harness-builder.

YSAA1/harness-workflow · 60 tokens