Skip to content
MCP server

Harness

Lets a coding agent launch Claude Code and Codex sessions that the user can watch

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
macOS, Linux, CLI
Runs
Locally
Version
0.4.20
Listing updated
2 days ago

About Harness

Harness is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Harness runs coding agents inside tmux terminal sessions called harnesses, and this MCP server gives an agent the controls: start one, wait for it, read its answer and close it. An agent can run several in parallel and wait for all or the first to finish, hand a task from Claude Code to Codex or the reverse for a second opinion, or start a session on another of your signed-in machines, such as a GPU box, without SSH.

Everything started this way shows up in the Harness desktop, web and phone apps, where you can watch it, answer its questions or stop it. Your agent's own sub-agents stay invisible, which is the point of the difference. Sessions keep running after the agent's turn ends and their conversation is kept when closed. The site warns every harness spends your tokens and recommends starting one only for parallel, long-running or second-model work.

Setup needs a local install via a shell script and harness start; no account is required on one computer, and letting agents start agents is a setting you enable yourself, which an agent cannot enable. The README says the whole project is open source and encrypts traffic end to end.

Install

Run in a terminal

claude mcp add harness -- npx -y @autonomous-ai/harness-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "harness": {
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "harness": {
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "harness": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "harness": {
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "harness": {
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}

What it does

Parallel sessions
Start several agents on separate tasks and wait for any or all.
Cross-model handoff
Claude Code can pass work to Codex and the reverse.
Remote machines
Start sessions on your other signed-in computers.
Visible to you
Every session appears in the desktop, web and phone apps.
Outlives the turn
Sessions continue after the agent finishes its turn.
Opt-in consent
Agents can only start agents after you turn the setting on.

Good for

  • Run a review by a second model on a branch
  • Split a refactor across parallel agents
  • Start a long job on a GPU machine
  • Keep a human in the loop on an agent's side work

Pricing

Open source

Prices change. Check harness.autonomous.ai before you buy.

Harness FAQ

Is an account required?

Not for harnesses started on one computer; harness login is needed for other machines and the phone app.

Which agents does it run?

Claude Code and Codex, and the README lists others such as Cursor, OpenCode and Copilot.

Which systems does it support?

macOS and Linux.

Can an agent turn on the permission itself?

No; run by an agent, that setting change is refused.

Is Harness free?

Yes. Harness is open source, so you can use and self-host it for free.

How do I add Harness to Claude Code?

Run this command in your terminal: claude mcp add harness -- npx -y @autonomous-ai/harness-mcp

What are the best alternatives to Harness?

The closest alternatives to Harness are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Harness

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools