New --sparse CLI option and sparsePaths config field for marketplace plugin installation, enabling cone-mode sparse-checkout for monorepo plugin sources.
Usage
claude plugin marketplace add my-marketplace --sparse .claude-plugin plugins
Details
Uses git sparse-checkout in cone mode to clone only specified directories
Useful for monorepos where the marketplace lives in a subdirectory
Combines --filter=blob:none for blobless clones with sparse-checkout for minimal disk usage
If sparsePaths is removed from config but the repo is already sparse, triggers a re-clone for full checkout
Evidence
CLI option definition (search for "--sparse <paths...>", "sparse-checkout", "sparsePaths")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.