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.
  • 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.6.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.6.0
File Size Uploaded Provenance Actions
harness_detect-0.6.0.tar.gz 181.2 kB Without provenance Details for harness_detect-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 339.5 kB

Release files / harness_detect-0.6.0.tar.gz

Download URL harness_detect-0.6.0.tar.gz
Size 181.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dad34716aaeea5c3027e90b5d01c01482838a99e2f0734083ab303b9db82f696
BLAKE2b-256 checksum
How to use checksums
62aadb69995285f05d8cd273e668e2e7d9b0c5b2fefc070852a4aeeb567bdcf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.6.0-py3-none-any.whl

Download URL harness_detect-0.6.0-py3-none-any.whl
Size 158.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6db769f56cefd10e1d2f90bb0d8f1a85ef315ae64e7d9a94f9d4b7eefb9c5c44
BLAKE2b-256 checksum
How to use checksums
22f33aa506dd5d8b30e81449a687aa43708479172e368651e20df7f85325b58a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.6.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