OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Feature]: [Feature]: 请求做zcode和kimicode适配 非常需要!

Open dogking95 opened this issue 4 months ago • 6 comments

Issue Origin

Observed or reproduced in a real environment

Problem Statement

[Feature]: [Feature]: 请求做zcode和kimicode适配 非常需要!

Proposed Solution

[Feature]: [Feature]: 请求做zcode和kimicode适配 非常需要!

Alternatives Considered

No response

Feature Area

Core (Client/Engine)

Use Case

[Feature]: [Feature]: 请求做zcode和kimicode适配 非常需要!

Example API (Optional)


Additional Context

No response

Contribution

  • [ ] I am willing to contribute to implementing this feature

dogking95 avatar Jul 22 '26 02:07 dogking95

FYI on the ZCode half of this request: I opened #3544 — examples/zcode-memory-plugin, which mirrors the TRAE/Codex plugins and reuses memory-plugin-shared (recall/capture/commit/peer-identity/MCP proxy). It's draft because ZCode's extension surface isn't publicly documented, so the hook protocol is inherited from Cursor/TRAE and DESIGN.md flags each load-bearing assumption + exactly which file changes if ZCode's real surface differs.

KimiCode would follow the exact same pattern (thin adapter on top of the shared runtime) — happy to add it next if there's interest, but I didn't want to balloon this PR. The shared runtime means a KimiCode plugin would be ~the same size as the ZCode one (mostly the adapter + turns parser + config).

now-ing avatar Jul 27 '26 17:07 now-ing

need same

sthnow avatar Jul 28 '26 08:07 sthnow

ZCode 部分已有进展:我开了 #3678,实现了完整的 ZCode 记忆插件(自动召回、对话捕获、URI 守卫、MCP 工具),复用了 OpenViking 共享运行时。

Kim iCode 部分目前还没有进展,如果有人有兴趣可以参照 ZCode 的实现来做。

如果 #3678 合入,这个 issue 的 ZCode 部分就完成了。

TeFuirnever avatar Aug 01 '26 16:08 TeFuirnever

📣 进展同步 / Status update

中文: 本 issue 的 ZCode 适配部分已随 #3678 合入 main(2026-08-04)。插件提供自动召回、对话捕获(Stop hook stdin + rollout 文件双通道,不依赖 transcript_path)、URI 守卫、MCP 工具,复用 OpenViking 共享运行时,无重复实现。安装方式见 examples/zcode-memory-plugin/ 与 docs/zh/agent-integrations/15-zcode.md。

KimiCode 适配目前仍无进展;如有人愿意承接,可参照 ZCode 实现(examples/zcode-memory-plugin/DESIGN.md)。

English: The ZCode adapter portion of this request landed in main via #3678 (merged 2026-08-04). The plugin provides auto-recall, conversation capture (dual-channel: Stop hook stdin + rollout file, no dependence on transcript_path), URI guard, and MCP tools — all reusing the shared OpenViking runtime, no duplicated logic. See examples/zcode-memory-plugin/ and docs/en/agent-integrations/15-zcode.md.

KimiCode adapter is still open; happy to support anyone who wants to pick it up, using the ZCode implementation (DESIGN.md) as a reference.

cc @dogking95 @now-ing @sthnow

TeFuirnever avatar Aug 04 '26 16:08 TeFuirnever

Kimicode half of this issue is implemented in https://github.com/volcengine/OpenViking/pull/4787.

It follows the ZCode adapter from #3678 (examples/zcode-memory-plugin) but maps Kimi Code CLI’s own surface (TOML [[hooks]], mcp.json, plain-text UserPromptSubmit inject, SessionEnd / PreCompact / Interrupt, wire.jsonl transcript). Install: bash examples/memory-plugin-shared/install.sh --harness kimicode.

wutongyuonce avatar Sep 07 '26 18:09 wutongyuonce

Both are supported on main now: ZCode via #3678 and Kimi Code via #4787 (install.sh --harness zcode,kimicode). Closing.

ZaynJarvis avatar Sep 23 '26 14:09 ZaynJarvis