Skip to main content

harness-detect (Python)

Detect installed LLM harnesses (Codex, Claude Code, Gemini CLI, Cursor, and many others) and resolve their config/state/install paths from a shared JSON registry.

This is the Python port of @auron-labs/harness-detect. It shares the same harness registry as the TypeScript, Go, and Rust packages and exposes the same API surface, adapted to idiomatic Python naming.

Installation

pip install harness-detect

Supported distribution targets are npm (@auron-labs/harness-detect), Go modules (github.com/auron-labs/harness-detect/packages/golang/harnessdetect, released by packages/golang/vX.Y.Z tags), crates.io (harness-detect), and PyPI (harness-detect). Before the first public release for an ecosystem, these install commands are the intended consumer coordinates and may not resolve yet.

Usage

from harness_detect import detect_installed_harnesses, CheckOptions

for r in detect_installed_harnesses(CheckOptions()):
    print(r.key, r.reasons)

Support metadata is also available:

from harness_detect import get_harness_support, list_harness_support

codex = get_harness_support("codex")
print(codex.support.config.global_.status)
print(len(list_harness_support()))

Detection semantics

A harness counts as installed when either a matching executable is found on PATH or one or more owned config, state, cache, install, or project paths exist. Paths marked shared: true are read/discovery locations owned by another tool or shared by convention. They remain in the resolved paths result with accurate exists values, but they are excluded from matched_paths and reasons and are not installation evidence.

Exported API

  • get_raw_harness_data() returns the full registry object.
  • get_harness_matrix() returns the full registry object.
  • list_harnesses() returns the registry's harness definitions.
  • get_harness_acp returns ACP metadata for one harness key or alias.
  • detect_installed_acp_launches lists ACP agents launchable from installed binaries, as absolute command paths with args.
  • list_harness_acp returns ACP metadata for every harness; absent metadata is unknown.
  • get_harness_mcp returns MCP metadata for one harness key or alias: MCP support, project-root .mcp.json support, and global/local config files, format, and server key path.
  • list_harness_mcp returns MCP metadata for every harness.
  • translate_mcp_json(input, mcp_json, scope="local") translates a .mcp.json mapping or JSON text into the harness's native server entries for one scope, returning format, key_path, servers, config, and skipped. Nothing is read or written.
  • get_harness_support(input) returns support metadata for one harness key or alias.
  • list_harness_support() returns support metadata for every harness.
  • resolve_harness_template(input, template, options=None) resolves a registry path template, such as a support or MCP path like ${CLAUDE_ROOT}/skills, to a concrete path using the harness's roots and the same CheckOptions as check_harness. It returns None when a placeholder cannot be resolved and does not check the disk.
  • check_harness(input, options=None) checks one harness key or alias.
  • detect_harnesses(options=None) checks every registry entry.
  • detect_installed_harnesses(options=None) returns only installed harnesses.

See the package docs for the full API reference.

ACP metadata describes local stdio launches and optional adapter registry keys, independently of file-location support. Read acp.status, follow acp.adapter when present, and select a platform-matching recipe from acp.launches. Read the owner's installation requirements and notes before launching. See the ACP contract for the optional stored shape and adapter lookup rules.

Metadata

Release files for harness-detect 0.7.0

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

Source distribution (sdist)

Source distribution for harness-detect 0.7.0
File Size Uploaded Provenance Actions
harness_detect-0.7.0.tar.gz 201.9 kB Without provenance Details for harness_detect-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harness-detect 0.7.0
File Interpreter ABI Platform Actions
harness_detect-0.7.0-py3-none-any.whl Python 3 none any Details for harness_detect-0.7.0-py3-none-any.whl

Total release size: 381.0 kB

Release files / harness_detect-0.7.0.tar.gz

Download URL harness_detect-0.7.0.tar.gz
Size 201.9 kB
Tags Source
SHA-256 checksum
How to use checksums
def05931c451ad00df8b79bdb7c25f94cac07d41e549963ae1f8000f713172a4
BLAKE2b-256 checksum
How to use checksums
d197a7a77fa7994b26aab3d892a69600f644028896c3db484267ca54e9f6f0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / harness_detect-0.7.0-py3-none-any.whl

Download URL harness_detect-0.7.0-py3-none-any.whl
Size 179.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
640a58cbbf8fd2db195d614955f597a4fe199481b057b08910722096285af941
BLAKE2b-256 checksum
How to use checksums
8fa1bb391fa881806572fd199a491f38d84bf8e99f7e79e28ef6a7d56dd1d5ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for harness-detect 0.7.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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