harness-parity

A rule for keeping Claude and OpenCode harness files in sync. A harness is the set of skills, agents, commands, and instructions that controls a coding agent.

In plain words
What is it for?
Mirroring additions, edits, renames, and deletions between .claude/ and .opencode/, including the required file formats and registrations.
Why use it?
It prevents one harness from having changes that the other lacks or cannot load correctly.

Skill for Claude CodeCodex

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

Made for: Claude Code, Codex.

Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,405 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.00069 $0.01405
Opus 5 $0.00034 $0.00702
Sonnet 5 $0.00014 $0.00281
Haiku 4.5 $0.00007 $0.00140

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

Security

Grade A, and why

harness-parity 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 2d 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/skills/harness-parity/SKILL.md · 70 lines

How it starts

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

Harness Parity — Keep Claude & OpenCode in Sync

When you add, edit, rename, or delete any artifact in .claude/ or .opencode/ (skills, agents, commands, rules, instructions), you MUST replicate the equivalent change in the other harness. This keeps the two harness codebases at parity, avoiding orphaned or divergent tools.

A. Replication Checklist

Follow these steps in order for every harness artifact change:

  1. Identify artifact type and source harness

    • Artifact type: skill / command / agent / rule-instruction
    • Source: which harness changed (Claude .claude/ or OpenCode .opencode/)?
  2. Locate or create the mirror path in the other harness

    • Use the translation table (Section B) to find the equivalent path.
    • Create the directory structure if it doesn't exist.
  3. Apply the frontmatter/registration translation

    • Consult the translation table for frontmatter fields and required registration entries.
    • Copy the body verbatim (for skills, commands, rules, instructions).
    • For agents: split the single Claude .md into a prompt .txt + JSONC config entry.
  4. Wire the artifact into the registry/load-path

    • Claude: Add an @-import line to .claude/CLAUDE.md for rules/instructions.
    • OpenCode: Add entries to opencode.jsonc: instructions array, command object, or agent object.
    • If the artifact needs registration, skipping this step leaves it orphaned.
  5. Bring across any reference sub-files

    • For skills with reference files (reference.md, templates.md, etc.), copy them too.
    • File paths are relative; preserve the directory structure.
  6. For deletes/renames: remove mirrors and their registry entries

    • Delete or rename the mirror artifact in the other harness.
    • Remove any @-import, instructions array entry, or command/agent object entry referencing it.
  7. Validate syntax and references

    • OpenCode: opencode.jsonc still parses (JSONC allows trailing commas).
    • Claude: All @-import paths resolve to existing files.
    • Cross-check wikilinks ([[skill-name]]) — they must point to existing skills in the same harness.

Read the full file on GitHub · 70 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. 2d ago First seen · 70 lines · 69 tokens per session scan A 861b62563e38

Subscribe to this mod's changes

harness-parity is a skill published in the GitHub repository fmflurry/settings-opencode (171 stars, last pushed 20d ago), licensed MIT. It adds 69 tokens to every session and 1,405 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.