ruvnet/metaharness

🛠️ The meta-harness for AI agents — scaffold your own focused, branded agent harness with its own npx CLI, MCP server, memory, learning loop, and witness-signed releases. Works with Claude Code, Codex, pi.dev, Hermes, OpenClaw, and RVM (hardware-isolated sandbox).

What it solves

MetaHarness solves the problem of creating and managing specialized AI agents for specific code repositories. Instead of using generic agent frameworks, it acts as a factory that generates a custom, repo-aware "harness"—a tailored environment containing the specific tools, memory, and governance policies your project needs to function effectively.

How it works

MetaHarness uses a CLI or web-based Studio to analyze your repository and scaffold a custom agent package. You can choose from various templates (verticals) and host platforms (like Claude Code, OpenAI Codex, or GitHub Actions). The generated output is a standard, npm-publishable project that you own. It includes built-in governance, such as default-deny security policies for tools, and "Darwin Mode," which allows the harness to automatically test and refine its own configuration to improve performance without changing the underlying AI model.

Who it’s for

It is for developers and teams who want to build, govern, and distribute custom AI agents that are deeply integrated with their specific codebase and workflows. It is ideal for those who want to maintain control over their agent's capabilities, costs, and security posture while ensuring the agent is optimized for their unique domain.

Highlights

  • Generates custom, repo-aware agent harnesses from a GitHub URL or blank slate.
  • Includes "Darwin Mode" for self-improving harness configuration through automated testing.
  • Supports ten different agent hosts, including Claude Code, GitHub Actions, and Prime Agent.
  • Implements strict, default-deny security policies for all agent tools and MCP integrations.
  • Provides a "score" feature to analyze a repository's suitability for an agent before building.
  • Allows for cost-optimized model routing to use cheaper models for simpler tasks.

Related

  • Project
  • Dispatch
  • Project
  • Project
  • Project