<!-- Generated by scripts/build-package-readmes.mjs — do not edit by hand.
     Change the package's "description" (or the generator template) and run
     `pnpm docs:readmes`. CI enforces sync via `pnpm docs:readmes:check`. -->

# @opensip-cli/clone-detection

> Shared function-body clone-detection substrate for OpenSIP CLI — hash/MinHash primitives + duplicate/near-duplicate algorithms over a tool-neutral candidate type

This is an **internal library** of the opensip-cli toolkit. It is published so the CLI and tools can depend on it; most users will not install it directly.

Part of [**opensip-cli**](https://github.com/opensip-ai/opensip-cli) — an open-source codebase intelligence CLI: fitness checks (`fit`), static call-graph analysis (`graph`), simulation (`sim`), and advisory reduction audits (`yagni`).

**Distribution model:** the published `opensip-cli` npm package is a full-stack bundle of first-party tools, check packs, and language adapters. Third-party tools install separately via the `opensipTools` manifest and host allowlist; a slim install without bundled tools is not a current goal.

## Install

Most users install the CLI, which bundles the first-party tools:

```bash
curl -fsSL https://opensip.ai/cli/install.sh | bash
```

This package is published for the CLI and advanced plugin authors; most users should not install `@opensip-cli/clone-detection` directly.

## Documentation

- 📚 Project docs: https://opensip.ai/docs/opensip-cli/
- 🧭 Package catalog (what every package does): https://github.com/opensip-ai/opensip-cli/blob/v0.8.5/docs/public/70-reference/02-package-catalog.md
- 📦 Source: https://github.com/opensip-ai/opensip-cli/tree/v0.8.5/packages/clone-detection

## License

Apache-2.0 © opensip-ai
