MetaHarness integration — score, genome, mint, mcp-scan, threat-model — via subprocess invocations honoring ADR-150 architectural constraint
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ruflo-7900c88d5ad8 ,按照其中的说明把「ruflo-metaharness」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
MetaHarness integration commands. All shell out to the PINNED
metaharness/harness binaries (metaharness@~0.3.0 — 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).
node plugins/ruflo-metaharness/scripts/score.mjs --path <dir>--alert-on-fit-below N exits 1 when harnessFit < N — CI regression gateharness 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).
node plugins/ruflo-metaharness/scripts/genome.mjs --path <dir>needs-work and blocked are valid reports. JSON includes the upstream
verdict and verdictExitCode; only an invalid/missing report is fatal.--alert-on-risk-above N exits 1 when risk_score > Nharness 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.
node plugins/ruflo-metaharness/scripts/mcp-scan.mjs --path <dir>highmcp-scan --fail-on high fails the build on any HIGH findingharness threat-model [--path .] [--fail-on clean|low|medium|high] [--format table|json] -- Enterprise-review threat model. Returns worst severity + categorized findings[].
node plugins/ruflo-metaharness/scripts/threat-model.mjs --path <dir>high; tightenable to medium for stricter gatesharness 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.
node plugins/ruflo-metaharness/scripts/oia-audit.mjs--alert-on-worst high exits 1 when composite ≥ high — CI weekly drift gate--dry-run skips memory persistence — useful for local checksharness 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.
node plugins/ruflo-metaharness/scripts/mint.mjs --name <id> --template <id> --host <id>/tmp/ruflo-mint-<ts>-<name>/--confirm: prints dry-run plan, exits 0 without touching disk--confirm: shells npx metaharness new ... --yes