sp plugin

sp plugin installs immutable plugin versions pinned by the installed Spare Parts CLI release.

sp plugin list
sp plugin install lgtm --agent claude --dir .
sp plugin install lgtm --agent cursor --agent gemini
sp plugin install lgtm --all --dir .

The supported targets are claude, codex, cursor, copilot, gemini, and opencode. Repeat --agent to choose several, or use --all for the complete matrix. --dir selects the project and defaults to the current directory.

Installation downloads the official release archive and verifies the digest pinned by this version of sp. The archive contains one canonical command; the CLI renders only the native wrapper each selected agent needs.

Existing target files are preserved. Pass --force only when you intend to replace them, then start a new agent session so it discovers the command.

Install LGTM

The LGTM command delegates to sp lgtm. Installing it does not add a Git hook, edit memory or instruction files, or create a preference.

See LGTM agent plugins for first-use consent, pre-publish reminders, and the difference between the agent command and sp lgtm install.

Codex marketplace compatibility

Without --agent or --all, LGTM retains its earlier Codex marketplace installation path:

sp plugin install lgtm
sp plugin install lgtm --refresh

--refresh downloads and verifies the pinned plugin version again. Select --agent codex to use the shared project-native installation path instead.