Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-code

One read of Claude Code CLIclaude-code-20261202T043702Z

3 pages moved out of 220 read.

Pages moved 3 significant first
Pages read 220 in this capture
Captured 04:37 UTC
Corpus hash 0c04b9333523 corpus-hash

What this read moved

1-3 of 3

plugins/dependencies Changed · +11 / -9 lines

from line 2
22 
33> Declare the plugins your plugin depends on, with version ranges such as ^1.2, and see how Claude Code installs, resolves, and prunes them.
44 
5A plugin dependency is another plugin that your plugin relies on, such as one whose MCP server or skill it calls. Each dependency tracks the latest version its marketplace provides unless you declare a version constraint, a semantic-version range such as `^2.0` or `~2.1.0` that you've tested against.
5A plugin dependency is another plugin that your plugin relies on, such as one whose MCP server or skill it calls. For each dependency, you can declare a version constraint, a semantic-version range such as `^2.0` or `~2.1.0` that you've tested against.
66 
77This page is for plugin authors who declare dependencies in `plugin.json` and for marketplace maintainers who tag releases.
88 
from line 18
1818 
1919## Declare dependencies
2020 
21Without a version constraint, a dependency moves to each new release its marketplace publishes the next time users update. If that release renames an MCP tool your plugin calls, your plugin breaks for everyone who updates.
21Without a version constraint, your plugin accepts any new release of a dependency. If that release renames an MCP tool your plugin calls, your plugin breaks for everyone who updates.
2222 
2323With a constraint such as `~2.1.0` on a dependency from a git-backed source, users who have your plugin installed keep receiving `2.1.x` patches of the dependency and never move to `2.2`. To upgrade on your own schedule, test against a newer release and then publish a new version of your plugin with a wider constraint.
2424 
from line 37
3737}
3838```
3939 
40An entry can be a string: the plugin name alone, such as `"audit-logger"` in this manifest, or `"name@marketplace"` to resolve it in another marketplace. With a bare string, your plugin depends on whatever version that plugin's marketplace provides.
40An entry can be a string: the plugin name alone, such as `"audit-logger"` in this manifest, or `"name@marketplace"` to resolve it in another marketplace. With a bare string, your plugin accepts any version of the dependency.
4141 
4242To set a version constraint, use an object with these fields, each a string:
4343 
from line 44
4444| Field | Description |
4545| :- | :- |
4646| `name` | The dependency's plugin name, as it appears in its marketplace entry. Claude Code looks it up in the same marketplace as the declaring plugin unless you set `marketplace`. Required. |
47| `version` | A [semantic-version range](https://github.com/npm/node-semver#ranges) such as `~2.1.0`, `^2.0`, `>=1.4`, or `=2.1.0`. The dependency installs at the highest git tag that satisfies this range, so the dependency's maintainer must [tag releases](#tag-plugin-releases-for-version-resolution). |
47| `version` | A [semantic-version range](https://github.com/npm/node-semver#ranges) such as `~2.1.0`, `^2.0`, `>=1.4`, or `=2.1.0`. For a git-backed dependency, check that its maintainer [tags releases](#tag-plugin-releases-for-version-resolution), and see [how a constraint resolves against tags](#how-a-constraint-resolves-against-tags). |
4848| `marketplace` | A different marketplace to resolve `name` in. An allowlist controls cross-marketplace dependencies, described in [Depend on a plugin from another marketplace](#depend-on-a-plugin-from-another-marketplace). |
4949 
5050A range doesn't match pre-release versions such as `2.0.0-beta.1` unless you opt in with a pre-release suffix such as `^2.0.0-0`.
from line 161
161161 
162162### Constrain a dependency that has a non-git source
163163 
164Tag-based resolution applies only to git-backed sources. For a dependency with an `npm`, `archive`, or `command` [plugin source](https://code.claude.com/docs/en/plugins/marketplace-reference.md#plugin-sources), the constraint doesn't control which version is fetched. It's still checked when the plugin loads, and the dependent plugin is disabled if the installed version doesn't satisfy it.
164Tag-based resolution applies only to git-backed sources. For a dependency with an `npm`, `archive`, or `command` [plugin source](https://code.claude.com/docs/en/plugins/marketplace-reference.md#plugin-sources), your users can get a version outside the constraint. The constraint is still checked when the plugin loads, and the dependent plugin is disabled if the installed version doesn't satisfy it.
165165 
166166For `npm`, `archive`, and `command` sources, the version checked is the `version` in the dependency's `plugin.json`. Set one there before you constrain that dependency, because a `plugin.json` that sets no version satisfies no constraint.
167167 
from line 183
183183 
184184### How a constraint resolves against tags
185185 
186When a user installs a plugin that declares `{ "name": "secrets-vault", "version": "~2.1.0" }`, the dependency installs from the highest `secrets-vault--v` tag that satisfies `~2.1.0` on the repository that hosts `secrets-vault`. When no tag satisfies the range, the install either fails or uses the marketplace's current copy:
186To resolve `{ "name": "secrets-vault", "version": "~2.1.0" }` against tags, Claude Code looks up the highest `secrets-vault--v` tag that satisfies `~2.1.0` on the repository that hosts `secrets-vault`. If that release doesn't support a user's Claude Code version, the user can get [an earlier release](https://code.claude.com/docs/en/plugins/publish.md#offer-an-earlier-compatible-release) that satisfies `~2.1.0`. When no tag satisfies `~2.1.0`, the install either fails or uses the marketplace's current copy:
187187 
188188* **Plugin with its own repository**: the install fails with a message containing `Dependency "secrets-vault@your-marketplace" has no git tag satisfying`.
189189* **Plugin referenced by a relative path**: the install uses the marketplace's current copy instead, and the constraint is checked when the plugin loads. If that copy is outside the range, the dependent plugin stays disabled and `claude plugin list` shows `Requires "secrets-vault@your-marketplace" ~2.1.0, installed 3.0.0`.
from line 200
200200 
201201### Combine constraints from several plugins
202202 
203When several installed plugins constrain the same dependency, the dependency resolves to the highest version that satisfies all of their ranges. Common combinations resolve like this:
203When several installed plugins constrain the same dependency and Claude Code installs or updates it from tags, it looks up the highest tag that satisfies all of their ranges.
204204 
205Common combinations resolve like this:
206 
205207| Plugin A requires | Plugin B requires | Result |
206208| :- | :- | :- |
207| `^2.0` | `>=2.1` | One install at the highest `2.x` tag at or above `2.1.0`. Both plugins load. |
209| `^2.0` | `>=2.1` | A `2.x` version at or above `2.1.0` satisfies both plugins. |
208210| `~2.1` | `~3.0` | Installing plugin B fails with a `has conflicting version requirements` message. Plugin A and the dependency stay as they were. |
209211| `=2.1.0` | none | The dependency stays at `2.1.0`. Auto-update skips newer versions while plugin A is installed. |
210212 
211Auto-update fetches a constrained dependency at the highest git tag that satisfies every installed plugin's range, rather than at the marketplace's latest version. If the installed plugins' ranges don't overlap, auto-update leaves that dependency at its current version, and the `/plugin` **Errors** tab shows an entry naming the constraining plugin. If they overlap but no tag falls in the range, auto-update fetches the marketplace's current copy and skips the update when that copy's `version` falls outside any installed plugin's range.
213If the installed plugins' ranges don't overlap, auto-update leaves that dependency at its current version, and the `/plugin` **Errors** tab shows an entry naming the constraining plugin. If they overlap but no tag falls in the range, auto-update falls back to the marketplace's current copy. It skips the update when that copy's `version` falls outside any installed plugin's range.
212214 
213215When a user uninstalls the last plugin that constrains a dependency, the dependency is no longer constrained to a version range and resumes tracking its marketplace entry on the next update.
214216 

plugins/publish Changed · +20 / -0 lines

### Offer an earlier compatible release

from line 167
167167 
168168To tag, run `claude plugin tag` in your shell from the plugin directory. It creates a `{name}--v{version}` tag. Add `--push` to send the tag to `origin`. The [`plugin tag` reference](https://code.claude.com/docs/en/plugins/cli-reference#plugin-tag) lists its flags.
169169 
170### Offer an earlier compatible release
171 
172To keep serving users whose Claude Code version is outside your newest release's [`engines` range](https://code.claude.com/docs/en/plugins/manifest-reference#fields), tag an earlier release that supports their version. Those users can then get that release when they install from your marketplace or update from a lower version. They need Claude Code v2.1.323 or later.
173 
174For a `github`, `url`, `git-subdir`, or relative-path [source](https://code.claude.com/docs/en/plugins/marketplace-reference.md#plugin-sources), set up your tags and marketplace entry so that Claude Code can find the release:
175 
176* **Tag each release**: set `version` in `plugin.json`, then [create and push a tag](https://code.claude.com/docs/en/plugins/dependencies.md#create-a-release-tag) in [the repository that hosts the plugin](https://code.claude.com/docs/en/plugins/dependencies.md#tag-plugin-releases-for-version-resolution). To tag a past release, check out its commit first
177* **Keep a compatible release among your five highest tags**: Claude Code tries up to five, highest first. It skips pre-release versions and tags at or above the out-of-range release's version, so increment `version` when you change the range
178* **Match the names**: give the entry the same `name` as `plugin.json`, because Claude Code looks up tags by the entry's name
179* **Leave `engines` out of the entry**: set the range in `plugin.json`. Claude Code applies the entry's range to an earlier release that sets none, which can exclude those users
180* **Leave the source unpinned**: omit `ref` and `sha` from the source. For a relative path, tell users to add your marketplace's git repository without a ref such as `#stable`
181* **Plan for users with no GitHub SSH key**: for a source written as `owner/repo`, or a relative path in a marketplace added that way, tell them to set [`CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1`](https://code.claude.com/docs/en/env-vars#variables) so that the tag lookup uses HTTPS
182 
183To test the setup:
184 
1851. [Install a Claude Code version](https://code.claude.com/docs/en/setup.md#install-a-specific-version), v2.1.323 or later, that the earlier release supports and the newest doesn't.
1862. Add the marketplace from its git host.
1873. With the plugin not yet installed, run `claude plugin install deploy-helper@your-marketplace` in your shell.
1884. Look for text such as `Installed 1.4.0, the newest that works on your version`.
189 
170190### Rename or remove a plugin
171191 
172192Never change a published plugin's `name`. After a rename, users who already installed it lose the plugin, because their install is recorded under the old name. A `renames` entry in your marketplace file migrates them instead. Change `displayName` when you want a different label.

plugins/marketplace-reference Changed · +2 / -2 lines

from line 98
9898 
9999The entry's fields apply differently to a fetched plugin that has its own `.claude-plugin/plugin.json` and to one that doesn't:
100100 
101* **No `plugin.json`**: the entry is the manifest regardless of `strict`. Every manifest field that the entry accepts applies, including [`mcpServers`, `lspServers`, `userConfig`, and `channels`](https://code.claude.com/docs/en/plugins/manifest-reference).
101* **No `plugin.json`**: the entry is the manifest regardless of `strict`. Entry fields such as [`mcpServers`, `lspServers`, `userConfig`, and `channels`](https://code.claude.com/docs/en/plugins/manifest-reference) apply.
102102* **`plugin.json` present**: `plugin.json` is the manifest. [Strict mode](#strict-mode) decides whether the entry's six component fields, `commands`, `agents`, `skills`, `hooks`, `outputStyles`, and `themes`, are combined with it or rejected as a conflict. Entry `mcpServers`, `lspServers`, `userConfig`, and `channels` don't apply. Declare them in `plugin.json`.
103103 
104104#### Hooks in an entry
from line 408
408408| `sparsePaths` | `github`, `git` | Array of directories for a sparse checkout, such as `[".claude-plugin", "plugins"]`. `claude plugin marketplace add --sparse` sets it |
409409| `skipLfs` | `github`, `git` | Accepted and has no effect. See [Keep plugin files out of Git LFS](https://code.claude.com/docs/en/plugins/host-marketplace.md#keep-plugin-files-out-of-git-lfs) |
410410| `name` | `settings` | Must equal the `extraKnownMarketplaces` key and can't be a [reserved name](#reserved-names) |
411| `plugins` | `settings` | The inline catalog, with no hosted file. Each item takes `name`, `source`, `description`, `version`, `strict`, `headers`, and `headersHelper`. Write each item's `source` as an object type, because a relative path has no repository to resolve against |
411| `plugins` | `settings` | The inline catalog, with no hosted file. Each item takes `name`, `source`, `description`, `version`, `strict`, [`engines`](#plugin-entries), `headers`, and `headersHelper`. Write each item's `source` as an object type, because a relative path has no repository to resolve against |
412412 
413413To keep refreshes and auto-updates from moving a `github` or `git` marketplace off a commit you've reviewed, set `ref` to that commit's full SHA, as in this source:
414414 
Feedback