find_shared_behaviors
Identify clusters of CLI commands, MCP tools, and VS Code commands that share the same underlying behavior, revealing cross-modality duplication in your codebase.
Instructions
List clusters of FEATUREs whose entry-points share an identical BEHAVIOR (same forward-slice hash).
Surfaces cross-modality duplication — e.g. "this CLI command is a thin wrapper around the same library function as that HTTP endpoint" or "this MCP tool and that VS Code command delegate to identical logic".
Each cluster contains:
hash: sha256 of the shared transitive call set (BEHAVIOR.metadata.hash)
effects: transitive effects (IO, MUTATION, …) attributed to the shared behavior
coreNodeCount: size of the shared forward slice
features: array of { id, type, name, file } — the FEATUREs that share this behavior
Cluster types are FEATURE node types: cli:command, mcp:tool, vscode:command (and any future domain types created by enrichers).
Returns clusters ordered by size (largest first), then hash (deterministic tie-break). Empty result means every FEATURE has a unique implementation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minClusterSize | No | Minimum FEATUREs per cluster (default: 2). Values below 2 are clamped to 2. | |
| limit | No | Maximum clusters to return (default: 100). |