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_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.

Metadata

Release files for harness-detect 0.2.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 harness-detect 0.2.1
File Size Uploaded Provenance
harness_detect-0.2.1.tar.gz 58.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 97.5 kB

Release files / harness_detect-0.2.1.tar.gz

Download URL harness_detect-0.2.1.tar.gz
Size 58.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6532ee6038d54f515ecd28ea0ef7d8f99ebe9b7e890f63a8842e94862e82f5f
BLAKE2b-256 checksum
How to use checksums
26e21392acac042b2704f068cce06d61fbd4041f5e63aa1fa2c370e11532baa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.1-py3-none-any.whl

Download URL harness_detect-0.2.1-py3-none-any.whl
Size 39.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab7245c8fdb3d8b88d64ac1b402a98745d214e76e3b286c1266779f2bb77b0c7
BLAKE2b-256 checksum
How to use checksums
a33c6c7bf2b0d781f366edce18a3dbf7568a3287647f7d5ff01aa0d7fe73f7ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.2.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.

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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