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.
  • list_harness_acp returns ACP metadata for every harness; absent metadata is unknown.
  • 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.3.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.3.0
File Size Uploaded Provenance Actions
harness_detect-0.3.0.tar.gz 78.7 kB Without provenance Details for harness_detect-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 135.2 kB

Release files / harness_detect-0.3.0.tar.gz

Download URL harness_detect-0.3.0.tar.gz
Size 78.7 kB
Tags Source
SHA-256 checksum
How to use checksums
444158758453fb65b96d290e0d0dc596ed01d5a4f8720add1af41e94d0e0a832
BLAKE2b-256 checksum
How to use checksums
b4894f2cebd1c9b7cb60950e8182eaf8e0a51fdb788a6e288c0e6c0fcc43ef19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.3.0-py3-none-any.whl

Download URL harness_detect-0.3.0-py3-none-any.whl
Size 56.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7603672d4df12a8a73c5a8da83c7ff07a4f90dc60538d22b509d58d945c7d6d6
BLAKE2b-256 checksum
How to use checksums
507c1191af2e4da2832a474275c4d41d02a5c1fc9053c9f630865108aad21afe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.3.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