feat(hosts): add Kimi Code host adapter - #56
Merged
Conversation
- Add Kimi configured-asset provider with managed-plugin inventory - Add Kimi session source adapter (wire.jsonl, workspace index fallback) - Add .kimi-plugin/plugin.json shell for /plugins install discovery - Support symlinked skill directories in walkFiles (opt-in, cycle-safe) - Register kimi across evidence-bundle, report, agent-lint, and asset tools - Sync README/zh-CN, adapter docs, routing, spec, and CHANGELOG
Resolve 42 conflicted files by unioning the Kimi Code, WorkBuddy, and Grok host registrations (platform lists, provider maps, help text, docs, tests) while keeping upstream's refactored structure: - session-analysis entrypoints: keep upstream's dedupe into session-analysis/analyzer.mjs with the PLATFORM_MODULES registry; re-apply the kimi entry there and keep scripts/session-analysis.mjs as the upstream re-export shim. kimi.mjs provider now imports session-analysis through its public index.mjs surface per the new refactor contract. - session-analysis/fs.mjs: take upstream's topology rewrite (walkFiles now follows directory/file symlinks by default with realpath cycle dedupe); the kimi followSymlinks option stays accepted and existing symlink tests are updated to the dedupe semantics. - agent-customize/providers/claude.mjs: keep upstream's designated-config- workspace inventory logic (pathsReferToSameRoot/canonicalPathInsideRoot) while pluginPathValues/pathInsideRoot continue to come from core/items.mjs. - Regenerate scripts-refactor-contract help fixtures and sha256 freezes from actual CLI output; bump .kimi-plugin/plugin.json to 0.4.0 to match the other host manifests; add kimi to the render-report platform allowlist to satisfy the registry parity test.
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.
Add Kimi Code as an analysis-capable source-local host, following the host contribution guide and the Qwen Code / GitHub Copilot / Pi host template. Native contracts were verified against a local Kimi Code installation; a dated spec lives at
docs/specs/2026-07-30-kimi-host-support.md(kimi-host-support) with stable KHS-AC acceptance ids..kimi-plugin/plugin.jsonmanifest with the canonicalskillspointer, so/plugins install <repo>discovers the rootskills/Skill and/skill:better-harnessinvokes it. The manifest ships in the public npm package as the seventh filesystem metadata root; the Qoder runtime bundle stays Qoder-only.scripts/agent-customize/providers/kimi.mjsinventories user-level~/.kimi-code/skills/**/SKILL.mdandmcp.json, project-level.kimi-code/skillsand.kimi/skills, plus managed plugins from~/.kimi-code/plugins/installed.json(enabled: trueonly, plugin-root path confinement). Memory is declared unsupported (no Kimi Code equivalent);config.tomlis a diagnostics flag only; credentials andserver.tokenare never read.scripts/session-analysis/platforms/kimi.mjsreads workspace-matching wire transcripts under~/.kimi-code/sessions/<wd_*>/ses{sion}_*/agents/*/wire.jsonl, resolves the workspace-to-wd_*mapping throughworkspaces.jsonandsession_index.jsonl, and falls back towd_<name>_*directory prefixes only when both indexes are absent (recording akimi-workspace-index-absentwarning). User/command/content text stays behind the shared privacy flags; unknown wire record types degrade to boundedmetadata.*events.kimiacross the supported-platform set and--kimi-homethreading; the A-06 consistency test now covers the expanded host set.Kimi Code stays outside the public Quickstart set until a full report render is validated end to end in Kimi Code, per the host contribution contract (same treatment as Pi).
Validation: focused consistency suites 133/133 pass; full
npm test1139 tests with 35 failures that reproduce identically on a cleanorigin/mainworktree (missingesbuild-wasm/vendor/tree-sitter-wasmin this environment — zero code regressions); pack verification passes.This branch is merged up to current
main(includes the Grok / WorkBuddy / topology work); platform ordering follows the host-introduction timeline..., pi, kimi, workbuddy, grok.