Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bradleysmockv0.1.0MITIn 1 marketplace
Retrofit a high-integrity test suite onto an untested codebase: seam-aware, risk-ranked, oracle-grounded, and mutation-gated. Enforces Generator/Verifier role separation and the net-immutability and oracle-independence invariants mechanically.
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
mutation-testing, characterization, oracle, devsecops, test-retrofit
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin for retrofitting a high-integrity test suite onto an untested codebase. It encodes a seam-aware, risk-ranked, oracle-grounded, mutation-gated workflow, and enforces its two most important invariants — net immutability and oracle independence — mechanically rather than by prompt.
Full rationale: docs/DESIGN.md.
Three ideas drive the design:
generator agent and gated by a separate verifier agent that cannot edit code (disallowedTools: Write, Edit). That's no-self-grading enforced at the tool layer, not requested in a prompt.independence ≠ low.Local dev, from the repo containing this folder:
claude --plugin-dir ./test-harness
# then /reload-plugins after edits
Or install across machines via the marketplace. Place marketplace.json at the repo root in .claude-plugin/marketplace.json (not in this plugin folder); owner and plugins are required, and ./test-harness resolves relative to the repo root:
{
"name": "claude-harness",
"owner": { "name": "Bradley" },
"plugins": [
{ "name": "test-harness", "source": "./test-harness", "version": "0.1.0" }
]
}
Then, from a local clone (relative source only resolves when the marketplace is added via Git or a local path):
/plugin marketplace add ./ # or: <owner>/claude-harness once pushed to GitHub
/plugin install test-harness@claude-harness
claude plugin validate ./.claude-plugin/marketplace.json # optional schema check
/test-harness:)Run a single module end-to-end with /test-harness:run-module <path>, or step through:
| Command | Phase | Gate owner |
|---|---|---|
seam-map | P0 · classify deps, seam types, refactor cost | V → human |
infra | P1 · harness + smoke + mutation engine | X |
risk-rank | P2 · churn × blast-radius × defects → waves | V |
harvest → oracle-extract → elicit | Oracle mining | V + human |
characterize | P3 · records behavior; freezes the net | X |
unit-tests | P4 · refactor + sourced assertions | X · V · human |
contract-tests | P5 · lock seams | V |
mutation-gate | P6 · binding adversarial loop | X · V |
quality-audit | Q1–Q6 two-axis scorecard | V |
generator (sonnet) — writes analysis and tests under oracle-sourcing discipline.verifier (opus, high effort, worktree isolation, no write tools) — the hardened adversarial critic. To get true independence, point it at a different vendor in your harness config; same-family is a pre-filter, not a guarantee (see docs/DESIGN.md → model matrix).hooks/hooks.json registers a PreToolUse guard (scripts/net-guard.sh) that blocks any edit to a frozen characterization-net file. scripts/freeze-net.sh records the net's files + checksums into .test-harness/frozen-net.txt; after that, the generator physically cannot edit the net to make a test pass — it must escalate.
| Script | Role |
|---|---|
net-guard.sh | the PreToolUse net-immutability hook |
freeze-net.sh | freeze a characterization net |
mutation-diff.sh | diff-scoped mutation run (Stryker / PIT / mutmut), new-code ratchet |
harvest-bugfix.sh | mine bug-fix + revert commits as high-independence oracles |
refactor-probe.sh | Q4 Tier-1 behavior-preserving probe (warn-only) |
Runtime artifacts (ledger, manifests, scorecards) land in .test-harness/.
kill_target (0.75), MAX_ITERS (4), and the risk weights are placeholders. Run the one-module pilot (run-module), capture oracle yield and verifier catch-rate, and set them from data before scaling. See docs/DESIGN.md → Build & Pilot Sequence.
The static-analysis substrate, the Tier-1 rename codemod (RENAME_CODEMOD), engine config (stryker.config thresholds.break / PIT <mutationThreshold>), and issue-tracker tokens for oracle harvesting are stack-specific. The scripts are the harness around them.
npx claudepluginhub bradleysmock/claude-harness --plugin test-harnessPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.