use-kimi-code
Skill8.3k starsChanged 5 days agoMITView on GitHub
Interact with local Kimi Code: hand off sessions in either direction, organize session history across workspaces, run multi-turn Agent-to-Agent discussions or collaborative sessions, or execute one-shot CLI tasks.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about MoonshotAI/kimi-code
- @ds-nana.bsky.social“Kimi Code CLI — The Starting Point for Next-Gen Agents github.com/MoonshotAI/k...”Bluesky · Jul 20, 2026 · 4 likes
- @alexiskirke.bsky.social“I came across this fascinating GitHub project on AI-powered terminal coding: edit code, run commands, and …”Bluesky · Jul 24, 2026 · 3 likes
- agentclientprotocol/registry“Add kimi-code to registry (successor to kimi-cli)”GitHub · Jul 30, 2026 · 2 reactions
- steipete/CodexBar“Improve Kimi Code usage reporting”GitHub · Jun 26, 2026 · 2 reactions
- Emanuele-web04/synara“Feature Request: Add Kimi Code support”GitHub · Jun 2, 2026 · 2 reactions
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub and Bluesky (53 times).
On GitHub · 50
- Jul 30, 2026Add kimi-code to registry (successor to kimi-cli) — agentclientprotocol/registry2 reactions · 1 comment
- Jun 26, 2026Improve Kimi Code usage reporting — steipete/CodexBar2 reactions · 6 comments
- Jun 2, 2026Feature Request: Add Kimi Code support — Emanuele-web04/synara2 reactions · 2 comments
- Nov 26, 2026Sync upstream (hourly): kimi-code 2.8.1-1 — omacom/omarchy-pkgs1 reaction · 2 comments
- Oct 29, 2026fix(agents): use Kimi --auto for Full access — stablyai/orca1 reaction · 9 comments
45 more on GitHub
- Aug 17, 2026Our /tower mode (inspired by your design) is now live — HUA-Labs/tap1 reaction · 1 comment
- Aug 17, 2026[kimi-code-watch] 上游 #2633:/tower 多 agent 编排(v0.37.0 候选) — FinbackYu/kimi-code-hud1 reaction · 4 comments
- Jul 23, 2026Add support for Kimi Code (Moonshot AI) — dyoshikawa/rulesync1 reaction
- Jul 13, 2026feat: add Kimi Code quota tracking — looplj/axonhub1 reaction · 1 comment
- Jun 16, 2026Codex CLI's websocket timed out, suddenly in the middle of Codex's work — openai/codex1 reaction · 4 comments
- Jun 8, 2026fix(catalog): point Kimi entry at Kimi Code CLI — getpaseo/paseo1 reaction · 1 comment
- Jun 2, 2026[bug]: Kimi Code not track as plan — xiufengsun/TokenTracker1 reaction · 8 comments
- Nov 29, 2026Build(deps): Bump the npm group across 7 directories with 10 updates — squadroom/squadroom0 reactions · 1 comment
- Nov 29, 2026Build(deps): Bump @moonshot-ai/kimi-code from 2.5.1 to 2.8.1 in /scripts/console/clients/kimi — squadroom/squadroom0 reactions · 2 comments
- Nov 27, 2026Kimi Code CLI v2.8.1 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 27, 2026fix(omher): resumable terminal harnesses come back by themselves; restored scrollback stays selectable — rlaope/oh-my-hermes0 reactions
- Nov 26, 2026Kimi Code CLI v2.8.0 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 25, 2026Add `kimi-code` — conda-forge/staged-recipes0 reactions · 2 comments
- Nov 24, 2026Kimi Code CLI v2.7.3 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 23, 2026Upstream: Kimi Code 2.6.2 to 2.7.3 — sidharthpunathil/hashi0 reactions
- Nov 22, 2026Build(deps): Bump @moonshot-ai/kimi-code from 2.5.1 to 2.7.0 in /scripts/console/clients/kimi — squadroom/squadroom0 reactions · 2 comments
- Nov 20, 2026Kimi Code CLI v2.7.2 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 18, 2026Kimi Code CLI v2.6.3 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 17, 2026refactor(core): remove the unwired legacy tool executor chain (#4998) — kimocoder/kimi-code0 reactions
- Nov 15, 2026Build(deps): Bump @moonshot-ai/kimi-code from 2.5.1 to 2.6.0 in /scripts/console/clients/kimi — squadroom/squadroom0 reactions · 2 comments
- Nov 14, 2026Kimi Code CLI v2.6.2 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 13, 2026[upstream-watch] Upstream schema & release drift detected — wakeleyresearch/agentconfig0 reactions
- Nov 13, 2026Kimi Code CLI v2.6.1 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 11, 2026Kimi Code CLI v2.5.3 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 9, 2026runtime: 审查 Kimi Code 2.5.2 适配 — dandandujie/Farside0 reactions
- Nov 9, 2026Add Kimi vendor target — Helio-Additive/ai-plugins0 reactions · 1 comment
- Nov 9, 2026Add Kimi Code CLI system prompt templates from official source — 0xeb/TheBigPromptLibrary0 reactions
- Nov 8, 2026Build(deps): Bump @moonshot-ai/kimi-code from 2.4.1 to 2.5.1 in /scripts/console/clients/kimi — squadroom/squadroom0 reactions · 3 comments
- Nov 6, 2026Kimi Code CLI keycap set, routed by its window title — thpoll83/PolyKybdHost0 reactions · 5 comments
- Nov 6, 2026Kimi Code CLI v2.5.2 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Nov 6, 2026fix(agent): Recovered oversized images stay shrunk on later turns — kvnloo/hermes-agent0 reactions
- Nov 4, 2026fix(progress): detect Ghostty through TERM over SSH — dbast/anstyle0 reactions
- Nov 4, 2026fix(progress): Detect Ghostty through TERM over SSH — rust-cli/anstyle0 reactions · 1 comment
- Nov 3, 2026test(m2): add plain-start kimi client — TUBEOF/PROxyLLM0 reactions
- Nov 3, 2026Build(deps): Bump @moonshot-ai/kimi-code from 2.3.0 to 2.4.1 in /scripts/console/clients/kimi — squadroom/squadroom0 reactions · 1 comment
- Oct 31, 2026feat: move agents between builtin and custom-samples — aicage/aicage-custom-samples0 reactions
- Oct 31, 2026feat: move agents between builtin and custom-samples — aicage/aicage-custom-samples0 reactions
- Oct 31, 2026Kimi Code CLI v2.4.1 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Oct 27, 2026Kimi Code CLI v2.3.3 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Oct 26, 2026Kimi Code CLI v2.3.2 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Oct 22, 2026feat(kimi-code): support [mcp] default_deferred and document wider guard switch — dyoshikawa/rulesync0 reactions
- Oct 15, 2026Kimi Code CLI v2.2.0 发布,需验证兼容性 — Yann-Up/kimi-code-desktop0 reactions
- Sep 17, 2026feat(kimi-code): update placemat for Kimi Code v2.0.0 — dommango/agentmats0 reactions
- Aug 17, 2026Add GoodMemory to Kimi Plugins — hashgraph-online/awesome-ai-plugins0 reactions · 15 comments
- Aug 12, 2026Kimi Code upstream update is ready to review — openomnidesk/kimi-code-desktop0 reactions
On Bluesky · 3
- Jul 20, 2026Kimi Code CLI — The Starting Point for Next-Gen Agents github.com/MoonshotAI/k... — @ds-nana.bsky.social4 likes and reposts
- Jul 24, 2026I came across this fascinating GitHub project on AI-powered terminal coding: edit code, run commands, and more! Supports multiple AI… — @alexiskirke.bsky.social3 likes and reposts
- Jun 14, 2026Kimi Code CLI、homebrewに追加されてました。brew install kimi-code — @matsuu.bsky.social1 likes and repost
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- gen-changesetsSkill
- gen-docsSkill
- pre-changelogSkill
- review-duplicationSkill
- review-prSkill
- sync-changelogSkill
- translate-docsSkill
- write-prSkill
- write-tuiSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
When calling Kimi Code as a one-shot subagent -- or running single-turn benchmarks and fire-and-collect tasks where you only need the final …
- Very specific: line 42
Check kill -0 "$pid", map host "0.0.0.0" to "127.0.0.1" ("::" / "::1" to "[::1]"), and pick the first http://<host>:<port> where GET …
- Very specific: line 43
Fallback -- start an on-demand server: if no compatible live instance responds, spawn kimi web --port 0 --json in the background, parse { …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Use Kimi Code
Keep this skill version-independent: when saving or updating a local copy of this skill, keep only the mode selection and local discovery steps below. Do not copy runtime API routes, request bodies, or schemas into SKILL.md -- always fetch them from the running local Kimi Code server so they match the installed version.
1. One-shot unattended tasks (kimi -p)
When calling Kimi Code as a one-shot subagent -- or running single-turn benchmarks and fire-and-collect tasks where you only need the final output without multi-turn follow-up or mid-run intervention -- run the CLI directly in the target working directory:
kimi -p "<task>" --output-format stream-json --model <model>Common options (run kimi --help to check the exact flags of the installed CLI version):
--output-format <text|stream-json>: defaults totext(assistant reply onstdout); passstream-jsonfor structured JSONL events onstdout.-m, --model <model>: override the model alias for this run (defaults todefault_modelinconfig.toml).-S, --session <id>/-c, --continue: resume a specific session ID or continue the latest session in the working directory.--agent <name>/--agent-file <path>: start a new session with a custom agent profile (cannot be combined with-S/-c).--add-dir <dir>/--skills-dir <dir>: grant access to additional directories or custom skill directories (repeatable).
(-p already runs unattended; do not combine -p with --yolo, --auto, or --plan.)
2. Multi-turn collaboration & session management (KAP)
For richer session workflows -- such as bidirectional session handoff (HandOff to or from Kimi Code), spawning parallel sessions, organizing session history across workspaces, multi-turn Agent-to-Agent plan discussions, or supervising and steering an active session -- connect to the local Kimi Code server over the Kimi Agent Protocol (KAP):
- Resolve the local KAP server
ORIGINandTOKEN:- Attach to a running Desktop or
kimi webinstance first (so new or updated sessions appear live in the user's open window without manual refresh):- Set
KIMI_HOME="${KIMI_CODE_HOME:-$HOME/.kimi-code}"andTOKEN="$(tr -d '[:space:]' < "$KIMI_HOME/server.token")". - Sort
"$KIMI_HOME"/server/instances/*.jsondeterministically --product == "kimi-code-desktop"first, then neweststarted_at(do not iterate*.jsonin raw ULID filename order, which picks the oldest instance first):jq -rs 'map(select((.port // 0) > 0)) | sort_by((if .product == "kimi-code-desktop" then 0 else 1 end), -(.started_at // 0)) | .[] | "\(.pid)\t\(.host)\t\(.port)"' "$KIMI_HOME"/server/instances/*.json - Check
kill -0 "$pid", maphost"0.0.0.0"to"127.0.0.1"("::"/"::1"to"[::1]"), and pick the firsthttp://<host>:<port>whereGET /api/v1/kap.md(Authorization: Bearer ${TOKEN}) returns HTTP200(skipping older background instances from CLI <v2.7.0or Desktop <v1.4.0).
- Set
- Fallback -- start an on-demand server: if no compatible live instance responds, spawn
kimi web --port 0 --jsonin the background, parse{ origin, token }from line 1 ofstdout, keep that process running until active work finishes, and stop it (SIGTERM) afterward.
- Attach to a running Desktop or
- Fetch the installed version's KAP usage guide and API schemas:
- Current version's workflow, workspace placement & endpoint usage guide:
(Follow its workspace placement rule when creating sessions -- e.g. reusingcurl -sf -H "Authorization: Bearer ${TOKEN}" "${ORIGIN}/api/v1/kap.md"$KIMI_CODE_WORKSPACE_IDor matchingGET /api/v1/workspacesso new sessions land in the user's active workspace.) - Exact REST endpoint parameters & response schemas (OpenAPI 3.0):
Query specific paths withcurl -sf -H "Authorization: Bearer ${TOKEN}" "${ORIGIN}/openapi.json"jq(e.g.jq '.paths | keys'orjq '.paths["<path>"]') to inspect exact request fields, query parameters, and response schemas for the installed version. - WebSocket event & frame schemas (AsyncAPI 3.1, when subscribing over WS):
curl -sf -H "Authorization: Bearer ${TOKEN}" "${ORIGIN}/asyncapi.json"
- Current version's workflow, workspace placement & endpoint usage guide:
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

