Skip to main content

Detect installed LLM harnesses and resolve their config/state paths from a JSON registry.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harness_detect-0.2.1.tar.gz (58.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harness_detect-0.2.1-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

File details

Details for the file harness_detect-0.2.1.tar.gz.

File metadata

  • Download URL: harness_detect-0.2.1.tar.gz
  • Upload date:
  • Size: 58.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for harness_detect-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f6532ee6038d54f515ecd28ea0ef7d8f99ebe9b7e890f63a8842e94862e82f5f
MD5 d601decf16358c01ed483be97e2037d8
BLAKE2b-256 26e21392acac042b2704f068cce06d61fbd4041f5e63aa1fa2c370e11532baa5

See more details on using hashes here.

File details

Details for the file harness_detect-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: harness_detect-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 39.0 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for harness_detect-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab7245c8fdb3d8b88d64ac1b402a98745d214e76e3b286c1266779f2bb77b0c7
MD5 4bb410e5bd89751280a51adaf9c2baa7
BLAKE2b-256 a33c6c7bf2b0d781f366edce18a3dbf7568a3287647f7d5ff01aa0d7fe73f7ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page