The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): one Plugins surface — Capabilities → Plugins owns agent + desktop plugins, install, and the catalog
Teknium61afcde8f990
diff --git a/apps/desktop/src/app/command-palette/index.tsx b/apps/desktop/src/app/command-palette/index.tsxindex 7f1450adecd..d29b3df79ed 100644--- a/apps/desktop/src/app/command-palette/index.tsx+++ b/apps/desktop/src/app/command-palette/index.tsx@@ -400,7 +400,6 @@ type NonConfigSettingsLabel =| 'keysSettings'| 'keysTools'| 'mcp'- | 'plugins'| 'providerAccounts'| 'providerApiKeys'@@ -452,12 +451,6 @@ const NON_CONFIG_SETTINGS: ReadonlyArray<{labelKey: 'keysSettings',tab: 'keys&kview=settings'},- {- icon: Package,- keywords: ['plugins', 'extensions', 'desktop plugins', 'addon', 'add-on'],- labelKey: 'plugins',- tab: 'plugins'- },{ icon: Archive, keywords: ['history', 'archived'], labelKey: 'archivedChats', tab: 'sessions' },{ icon: Info, keywords: ['version', 'about'], labelKey: 'about', tab: 'about' }]@@ -1116,6 +1109,13 @@ function CommandPaletteBody({ onExited }: { onExited: () => void }) {keywords: ['mcp', 'servers', 'tools', 'capabilities', 'model context protocol'],label: `${capLabel}: ${t.skills.tabMcp}`,run: go(`${SKILLS_ROUTE}?tab=mcp`)+ },+ {+ icon: Package,+ id: 'cap-plugins',+ keywords: ['plugins', 'extensions', 'desktop plugins', 'agent plugins', 'catalog', 'addon', 'add-on'],+ label: `${capLabel}: ${t.skills.tabPlugins}`,+ run: go(`${SKILLS_ROUTE}?tab=plugins`)}]})@@ -1195,8 +1195,15 @@ function CommandPaletteBody({ onExited }: { onExited: () => void }) {if (settingsCatalog.pluginEntries.length > 0) {result.push({- heading: t.settings.nav.plugins,- items: settingsCatalog.pluginEntries.map(settingsEntryItem)+ heading: t.skills.tabPlugins,+ items: settingsCatalog.pluginEntries.map(entry => ({+ detail: entry.context,+ icon: entry.icon,+ id: `sp-${entry.id}`,+ keywords: [entry.context, entry.description ?? '', ...entry.keywords],+ label: entry.label,+ run: go(`${SKILLS_ROUTE}?tab=plugins&plugin=${encodeURIComponent(entry.plugin)}`)+ }))})}@@ -1305,13 +1312,6 @@ function CommandPaletteBody({ onExited }: { onExited: () => void }) {items: [...settingsCatalog.appearanceEntries, ...settingsCatalog.configEntries].map(settingsEntryItem)})- if (settingsCatalog.pluginEntries.length > 0) {- result.push({- heading: t.settings.nav.plugins,- items: settingsCatalog.pluginEntries.map(settingsEntryItem)- })- }-if (settingsCatalog.credentialEntries.length > 0) {result.push({heading: t.settings.nav.apiKeys,diff --git a/apps/desktop/src/app/settings/index.tsx b/apps/desktop/src/app/settings/index.tsxindex 8ca5de1dfef..e5eddbd0971 100644--- a/apps/desktop/src/app/settings/index.tsx+++ b/apps/desktop/src/app/settings/index.tsx@@ -18,7 +18,6 @@ import {Info,Keyboard,KeyRound,- Package,RefreshCw,Search,Settings2,@@ -40,7 +39,6 @@ import { useRouteEnumParam } from '../hooks/use-route-enum-param'import { OverlayIconButton } from '../overlays/overlay-chrome'import { OverlayMain, OverlayNav, type OverlayNavGroup, OverlaySplitLayout } from '../overlays/overlay-split-layout'import { OverlayView } from '../overlays/overlay-view'-import { SKILLS_ROUTE } from '../routes'import { AboutSettings } from './about-settings'import { AppearanceSettings } from './appearance-settings'@@ -50,8 +48,8 @@ import { SECTIONS } from './constants'import { GatewaySettings } from './gateway-settings'import { KeybindSettings } from './keybind-settings'import { KEYS_VIEWS, KeysSettings, type KeysView } from './keys-settings'+import { movedSettingsTabRedirect } from './moved-tabs'import { NotificationsSettings } from './notifications-settings'-import { PluginsSettings } from './plugins-settings'import { PROVIDER_VIEWS, ProvidersSettings, type ProviderView } from './providers-settings'import { SessionsSettings } from './sessions-settings'import type { SettingsPageProps, SettingsView as SettingsViewId } from './types'@@ -67,7 +65,6 @@ const SETTINGS_VIEWS: readonly SettingsViewId[] = ['keys','notifications','billing',- 'plugins','sessions','about']@@ -78,17 +75,14 @@ export function SettingsView({ onClose, onConfigSaved, onMainModelChanged }: Setconst navigate = useNavigate()const { hash, pathname, search } = useLocation()- // MCP moved out of Settings into Capabilities (/skills?tab=mcp). Keep old- // `/settings?tab=mcp` deep links working — `useRouteEnumParam` would silently- // coerce the unknown tab to the default view otherwise. Preserve `server=` so- // an old bookmark still lands on (and highlights) the selected server.+ // MCP and Plugins moved out of Settings into Capabilities. Keep old+ // `/settings?tab=mcp|plugins` deep links working — `useRouteEnumParam` would+ // silently coerce the unknown tab to the default view otherwise.useEffect(() => {- const params = new URLSearchParams(search)+ const redirect = movedSettingsTabRedirect(search)- if (params.get('tab') === 'mcp') {- const server = params.get('server')- const suffix = server ? `&server=${encodeURIComponent(server)}` : ''- navigate(`${SKILLS_ROUTE}?tab=mcp${suffix}`, { replace: true })+ if (redirect) {+ navigate(redirect, { replace: true })}}, [navigate, search])@@ -281,13 +275,6 @@ export function SettingsView({ onClose, onConfigSaved, onMainModelChanged }: Setlabel: t.settings.nav.apiKeys,onSelect: () => setActiveView('keys')},- {- active: activeView === 'plugins',- icon: Package,- id: 'plugins',- label: t.settings.nav.plugins,- onSelect: () => setActiveView('plugins')- },{active: activeView === 'sessions',icon: Archive,@@ -423,8 +410,6 @@ export function SettingsView({ onClose, onConfigSaved, onMainModelChanged }: Set<NotificationsSettings />) : activeView === 'billing' ? (<BillingSettings />- ) : activeView === 'plugins' ? (- <PluginsSettings />) : (<SessionsSettings />)diff --git a/apps/desktop/src/app/settings/moved-tabs.test.ts b/apps/desktop/src/app/settings/moved-tabs.test.tsnew file mode 100644index 00000000000..8f2c7ee6c26--- /dev/null+++ b/apps/desktop/src/app/settings/moved-tabs.test.ts@@ -0,0 +1,18 @@+import { describe, expect, it } from 'vitest'++import { movedSettingsTabRedirect } from './moved-tabs'++describe('movedSettingsTabRedirect', () => {+ it('sends the retired Settings plugin/MCP tabs to Capabilities, keeping the row selector', () => {+ expect(movedSettingsTabRedirect('?tab=plugins')).toBe('/skills?tab=plugins')+ expect(movedSettingsTabRedirect('?tab=plugins&plugin=demo%2Fplugin')).toBe(+ '/skills?tab=plugins&plugin=demo%2Fplugin'+ )+ expect(movedSettingsTabRedirect('?tab=mcp&server=github')).toBe('/skills?tab=mcp&server=github')+ })++ it('leaves live Settings tabs alone', () => {+ expect(movedSettingsTabRedirect('?tab=providers&pview=keys')).toBeNull()+ expect(movedSettingsTabRedirect('')).toBeNull()+ })+})diff --git a/apps/desktop/src/app/settings/moved-tabs.ts b/apps/desktop/src/app/settings/moved-tabs.tsnew file mode 100644index 00000000000..f9ba7b6cf2e--- /dev/null+++ b/apps/desktop/src/app/settings/moved-tabs.ts@@ -0,0 +1,23 @@+import { SKILLS_ROUTE } from '../routes'++// Settings tabs that now live in Capabilities → the row-selector param each+// carries (`?server=` for MCP, `?plugin=` for Plugins). Old bookmarks and+// palette links keep resolving to the same row on the new page.+const MOVED_TO_CAPABILITIES: Record<string, string> = { mcp: 'server', plugins: 'plugin' }++/** The Capabilities URL an old `/settings?tab=<moved>` query should land on,+ * or null when the tab still belongs to Settings. */+export function movedSettingsTabRedirect(search: string): null | string {+ const params = new URLSearchParams(search)+ const tab = params.get('tab')+ const rowParam = tab ? MOVED_TO_CAPABILITIES[tab] : undefined++ if (!tab || rowParam === undefined) {+ return null+ }++ const row = params.get(rowParam)+ const suffix = row ? `&${rowParam}=${encodeURIComponent(row)}` : ''++ return `${SKILLS_ROUTE}?tab=${tab}${suffix}`+}diff --git a/apps/desktop/src/app/settings/plugin-install-modal.test.tsx b/apps/desktop/src/app/settings/plugin-install-modal.test.tsxindex 246b8b8308d..3db67fe2f16 100644--- a/apps/desktop/src/app/settings/plugin-install-modal.test.tsx+++ b/apps/desktop/src/app/settings/plugin-install-modal.test.tsx@@ -3,7 +3,8 @@ import { act, cleanup, fireEvent, render, screen, waitFor } from '@testing-libraimport { MemoryRouter } from 'react-router'import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'-const { requestGateway } = vi.hoisted(() => ({ requestGateway: vi.fn() }))+// The host tab lists installed plugins on mount; only an `install` action counts as installing.+const { requestGateway } = vi.hoisted(() => ({ requestGateway: vi.fn(async () => ({ plugins: [] })) }))vi.mock('@/app/gateway/hooks/use-gateway-request', () => ({useGatewayRequest: () => ({ requestGateway })}))@@ -21,17 +22,18 @@ import {import { $activeGatewayProfile } from '@/store/profile'import { $connection, $gatewayState } from '@/store/session'+import { PluginsTab } from '../skills/plugins-tab'+import { PluginInstallModal } from './plugin-install-modal'-import { PluginsSettings } from './plugins-settings'const probePluginRepo = vi.fn()const installDesktopPlugin = vi.fn()const renderFlow = () =>render(- <MemoryRouter initialEntries={['/settings?tab=plugins']}>+ <MemoryRouter initialEntries={['/skills?tab=plugins']}><QueryClientProvider client={queryClient}>- <PluginsSettings />+ <PluginsTab profile={null} /><PluginInstallModal /></QueryClientProvider></MemoryRouter>@@ -79,7 +81,7 @@ describe('Install from Git entry flow', () => {)).toBeTruthy()expect(screen.getByText("Installs into this app's local desktop-plugins folder")).toBeTruthy()- expect(requestGateway).not.toHaveBeenCalled()+ expect(requestGateway).not.toHaveBeenCalledWith('plugins.manage', expect.objectContaining({ action: 'install' }))expect(installDesktopPlugin).not.toHaveBeenCalled()fireEvent.click(screen.getByRole('button', { name: 'Cancel' }))expect($pluginInstallRequest.get()).toBeNull()@@ -106,7 +108,7 @@ describe('Install from Git entry flow', () => {const boxes = screen.getAllByRole('checkbox')expect(boxes.map(box => box.getAttribute('aria-checked'))).toEqual(['false', 'true'])expect(probePluginRepo).toHaveBeenCalledTimes(1)- expect(requestGateway).not.toHaveBeenCalled()+ expect(requestGateway).not.toHaveBeenCalledWith('plugins.manage', expect.objectContaining({ action: 'install' }))expect(installDesktopPlugin).not.toHaveBeenCalled()})})diff --git a/apps/desktop/src/app/settings/plugins-settings.test.tsx b/apps/desktop/src/app/settings/plugins-settings.test.tsxdeleted file mode 100644index 355770de44a..00000000000--- a/apps/desktop/src/app/settings/plugins-settings.test.tsx+++ /dev/null@@ -1,129 +0,0 @@-import { cleanup, render, screen } from '@testing-library/react'-import { MemoryRouter } from 'react-router'-import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'--const { requestGateway } = vi.hoisted(() => ({- requestGateway: vi.fn(async () => ({ plugins: [] }))-}))--vi.mock('@/app/gateway/hooks/use-gateway-request', () => ({- useGatewayRequest: () => ({ requestGateway })-}))--import { $pluginRecords } from '@/contrib/plugins-store'-import { $agentPlugins, $agentPluginsStatus } from '@/store/agent-plugins'-import { $gatewayState } from '@/store/session'--import { PluginsSettings } from './plugins-settings'--const renderSettings = () =>- render(- <MemoryRouter>- <PluginsSettings />- </MemoryRouter>- )--beforeEach(() => {- requestGateway.mockClear()- $pluginRecords.set({})- $agentPlugins.set([])- $agentPluginsStatus.set('ready')- $gatewayState.set('idle')-})--afterEach(() => {- cleanup()- vi.restoreAllMocks()-})--describe('PluginsSettings', () => {- it('points agent-plugin management at Capabilities instead of duplicating the list', () => {- // Agent plugins are profile-scoped and managed in Capabilities → Plugins;- // Settings keeps desktop plugins only, plus a pointer.- $agentPlugins.set([- {- description: 'Should NOT be listed here anymore',- key: 'demo-plugin',- name: 'demo-plugin',- source: 'git',- status: 'enabled',- version: '1.0.0'- }- ])-- renderSettings()-- expect(screen.queryByText('demo-plugin')).toBeNull()- expect(screen.getByText(/managed per profile in Capabilities/)).toBeTruthy()- expect(screen.getByRole('link', { name: /Capabilities/ }).getAttribute('href')).toContain('/skills?tab=plugins')- })-- it('flags a unified-root desktop half whose agent half is missing on this backend', () => {- $pluginRecords.set({- 'pixel-overlay': {- id: 'pixel-overlay',- name: 'Pixel Overlay',- kind: 'disk',- status: 'loaded',- file: '/home/user/.hermes/plugins/pixel-overlay/desktop/plugin.js'- }- })- $agentPlugins.set([]) // connected backend has no agent half- $agentPluginsStatus.set('ready')-- renderSettings()-- expect(screen.getByText('agent half missing here')).toBeTruthy()- })-- it('does not flag when the agent half exists on the connected backend', () => {- $pluginRecords.set({- 'pixel-overlay': {- id: 'pixel-overlay',- name: 'Pixel Overlay',- kind: 'disk',- status: 'loaded',- file: '/home/user/.hermes/plugins/pixel-overlay/desktop/plugin.js'- }- })- $agentPlugins.set([- {- description: '',- key: 'pixel-overlay',- name: 'pixel-overlay',- source: 'user',- status: 'enabled',- version: '1.0.0'- }- ])-- renderSettings()-- expect(screen.queryByText('agent half missing here')).toBeNull()- })-- it('does not flag standalone desktop plugins (not from the unified root)', () => {- $pluginRecords.set({- standalone: {- id: 'standalone',- name: 'Standalone Theme',- kind: 'disk',- status: 'loaded',- file: '/home/user/.config/hermes-desktop/desktop-plugins/standalone/plugin.js'- }- })- $agentPlugins.set([])-- renderSettings()-- expect(screen.queryByText('agent half missing here')).toBeNull()- })-- it('loads the connected backend plugin list once the gateway opens (badge data)', () => {- $gatewayState.set('open')-- renderSettings()-- expect(requestGateway).toHaveBeenCalledWith('plugins.manage', expect.objectContaining({ action: 'list' }))- })-})diff --git a/apps/desktop/src/app/settings/settings-search.ts b/apps/desktop/src/app/settings/settings-search.tsindex cf8e269a0ca..84e9f924c83 100644--- a/apps/desktop/src/app/settings/settings-search.ts+++ b/apps/desktop/src/app/settings/settings-search.ts@@ -26,7 +26,6 @@ export interface SettingsSearchTarget {field?: stringkey?: stringkeysView?: CredentialSettingsView- plugin?: stringproviderView?: 'accounts' | 'custom-endpoints' | 'keys'setting?: stringview: SettingsView@@ -221,9 +220,5 @@ export function settingsSearchTargetQuery(target: SettingsSearchTarget): stringparams.set('key', target.key)}- if (target.plugin) {- params.set('plugin', target.plugin)- }-return params.toString()}diff --git a/apps/desktop/src/app/settings/types.ts b/apps/desktop/src/app/settings/types.tsindex 5ecdf27a4a2..18c42af1040 100644--- a/apps/desktop/src/app/settings/types.ts+++ b/apps/desktop/src/app/settings/types.ts@@ -12,7 +12,6 @@ export type SettingsView =| 'keybinds'| 'keys'| 'notifications'- | 'plugins'| 'providers'| 'sessions'| `config:${string}`diff --git a/apps/desktop/src/app/settings/use-settings-search.ts b/apps/desktop/src/app/settings/use-settings-search.tsindex d2607d32c0e..6bcaf1bbaca 100644--- a/apps/desktop/src/app/settings/use-settings-search.ts+++ b/apps/desktop/src/app/settings/use-settings-search.ts@@ -6,7 +6,7 @@ import { useGatewayRequest } from '@/app/gateway/hooks/use-gateway-request'import { $pluginRecords } from '@/contrib/plugins-store'import { getEnvVars, getHermesConfigSchema } from '@/hermes'import { useI18n } from '@/i18n'-import { Package, Palette, Settings2, Wrench } from '@/lib/icons'+import { type IconComponent, Monitor, Package, Palette, Settings2, Wrench } from '@/lib/icons'import { $agentPlugins, isDesktopRelevantPlugin, loadAgentPlugins } from '@/store/agent-plugins'import { $gatewayState } from '@/store/session'import { TRANSLUCENCY_SUPPORTED } from '@/store/translucency'@@ -21,6 +21,17 @@ import {type SettingsSearchEntry} from './settings-search'+/** An installed plugin row, deep-linkable as `/skills?tab=plugins&plugin=<id>`. */+export interface PluginSearchEntry {+ context: string+ description?: string+ icon: IconComponent+ id: string+ keywords: string[]+ label: string+ plugin: string+}+/*** The granular settings-search catalog (appearance controls, config fields,* credentials) for the command palette's Settings page. Page destinations stay@@ -71,26 +82,26 @@ export function useSettingsSearchCatalog(enabled: boolean) {}}, [enabled, gatewayState, requestGateway])- const pluginContext = t.settings.nav.plugins-- const pluginEntries: SettingsSearchEntry[] = [+ // Installed plugin rows (both halves) — they live on Capabilities → Plugins,+ // so each entry carries the `?plugin=` row selector for that page.+ const pluginEntries: PluginSearchEntry[] = [...Object.values(desktopPluginRecords).map(record => ({- context: pluginContext,+ context: t.settings.plugins.title,description: record.description,- icon: Package,+ icon: Monitor,id: `plugin:desktop:${record.id}`,- keywords: ['plugin', 'extension', record.id],+ keywords: ['plugin', 'extension', 'desktop', record.id],label: record.name,- target: { plugin: record.id, view: 'plugins' as const }+ plugin: record.id})),...agentPlugins.filter(isDesktopRelevantPlugin).map(row => ({- context: pluginContext,+ context: t.skills.plugins.agentTitle,description: row.description || undefined,icon: Package,id: `plugin:agent:${row.key ?? row.name}`,- keywords: ['plugin', 'extension', ...(row.key ? [row.key] : [])],+ keywords: ['plugin', 'extension', 'agent', ...(row.key ? [row.key] : [])],label: row.name,- target: { plugin: row.key ?? row.name, view: 'plugins' as const }+ plugin: row.key ?? row.name}))]diff --git a/apps/desktop/src/app/skills/desktop-plugins-section.test.tsx b/apps/desktop/src/app/skills/desktop-plugins-section.test.tsxnew file mode 100644index 00000000000..2ca3f756f81--- /dev/null+++ b/apps/desktop/src/app/skills/desktop-plugins-section.test.tsx@@ -0,0 +1,90 @@+import { cleanup, render, screen } from '@testing-library/react'+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'++import { $pluginRecords } from '@/contrib/plugins-store'+import { $agentPlugins, $agentPluginsStatus } from '@/store/agent-plugins'+import { $pluginInstallRequest, closePluginInstallRequest } from '@/store/plugin-install-request'++import { DesktopPluginsSection } from './desktop-plugins-section'++beforeEach(() => {+ $pluginRecords.set({})+ $agentPlugins.set([])+ $agentPluginsStatus.set('ready')+ closePluginInstallRequest()+})++afterEach(() => {+ cleanup()+ vi.restoreAllMocks()+})++describe('DesktopPluginsSection', () => {+ it('flags a unified-root desktop half whose agent half is missing in the scoped profile', () => {+ $pluginRecords.set({+ 'pixel-overlay': {+ id: 'pixel-overlay',+ name: 'Pixel Overlay',+ kind: 'disk',+ status: 'loaded',+ file: '/home/user/.hermes/plugins/pixel-overlay/desktop/plugin.js'+ }+ })+ $agentPlugins.set([]) // scoped backend has no agent half++ render(<DesktopPluginsSection profile="workbot" />)++ expect(screen.getByText('agent half missing here')).toBeTruthy()+ })++ it('does not flag when the agent half exists, nor standalone desktop plugins', () => {+ $pluginRecords.set({+ 'pixel-overlay': {+ id: 'pixel-overlay',+ name: 'Pixel Overlay',+ kind: 'disk',+ status: 'loaded',+ file: '/home/user/.hermes/plugins/pixel-overlay/desktop/plugin.js'+ },+ standalone: {+ id: 'standalone',+ name: 'Standalone Theme',+ kind: 'disk',+ status: 'loaded',+ file: '/home/user/.config/hermes-desktop/desktop-plugins/standalone/plugin.js'+ }+ })+ $agentPlugins.set([+ { description: '', key: 'pixel-overlay', name: 'pixel-overlay', source: 'user', status: 'enabled', version: '1.0.0' }+ ])++ render(<DesktopPluginsSection profile={null} />)++ expect(screen.queryByText('agent half missing here')).toBeNull()+ expect(screen.getByText('Pixel Overlay')).toBeTruthy()+ expect(screen.getByText('Standalone Theme')).toBeTruthy()+ })++ it('repairs the agent half into the SCOPED profile, not the active one', async () => {+ $pluginRecords.set({+ 'pixel-overlay': {+ id: 'pixel-overlay',+ name: 'Pixel Overlay',+ kind: 'disk',+ status: 'loaded',+ file: '/home/user/.hermes/plugins/pixel-overlay/desktop/plugin.js'+ }+ })++ render(<DesktopPluginsSection profile="workbot" />)+ screen.getByRole('button', { name: 'agent half missing here' }).click()++ await vi.waitFor(() => {+ const request = $pluginInstallRequest.get()++ expect(request?.profile).toBe('workbot')+ expect(request?.legacyHint).toBe('agent')+ expect(request?.repo).toBe('pixel-overlay')+ })+ })+})diff --git a/apps/desktop/src/app/settings/plugins-settings.tsx b/apps/desktop/src/app/skills/desktop-plugins-section.tsxsimilarity index 57%rename from apps/desktop/src/app/settings/plugins-settings.tsxrename to apps/desktop/src/app/skills/desktop-plugins-section.tsxindex c2912871abb..17b9bf1e7ca 100644--- a/apps/desktop/src/app/settings/plugins-settings.tsx+++ b/apps/desktop/src/app/skills/desktop-plugins-section.tsx@@ -1,8 +1,6 @@import { useStore } from '@nanostores/react'-import { type ReactNode, useEffect } from 'react'-import { Link } from 'react-router'+import type { ReactNode } from 'react'-import { useGatewayRequest } from '@/app/gateway/hooks/use-gateway-request'import { Button } from '@/components/ui/button'import { Codicon } from '@/components/ui/codicon'import { Switch } from '@/components/ui/switch'@@ -11,18 +9,17 @@ import { $pluginRecords, type PluginRecord, setPluginEnabled } from '@/contrib/pimport { discoverRuntimePlugins } from '@/contrib/runtime-loader'import { useI18n } from '@/i18n'import { triggerHaptic } from '@/lib/haptics'-import { FolderOpen, Monitor, Package, RefreshCw } from '@/lib/icons'-import { $agentPlugins, $agentPluginsStatus, loadAgentPlugins } from '@/store/agent-plugins'+import { FolderOpen, Monitor, RefreshCw } from '@/lib/icons'+import { $agentPlugins, $agentPluginsStatus } from '@/store/agent-plugins'import { notifyError } from '@/store/notifications'import { openPluginInstallRequest } from '@/store/plugin-install-request'-import { $gatewayState } from '@/store/session'-import { EmptyState, Pill, SettingsContent, SettingsSection } from './primitives'-import { useDeepLinkHighlight } from './use-deep-link-highlight'+import { Pill } from '../settings/primitives'const KIND_ORDER: Record<PluginRecord['kind'], number> = { disk: 0, runtime: 1, bundled: 2 }-/** Deep-link anchor for a plugin row (`?tab=plugins&plugin=<id>`). */+/** Deep-link anchor for a plugin row (`/skills?tab=plugins&plugin=<id>`); shared+ * by desktop rows (record id) and agent rows (canonical key). */export const pluginElementId = (target: string) => `plugin-${target}`function reveal(file: string) {@@ -53,36 +50,6 @@ async function revealPluginsDir() {}}-// 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({- title,- description,- controls,- id-}: {- title: ReactNode- description?: ReactNode- controls: ReactNode- id?: string-}) {- return (- <div className="flex items-start gap-3 rounded-lg py-2" id={id}>- <div className="min-w-0 flex-1 pr-4">- <div className="flex flex-wrap items-center gap-2 text-[length:var(--conversation-text-font-size)] font-medium text-foreground">- {title}- </div>- {description && (- <div className="mt-0.5 text-[length:var(--conversation-caption-font-size)] leading-(--conversation-caption-line-height) break-words text-(--ui-text-tertiary)">- {description}- </div>- )}- </div>- <div className="flex shrink-0 items-center gap-2">{controls}</div>- </div>- )-}-/** Folder name when a desktop plugin entry lives in the UNIFIED agent-plugins* root (`~/.hermes/plugins/<name>/desktop/plugin.js`) — i.e. it is the* desktop half of a bundled agent+desktop package. Null for standalone@@ -100,9 +67,9 @@ function unifiedPackageName(file?: string): null | string {/** Open the dual-target install modal pre-filled to install ONLY the agent* half of a bundled package (drift repair). Provenance comes from the* package's catalog sidecar when present; otherwise the git remote of the- * plugin folder is unknown and we fall back to asking the user via the- * standard flow with the folder name as identifier hint. */-async function repairAgentHalf(record: PluginRecord, packageName: string) {+ * plugin folder is unknown and we fall back to the folder name as the+ * identifier hint. */+async function repairAgentHalf(record: PluginRecord, packageName: string, profile: null | string) {let repo = ''let catalogName: string | undefinedlet sha: string | undefined@@ -130,17 +97,61 @@ async function repairAgentHalf(record: PluginRecord, packageName: string) {openPluginInstallRequest({catalogName,legacyHint: 'agent',+ profile,repo: repo || packageName,sha})}-function PluginRow({ record, agentHalfMissing }: { record: PluginRecord; agentHalfMissing?: boolean }) {+/** One list row, same type scale and rhythm as the agent-plugin rows above it. */+export function PluginListRow({+ title,+ description,+ controls,+ icon,+ id+}: {+ title: ReactNode+ description?: ReactNode+ controls: ReactNode+ icon: ReactNode+ id?: string+}) {+ return (+ <div+ className="flex items-start gap-3 border-b border-(--ui-stroke-tertiary) px-3 py-2 last:border-b-0"+ id={id}+ >+ {icon}+ <div className="min-w-0 flex-1">+ <div className="flex flex-wrap items-center gap-2 text-[length:var(--conversation-text-font-size)] font-medium text-foreground">+ {title}+ </div>+ {description && (+ <div className="mt-0.5 text-[length:var(--conversation-caption-font-size)] break-words text-(--ui-text-tertiary)">+ {description}+ </div>+ )}+ </div>+ <div className="flex shrink-0 items-center gap-2">{controls}</div>+ </div>+ )+}++function DesktopPluginRow({+ record,+ agentHalfMissing,+ profile+}: {+ record: PluginRecord+ agentHalfMissing?: boolean+ profile: null | string+}) {const { t } = useI18n()const p = t.settings.pluginsreturn (- <PluginLine+ <PluginListRowcontrols={<>{record.file && (@@ -167,6 +178,7 @@ function PluginRow({ record, agentHalfMissing }: { record: PluginRecord; agentHa(record.description ?? record.file ?? record.id))}+ icon={<Monitor aria-hidden className="mt-0.5 size-4 shrink-0 text-(--ui-text-tertiary)" />}id={pluginElementId(record.id)}title={<>@@ -177,7 +189,9 @@ function PluginRow({ record, agentHalfMissing }: { record: PluginRecord; agentHa<Tip label={p.agentHalfMissingTip}><ButtonclassName="h-5 px-1.5 text-[0.65rem]"- onClick={() => void repairAgentHalf(record, unifiedPackageName(record.file) ?? record.name)}+ onClick={() =>+ void repairAgentHalf(record, unifiedPackageName(record.file) ?? record.name, profile)+ }size="xs"variant="outline">@@ -191,99 +205,77 @@ function PluginRow({ record, agentHalfMissing }: { record: PluginRecord; agentHa)}-export function PluginsSettings() {+/** Plugins that extend THIS app (bundled, dropped into the desktop-plugins+ * folder, or the desktop half of a unified package). They belong to the+ * desktop, not to a profile, so the section is the same for every scope;+ * the drift badge compares against the SCOPED profile's agent list so a+ * bundled package missing its agent half where the user is looking gets a+ * one-click repair. */+export function DesktopPluginsSection({ profile }: { profile: null | string }) {const { t } = useI18n()const p = t.settings.pluginsconst records = useStore($pluginRecords)- const { requestGateway } = useGatewayRequest()- const gatewayState = useStore($gatewayState)- // The agent-plugin list for the CURRENTLY connected backend's active- // profile — used only to flag bundled packages whose desktop half is local- // but whose agent half is not installed where the app is now pointing (one- // desktop app, N agents: switching gateway/profile makes this drift visible- // instead of silent). Management of agent plugins lives in Capabilities →- // Plugins; this page keeps just the badge.const agentRows = useStore($agentPlugins)const agentStatus = useStore($agentPluginsStatus)const agentNames = new Set(agentRows.flatMap(row => [row.name, row.key ?? row.name]))- useEffect(() => {- if (gatewayState !== 'open') {- return- }-- void loadAgentPlugins(requestGateway)- }, [gatewayState, requestGateway])-- // Deep-link from settings search (?plugin=<id or key>): rows render as soon- // as their store hydrates, so "ready" is simply target-present; the polling- // in the hook rides out the async list loads (agent rows arrive via RPC).- useDeepLinkHighlight({- param: 'plugin',- ready: () => true,- elementId: pluginElementId- })-const rows = Object.values(records).sort((a, b) => KIND_ORDER[a.kind] - KIND_ORDER[b.kind] || a.name.localeCompare(b.name))return (- <SettingsContent>- <div className="mb-4">- <Button onClick={() => openPluginInstallRequest({ repo: '' })} size="sm" type="button" variant="secondary">- {p.installModal.installFromGit}- </Button>- </div>- <SettingsSection icon={Monitor} meta={p.count(rows.length)} title={p.title}>- <p className="mb-2 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">{p.blurb}</p>-- <div className="mb-2 flex items-center gap-3">- <Button onClick={() => void revealPluginsDir()} size="sm" type="button" variant="textStrong">- <FolderOpen className="size-3.5" />- <span>{p.openFolder}</span>- </Button>- <Button- onClick={() => {- triggerHaptic('selection')- void discoverRuntimePlugins()- }}- size="sm"- type="button"- variant="textStrong"- >- <RefreshCw className="size-3.5" />- <span>{p.rescan}</span>- </Button>- </div>-- {rows.length === 0 ? (- <EmptyState title={p.empty} />- ) : (- <div>- {rows.map(record => {- const packageName = unifiedPackageName(record.file)-- return (- <PluginRow- agentHalfMissing={packageName !== null && agentStatus === 'ready' && !agentNames.has(packageName)}- key={record.id}- record={record}- />- )- })}+ <section>+ <div className="flex items-center justify-between gap-3 px-3 pt-3 pb-1">+ <div className="min-w-0">+ <div className="text-[0.62rem] font-medium tracking-wide uppercase text-(--ui-text-quaternary)">+ {p.title} · {p.count(rows.length)}</div>- )}- </SettingsSection>+ <p className="mt-0.5 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">+ {p.blurb}+ </p>+ </div>+ <div className="flex shrink-0 items-center gap-1">+ <Tip label={p.openFolder}>+ <Button onClick={() => void revealPluginsDir()} size="icon" type="button" variant="ghost">+ <FolderOpen className="size-3.5" />+ </Button>+ </Tip>+ <Tip label={p.rescan}>+ <Button+ onClick={() => {+ triggerHaptic('selection')+ void discoverRuntimePlugins()+ }}+ size="icon"+ type="button"+ variant="ghost"+ >+ <RefreshCw className="size-3.5" />+ </Button>+ </Tip>+ </div>+ </div>- <SettingsSection icon={Package} title={p.agent.title}>- <p className="text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">- {p.agent.movedToCapabilities}{' '}- <Link className="text-(--ui-text-link,var(--ui-accent))" to="/skills?tab=plugins">- {p.agent.openCapabilities}- </Link>+ {rows.length === 0 ? (+ <p className="px-3 py-3 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">+ {p.empty}</p>- </SettingsSection>- </SettingsContent>+ ) : (+ <div className="flex flex-col">+ {rows.map(record => {+ const packageName = unifiedPackageName(record.file)++ return (+ <DesktopPluginRow+ agentHalfMissing={packageName !== null && agentStatus === 'ready' && !agentNames.has(packageName)}+ key={record.id}+ profile={profile}+ record={record}+ />+ )+ })}+ </div>+ )}+ </section>)}diff --git a/apps/desktop/src/app/skills/plugins-tab.tsx b/apps/desktop/src/app/skills/plugins-tab.tsxindex 0af5e08d3dc..2b743f6e83a 100644--- a/apps/desktop/src/app/skills/plugins-tab.tsx+++ b/apps/desktop/src/app/skills/plugins-tab.tsx@@ -25,6 +25,9 @@ import { $paneHeightOverride, setPaneHeightOverride } from '@/store/panes'import { openPluginInstallRequest } from '@/store/plugin-install-request'import { PanelEmpty } from '../overlays/panel'+import { useDeepLinkHighlight } from '../settings/use-deep-link-highlight'++import { DesktopPluginsSection, pluginElementId, PluginListRow } from './desktop-plugins-section'// The REAL Plugin Catalog page (docs site) embedded as a one-click picker —// the same pattern as the Skills tab's EmbeddedHubPicker. `?embed=picker`@@ -60,7 +63,7 @@ function profileParam(scope: ProfileScope): null | string {return typeof scope === 'string' ? scope : (scope.profile ?? null)}-function PluginRow({+function AgentPluginListRow({row,busy,onToggle,@@ -77,10 +80,26 @@ function PluginRow({const enabled = row.status === 'enabled'return (- <div className="flex items-start gap-3 border-b border-(--ui-stroke-tertiary) px-3 py-2 last:border-b-0">- <Package aria-hidden className="mt-0.5 size-4 shrink-0 text-(--ui-text-tertiary)" />- <div className="min-w-0 flex-1">- <div className="flex flex-wrap items-center gap-2 text-[length:var(--conversation-text-font-size)] font-medium text-foreground">+ <PluginListRow+ controls={+ <>+ {busy && <Loader2 className="size-3.5 animate-spin text-(--ui-text-tertiary)" />}+ {canToggle ? (+ <Switch aria-label={row.name} checked={enabled} disabled={busy} onCheckedChange={onToggle} />+ ) : (+ <Tip label={t.skills.plugins.legacyBackend}>+ <span>+ <Switch aria-label={row.name} checked={enabled} disabled />+ </span>+ </Tip>+ )}+ </>+ }+ description={row.description || undefined}+ icon={<Package aria-hidden className="mt-0.5 size-4 shrink-0 text-(--ui-text-tertiary)" />}+ id={pluginElementId(row.key ?? row.name)}+ title={+ <>{row.name}{row.version && <span className="text-(--ui-text-quaternary)">v{row.version}</span>}{row.portable && (@@ -106,32 +125,18 @@ function PluginRow({{t.skills.plugins.updateToPin(row.catalog_sha?.slice(0, 8) ?? '')}</Button>)}- </div>- {row.description && (- <div className="mt-0.5 text-[length:var(--conversation-caption-font-size)] break-words text-(--ui-text-tertiary)">- {row.description}- </div>- )}- </div>- <div className="flex shrink-0 items-center gap-2">- {busy && <Loader2 className="size-3.5 animate-spin text-(--ui-text-tertiary)" />}- {canToggle ? (- <Switch aria-label={row.name} checked={enabled} disabled={busy} onCheckedChange={onToggle} />- ) : (- <Tip label={t.skills.plugins.legacyBackend}>- <span>- <Switch aria-label={row.name} checked={enabled} disabled />- </span>- </Tip>- )}- </div>- </div>+ </>+ }+ />)}-/** Agent plugins for the Capabilities page: the scoped profile's installed- * plugins on top (toggleable), the live catalog picker underneath — same- * management-plus-discovery shape as the Skills tab. */+/** THE plugins surface. One page answers "what extends my Hermes?" for both+ * halves: agent plugins (backend, per profile — the scope selector above+ * picks which) and desktop plugins (this app, every profile). Discovery+ * sits with management: the live catalog picker underneath, plus a manual+ * "Install from Git" for anything not in the catalog. Settings no longer+ * carries a second, partial copy of this. */export const PluginsTab = memo(function PluginsTab({ profile }: { profile: ProfileScope }) {const { t } = useI18n()const p = t.skills.plugins@@ -150,6 +155,15 @@ export const PluginsTab = memo(function PluginsTab({ profile }: { profile: Proficonst visible = useMemo(() => rows.filter(isDesktopRelevantPlugin), [rows])+ // Deep-link from settings search / command palette (?plugin=<id or key>):+ // rows render as soon as their store hydrates, so "ready" is simply+ // target-present; the hook's polling rides out the async list loads.+ useDeepLinkHighlight({+ param: 'plugin',+ ready: () => true,+ elementId: pluginElementId+ })+// Catalog picker viewport (persisted height, collapse toggle) — same pane// store contract as EmbeddedHubPicker.const heightOverride = useStore($paneHeightOverride(CATALOG_PANE_ID))@@ -207,55 +221,85 @@ export const PluginsTab = memo(function PluginsTab({ profile }: { profile: Profireturn (<div className="flex h-full min-h-0 flex-col"><div className="min-h-32 flex-1 overflow-y-auto">- {status === 'error' ? (- <PanelEmpty- action={- <Button onClick={() => void loadAgentPlugins(requestGateway, scope)} size="sm">- {t.skills.refresh}- </Button>- }- description={error ?? undefined}- icon="error"- title={p.loadFailed}- />- ) : visible.length === 0 && status === 'ready' ? (- <PanelEmpty description={p.emptyHint} icon="package" title={p.empty} />- ) : (- <div className="flex flex-col">- {visible.map(row => (- <PluginRow- busy={busyKey === (row.key ?? row.name) || busyKey === row.name}- key={row.key ?? row.name}- onToggle={enable => {- if (!row.key) {- return- }+ <section>+ <div className="flex items-center justify-between gap-3 px-3 pt-3 pb-1">+ <div className="min-w-0">+ <div className="text-[0.62rem] font-medium tracking-wide uppercase text-(--ui-text-quaternary)">+ {p.agentTitle}+ </div>+ <p className="mt-0.5 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">+ {p.agentBlurb}+ </p>+ </div>+ <Button+ className="shrink-0"+ onClick={() => openPluginInstallRequest({ profile: scope, repo: '' })}+ size="sm"+ type="button"+ variant="secondary"+ >+ {t.settings.plugins.installModal.installFromGit}+ </Button>+ </div>- void toggleAgentPlugin(requestGateway, row.key, enable, p.toggleFailed(row.name), scope)- }}- onUpdate={- row.update_available- ? () => {- void updateAgentPlugin(requestGateway, row.name, p.updateFailed(row.name), scope).then(- applied => {- if (applied) {- notify({ kind: 'success', message: p.updated(row.name) })+ {status === 'error' ? (+ <PanelEmpty+ action={+ <Button onClick={() => void loadAgentPlugins(requestGateway, scope)} size="sm">+ {t.skills.refresh}+ </Button>+ }+ description={error ?? undefined}+ icon="error"+ title={p.loadFailed}+ />+ ) : visible.length === 0 && status === 'ready' ? (+ <p className="px-3 py-3 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">+ {p.empty} {p.emptyHint}+ </p>+ ) : (+ <div className="flex flex-col">+ {visible.map(row => (+ <AgentPluginListRow+ busy={busyKey === (row.key ?? row.name) || busyKey === row.name}+ key={row.key ?? row.name}+ onToggle={enable => {+ if (!row.key) {+ return+ }++ void toggleAgentPlugin(requestGateway, row.key, enable, p.toggleFailed(row.name), scope)+ }}+ onUpdate={+ row.update_available+ ? () => {+ void updateAgentPlugin(requestGateway, row.name, p.updateFailed(row.name), scope).then(+ applied => {+ if (applied) {+ notify({ kind: 'success', message: p.updated(row.name) })+ }}- }- )- }- : undefined- }- row={row}- />- ))}- </div>- )}+ )+ }+ : undefined+ }+ row={row}+ />+ ))}+ </div>+ )}+ </section>++ <div className="mt-2 mb-3 border-t border-(--ui-stroke-tertiary)">+ <DesktopPluginsSection profile={scope} />+ </div></div><section className={cn('relative flex min-h-9 flex-col overflow-hidden border-t border-(--ui-stroke-secondary)')}><div className="flex shrink-0 items-center justify-between px-3 py-1.5">- <span className="text-[0.7rem] font-medium text-(--ui-text-tertiary)">{p.catalogTitle}</span>+ <span className="text-[0.62rem] font-medium tracking-wide uppercase text-(--ui-text-quaternary)">+ {p.catalogTitle}+ </span><Button onClick={() => setPaneHeightOverride(CATALOG_PANE_ID, open ? 0 : undefined)} size="xs" variant="text">{open ? p.catalogHide : p.catalogBrowse}</Button>diff --git a/apps/desktop/src/components/pane-shell/tree/store.ts b/apps/desktop/src/components/pane-shell/tree/store.tsindex 3050b6cf227..6ffa3a0cca5 100644--- a/apps/desktop/src/components/pane-shell/tree/store.ts+++ b/apps/desktop/src/components/pane-shell/tree/store.ts@@ -190,7 +190,7 @@ function frontPaneInGroup(paneId: string) {* removed from the tree and remembered so adoption doesn't re-add them.* Reveal intent (a preview target, ⌘G) or a layout reset un-dismisses;* - closing the sole pane from a plugin disables that plugin, preserving the- * discoverable Settings → Plugins recovery path for single-pane plugins.+ * discoverable Capabilities → Plugins recovery path for single-pane plugins.*/const DISMISSED_KEY = 'hermes.desktop.dismissedPanes.v1'@@ -914,7 +914,7 @@ export function closeTreePane(paneId: string) {}// A single-pane plugin keeps the existing symmetric behavior: Close uses- // the same switch as Settings → Plugins. Its contribution unregisters but+ // the same switch as Capabilities → Plugins. Its contribution unregisters but// the pane id stays in the tree, so re-enabling restores its exact place.const pluginId = source.slice('plugin:'.length)void setPluginEnabled(pluginId, false)diff --git a/apps/desktop/src/contrib/plugin.ts b/apps/desktop/src/contrib/plugin.tsindex 6e7c793e772..648f4571184 100644--- a/apps/desktop/src/contrib/plugin.ts+++ b/apps/desktop/src/contrib/plugin.ts@@ -112,7 +112,7 @@ export interface HermesPlugin {/** 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+ * for opt-in plugins: they inventory in Capabilities ▸ Plugins, off until the* user flips the switch. */defaultEnabled?: boolean/** Called once at load; wire contributions through `ctx`. */diff --git a/apps/desktop/src/contrib/runtime-loader.test.ts b/apps/desktop/src/contrib/runtime-loader.test.tsindex 02d60addf8e..40fdcaad963 100644--- a/apps/desktop/src/contrib/runtime-loader.test.ts+++ b/apps/desktop/src/contrib/runtime-loader.test.ts@@ -203,7 +203,7 @@ describe('scanDiskPlugins (#66899)', () => {try {await discoverRuntimePlugins()- // Inventoried for Settings → Plugins, but the root's opt-in posture wins:+ // Inventoried for Capabilities → Plugins, but the root's opt-in posture wins:// ~/.hermes/plugins stays installed-but-inert until the user toggles it.expect($pluginRecords.get().uni).toMatchObject({ kind: 'disk', status: 'disabled' })expect(register).not.toHaveBeenCalled()diff --git a/apps/desktop/src/contrib/runtime-loader.ts b/apps/desktop/src/contrib/runtime-loader.tsindex a28a84fd053..223bf3f2dfb 100644--- a/apps/desktop/src/contrib/runtime-loader.ts+++ b/apps/desktop/src/contrib/runtime-loader.ts@@ -149,7 +149,7 @@ export async function loadRuntimePlugin(// is skipped — but VISIBLY: a silent skip left the stale folder// undiscoverable while (on shells without the bundled twin) the same// folder actively breaks the feature it shadows. The inventory row- // carries the file path so Settings → Plugins can reveal it for deletion.+ // carries the file path so Capabilities → Plugins can reveal it for deletion.if ($pluginRecords.get()[plugin.id]?.kind === 'bundled') {console.info(`[plugins] ${origin} skipped — "${plugin.id}" already ships bundled with the app`)publishPlugin({@@ -261,7 +261,7 @@ async function diskRoots(): Promise<DiskRoot[]> {if (unified) {// Opt-in by default: `~/.hermes/plugins` is installed-but-inert until the// user allowlists the Python half (plugins.enabled), so the desktop half- // matches that posture — inventoried in Settings → Plugins, off until+ // matches that posture — inventoried in Capabilities → Plugins, off until// toggled. The standalone desktop-plugins door keeps its default-on trust.roots.push({ defaultEnabled: false, dir: unified, entrySegments: ['desktop', 'plugin.js'] })}diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex 04143931323..0ffa3fb3135 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -382,8 +382,7 @@ export const ar = defineLocale({archivedChats: 'المحادثات المؤرشفة',about: 'حول',notifications: 'الإشعارات',- keybinds: 'اختصارات لوحة المفاتيح',- plugins: 'الإضافات'+ keybinds: 'اختصارات لوحة المفاتيح'},plugins: {title: 'إضافات سطح المكتب',@@ -2617,7 +2616,7 @@ export const ar = defineLocale({closeToRight: 'إغلاق ما على اليمين',closeAll: 'إغلاق الكل',pluginDisabled: pluginId => `الإضافة "${pluginId}" معطلة`,- pluginDisabledBody: 'أعد تفعيلها من الإعدادات ← الإضافات لإرجاع اللوحة.',+ pluginDisabledBody: 'أعد تفعيلها من القدرات ← الإضافات لإرجاع اللوحة.',missingPane: paneId => `لوحة مفقودة: ${paneId}`,editTitle: 'التخطيطات',editHint: 'اختر تخطيطا، أو اسحب اللوحات بين المناطق.',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 8ee28c337e7..a19ce321c1d 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -439,12 +439,11 @@ export const en: Translations = {archivedChats: 'Archived Chats',about: 'About',billing: 'Billing',- notifications: 'Notifications',- plugins: 'Plugins'+ notifications: 'Notifications'},plugins: {title: 'Desktop plugins',- blurb: 'Bundled or dropped into the desktop-plugins folder. Disable to unload live.',+ blurb: 'Extend this app — bundled or dropped into the desktop-plugins folder. Same for every profile; toggles apply live.',count: n => `${n} installed`,openFolder: 'Open plugins folder',rescan: 'Rescan',@@ -457,12 +456,6 @@ export const en: Translations = {agentHalfMissing: 'agent half missing here',agentHalfMissingTip:'This is the desktop half of a bundled plugin, but its agent half is not installed on the currently connected backend/profile. Install it from Capabilities → Plugins.',- agent: {- title: 'Agent plugins',- movedToCapabilities:- 'Agent plugins are managed per profile in Capabilities — installed list, toggles, and the plugin catalog live there.',- openCapabilities: 'Open Capabilities → Plugins'- },installModal: {installFromGit: 'Install from Git',reviewRepository: 'Review repository',@@ -1510,7 +1503,9 @@ export const en: Translations = {skillArchivedMessage: 'Restorable via hermes curator restore.',tabPlugins: 'Plugins',plugins: {- empty: 'No agent plugins installed for this profile',+ agentTitle: 'Agent plugins',+ agentBlurb: 'Extend the agent for the selected profile — tools, hooks, providers. Take effect after a gateway restart.',+ empty: 'No agent plugins installed for this profile.',emptyHint: 'Browse the catalog below and install a reviewed plugin with one click.',loadFailed: 'Could not load agent plugins',toggleFailed: (name: string) => `Could not toggle ${name}`,@@ -1746,7 +1741,7 @@ export const en: Translations = {nav: {newChat: { title: 'New session', detail: 'Start a fresh session' },settings: { title: 'Settings', detail: 'Configure Hermes desktop' },- skills: { title: 'Capabilities', detail: 'Skills, tools, and MCP servers' },+ skills: { title: 'Capabilities', detail: 'Skills, tools, MCP servers, and plugins' },messaging: { title: 'Messaging', detail: 'Set up Telegram, Slack, Discord, and more' },artifacts: { title: 'Artifacts', detail: 'Browse generated outputs' }},@@ -3489,7 +3484,7 @@ export const en: Translations = {newSessionTab: 'New session tab',newTab: 'New tab',pluginDisabled: pluginId => `Plugin "${pluginId}" disabled`,- pluginDisabledBody: 'Re-enable it in Settings → Plugins to bring the pane back.',+ pluginDisabledBody: 'Re-enable it in Capabilities → Plugins to bring the pane back.',missingPane: paneId => `missing pane: ${paneId}`,editTitle: 'Layouts',editHint: 'Pick a layout, or drag panes between zones.',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex 8dd6c83a864..3d514ff4715 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -3063,7 +3063,7 @@ export const ja = defineLocale({newSessionTab: '新しいセッションタブ',newTab: '新しいタブ',pluginDisabled: pluginId => `プラグイン「${pluginId}」を無効化しました`,- pluginDisabledBody: '設定 → プラグイン で再有効化するとペインが戻ります。',+ pluginDisabledBody: 'スキルとツール → プラグイン で再有効化するとペインが戻ります。',missingPane: paneId => `ペインが見つかりません: ${paneId}`,editTitle: 'レイアウト',editHint: 'レイアウトを選ぶか、ペインをゾーン間へドラッグ。',diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex d35e78d7aca..db660107e92 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -422,8 +422,7 @@ export const ru = defineLocale({archivedChats: 'Архив чатов',about: 'О программе',billing: 'Оплата',- notifications: 'Уведомления',- plugins: 'Плагины'+ notifications: 'Уведомления'},plugins: {title: 'Плагины приложения',@@ -437,12 +436,6 @@ export const ru = defineLocale({failed: 'ошибка',empty: 'Плагины приложения пока не установлены.',kinds: { bundled: 'встроенный', disk: 'на диске', runtime: 'runtime' },- agent: {- title: 'Плагины агента',- movedToCapabilities:- 'Плагины агента управляются для каждого профиля в разделе «Возможности» — список установленных, переключатели и каталог плагинов находятся там.',- openCapabilities: 'Открыть Возможности → Плагины'- },installModal: {title: 'Установка плагина',description: 'Перед установкой посмотрите, что содержит этот репозиторий.',@@ -3450,7 +3443,7 @@ export const ru = defineLocale({closeAll: 'Закрыть все',newSessionTab: 'Вкладка нового сеанса',pluginDisabled: pluginId => `Плагин «${pluginId}» отключён`,- pluginDisabledBody: 'Включите его снова в Настройки → Плагины, чтобы вернуть панель.',+ pluginDisabledBody: 'Включите его снова в Возможности → Плагины, чтобы вернуть панель.',missingPane: paneId => `нет панели: ${paneId}`,editTitle: 'Раскладки',editHint: 'Выберите раскладку или перетащите панели между зонами.',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 10012cdd38e..f3d38de25b0 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -382,7 +382,6 @@ export interface Translations {about: stringbilling: stringnotifications: string- plugins: string}plugins: {title: string@@ -398,11 +397,6 @@ export interface Translations {kinds: { bundled: string; disk: string; runtime: string }agentHalfMissing: stringagentHalfMissingTip: string- agent: {- title: string- movedToCapabilities: string- openCapabilities: string- }installModal: {installFromGit: stringreviewRepository: string@@ -1323,6 +1317,8 @@ export interface Translations {skillArchivedMessage: stringtabPlugins: stringplugins: {+ agentTitle: string+ agentBlurb: stringempty: stringemptyHint: stringloadFailed: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 6655bf96f25..f4efd0f132b 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -2957,7 +2957,7 @@ export const zhHant = defineLocale({newSessionTab: '新增工作階段分頁',newTab: '新增分頁',pluginDisabled: pluginId => `外掛「${pluginId}」已停用`,- pluginDisabledBody: '在 設定 → 外掛 中重新啟用即可恢復面板。',+ pluginDisabledBody: '在 技能與工具 → 外掛 中重新啟用即可恢復面板。',missingPane: paneId => `缺少面板:${paneId}`,editTitle: '版面配置',editHint: '選擇一個版面配置,或在區域之間拖曳面板。',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex b6964de3cc4..89927db1178 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -425,8 +425,7 @@ export const zh: Translations = {archivedChats: '已归档对话',about: '关于',billing: '账单',- notifications: '通知',- plugins: '插件'+ notifications: '通知'},plugins: {title: '桌面插件',@@ -444,11 +443,6 @@ export const zh: Translations = {agentHalfMissing: '此处缺少 agent 部分',agentHalfMissingTip:'这是捆绑插件的桌面部分,但其 agent 部分未安装在当前连接的后端/配置上。请在 能力 → 插件 中安装。',- agent: {- title: 'Agent 插件',- movedToCapabilities: 'Agent 插件按配置在「能力」页管理 — 已安装列表、开关和插件目录都在那里。',- openCapabilities: '打开 能力 → 插件'- },installModal: {installFromGit: '从 Git 安装',reviewRepository: '检查仓库',@@ -1681,7 +1675,9 @@ export const zh: Translations = {skillArchivedMessage: '可通过 hermes curator restore 恢复。',tabPlugins: '插件',plugins: {- empty: '此配置尚未安装任何 agent 插件',+ agentTitle: 'Agent 插件',+ agentBlurb: '为所选配置扩展 agent — 工具、钩子、模型提供方。重启网关后生效。',+ empty: '此配置尚未安装任何 agent 插件。',emptyHint: '在下方目录中浏览,一键安装经过审核的插件。',loadFailed: '无法加载 agent 插件',toggleFailed: (name: string) => `无法切换 ${name}`,@@ -3631,7 +3627,7 @@ export const zh: Translations = {newSessionTab: '新建会话标签',newTab: '新建标签页',pluginDisabled: pluginId => `插件“${pluginId}”已禁用`,- pluginDisabledBody: '在 设置 → 插件 中重新启用即可恢复面板。',+ pluginDisabledBody: '在 技能与工具 → 插件 中重新启用即可恢复面板。',missingPane: paneId => `缺少面板:${paneId}`,editTitle: '布局',editHint: '选择一个布局,或在区域之间拖动面板。',diff --git a/apps/desktop/src/plugins/README.md b/apps/desktop/src/plugins/README.mdindex 10ec027a9ab..674ded703d2 100644--- a/apps/desktop/src/plugins/README.md+++ b/apps/desktop/src/plugins/README.md@@ -6,7 +6,7 @@ the same inventory + live enable/disable contract as runtime plugins.Keep this tree for real shipped plugins (and the small authoring fixtures thatdogfood the SDK). One-off demos that rebuild a core chrome piece 1:1 do not-belong here — they double the UI and confuse Settings ▸ Plugins. Publish those+belong here — they double the UI and confuse Capabilities ▸ Plugins. Publish thosein the companion[`hermes-example-plugins`](https://github.com/NousResearch/hermes-example-plugins)repo instead.diff --git a/apps/desktop/src/plugins/accent/plugin.tsx b/apps/desktop/src/plugins/accent/plugin.tsxindex 2c45c1a8ab9..9ab708dd055 100644--- a/apps/desktop/src/plugins/accent/plugin.tsx+++ b/apps/desktop/src/plugins/accent/plugin.tsx@@ -7,7 +7,7 @@* that Appearance settings and ⌘K should be able to drive too, while the* statusbar picker is an authoring tool most users never need.*- * Ships OFF (`defaultEnabled: false`): it inventories in Settings ▸ Plugins and+ * Ships OFF (`defaultEnabled: false`): it inventories in Capabilities ▸ Plugins and* registers nothing until the switch is flipped. With it off, `$accentOverride`* stays null and `retintTheme` is never called — themes paint exactly as* authored.diff --git a/apps/desktop/src/plugins/hermes-bots/cron-selected-bot.test.ts b/apps/desktop/src/plugins/hermes-bots/cron-selected-bot.test.tsindex 51090213892..bd590dd242c 100644--- a/apps/desktop/src/plugins/hermes-bots/cron-selected-bot.test.ts+++ b/apps/desktop/src/plugins/hermes-bots/cron-selected-bot.test.ts@@ -4,7 +4,7 @@* #89625 (PR #89637 residual): nanostores' `.listen()` never replays the* current value the way `.subscribe()` does, so the focused-owner listener in* register() only kept `$selectedBot` current from the moment it was attached.- * A disable → profile switch → re-enable cycle (Settings ▸ Plugins) left+ * A disable → profile switch → re-enable cycle (Capabilities ▸ Plugins) left* `$selectedBot` pointed at whichever bot was active before the plugin was* disabled. `bindProfileSync` reseeds from the store's CURRENT value before* attaching the listener, so every register() starts in sync.diff --git a/apps/desktop/src/plugins/kanban/plugin.tsx b/apps/desktop/src/plugins/kanban/plugin.tsxindex e4131a359ee..bab22025df4 100644--- a/apps/desktop/src/plugins/kanban/plugin.tsx+++ b/apps/desktop/src/plugins/kanban/plugin.tsx@@ -6,7 +6,7 @@* backend, no core edits.** Ships OFF by default (`defaultEnabled: false`): it inventories in- * Settings ▸ Plugins and registers nothing until the user flips the switch.+ * Capabilities ▸ Plugins and registers nothing until the user flips the switch.*/import './kanban.css'diff --git a/apps/desktop/src/plugins/radio/README.md b/apps/desktop/src/plugins/radio/README.mdindex fd1270bb745..59a4cbc1d3a 100644--- a/apps/desktop/src/plugins/radio/README.md+++ b/apps/desktop/src/plugins/radio/README.md@@ -1,7 +1,7 @@# RadioBundled Hermes Desktop plugin, **off by default**. Enable **Radio** in-Settings → Plugins. Playback starts only when you press Play.+Capabilities → Plugins. Playback starts only when you press Play.## Controlsdiff --git a/apps/desktop/src/store/updates.ts b/apps/desktop/src/store/updates.tsindex 327c31b0a6e..b55a4313835 100644--- a/apps/desktop/src/store/updates.ts+++ b/apps/desktop/src/store/updates.ts@@ -100,7 +100,7 @@ function isUpdateToastSnoozed(): boolean {// v4: requires explicit Fast-off session creation and session-scoped Fast edits.// v5: requires raised WebSocket frame size for large one-shot file.attach.// v6: requires key-addressed plugins.manage rows (keyless rows render-// read-only in Settings → Plugins).+// read-only in Capabilities → Plugins).const REQUIRED_BACKEND_CONTRACT = 6const SKEW_TOAST_ID = 'backend-contract-skew'// The contract check runs on every session.resume (applyRuntimeInfo), sodiff --git a/website/docs/developer-guide/desktop-plugin-sdk.md b/website/docs/developer-guide/desktop-plugin-sdk.mdindex 6873e2d1d85..ea889e7f98f 100644--- a/website/docs/developer-guide/desktop-plugin-sdk.md+++ b/website/docs/developer-guide/desktop-plugin-sdk.md@@ -58,14 +58,14 @@ plugin, and fail to resolve in a disk plugin). Capability comes in tiers:| **Unified package** | `$HERMES_HOME/plugins/<id>/desktop/plugin.js` | plugins that also ship agent-side code | none — same disk pipeline || **Bundled** | `apps/desktop/src/plugins/<id>/plugin.tsx` | in-tree, shipped with the app | the app's own Vite build |-All three take the same `HermesPlugin` contract, appear in **Settings → Plugins**,+All three take the same `HermesPlugin` contract, appear in **Capabilities → Plugins**,and enable/disable live. A unified package is just the disk door scanning insideyour agent plugin's folder — see[One package, both SDKs](#one-package-both-sdks). Everything on this page iswritten against the disk door (what you and the agent write);[Bundled plugins](#bundled-plugins) notes the twodifferences. Radio ships as a bundled SDK-only plugin, off by default. Enable it-in **Settings → Plugins** for free live streams, station search, and status-bar+in **Capabilities → Plugins** for free live streams, station search, and status-barplayback controls with an audio-reactive waveform. It uses the existing plugintoggle and contributes nothing while disabled. Reference demos live in the companion[`hermes-example-plugins`](https://github.com/NousResearch/hermes-example-plugins)@@ -150,7 +150,7 @@ interface HermesPlugin {/** Human name for Settings / about UI. Defaults to `id`. */name?: 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+ * for opt-in plugins: they inventory in Capabilities ▸ Plugins, off until the* user flips the switch. */defaultEnabled?: boolean/** Called once at load; wire contributions through `ctx`. */@@ -250,7 +250,7 @@ data: {the pane doesn't claim half the zone.Closing the only pane contributed by a plugin disables that plugin, which can-be re-enabled from **Settings → Plugins**. When a plugin contributes multiple+be re-enabled from **Capabilities → Plugins**. When a plugin contributes multiplepanes, closing one dismisses only that pane and leaves the plugin's other panes,commands, and middleware active. **Reset layout** restores dismissed contributedpanes.@@ -716,7 +716,7 @@ imports, same `ctx.rest('/…')` reaching the `plugin_api.py` sitting beside it.Installing, sharing, or removing the feature is one folder.Two enable switches still apply, on purpose, and both default to **off**: the-desktop half ships opt-in — it inventories in **Settings → Plugins** but stays+desktop half ships opt-in — it inventories in **Capabilities → Plugins** but staysdisabled until the user toggles it — matching the Python half's`plugins.enabled` gate in `config.yaml` (the security boundary below). Droppinga package into `~/.hermes/plugins` is inert on every surface until the user@@ -780,7 +780,7 @@ hermes-agent codebase directly (`hermes_state`, `hermes_cli.config`, …). Seefor the full backend reference — the mount is identical.:::caution The Python backend is gated separately-Enabling a plugin in the desktop **Settings → Plugins** panel is a renderer-side+Enabling a plugin in the desktop **Capabilities → Plugins** panel is a renderer-sidechoice; it does **not** import Python. A user plugin's `plugin_api.py` isimported only when the plugin is in the `plugins.enabled` allow-list in`config.yaml` (and not in `plugins.disabled`). Project plugins (`./.hermes/`)@@ -817,7 +817,7 @@ For gateway-wide data (not your own namespace), use `host.request` (JSON-RPC) an## Settings, enable state, and storage-Every plugin — enabled or not — inventories in **Settings → Plugins**, where the+Every plugin — enabled or not — inventories in **Capabilities → Plugins**, where theuser toggles it live (no app restart), reveals its folder, or rescans. The user'schoice is remembered:diff --git a/website/docs/user-guide/bot-mode.md b/website/docs/user-guide/bot-mode.mdindex 7c086535b03..aec2c3b2207 100644--- a/website/docs/user-guide/bot-mode.md+++ b/website/docs/user-guide/bot-mode.md@@ -257,7 +257,7 @@ See [Connecting Desktop to Many Hermes Instances](./multi-connection-desktop.md)## Turning it off-Bot Mode is a bundled desktop plugin. Flip it off in **Settings → Plugins → Bots** — the roster, the Routines pane, and the composer middleware unregister live, no restart needed. Your profiles, sessions, and cron jobs are untouched either way; Bot Mode never owns your data, it only renders it.+Bot Mode is a bundled desktop plugin. Flip it off in **Capabilities → Plugins → Desktop plugins → Bots** — the roster, the Routines pane, and the composer middleware unregister live, no restart needed. Your profiles, sessions, and cron jobs are untouched either way; Bot Mode never owns your data, it only renders it.There is also a preference to hide the canonical Bot Chats from the regular sidebar session list, so they only appear inside the Bots pane. (This uses the core hidden-session flag; on older gateways the chats simply stay visible.)diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.mdindex dc594334cf5..209f2e42d73 100644--- a/website/docs/user-guide/desktop.md+++ b/website/docs/user-guide/desktop.md@@ -260,7 +260,7 @@ and the eye shows a dot when a hidden bot has unread activity. Hiddenstate is stored in the bot's profile, so it follows the bot acrossmachines.-Don't want it? Flip it off in **Settings → Plugins → Bots** — the roster,+Don't want it? Flip it off in **Capabilities → Plugins → Desktop plugins → Bots** — the roster,routines pane, and composer middleware unregister live, no restart needed.Full guide — creating agents (including the multi-machine **Create on**@@ -445,20 +445,30 @@ The desktop app is contribution-driven — panes, pages, sidebar nav, status-baritems, palette commands, keybinds, and themes all register through one SDK, andyou can add your own. A plugin is a single ESM file dropped in`$HERMES_HOME/desktop-plugins/<id>/plugin.js`; the app loads it within seconds and-hot-reloads every save. Manage installed plugins live in **Settings → Plugins**.+hot-reloads every save. Manage installed plugins live in **Capabilities → Plugins**.See [Desktop Plugin SDK](../developer-guide/desktop-plugin-sdk.md) for the fullreference. (This is separate from the [web dashboard plugin system](./features/extending-the-dashboard.md).)-The **Agent plugins** section on the same Settings → Plugins page manages-backend (agent-side) [plugins](./features/plugins.md) you installed — user,-git, project, pip, and portable installs. Repo-bundled built-ins (platform-adapters, provider plugins, and similar) are not listed there: they ship-enabled by default and are configured from their own surfaces, so the section-stays focused on what you added yourself. With two or more profiles the-section also has its own **Applies to** selector, so you can list and toggle-another profile's agent plugins without switching the whole app (the backend-`plugins.manage` RPC accepts an optional `profile` parameter for this).+**Capabilities → Plugins** is the one place for everything that extends+Hermes, in two sections on one page:++- **Agent plugins** — backend (agent-side) [plugins](./features/plugins.md)+ you installed for the selected profile: user, git, project, pip, and+ portable installs, with enable/disable toggles and an **Update** chip when a+ catalog pin moved. The page's profile selector picks which agent you are+ configuring (the backend `plugins.manage` RPC takes a `profile` parameter).+ Repo-bundled built-ins (platform adapters, provider plugins) are not listed:+ they ship enabled and are configured from their own surfaces.+- **Desktop plugins** — extensions loaded into this app, the same for every+ profile. Toggles apply live; the desktop half of a bundled agent+desktop+ package shows an **agent half missing here** chip when the selected+ profile's backend does not have its agent half, with a one-click repair.++Discovery sits underneath: the live [Plugin Catalog](./features/plugin-catalog.md)+picker installs reviewed entries at their pinned commit into the selected+profile, and **Install from Git** takes any other repository through the same+review-then-install dialog. Old `Settings → Plugins` links redirect here.## Troubleshootingdiff --git a/website/docs/user-guide/features/plugins.md b/website/docs/user-guide/features/plugins.mdindex c9df95287f7..39e4f94a09e 100644--- a/website/docs/user-guide/features/plugins.md+++ b/website/docs/user-guide/features/plugins.md@@ -390,8 +390,8 @@ deep links never auto-install, and agent-plugin installs go through the same`hermes plugins install`.Hybrid repos (agent + desktop halves in one repo) use one link and one-dialog. The same modal is reachable without a link via **Settings → Plugins →-Install from Git**. Legacy `hermes://plugin-agent/…` and+dialog. The same modal is reachable without a link via **Capabilities →+Plugins → Install from Git**. Legacy `hermes://plugin-agent/…` and`hermes://plugin-desktop/…` URLs route into the same dialog. In dev builds(`npm run dev`) the scheme is `hermes-dev://`.