Recommend your plugin from your CLI changedplugins/cli-hints
Nearest release: v2.1.283, published under an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 25 Sep 2026 18:09 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 20 Oct 2026 18:37 UTC.
Upstream edited
Recorded here
Lines+30added
Lines−32removed
From line
6
where the diff opens
First seen
25 Sep 2026
this site's first read of the page
Recorded edits5to this page, all time
The whole hunk
from line 6, old and new numbered
/
from line 6
66
77This page applies only if your plugin is listed in `claude-plugins-official` or another marketplace with one of Anthropic's [official marketplace names](/docs/en/plugins/security#official-marketplace-names). The community marketplace, `claude-community`, isn't one of them.
88
9<Note>
10 To publish a plugin, see [Publish and distribute a plugin](/docs/en/plugins/publish).
11</Note>
9> [!NOTE]
10>
11> To publish a plugin, see [Publish and distribute a plugin](/docs/en/plugins/publish).
1212
1313## Emit the hint
1414
from line 23
2323
2424The following examples gate on `CLAUDECODE` for the widest reach and emit a hint for a plugin named `example-cli` in the official marketplace:
2525
26<CodeGroup>
27 ```javascript Node.js theme={null}
28 if (process.env.CLAUDECODE) {
29 process.stderr.write(
30 '<claude-code-hint v="1" type="plugin" value="example-cli@claude-plugins-official" />\n',
31 )
32 }
33 ```
26```javascript Node.js theme={null}
27if (process.env.CLAUDECODE) {
28 process.stderr.write(
29 '<claude-code-hint v="1" type="plugin" value="example-cli@claude-plugins-official" />\n',
30 )
31}
32```
3433
35 ```python Python theme={null}
36 import os, sys
34```python Python theme={null}
35import os, sys
3736
38 if os.environ.get("CLAUDECODE"):
39 print(
40 '<claude-code-hint v="1" type="plugin" value="example-cli@claude-plugins-official" />',
41 file=sys.stderr,
42 )
43 ```
37if os.environ.get("CLAUDECODE"):
38 print(
39 '<claude-code-hint v="1" type="plugin" value="example-cli@claude-plugins-official" />',
40 file=sys.stderr,
41 )
42```
4443
45 ```go Go theme={null}
46 if os.Getenv("CLAUDECODE") != "" {
47 fmt.Fprintln(os.Stderr,
48 `<claude-code-hint v="1" type="plugin" value="example-cli@claude-plugins-official" />`)
49 }
50 ```
44```go Go theme={null}
45if os.Getenv("CLAUDECODE") != "" {
46 fmt.Fprintln(os.Stderr,
47 `<claude-code-hint v="1" type="plugin" value="example-cli@claude-plugins-official" />`)
48}
49```
5150
52 ```shell Shell theme={null}
53 if [ -n "$CLAUDECODE" ]; then
54 printf '%s\n' '<claude-code-hint v="1" type="plugin" value="example-cli@claude-plugins-official" />' >&2
55 fi
56 ```
57</CodeGroup>
51```shell Shell theme={null}
52if [ -n "$CLAUDECODE" ]; then
53 printf '%s\n' '<claude-code-hint v="1" type="plugin" value="example-cli@claude-plugins-official" />' >&2
54fi
55```
5856
5957Replace `example-cli` with your plugin's name in the official marketplace.
6058
No line in this hunk matches that.