diag-harness

diag-harness is a skill for Claude Code from ruvnet/metaharness. It costs 85 tokens per session (871 once invoked), scanned A, original, MIT.

A diagnostic check for whether a generated AI assistant setup uses a compatible version of its kernel, the shared software component that provides its core behavior. It compares the recorded and locally installed versions.

In plain words
What is it for?
Use it to check compatibility, classify the version difference, and get an installation command when an update is needed.
Why use it?
It identifies version differences that can cause an assistant setup to behave incorrectly or lack newer features.

Skill for Claude Code

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

Part of the agent-harness-generator plugin — 14 skills, 1 plugin shipped together

Good fit Use it to check compatibility, classify the version difference, and get an installation command when an update is needed.

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

Made for: Claude Code.

Or install agent-harness-generator, the plugin that ships this one along with the rest of its 14 skills, 1 plugin.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ruvnet/metaharness/diag-harness/github.svg)](https://agentmods.dev/skills/ruvnet/metaharness/diag-harness)
Your own site
<a href="https://agentmods.dev/skills/ruvnet/metaharness/diag-harness"><img src="https://agentmods.dev/badge/skills/ruvnet/metaharness/diag-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.

agentmods 80×15 button for diag-harness

Your own site · 80×15
<a href="https://agentmods.dev/skills/ruvnet/metaharness/diag-harness"><img src="https://agentmods.dev/badge/skills/ruvnet/metaharness/diag-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 871 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00085 $0.00871
Opus 5 $0.00043 $0.00436
Sonnet 5 $0.00017 $0.00174
Haiku 4.5 $0.00009 $0.00087

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

Security

Grade A, and why

diag-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 11d 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.

.claude-plugin/skills/diag-harness/SKILL.md · 86 lines

How it starts

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

diag-harness

Codex skill: kernel-version skew check for a scaffolded harness — the ADR-027 diagnostic UX loop.

What it does

Single-question check: does my local @metaharness/kernel match what this harness was scaffolded against? That's the cross-machine compatibility question almost every "this harness doesn't work" support ticket turns out to be.

Reads .harness/manifest.json:

Field Source Meaning
meta.surface iter 56 Which surface produced the harness (cli or web-ui)
meta.kernel_version iter 58 The @metaharness/kernel version stamped at scaffold time

Resolves the local @metaharness/kernel via createRequire rooted at the harness's own package.json (real Node resolution). Computes the skew verdict and prints a copy-pasteable next step.

Verdict Exit Message
match 0 PASS kernel versions match exactly
patch-diff 0 WARN patch-level skew (usually safe; may include bugfixes)
minor-diff 1 WARN minor-level skew (new kernel features may be missing) + Run: npm install @metaharness/[email protected]
major-diff 1 FAIL MAJOR skew — APIs may have changed; expect breakage + Run: npm install @metaharness/[email protected]
no .harness/manifest.json at path 2 FAIL no .harness/manifest.json found at this path

Usage from Codex

/diag-harness                           # cwd
/diag-harness path=./my-harness

Equivalent CLI

harness diag                            # cwd
harness diag ./my-harness               # explicit path
harness diag ./my-harness --json        # machine-readable for CI
harness diag ./my-harness --bundle      # support-ticket JSON (iter 90)

The --bundle form (iter 90) emits a single JSON snapshot of the diag report + sanitised manifest + @metaharness/* deps + Node/platform info — everything a maintainer needs to triage a bug report. Object keys matching secret|token|key|password|api_key are redacted so the bundle is safe to paste into a public GitHub issue.

Read the full file on GitHub · 86 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. 11d ago First seen · 86 lines · 85 tokens per session scan A f27cd48e7536

Subscribe to this mod's changes

diag-harness is a skill published in the GitHub repository ruvnet/metaharness (645 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 871 once invoked, about $0.0004 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

C31-debug

Investigate bugs through reproduction → trace → hypothesis → test-first fix → verify → archive. All active sessions are tracked in memory/.planning/debug/ for resumption and knowledge compounding.

ChianW/C31 · 32 tokens

C31-research

Unified research skill. Covers best practices, framework documentation, git history, community issues, institutional memory, and bug reproduction. All modes are read-only — does not write code.

ChianW/C31 · 36 tokens

gsd-map-codebase

A codebase mapping tool that studies an existing software project and records its structure, technologies, coding conventions, and possible problem areas in Markdown files.

ChianW/C31 · 65 tokens

C31-workflow-bug-reproduction

Read-only workflow agent. Systematically reproduces bugs: hypothesize causes → construct minimal reproduction → verify. Use when a bug report is vague, when regression tests are missing, or when separating environment bugs from code bugs.

ChianW/C31 · 53 tokens

neuron-debugger

Debug and monitor Neuron AI applications with Inspector APM, event observability, logging, and performance analysis. Use this skill whenever the user mentions debugging, monitoring, observability, performance analysis, tracing, Inspector, or needs to understand why an agent is behaving a certain way. Also trigger for…

neuron-core/neuron-ai · 90 tokens

hk-local-logs

Inspect and debug errors via logs across the harness-kit monorepo. Reads the right log file based on the error layer — backend, frontend, celery, odin CLI, or odin task execution. Use this skill whenever someone mentions a 500 error, a stack trace, a crash, 'check the logs', 'what went wrong', a service not starting…

deepklarity/harness-kit · 130 tokens