Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Agent Harness Generator

MCP server by ruvnet Verified · npm:@ruvnet

Agent Harness Generator builds a custom AI agent harness for any repo, with agents, skills, MCP tools, scoped memory and governance policy. It is for developers who want a repo-specific agent setup they can publish as their own npm package.

  • Score 86
  • 770 stars
  • 60 a week
  • MIT
  • Updated

Install Agent Harness Generator

Built from the published package, never by AI.

claude mcp add agent-harness-generator -- npx -y @ruvnet/agent-harness-generator

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Agent Harness Generator in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agent-harness-generator block.

About

Agent Harness Generator, published as MetaHarness, mints a custom AI agent harness for a repo from a GitHub URL or a blank slate. The output can include repo-aware agents, skills generated from the file layout, a local MCP server, project-scoped memory, governance policy and release verification. The result is an npm-publishable zip that the user can rename and publish under their own scope.

The CLI runs with npx metaharness. The score command reads a repo without running it and reports fit, build likelihood, tool safety and cost per run. The library package re-exports scaffold(), validate() and the deterministic-analysis pipeline. It is aimed at developers who want a repo-specific harness for hosts such as Claude Code or OpenAI Codex.

Written from the project's README and checked against it.

Tools it gives your assistant

  • scaffold()Creates a harness for a repo or a blank slate, re-exported by the library package.
  • validate()Checks a harness, re-exported by the library package for use in code.
  • scoreReads a repo without running it and prints a report card with cost per run.
  • analyze-repoRuns local deterministic analysis on a repo with the harness pipeline.
  • evolveRuns Darwin Mode to test config changes in a sandbox and keep measured gains.
  • --hostTargets Claude Code, OpenAI Codex, pi.dev, Hermes, OpenClaw, RVM or Prime Agent.

What you need

  • Node.js, to run npx metaharness
  • A web browser, to open the Studio
  • A GitHub repo URL or a local repo, for analysis

Try asking

  • Score this repo and tell me the rough cost per run before scaffolding.
  • Scaffold an agent harness for this repo for Claude Code.
  • Validate my harness and point out anything unhealthy after my edits.

Good to know

  • Several extensions are marked experimental and private.
  • Weight-EFT is GPU-gated and field memory is off by default.
  • The source makes no ARC performance claim until a gate is met.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Agent Harness Generator

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Agent Harness Generator: common questions

Does Agent Harness Generator run my repo?

The score command reads the repo without running it, according to the source.

Can I publish the generated harness as my own package?

Yes. The source says the output is an npm-publishable zip that can be renamed, scoped and published under your own name.

Is field memory enabled by default?

No. The source says the --field-memory flag is off by default, so existing scaffold output is unchanged.

How do I install Agent Harness Generator?

In Claude Code run claude mcp add agent-harness-generator -- npx -y @ruvnet/agent-harness-generator. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Agent Harness Generator the official server?

Agent Harness Generator is published by npm:@ruvnet from its verified domain in the official MCP Registry.

Is Agent Harness Generator free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Agent Harness Generator safe to use?

It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Agent Harness Generator?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Agent Harness Generator work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Agent Harness Generator Install

Add to stack

Loading.