pip install hoimin==0.8.12 Copy PIP instructions
hoimin is a mutation-testing CLI for Python, designed for AI agents to improve tests locally within explicit resource budgets. It makes small changes to copies of your source and runs your tests to find behavior they do not check.
An agent investigates selected survivors, adds tests grounded in the intended behavior, and verifies the improvement. Humans provide specification decisions and review changes. Mutation scores are diagnostic observations; equivalent mutants and specification-permitted changes make them unsuitable as a standalone quality target. CI use is optional. See the product principles.
Browse the documentation for installation, the agent workflow, resource limits, and command references. The site tracks main; for a particular release, read the Markdown at that release's Git tag. Maintainers can follow the publication guide.
uv tool install --python 3.14 hoimin Wheels require Python 3.14 and support macOS Apple Silicon, Linux x86_64 (glibc), and Windows x86_64. Run uv tool update-shell if hoimin is not on PATH, then open a new shell.
From your project directory, use a Python environment with passing tests and their dependencies installed. Choose the OS memory policy first, then replace src/calc.py with an existing file:
hoimin run --root . --file src/calc.py --format human -- python -m pytest -q Everything after -- is your project's test command. hoimin runs it once as a baseline, then for each selected mutation. Have your agent investigate a small batch of survivors for missing assertions or test cases; a survivor alone does not establish a test defect. macOS and Linux without delegated cgroups require --allow-best-effort-memory before --; macOS memory is not capped. See the resource limits.
See the usage reference for selectors and configuration, the step-by-step plan/verify workflow for a Git-independent example with a before/after test improvement, and results, or run hoimin --help. For questions and bug reports, see the reporting guide. External Issues and pull requests are not accepted. For maintainer development, see development and building and releases.
Licensed under Elastic License 2.0. See licensing details.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Built by GitHub Actions, verified by PyPI on Oct 15, 2026.




