Repository navigation
feat: add Qoder host kit with Skill-based command surface and telemetry adapter - #14
Closed
anderszhang wants to merge 12 commits into
Closed
anderszhang wants to merge 12 commits into
anderszhang wants to merge 12 commits into
Conversation
ayochao
self-requested a review
November 4, 2026 07:29
Collaborator
|
感谢补充 Qoder 适配,也感谢提供完整流程的验证说明。还有几点请帮忙调整:
|
Qoder 与 Claude Code 在插件、命令、子代理与 hooks 上高度同构,命令面由 Skill 承载。 新增 Host Kit 使 Registry 可识别 qoder,并复用 Claude 版子代理与 hooks 语义。 - hosts/qoder/:16 项能力 + 14 个 adapter,含 runtime / subagent / lifecycle / ut 等资源 - hosts/qoder/skills/:9 个公共命令的薄 Skill 入口(commands/*.md 不被 Qoder 暴露为入口) - .qoder-plugin/:分发清单与版本权威源 - scripts/update_hosts/qoder.py:version / update / detector - agents/*.md:补 name 字段(Qoder 自动发现根 agents/ 并要求该字段) - tests:hook 绑定测试覆盖 qoder 并支持 argv 形式;宿主集合断言加入 qoder - docs/host-kits/qoder/:能力摸底与实测记录 telemetry 在首版声明 unsupported;support.level 保持 preview,E2E 证据待补。
在 Qoder CN(qoderclicn 1.1.81)中以本地插件目录加载,跑通 init → propose → apply → archive 单仓闭环,业务仓为 examples/starter 副本、需求为 task-filter。 - evidence/host-e2e/qoder/e2e-2026-11-03.json:逐步记录与未覆盖范围 - hosts/qoder/host.json:填入 support.evidence,移除已由 E2E 证实的限制项 - docs/host-kits/qoder/assessment.md:新增 §9 结论与后续待办 关键实证:init 的 6 路扫描 Agent 与 apply 的双轴隔离 Review 在 Qoder 下真实成立; 项目级 hooks 目标路径 .qoder/settings.json 经 project_hooks_cli 校验通过; telemetry 因 unsupported 正确跳过且不影响业务门禁。 support.level 保持 preview:未覆盖 marketplace 安装与 plugins update 流程。
- reference/host-api.md:支持边界加入 qoder(Preview),说明 Preview 与 Stable 的证据要求 - reference/scan-agent-protocol.md:固化 agents/*.md 必须声明 name 与 description - 新增 AgentFrontmatterTests 回归测试,防止 name 字段被误删导致宿主安装校验失败 - ut.md:权限准备/精确回滚机制已实测,移除 _pending_verification - evidence:补充 ut 权限机制与项目设置表面的实测步骤 - 中英文入口文档同步:README、installation、user-guide、workflow-architecture、 helixharness/README、PLUGIN_USAGE 均加入 Qoder(预览)与 qoderclicn 安装命令 验证:python3 scripts/run_tests.py → 365 tests OK;文档内相对链接检查无失效项。
E2E 安装/升级验证暴露共享核心缺陷:locate_formal_policy() 把 `.claude-plugin/marketplace.json` 硬编码,导致 Qoder 读错清单、升级永远检测不到, 同时违反 host-api「不按宿主 ID 分支」的约束。 - UpdateHostAdapter 新增 marketplace_manifest_relative,默认保持 Claude 兼容路径 - QoderUpdateAdapter 覆写为 .qoder-plugin/marketplace.json - 新增 .qoder-plugin/marketplace.json(仓库根分发清单,此前只有插件内一份) - 新增 test_qoder_host_kit.py:守护命令面、项目配置、settings 一致性与升级 seam - evidence 与 assessment 记录安装/升级链路实测结果 实测:marketplace add → install → 无 --plugin-dir 调用 → 版本检查 → 1.0.0→1.1.0 升级 → 复检 latest → 卸载并字节还原。 验证:python3 scripts/run_tests.py → 370 tests OK。
未注册 telemetry adapter 的宿主在 metrics.py 中直接 _skip("unsupported_host"),
因此既无 eval-log 同步账本,也无异步 Supplement;此前文档写成「同步账本仍可用」有误。
平台对 Qoder 用量完全不可见,业务门禁不受影响。
Qoder 的 telemetry 能力从 unsupported 升级为 emulated,并完成采集与投递验证。
- scripts/telemetry_hosts/qoder.py:配置根、consent 路径、会话上下文、来源校验与窗口采集
- supplement_parsers:抽出共享 _collect_message_window,新增 collect_qoder_window;
Qoder 专有记录类型(workspace-directories/runtime-config/active-leaf/
file-history-snapshot/attachment/worktree-state/last-prompt)按非消息记录忽略
- hosts/qoder/hook_entry.py:SessionStart 写入 .helixharness/host-session/qoder.json
(只含会话 ID 与路径,不含正文或凭据)
- hosts/qoder/host.json:telemetry=emulated + python adapter
- 新增 test_qoder_telemetry.py(6 项)
实测:consent 解析正常、账本 <feature>/eval-log.json 落盘(session_locator recorded)、
Supplement 生成(platform=qoder)、本地 stub 接收端按 gzip {items:[]} 协议收到 2 条并 ack,
remaining=0。会话记录不含 token 用量,usage 保持为空而不估算。
验证:python3 scripts/run_tests.py → 376 tests OK。
用真实 helixharness-platform 验证接收链路(此前只有本地 stub)。 - POST /report 200,stage_supplements 落库并按 entry_id+requirement_id+feature 关联账本(linked=1) - telemetry.db 摄取 3 条账本;看板按 platform=qoder 投影,平台占比显示 qoder 100% - 记录 --helixharness-roots 必须指向业务仓根(传父目录不会递归发现账本) - 记录 Gate 现状:探针账本无真实工件,gate_result=unknown 是预期行为;不为通过而补造数据 环境已复原:平台进程停止、.cache 测试 DB 删除、临时 telemetry home 与 ~/.qoder-cn 授权缓存清理、无 launchd 残留。
用 examples/starter 的 task-filter 需求,在统计开启状态下由 Qoder 跑完 propose → apply → archive,并把 Supplement 投递到真实平台,取得消费端 Gate 判定。 平台结果:3 条账本全部 completed、3 条 Supplement 全部 linked=1、apply gate=pass、 文档 finalization=complete/publication=archived;质量状态 PARTIAL,仅剩 3 条 RESOURCE_USAGE_UNAVAILABLE(Qoder 无 token 数据,适配器按约定不估算)。 归档后 PARTIAL_COVERAGE / SUPPLEMENT_PENDING / ASYNC_EVIDENCE_INCOMPLETE / NOT_FINALIZED 全部消失 —— 证明 Gate 能正确消费 Qoder 数据;automation_eligible=0 是本 Host Kit 已声明的限制所致,不靠补造数据掩盖。 环境已复原:平台停止、.cache 测试 DB 与临时目录清理、无 launchd 残留。
从远程 git 源(git@github.com:anderszhang/helixharness.git,默认分支 support_qoder) 完成安装验证,此前阻止 stable 的原因已消除。 - support.level: preview → stable,limitations 只保留真实差异 - 实测:marketplace add 支持 SSH git URL;刷新后克隆到含 Qoder 清单的提交; install 成功;无 --plugin-dir 的 /helix:status 正常; 已安装副本的 version check 能在 git 克隆根上定位 .qoder-plugin/marketplace.json - 文档同步:README、user-guide、installation、host-api、插件 README/PLUGIN_USAGE 的 Qoder 描述由「预览」改为 Stable,中英一致 - 测试:宿主等级断言改为 stable 远程「版本升级」未实测(需向 fork 推送版本变更,会污染分支);该链路已在本地 directory 源验证,两者共用同一适配器。 验证:python3 scripts/run_tests.py → 376 tests OK。
用户反馈文档里找不到「如何在 Qoder 添加插件」,检查后确有三处缺口,一并补齐。 - README / README.zh-CN 快速开始:新增 Qoder 安装块(此前只有 Codex 与 Claude Code) - installation.md:修掉残留的 "Qoder (preview)" 注释;补充 Git 源只克隆默认分支、 /plugins reload、--scope 与 SSH 形式说明(中英一致) - hosts/qoder/installer.md 重写:市场安装、本地 --plugin-dir 调试、装载验收、 更新卸载、已知限制;移除已过时的「项目级 hooks 路径未证实」 验证:python3 scripts/run_tests.py → 376 tests OK。
为公开 PR 清理证据与说明中的本机路径与个人 fork 地址: - `/tmp/hv-*` → `<scratch>/…` - 具体 fork 地址 → `<contributor>` 占位并说明是 fork 镜像 - 移除文档中引用对话过程的修正说明
维护者评审三条意见逐条处理,并修复 rebase 到上游后暴露的集成缺陷。
- update_hosts/qoder.py:_cli() 改为按 PATH 探测 qoderclicn / qodercli,
两者都缺失时显式失败,不再固定使用中文版命令;新增 3 项测试
- README / README.zh-CN:路线图 preview → stable;恢复中文 README 被误替换掉的
Claude Code 安装块,中英均为 Codex → Claude Code → Qoder 三段
- assessment:顶部新增权威状态块(当前等级、已验证客户端与功能范围),
§8/§9 的 preview 字样标注为历史并指向 §11
- telemetry_async:RUNTIME_RESOURCE_DIRECTORIES 补 .qoder-plugin,否则 telemetry
Runtime 内 HostRegistry 报「适配器资源不存在: qoder.distribution」
- test_plugin_hooks:与上游 Windows 改造合并,保留 commandWindows 与 argv 两种形式
- host.json:如实标注国际版 CLI 未实机验证
验证:python3 scripts/run_tests.py → 422 tests OK(7 skipped,Windows 专属)
codex_skill_projection.py --check → PASS
未触及 helixharness-platform,platform CI 不受影响
anderszhang
force-pushed
the
support_qoder
branch
from
November 20, 2026 06:19
29f22e6 to
6a9380b
Compare
3 tasks done
Collaborator
|
已通过 PR #29 进行兼容Qoder支持,已并入main分支,请更新至最新源码main后重试,本次先按以解决关闭.如遇问题,请补充环境信息和最新报错,我们会继续跟进,再次感谢您的关注! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and resulting behavior / 问题与改动效果
/helix:*only worked in Codex and Claude Code. Qoder users could not run the workflow at all: theHost Registry rejects unknown hosts by design, so every command failed closed.
This adds a third Host Kit,
hosts/qoder/, taking Qoder to Stable. There is no existing Issue forthis; happy to file one if maintainers prefer to track it that way.
What Qoder needs that the other two hosts did not:
commands/*.mdare validated by Qoder but not exposed as invocable entrypoints. The commandsurface must go through thin Skills, like Codex — but without Codex's zero-discovery/page-loading
protocol, because Qoder has no resource-discovery restriction.
hosts/qoder/skills/{command}/SKILL.mdreads
commands/{command}.mddirectly.commands/skills/hookspaths under.qoder-plugin/.agents/directory and requires an explicitname:in eachagent's frontmatter. The 16 existing
agents/*.mdonly haddescription, so this PR addsname:(additive; Claude Code and Codex are unaffected).
Two shared-core changes, both small:
version_update.pyhardcoded.claude-plugin/marketplace.jsonwhen locating the marketplacemanifest. That made Qoder read the wrong manifest (so updates were never detected) and violated
the "no per-host branch in shared core" rule in
reference/host-api.md. The path is now declaredby the Host Kit via
UpdateHostAdapter.marketplace_manifest_relative, defaulting to the previousClaude-compatible value.
supplement_parsers.pygains a namedcollect_qoder_windowentry point over the shared windowbuilder, documenting the verified Qoder-specific record types.
Also:
agents/*.mdnamecontract is now written down inreference/scan-agent-protocol.mdandguarded by a test, so it cannot be silently dropped later.
Verification / 验证
All commands run against a Qoder CN installation (
qoderclicn1.1.81) with the plugin installed.End-to-end in the real client, on a copy of
examples/starter:/helix:initscanStatus/bootstrapStatus=completed);.qoder/settings.jsonmerged andproject_hooks_cli.py --platform qoder checkpasses/helix:proposespec.md+tasks.md,validate-tasks --stage proposepasses/helix:applyverify-report.md/helix:archiveactive → completed, gate passedexamples/verify_feature.pyInstallation paths verified: local
--plugin-dir, local directory marketplace, and a remote gitmarketplace source (
plugins marketplace add git@github.com:…→install helix@helixharness-marketplace→
/helix:statusworks without--plugin-dir→version_update.py --platform qoder checkreportslatest).Telemetry:
emulated. Consent resolves,docs/eval/{feature}/eval-log.jsonis written(
session_locator_status=recorded), Supplements are generated, delivered tohelixharness-platform/report, linked to their ledger entries, projected onto the dashboard withplatform=qoder, and consumed by the quality gate.Not verified / known gaps (also listed in
support.limitations):testing it remotely requires publishing a version bump.
requestTokenAnchoris a hash pair, not counters).The adapter keeps
usageempty rather than estimating, so such ledgers stayautomation_eligible=0with
RESOURCE_USAGE_UNAVAILABLE. Everything else the gate checks is satisfied after archive./helix:uton a real build project (Java/Gradle). The permission prepare/exact-rollbackmechanism is verified (deny rule blocks, byte-identical restore), but the workflow itself was not run.
Compatibility and documentation / 兼容性与文档
Claude Code / Codex: no behavior change.
agents/*.mdgain an additivename:field;marketplace_manifest_relativedefaults to the previous hardcoded path;host_runtime_cli.py listnow returns three hosts (only test assertions that pinned the host set were updated).
Supported hosts:
reference/host-api.mdsupport boundary now lists three Stable host kits, anddocuments what Preview still means for future hosts.
Docs updated (both languages):
README.md,README.zh-CN.md,docs/installation.md,docs/user-guide.md,docs/user-guide.zh-CN.md,docs/workflow-architecture.md,helixharness/README.md,helixharness/PLUGIN_USAGE.md.New documentation:
docs/host-kits/qoder/assessment.md(capability levels with evidence, E2Eresults, known gaps) and
helixharness/evidence/host-e2e/qoder/e2e-2026-11-03.json.Review pointers: the shared-core change is a 3-line diff in
update_hosts/base.py+version_update.py; everything else is additive underhosts/qoder/,.qoder-plugin/,scripts/telemetry_hosts/qoder.py,scripts/update_hosts/qoder.py, and tests.This change is focused and contains no credentials, private conversations or runtime data.
Relevant tests and documentation have been updated.
Third-party notices are preserved.
中文摘要:新增 Qoder Host Kit(Stable),命令面经薄 Skill 承载,补齐 update/telemetry 适配器;
同时修掉共享核心中硬编码 marketplace 清单路径的问题。已在真实客户端验证安装、初始化、三阶段闭环、
远程市场源与遥测链路,插件测试 376 项通过。未覆盖:远程版本升级、Qoder 无 token 计量导致的
automation_eligible=0、真实构建工程上的完整/helix:ut、IDE 界面安装。