For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (
- [ ]) syntax for tracking.
Goal: Add explicit SSH remote sync for user-level inline plugins.
Architecture: Add a restricted IPluginSyncService parallel to skill/MCP sync. Local base services enumerate/export user inline plugins; remote workspace services status/import the archive into remote ~/.zcode/plugins and remote user config.
Tech Stack: TypeScript, Vitest, React settings UI, existing RPC service descriptors, existing remote service collection.
docs/superpowers/specs/2026-07-06-remote-plugin-sync-design.md.~/.zcode/cli/config.json.plugins.dirs.DESIGN.md, support i18n, desktop, web, light and dark themes.pnpm typecheck and pnpm lint before committing.Files:
packages/shared/src/plugin-sync.tspackages/shared/src/index.tspackages/shared/src/channels.tspackages/services/src/plugin-sync/pluginSync.tspackages/services/test/pluginSyncService.test.tsInterfaces:
PluginSyncCandidate, PluginSyncRemoteStatus, PluginSyncArchiveExportResult, PluginSyncImportResult.Produces: IPluginSyncService with listLocalUserPluginCandidates, listRemoteUserPluginStatuses, exportPluginsArchive, importPluginsArchive.
[ ] Write failing tests for candidate discovery, archive import, conflict skips, symlink rejection, and enabled state sync.
[ ] Verify tests fail because the service does not exist yet.
Files:
packages/services/src/plugin-sync/pluginSyncArchive.tspackages/services/src/plugin-sync/pluginSyncPath.tspackages/services/src/plugin-sync/pluginSyncService.tspackages/services/src/node.tspackages/services/src/index.tspackages/services/src/accessor.tsInterfaces:
Produces: createPluginSyncService(options?: { maxArchiveBytes?: number }): IPluginSyncService.
[ ] Implement config reading/writing for ~/.zcode/cli/config.json.
[ ] Implement manifest discovery for .zcode-plugin, .claude-plugin, .codex-plugin.
[ ] Implement safe archive create/extract with size limits.
[ ] Implement remote import with no-overwrite conflict checks.
[ ] Run service tests until green.
Files:
packages/desktop/src/host/remoteConnectionServiceCollection.tspackages/desktop/src/host/remoteWorkspaceServiceCollection.tspackages/desktop/src/renderer/src/remoteWorkspaceSessionServices.tspackages/desktop/test/hostRemoteWorkspaceServices.test.tspackages/desktop/test/remoteWorkspaceSessionServices.test.tspackages/server/src/remote/serverBundleDeployCheck.tspackages/server/test/remoteDeploy.test.tsInterfaces:
pluginSyncService on IServiceAccessor.Produces: remote service collections that expose the remote pluginSyncService.
[ ] Add service wiring tests.
[ ] Add remote deploy marker test update.
[ ] Wire the service through local and remote collections.
Files:
packages/ui/src/settings/RemotePluginSyncDialog.tsxpackages/ui/src/settings/RemoteSyncActions.tsxpackages/ui/src/settings/PluginsSection.tsxpackages/ui/src/WorkspaceHeaderSections.tsxpackages/ui/src/WorkspaceSidebarItem.tsxpackages/ui/src/i18n/locales/en-US.tspackages/ui/src/i18n/locales/zh-CN.tsInterfaces:
IPluginSyncService.Produces: SSH-only “sync plugin” action and dialog.
[ ] Write UI helper tests.
[ ] Add i18n keys.
[ ] Add dropdown/dialog props while keeping skill/MCP behavior unchanged.
[ ] Refresh plugin store and related resources after sync.
Files:
All touched files.
[ ] Run targeted service/UI/desktop/server tests.
[ ] Run pnpm typecheck.
[ ] Run pnpm lint.
[ ] Review git diff.
[ ] Commit with a Conventional Commit message.