Skip to content

Feature: Use git sparse checkout for marketplace clone to reduce disk usage #2463

@liujacky2001

Description

@liujacky2001

Summary

When adding a plugin marketplace via /plugin marketplace add <repo-url>, the CLI clones the entire repository with git clone --depth 1. For repos that contain more than just plugins (e.g., source code, docs, prototypes), this wastes significant disk space.

Example:

  • Full clone: 138 MB
  • Actual files needed (.github/plugin/ + plugins/): ~117 KB (0.9%)

Proposal

Use git sparse checkout when cloning marketplace repos so that only the plugin-related files are fetched:

  1. .github/plugin/marketplace.json — the marketplace manifest
  2. Paths listed in marketplace.json plugins[].source entries — the actual plugin folders

Environment

  • Copilot CLI version: 1.0.15
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:pluginsPlugin system, marketplace, hooks, skills, extensions, and custom agents

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions