create-harness

create-harness is a skill for Claude Code, Codex from ruvnet/metaharness. It costs 89 tokens per session (789 once invoked), scanned A, original, MIT.

A generator for building your own focused AI assistant package, with a command-line tool you can publish through npm, the JavaScript package registry.

In plain words
What is it for?
Use it to scaffold an assistant for areas such as legal work, trading, customer support, operations, or research, for Claude Code, Codex, pi.dev, or Hermes.
Why use it?
It removes the manual setup involved in choosing an AI host, templates, agents, skills, memory, and routing. It gives you a starting structure for a branded assistant.

Skill for Claude CodeCodex

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

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/ruvnet/metaharness/create-harness
Any agent
npx skills add ruvnet/metaharness --skill create-harness
Clone the repo
git clone --depth 1 https://github.com/ruvnet/metaharness

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ruvnet/metaharness/create-harness.svg)](https://agentmods.dev/skills/ruvnet/metaharness/create-harness)
Your own site
<a href="https://agentmods.dev/skills/ruvnet/metaharness/create-harness"><img src="https://agentmods.dev/badge/skills/ruvnet/metaharness/create-harness.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 789 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 $0.00089 $0.00789
Opus 5 $0.00044 $0.00394
Sonnet 5 $0.00018 $0.00158
Haiku 4.5 $0.00009 $0.00079

Measured 5d ago against content hash ab4941a7cffa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-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 5d 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/create-harness/SKILL.md · 71 lines

How it starts

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

create-harness

This skill scaffolds an AI agent harness — your own focused, branded harness with its own npx <name> CLI, MCP server registration, memory namespace, learning loop, and marketplace identity.

When to use this skill

Use this skill when the user wants any of:

  • A custom MCP-server-backed AI assistant (legal, trading, support, ops, …)
  • A Claude Code plugin that bundles their own agents/skills/prompts
  • A Codex skill that wraps a kernel + tools
  • A pi.dev extension or Hermes agent runtime config
  • A standalone npm package they can npm publish under their own scope

How to invoke

/create-harness

The skill asks for:

  1. Harness name (kebab-case, e.g. legal-redline)
  2. Description (one line)
  3. Host(s) — Claude Code, Codex, pi.dev, Hermes (multi-select)
  4. Templateminimal (default), vertical:trading, vertical:support, vertical:devops, vertical:legal, vertical:research, or eject-from-ruflo
  5. Memory backend — AgentDB (default), SQLite-only, in-memory
  6. Routing strategy — 3-tier (default) or single-tier
  7. Marketplace — independent (no ruflo branding) or powered-by

Under the hood

Calls npx create-agent-harness <name> with the user's choices, copies the chosen template into the current directory, runs the post-generation smoke test, and emits a .harness/manifest.json so future updates can harness upgrade cleanly (copier-style regenerate-diff-merge).

Outputs

File Purpose
package.json The harness's npm package, ready to npm publish
bin/<name>.js The CLI binary your users invoke
.claude/settings.json (if Claude Code host) MCP + hooks wiring
.codex/config.toml (if Codex host) MCP table in TOML
AGENTS.md + SYSTEM.md (if pi.dev host) Pi extension instructions
cli-config.yaml (if Hermes host) Hermes runtime config
.harness/manifest.json Generator state — drives drift detection (ADR-008)
witness.json Ed25519-signed provenance manifest (ADR-011)

Read the full file on GitHub · 71 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. 5d ago First seen · 71 lines · 89 tokens per session scan A ab4941a7cffa

Subscribe to this mod's changes

create-harness is a skill published in the GitHub repository ruvnet/metaharness (630 stars, last pushed yesterday), licensed MIT. It adds 89 tokens to every session and 789 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.