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()))

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.
  • 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.5.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.5.0
File Size Uploaded Provenance Actions
harness_detect-0.5.0.tar.gz 103.6 kB Without provenance Details for harness_detect-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 183.5 kB

Release files / harness_detect-0.5.0.tar.gz

Download URL harness_detect-0.5.0.tar.gz
Size 103.6 kB
Tags Source
SHA-256 checksum
How to use checksums
92666f0c79575715ea4c3d66163fd5eeade34d1c5ad10c1cdb7399f7a380b890
BLAKE2b-256 checksum
How to use checksums
ee3b47910f4186f4f03b8ad6b4f3128639c83c3fb88ce5233a1876e7274007e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.5.0-py3-none-any.whl

Download URL harness_detect-0.5.0-py3-none-any.whl
Size 79.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbfec0d825cd3b9fcb4d89e0ea34d17ade956b4356066bcb7a1e869d504cef1d
BLAKE2b-256 checksum
How to use checksums
2d8559c77215e1a37184478c2ba397e2e9324664389404cc64f4ee6bcca74eec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.5.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