π The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
name: ruflo-metaharness description: MetaHarness integration β score, genome, mint, mcp-scan, threat-model β via subprocess invocations honoring ADR-150 architectural constraint
MetaHarness integration commands. All shell out to the PINNED
metaharness/harness binaries (metaharness@~0.4.1 β resolved from a local
install or a one-time ~/.ruflo/metaharness-cache-<pin> install, never
@latest) via the _harness.mjs shared helper; no library imports on
ruflo's boot path.
harness score [--path .] [--alert-on-fit-below N] [--format table|json] -- 5-dimension readiness scorecard (harnessFit / compileConfidence / taskCoverage / toolSafety / memoryUsefulness + estCostPerRunUsd + scaffoldReady).
- Run
node plugins/ruflo-metaharness/scripts/score.mjs --path <dir> - Output JSON (default) with all dimensions + recommended template + archetype
--alert-on-fit-below Nexits 1 when harnessFit < N β CI regression gate- Subprocess + 60s hard timeout; graceful degradation when metaharness unavailable
harness genome [--path .] [--alert-on-risk-above 0.5] [--format table|json] -- 7-section repo readiness report (repo_type / agent_topology / risk_score / mcp_surface / test_confidence / publish_readiness).
- Run
node plugins/ruflo-metaharness/scripts/genome.mjs --path <dir> - Pairs with harness-score for full readiness view β score is numeric, genome is categorical
needs-workandblockedare valid reports. JSON includes the upstreamverdictandverdictExitCode; only an invalid/missing report is fatal.--alert-on-risk-above Nexits 1 when risk_score > N- Useful for drift detection: snapshot genome over time, diff to spot agent_topology drift
harness mcp-scan [--path .] [--fail-on low|medium|high] [--format table|json] -- Static security scan of .mcp/servers.json + .harness/claims.json. Reads only; no dispatch.
- Run
node plugins/ruflo-metaharness/scripts/mcp-scan.mjs --path <dir> - Severity-ranked findings (low/medium/high); default fail-on
high - CI integration:
mcp-scan --fail-on highfails the build on any HIGH finding - Pairs with harness-threat-model for enterprise-review-grade categorization
harness threat-model [--path .] [--fail-on clean|low|medium|high] [--format table|json] -- Enterprise-review threat model. Returns worst severity + categorized findings[].
- Run
node plugins/ruflo-metaharness/scripts/threat-model.mjs --path <dir> - Default fail-on
high; tightenable tomediumfor stricter gates - Output suitable for sharing with security/infosec team
- Will be auto-fired by the Phase-2 oia-audit background worker on a schedule
harness oia-audit [--path .] [--dry-run] [--alert-on-worst clean|low|medium|high] [--format table|json] -- Phase-2 composite worker (ADR-150). Bundles oia-manifest + threat-model + mcp-scan into one timestamped audit record, stores in metaharness-audit memory namespace.
- Run
node plugins/ruflo-metaharness/scripts/oia-audit.mjs - Composite worst-severity = max(threatModel.worst, mcpScan.findings.severity)
--alert-on-worst highexits 1 when composite β₯ high β CI weekly drift gate--dry-runskips memory persistence β useful for local checks- Designed for cron schedule: weekly snapshot enables audit drift tracking via memory diff
harness mint --name <id> --template <vertical:coding|minimal|β¦> [--host claude-code|codex|β¦] [--target /abs/path] [--confirm] [--format table|json] -- Scaffold a custom AI agent harness. DRY-RUN by default; --confirm required to write.
- Run
node plugins/ruflo-metaharness/scripts/mint.mjs --name <id> --template <id> --host <id> - Safety: refuses to write to the calling repo root or any path inside it; defaults to
/tmp/ruflo-mint-<ts>-<name>/ - Without
--confirm: prints dry-run plan, exits 0 without touching disk - With
--confirm: shellsnpx metaharness new ... --yes - Templates: minimal + 19 verticals (coding, devops, support, legal, β¦). Hosts: claude-code, codex, pi-dev, opencode, github-actions, +4 more.