Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates a new codexhost Harness plugin or plans, reviews and completes an existing Harness Adapter using public contracts.
18% 68%+50 ptsof test cases passed
Passed 15 of 22 test cases with the skill, and 4 of 22 without it.
This test ran on v3. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
6 agent runs
对应能力总表:C1–C5。Desktop 的「设置 → 连接」完全由插件目录和这些可选能力驱动,不需要改 Renderer。权威来源:packages/shared-contracts/src/harness-plugins.ts(Manifest)、harness-installation.ts(版本状态)、harness-presentation.ts(本地化);packages/harness-discovery/src/(安装器与版本工具);行为说明见 docs/architecture/harness-plugin-runtime.md 的「Harness CLI 版本与更新」「首次安装」「自定义启动路径设置」「插件拥有的展示元数据」,以及 docs/architecture/harness-executable-discovery.md。
| 字段 | 规范 |
|---|---|
name、version | 必填;version 是插件版本,与原生 CLI 版本、adapterApiVersion 无关 |
icon | 插件内的相对路径;只接受 PNG、JPEG、WebP 或受限的 SVG(不能有脚本或事件属性),最大 128 KiB;Host 转成 data URL,用 img 渲染 |
iconStyle | vector(受限的 viewBox、颜色和 path,最多 32 条)或 background、borderRadius、paddingRatio;不接受任意 CSS 或 SVG 文本 |
links | website、documentation、installation;只能是不含凭据的 HTTPS 链接 |
installation | commands[](terminal + command,最多 8 条,只展示给用户复制,从不执行)、before / after({ en, "zh-CN"? })、downloads[](桌面应用类 Harness 用它提供下载按钮) |
notice | { en, "zh-CN"? },插件自有的提示 |
launchCommand: true | 见下文的自定义启动路径 |
权限模式的文案通过 localizations: { [locale]: { label?, description? } } 提供,由公共函数 localizeHarnessPresentation 按字段回退。localizations 不能覆盖 ID、危险标记或执行行为。
验收:Manifest 通过 schema 校验;图标能在浅色和深色主题下正常显示;中文和英文都有文案。
接口:adapter.installation?(action: "check" | "update"): Promise<HarnessInstallationState>。通常在工厂里挂到 Adapter 上(参考 Pi 和 Kimi 的 plugin.ts:Object.assign(new XAdapter(...), { installation, install }))。
返回 HarnessInstallationState:
currentVersion、latestVersion、updateAvailable、canUpdate:必填。latestVersion 填 "Unknown" 并设置 latestVersionKind: "unknown";按 Git 分支跟踪时设置 latestVersionKind: "tracking-branch"。不能假装与已安装版本一致。versionKind: "application":CLI 随桌面应用分发时使用(参考 WorkBuddy)。manualUpdateUrl:官方安装包链接(不含凭据的 HTTPS)。提供后,界面显示「下载更新」,不会自动更新。notice:面向用户的本地化说明;message 只是诊断文本,界面不会原样展示。必须:
canUpdate: false 和手动更新说明,不能更新另一份安装。createInstallationManager({ check, update }) 即可满足这些要求。fetchInstallationText)。newerInstallationVersion / versionFromOutput:区分预发布标识,不降级更新的安装。npmInstallation,只在准确的 npm prefix 中更新。Next to this one in the catalogue, plus more from the same author.