# Harness

> Harness is an open-source MCP server for developer tools. Lets a coding agent launch Claude Code and Codex sessions that the user can watch. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Linux, CLI, self-hosted
- **Website:** https://harness.autonomous.ai/agents
- **Repository:** https://github.com/autonomous-ai/openharness
- **MCP Registry name:** ai.autonomous.harness/harness
- **Categories:** developer tools
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/harness
