$npx skillfedfor your agent

crosshair-tool

Analyze Python code for correctness using symbolic execution.

With conditionsPyPI TestingReleased Jul 2026417.3K downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — crosshair_tool-0.0.109-cp310-cp310-macosx_10_9_universal2.whl · crosshair_tool-0.0.109-cp310-cp310-macosx_10_9_x86_64.whl · crosshair_tool-0.0.109-cp310-cp310-macosx_11_0_arm64.whl
v0.0.109 · released 2026-07-21 · Python >=3.8 · 7 runtime deps: packaging, typing-inspect, typing_extensions, z3-solver, importlib_metadata, pygls, typeshed-client

Yes, if you work with type-annotated Python and want automated counterexample detection beyond traditional testing. The active maintenance, broad Python version support, and zero known vulnerabilities make it safe to adopt. Install friction is moderate due to z3-solver's compilation requirements, but prebuilt wheels are available. Best suited for projects where correctness is critical and you're willing to write contracts alongside type hints.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • z3-solver is a compiled dependency that may require build tools on some systems; symbolic execution can be computationally expensive for complex functions.
  • Medium install friction due to 7 runtime dependencies including z3-solver, a heavyweight SMT solver.
  • Actively maintained with a release 24 days ago and 1314 repository stars.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it suitable for most development contexts.

last release 2026-07-21 (24 days) · last repo commit 2026-08-12 · 1,314 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 417,304 downloads/mo, #6,818 on PyPI

Verify before relying

pip install crosshair-tool

from crosshair.core import analyze

def example(x: int) -> int:
    """post: _ >= 0"""
    return x * 2

analyze(example)
  • Whether IDE integrations for VS Code and PyCharm are actively maintained and compatible with current versions
  • Performance characteristics and timeout behavior when analyzing large or complex codebases
  • How well symbolic reasoning handles third-party library calls beyond the standard library
Same gist for agents: .md · .json

What it is and what it does

CrossHair is a symbolic execution and theorem-proving tool for Python that bridges testing and type systems. You annotate functions with type hints and optional contracts (preconditions, postconditions, invariants), and CrossHair explores execution paths using an SMT solver to find inputs that violate those contracts—essentially automated counterexample generation. It works by repeatedly calling your functions with symbolic inputs, tracking constraints, and asking the solver whether any path can violate your specifications.

Beyond contract checking, CrossHair can generate unit tests by exploring code paths and detecting behavioral differences between function implementations. It integrates with Hypothesis as an optional backend and offers IDE plugins for VS Code and PyCharm. The tool targets developers who want stronger correctness guarantees than traditional testing alone, particularly for functions with clear specifications. Runtime dependencies include z3-solver (the SMT engine), typing-inspect, pygls (for language server protocol), and typeshed-client.

Use it for

  • Find edge cases and counterexamples in functions with type annotations and contracts before they reach production
  • Generate test cases automatically by exploring symbolic execution paths through your code
  • Verify that refactored or optimized functions behave identically to their original implementations
  • Use as a Hypothesis backend for property-based testing with symbolic reasoning
  • Catch off-by-one errors, null-pointer-like issues, and invariant violations in class methods

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you work with type-annotated Python and want automated counterexample detection beyond traditional testing.

The active maintenance, broad Python version support, and zero known vulnerabilities make it safe to adopt. Install friction is moderate due to z3-solver's compilation requirements, but prebuilt wheels are available. Best suited for projects where correctness is critical and you're willing to write contracts alongside type hints.

Install

crosshair-tool on PyPI

Before you install

Medium install friction due to 7 runtime dependencies including z3-solver, a heavyweight SMT solver. Actively maintained with a release 24 days ago and 1314 repository stars. Supports Python 3.8 through 3.15 with prebuilt wheels across macOS, Linux, and Windows.

z3-solver is a compiled dependency that may require build tools on some systems; symbolic execution can be computationally expensive for complex functions.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for most development contexts.

Quickstart

pip install crosshair-tool

from crosshair.core import analyze

def example(x: int) -> int:
    """post: _ >= 0"""
    return x * 2

analyze(example)

Verify before relying

  • Whether IDE integrations for VS Code and PyCharm are actively maintained and compatible with current versions
  • Performance characteristics and timeout behavior when analyzing large or complex codebases
  • How well symbolic reasoning handles third-party library calls beyond the standard library

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.8
Install frictionMedium. Platform-specific wheel
Runtime dependencies
7 packages
packagingtyping-inspecttyping_extensionsz3-solverimportlib_metadatapyglstypeshed-client
MaintenanceActively maintained 24 days since the last release
Last repo commit
First released
Downloads417,304 / month, #6,818 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: Testing

Evidence: crosshair_tool-0.0.109-cp310-cp310-macosx_10_9_universal2.whl; crosshair_tool-0.0.109-cp310-cp310-macosx_10_9_x86_64.whl; crosshair_tool-0.0.109-cp310-cp310-macosx_11_0_arm64.whl; crosshair_tool-0.0.109-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; crosshair_tool-0.0.109-cp310-cp310-musllinux_1_2_x86_64.whl; crosshair_tool-0.0.109-cp310-cp310-win32.whl; crosshair_tool-0.0.109-cp310-cp310-win_amd64.whl; crosshair_tool-0.0.109-cp311-cp311-macosx_10_9_universal2.whl; crosshair_tool-0.0.109-cp311-cp311-macosx_10_9_x86_64.whl; crosshair_tool-0.0.109-cp311-cp311-macosx_11_0_arm64.whl; crosshair_tool-0.0.109-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; crosshair_tool-0.0.109-cp311-cp311-musllinux_1_2_x86_64.whl; crosshair_tool-0.0.109-cp311-cp311-win32.whl; crosshair_tool-0.0.109-cp311-cp311-win_amd64.whl; crosshair_tool-0.0.109-cp312-cp312-macosx_10_13_universal2.whl; crosshair_tool-0.0.109-cp312-cp312-macosx_10_13_x86_64.whl; crosshair_tool-0.0.109-cp312-cp312-macosx_11_0_arm64.whl; crosshair_tool-0.0.109-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; crosshair_tool-0.0.109-cp312-cp312-musllinux_1_2_x86_64.whl; crosshair_tool-0.0.109-cp312-cp312-win32.whl

Tags

Capabilities
symbolic execution testing pythonproperty-based testing contractscounterexample generation type hintsSMT solver code analysisautomated test generation pythoncontract verificationbehavioral difference detection
Topics
symbolic-executioncontract-verificationsmt-solver

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “symbolic execution testing python”

  • crosshair-toolCrossHair uses symbolic execution and SMT solving to find…
  • claripyClaripy is an abstraction layer for constraint solvers that wraps Z3…
  • mythrilMythril analyzes EVM bytecode for security vulnerabilities in smart…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also deal · icontract · PyBoolector · z3-solver · cvc5 · mythril · cisco-ai-skill-scanner · hypothesis · pyvcg · pytest-astropy