Claude Harness Engine v6
A Claude Code plugin for building and changing software with a generator/evaluator loop, ratcheting quality gates, and explicit human review before merge.
Current version: 3.0.0
v6 is a descendant of v5, not a rewrite. It carries the full history (v5-preserve is an
ancestor of main), so every change is reviewable against a real baseline. What changed is
structural: the harness is now a 51-unit kernel plus nine opt-in packs, the boundary
between them is mechanically enforced, and every control records whether it actually fires.
See Kernel and packs and Does a control earn its place?.
Breaking: scaffold profiles changed meaning — core no longer installs the brownfield,
compliance or vertical packs. See the profile table below before upgrading a project.
Field guide (navigable HTML): open docs/harness-guide.html in a browser — architecture diagrams, lane picker, GAN/ratchet under the covers, multi-dimension vs Devin comparison, playbooks, and glossary. Offline; no build step.
Doc map: this README is canonical for install & usage. For the control system (gates/sensors) see HARNESS.md; for architecture rationale see design.md; for the "which doc for what" index see CODEBASE_MAP.md.
Start Here
Recommended: install as a local plugin
This repo ships a local marketplace (.claude-plugin/marketplace.json), so you can install the harness as a persistent Claude Code plugin — it stays loaded across sessions with no --plugin-dir flag to retype:
git clone https://github.com/cwijayasundara/claude_harness_eng_v6.git ~/claude_harness_eng_v6
# Register the local marketplace (points at your clone), then install the plugin
claude plugin marketplace add ~/claude_harness_eng_v6
claude plugin install claude_harness_eng_v6@claude-harness-local
claude plugin install defaults to --scope user (available in every project). Use --scope project to write it into a specific project's .claude/settings.json (shared with everyone who clones that project), or --scope local for a gitignored per-project install. After pulling new commits, refresh with claude plugin marketplace update claude-harness-local.
Then inside Claude Code:
/scaffold
If your Claude Code UI shows a namespaced command, use /claude_harness_eng_v6:scaffold.
Installing gives you every harness command; /scaffold still installs the lean core surface into your project by default (/scaffold --full for the full set). The deterministic gate hooks wire up when /scaffold copies .claude/ into a target project.
Quick one-session load (no install)
To try it without installing, point --plugin-dir at the checked-in .claude/ directory — the plugin root that holds .claude-plugin/plugin.json. Per the plugins reference, this loads the plugin for the current session only:
claude --plugin-dir ~/claude_harness_eng_v6/.claude
Optional: start in auto mode
Add --permission-mode auto to launch a mostly-hands-off session (auto-runs actions except ones a background classifier flags — force pushes, credential leaks, prod deploys, destructive commands):
claude --permission-mode auto
To make it the default so you don't pass the flag each time, set it in your user-level ~/.claude/settings.json:
{ "permissions": { "defaultMode": "auto" } }
Not the project's .claude/settings.json. Claude Code (v2.1.142+) silently ignores defaultMode: "auto" from a repo's .claude/settings.json or .claude/settings.local.json — a checked-in config is not allowed to escalate itself to auto mode (it just starts in default, with no error). So auto cannot be scoped to a single repo via committed settings: user-level ~/.claude/settings.json turns it on for every project, so to keep auto scoped to one repo pass the --permission-mode auto flag (or a shell alias) at launch instead.
Modes, least → most permissive: plan, default, acceptEdits, auto, bypassPermissions. Prefer auto; reserve bypassPermissions (skips all checks) for isolated, offline containers only. Auto mode skips per-action prompts but does not bypass the harness's own pipeline gates (/build phases 1–3, /gate before merge).
Optional: build a pruned SKU (core / full / lite)
--plugin-dir <clone>/.claude loads the full harness surface. To load a lean/pruned loadout instead — or to produce a distributable tree/tarball — build a SKU first. dist/ is a generated build artifact: it is gitignored and absent from a fresh clone until you run npm run package:skus:
npm run package:skus
# → dist/skus/harness-core , dist/skus/harness-lite , dist/skus/harness-full