feat: add Kimi Code CLI host - #2674
Draft
devalirzayev wants to merge 1 commit into
Draft
Conversation
Kimi Code CLI scans .kimi-code/skills/ (project) and ~/.kimi-code/skills/ (user) for Agent Skills, so generated skills are discovered natively with no wrapper. Uses the .kimi-code root rather than .agents (also scanned by Kimi) to avoid colliding with the codex host's render. No tool rewrites: every tool name used in templates (Bash/Read/Write/Edit/Grep/Glob/Agent/ Skill/AskUserQuestion) exists in Kimi Code with an identical name. CLAUDE.md references rewrite to AGENTS.md, which Kimi Code reads. Refs garrytan#2298 (prior community attempt, withdrawn by author).
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Author
|
Closes this issue - #1072 |
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.
Why (in your own words)
Kimi Code CLI users can't install gstack today:
kimiis not a registered host, so./setup --host kimiexits with "Unknown --host value" and no skill render targets Kimi's skill directories. This adds Kimi Code CLI as gstack's 11th host. Kimi Code scans.kimi-code/skills/(project) and~/.kimi-code/skills/(user) for Agent Skills natively (skills docs), so the generated skills are discovered with no wrapper or runtime adapter. A prior community attempt (#2298) was withdrawn by its author for lack of a user, not rejected — this is a fresh implementation, developed and tested by an actual Kimi Code user (the work was done inside a live Kimi Code CLI session).Live evidence
Generation, leakage checks, validation, and tests — all real output:
Generated preamble resolves Kimi paths correctly (
$HOME/.kimi-code/skills/gstackglobal fallback,$_ROOT/.kimi-code/skills/gstackproject override):Tool-name audit (why
toolRewritesis empty): every tool name referenced anywhere in the generated output —Skill×55,Read×41,Agent×32,Edit×14,Write×6,Grep×5,Bash×5,AskUserQuestion×1 — exists in Kimi Code's built-in tools with an identical name (tools docs). The names that differ from Claude Code (TodoWrite→TodoList,WebFetch→FetchURL) appear nowhere in any template or resolver, so no rewrite is needed.Key design decisions:
.kimi-coderoot, not.agents. Kimi Code also scans.agents/skills/, but the codex host already renders there — two hosts writing the same tree would overwrite each other and break--dry-runfreshness.setupgets a guidance block (hermes/openclaw/gbrain precedent), not a bespoke installer. Drivingsetupfrom host configs is documented as queued follow-up work (scripts/host-config-export.tsheader).bin/gstack-team-initprobe lists gained$HOME/.kimi-code/skills/gstack— required by the Probe AGENTS.md for skill routing; resolve GSTACK_ROOT in team-init #2500 routing-probe invariant that every registered host'sglobalRootis probed.Scope
hosts/kimi.ts(new),hosts/index.ts(registry),.gitignore(.kimi-code/),setup(--host kimiguidance + usage strings),bin/gstack-team-init(two probe lists),README.md(host table + count),docs/ADDING_A_HOST.md(host lists),test/host-config.test.ts(host count 10→11). Generated.kimi-code/output is gitignored like every host's.--host all --dry-runfreshness (0 STALE), host-config/gen-skill-docs/routing-probe test files, and the full free test suite (7 shards, exit 0)..kimi-code/skills/is per the official docs, not re-verified on every Kimi release; no VERSION/CHANGELOG bump (left to the maintainer release flow).Liveness proof (required)
⏳ Pending — will be attached by the PR author (a human) before marking ready for review. Opened as a draft for this reason.
Checklist
GSTACK PRtyped live into a real surface (not edited onto the image) — pending, see above