Skip to main content

The Harness logo

Discord npm PyPI

The Harness

Automatic Control for anything that acts.


The Harness is Automatic Control for anything that acts. You tell an agent what to do in your own words; a language model plans and writes short programs, and The Harness runs them in an environment the agent can see and act in, while you watch, add a message or take over.

The agent thinks while it acts: between model calls, its programs, skills and reactive rules keep working, and what it learns along the way (notes, tested skills, rules) applies in the same run.

Use The Harness in the terminal, run one task from the CLI, drive it from another program with JSON lines, call it from apps, editors and other agents over MCP and ACP, or build on the Python API.

Getting started

npm install -g @lmmslab/harness   # or: pip install the-harness
harness

The Harness needs Python 3.11 or newer. harness opens a conversation in your terminal. The first time, it asks which model to use and for its key; then type a task. Any model works: hosted ones through OpenRouter, OpenAI, Anthropic and other providers, or a model you run yourself.

See Install and the Quickstart for a real task on your own computer.

Commands

harness                 # talk with the agent in the terminal
harness run "task" -p   # do one task and print the answer (--json: every event)
harness run rpc         # drive a conversation with JSON lines, from another program
harness install         # packages (also: list, remove)
harness library         # what the agent learned
harness replay          # a run again in the terminal
harness doctor          # what this computer has and lacks

Where it works

pip/npm install only the small core. Environments come in packages, installed by themselves the first time a task needs them.

Environment Package
Your computer: apps and windows, or a display of its own computer
Websites, in a background browser browser
Project files and processes, in a bound working directory workspace

Packages

Package What it is Depends on Provides
acp The Harness as an Agent Client Protocol agent for editors such as Zed – commands acp
agent Persistent identity, multi-turn dialogue and private memory over the Harness task engine – commands agent
browser Search and browse the web in a background browser computer skills browser; benches browser
computer Control a computer: its desktop, its applications in the background, displays of its own – embodiments computer, ubuntu; skills desktop, physical, screens, windowtools; benches computer
eval Evaluate the agent: experiments over tasks and seeds, their suites, locks, run pages and self-improvement local-models commands config, inspect, lock, program, runs, self-improve, serve, view
external-agents ACP, terminal and cloud coding sessions, and bounded Claude Code and Codex delegates – commands agents
local-models Models on your own GPUs: where services run (deploys), their weights and servers, Qwen3-VL – services qwen3-vl-32b, qwen3-vl-8b; commands down, fetch, services, status, up
mcp-example An example MCP server: unit conversion – services mcp-units
mcp-server The Harness as an MCP server (harness mcp), for apps, editors and agents that are MCP clients – commands mcp
perception See: segmentation, pointing, scenes, generic vision and vision-language models local-models skills pointing, scene, segmentation, vision, vlm; services molmo2, sam3, vision
workspace Operate project files and processes in a bound working directory – embodiments workspace; skills workspace; benches workspace

Documentation

Development

pip install -e .
harness install ./packages/computer ./packages/browser ./packages/workspace --link --yes
harness doctor

See CONTRIBUTING.md and the validation guide.

Citation

@misc{lmmslab2026harness,
  author = {{LMMs-Lab}},
  title = {The Harness: One Agent Harness for Anything that Acts},
  howpublished = {\url{https://github.com/EvolvingLMMs-Lab/the-harness}},
  year = {2026}
}

License

MIT; third-party material retains its own terms. See LICENSE and CONTRIBUTORS.md.

Metadata

Release files for the-harness 0.81.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for the-harness 0.81.1
File Size Uploaded Provenance Actions
the_harness-0.81.1.tar.gz 502.5 kB With provenance Details for the_harness-0.81.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for the-harness 0.81.1
File Interpreter ABI Platform Actions
the_harness-0.81.1-py3-none-any.whl Python 3 none any Details for the_harness-0.81.1-py3-none-any.whl

Total release size: 1.0 MB

Release files / the_harness-0.81.1.tar.gz

Download URL the_harness-0.81.1.tar.gz
Size 502.5 kB
Tags Source
SHA-256 checksum
How to use checksums
488009eab2c29fdaf853e1c7824fd41bbc87c7d7c562014a72d6cfc0d3332c60
BLAKE2b-256 checksum
How to use checksums
53144533875102a7ffa32e27da9bc156cc8d96ee37c77e3101ac5f120ace7780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / the_harness-0.81.1-py3-none-any.whl

Download URL the_harness-0.81.1-py3-none-any.whl
Size 512.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f60cbe1ec51ff35db63aadab719770ae7de508f1bd1b43dc8a94aafc73c08694
BLAKE2b-256 checksum
How to use checksums
08c70fb64e581f0d45e2682c1dfeef24bc031f5a490b0274a90ef9f96a1f0558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for the-harness 0.81.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for the_harness-0.81.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page