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.
Install Agent Harness Generator
Built from the published package, never by AI.
claude mcp add agent-harness-generator -- npx -y @ruvnet/agent-harness-generatorRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install Agent Harness Generator in Claude Code
{
"mcpServers": {
"agent-harness-generator": {
"args": [
"-y",
"@ruvnet/agent-harness-generator"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Agent Harness Generator in Claude Desktop
{
"mcpServers": {
"agent-harness-generator": {
"args": [
"-y",
"@ruvnet/agent-harness-generator"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agent-harness-generator": {
"args": [
"-y",
"@ruvnet/agent-harness-generator"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agent-harness-generator -- npx -y @ruvnet/agent-harness-generator{
"mcpServers": {
"agent-harness-generator": {
"args": [
"-y",
"@ruvnet/agent-harness-generator"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Agent Harness Generator in Antigravity CLI
gemini mcp add agent-harness-generator npx -y @ruvnet/agent-harness-generatorGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
