Skip to content

The agent that grows with you

feat(website): catalog cards open the Desktop Install Plugin dialog by catalog name

teknium1d9fdaeb43475
diff --git a/website/docs/user-guide/features/plugins.md b/website/docs/user-guide/features/plugins.md
index bed32932166..ee3d49d29f1 100644
--- a/website/docs/user-guide/features/plugins.md
+++ b/website/docs/user-guide/features/plugins.md
@@ -390,22 +390,24 @@ Hermes Desktop registers the `hermes://` URL scheme, so a website, README, or
chat message can link straight to a plugin install:
```
-hermes://plugin/install?repo=owner/repo # main install link
+hermes://plugin/install?catalog=NAME # catalog entry, installs the reviewed pin
+hermes://plugin/install?repo=owner/repo # any git repo
hermes://plugin/install?repo=owner/repo&enable=1 # enable the agent plugin after install
hermes://plugin/install?repo=owner/repo&force=1 # replace an existing install
hermes://plugin/install?catalog=<name> # reviewed catalog entry at its pinned commit
```
-The `catalog=<name>` form takes a [Plugin Catalog](./plugin-catalog.md)
-name instead of a repo. Desktop resolves it against the live catalog (the
-same feed the **Capabilities → Plugins** picker shows) and opens the same
-**reviewed catalog entry** dialog an in-app pick does: the agent half installs
-at the catalog's pinned commit, never the branch tip. A name that is not in
-the catalog shows an error toast and nothing else — it is never reinterpreted
-as a git path, so a link cannot smuggle an unreviewed repo behind a
+The `catalog=<name>` form is what the **Open in Hermes Desktop** button on
+every [Plugin Catalog](./plugin-catalog.md) card uses. Desktop resolves the
+name against the live catalog (the same feed the **Capabilities → Plugins**
+picker shows) and opens the same **reviewed catalog entry** dialog an in-app
+pick does: the agent half installs at the catalog's pinned commit, never the
+branch tip. The link carries no repo URL, and a name that is not in the
+catalog shows an error toast and nothing else — it is never reinterpreted as a
+git path, so a link cannot smuggle an unreviewed repo behind a
familiar-looking name.
-Clicking one opens Hermes and shows a **confirmation dialog** — the repo id,
+For a `repo=` link, clicking one opens Hermes and shows a **confirmation dialog** — the repo id,
a "Before you install" note, and GitHub browse + clone links — then
shallow-clones the repo to detect what it ships (an **agent plugin** —
backend Python, a **desktop plugin** — app UI, or both). You pick the
diff --git a/website/src/pages/plugins/index.tsx b/website/src/pages/plugins/index.tsx
index e1e770296e9..73621cd489b 100644
--- a/website/src/pages/plugins/index.tsx
+++ b/website/src/pages/plugins/index.tsx
@@ -52,6 +52,12 @@ const META_URL = "/docs/api/plugins-meta.json";
// Docs section describing the PR-based submission workflow.
const SUBMIT_PLUGIN_URL = "/user-guide/features/plugin-catalog#submitting-a-plugin-to-the-catalog";
+/** Deep link into the Desktop app's Install Plugin dialog, catalog mode: the app
+ * resolves the reviewed pin itself, so the page never hands it a repo URL. */
+function desktopInstallLink(name: string): string {
+ return `hermes://plugin/install?catalog=${encodeURIComponent(name)}`;
+}
+
const TIER_CONFIG: Record<
string,
{ label: string; color: string; bg: string; border: string; icon: string }
@@ -288,7 +294,7 @@ function PluginCard({
))}
</div>
- {onPick && (
+ {onPick ? (
<button
className={styles.pickBtn}
onClick={(e) => {
@@ -298,6 +304,15 @@ function PluginCard({
>
+ Add to this Agent
</button>
+ ) : (
+ <a
+ className={styles.pickBtn}
+ href={desktopInstallLink(plugin.name)}
+ title="Opens the Install Plugin dialog in Hermes Desktop at the reviewed version. No app? Use the install command below."
+ onClick={(e) => e.stopPropagation()}
+ >
+ Open in Hermes Desktop
+ </a>
)}
{expanded && (
diff --git a/website/src/pages/plugins/styles.module.css b/website/src/pages/plugins/styles.module.css
index 05d097e5005..af08d39cc93 100644
--- a/website/src/pages/plugins/styles.module.css
+++ b/website/src/pages/plugins/styles.module.css
@@ -911,4 +911,10 @@
.pickBtn:hover {
background: var(--ifm-color-primary);
color: #fff;
+ text-decoration: none;
+}
+
+a.pickBtn {
+ text-align: center;
+ text-decoration: none;
}