The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(desktop): plugin descriptions + open the agent plugins folder
Brooklyn Nicholson44790bc9c87d
diff --git a/apps/desktop/src/app/settings/plugins-settings.tsx b/apps/desktop/src/app/settings/plugins-settings.tsxindex 311c1d32005..5cf841e9a22 100644--- a/apps/desktop/src/app/settings/plugins-settings.tsx+++ b/apps/desktop/src/app/settings/plugins-settings.tsx@@ -18,11 +18,12 @@ import {$agentPluginsError,$agentPluginsStatus,type AgentPluginRow,+ type GatewayRequest,loadAgentPlugins,toggleAgentPlugin} from '@/store/agent-plugins'import { notifyError } from '@/store/notifications'-import { $gatewayState } from '@/store/session'+import { $connection, $gatewayState } from '@/store/session'import { EmptyState, ListRowSkeleton, Pill, SettingsContent, SettingsSection } from './primitives'@@ -69,6 +70,31 @@ async function revealPluginsDir() {}}+// Agent plugins live under the BACKEND's hermes home (profile-aware), so the+// path comes from the gateway — not from the renderer's local HERMES_HOME.+// Callers gate on a local connection: openDir mkdir-creates the path, which+// must never happen for a directory that belongs to a remote box.+async function revealAgentPluginsDir(request: GatewayRequest) {+ try {+ const result = await request<{ home?: string }>('config.get', { key: 'profile' })+ const home = (result?.home ?? '').trim()++ if (!home) {+ notifyError('The backend did not report its home directory', 'Could not open the plugins folder')++ return+ }++ const opened = await window.hermesDesktop?.openDir?.(`${home}/plugins`)++ if (opened && !opened.ok) {+ notifyError(opened.error ?? 'unknown error', 'Could not open the plugins folder')+ }+ } catch (err) {+ notifyError(err, 'Could not open the plugins folder')+ }+}+// Compact row: name + pills and a wrapping description on the left, controls// pinned top-right. Same type scale as ListRow, without its wide control grid.function PluginLine({@@ -133,6 +159,7 @@ function AgentPluginsSection() {const p = t.settings.pluginsconst { requestGateway } = useGatewayRequest()const gatewayState = useStore($gatewayState)+ const connection = useStore($connection)const rows = useStore($agentPlugins)const status = useStore($agentPluginsStatus)const error = useStore($agentPluginsError)@@ -165,6 +192,20 @@ function AgentPluginsSection() {{p.agent.blurb}</p>+ {connection?.mode !== 'remote' && (+ <div className="mb-2 flex items-center gap-3">+ <Button+ onClick={() => void revealAgentPluginsDir(requestGateway)}+ size="sm"+ type="button"+ variant="textStrong"+ >+ <FolderOpen className="size-3.5" />+ <span>{p.openFolder}</span>+ </Button>+ </div>+ )}+<inputclassName="mb-2 w-full rounded-lg border border-(--ui-stroke-tertiary) bg-(--ui-bg-quinary) px-3 py-1.5 text-[length:var(--conversation-caption-font-size)] outline-none placeholder:text-(--ui-text-tertiary) focus:border-(--ui-stroke-secondary)"onChange={event => setQuery(event.target.value)}@@ -229,7 +270,7 @@ function PluginRow({ record }: { record: PluginRecord }) {record.status === 'error' ? (<span className="text-(--ui-danger,#f87171)">{record.error}</span>) : (- (record.file ?? record.id)+ (record.description ?? record.file ?? record.id))}title={diff --git a/apps/desktop/src/contrib/plugin.ts b/apps/desktop/src/contrib/plugin.tsindex 41789af769c..aa5d0f107ad 100644--- a/apps/desktop/src/contrib/plugin.ts+++ b/apps/desktop/src/contrib/plugin.ts@@ -93,6 +93,8 @@ export interface HermesPlugin {id: string/** Human name for settings / about UI. */name?: string+ /** One-liner for the settings inventory (what the plugin adds). */+ description?: string/** Registers on load when the user hasn't chosen (default true). Set false* for opt-in plugins: they inventory in Settings ▸ Plugins, off until the* user flips the switch. */diff --git a/apps/desktop/src/contrib/plugins-store.ts b/apps/desktop/src/contrib/plugins-store.tsindex 9e90a4cc0be..d7e7061722e 100644--- a/apps/desktop/src/contrib/plugins-store.ts+++ b/apps/desktop/src/contrib/plugins-store.ts@@ -18,6 +18,8 @@ export interface PluginRecord {name: stringkind: PluginKindstatus: PluginStatus+ /** One-liner from the plugin's own metadata (what it adds). */+ description?: string/** Load/registration failure message (status 'error'). */error?: string/** Absolute plugin.js path (disk plugins) — powers "Reveal in Finder". */diff --git a/apps/desktop/src/contrib/plugins.ts b/apps/desktop/src/contrib/plugins.tsindex d1cab8a32fb..1679a0832dc 100644--- a/apps/desktop/src/contrib/plugins.ts+++ b/apps/desktop/src/contrib/plugins.ts@@ -40,7 +40,12 @@ export function discoverBundledPlugins(): void {// Same inventory + live-toggle contract as runtime plugins: each bundled// plugin publishes a record with activate/deactivate handles, and a// persisted disable survives boots by skipping registration here.- const record = { id: plugin.id, name: plugin.name ?? plugin.id, kind: 'bundled' as const }+ const record = {+ id: plugin.id,+ name: plugin.name ?? plugin.id,+ description: plugin.description,+ kind: 'bundled' as const+ }let disposers: (() => void)[] = []const activate = () => {diff --git a/apps/desktop/src/contrib/runtime-loader.ts b/apps/desktop/src/contrib/runtime-loader.tsindex 27e6e40b95e..1fc5458a3a5 100644--- a/apps/desktop/src/contrib/runtime-loader.ts+++ b/apps/desktop/src/contrib/runtime-loader.ts@@ -139,6 +139,7 @@ export async function loadRuntimePlugin(const record = {id: plugin.id,name: plugin.name ?? plugin.id,+ description: plugin.description,kind: options.kind ?? 'disk',file: options.file}diff --git a/apps/desktop/src/plugins/kanban/plugin.tsx b/apps/desktop/src/plugins/kanban/plugin.tsxindex 41eb03df9c5..605f58ad3c6 100644--- a/apps/desktop/src/plugins/kanban/plugin.tsx+++ b/apps/desktop/src/plugins/kanban/plugin.tsx@@ -80,6 +80,7 @@ function KanbanCount() {const plugin: HermesPlugin = {id: 'kanban',name: 'Kanban',+ description: 'Multi-agent task board — board page, sidebar entry, and a live in-flight count in the status bar.',defaultEnabled: false,register(ctx) {ctx.i18n.register(KANBAN_LOCALES)