From 74c412480510f3353ce81167d2c2dd3c168671a1 Mon Sep 17 00:00:00 2001 From: Samuel Bekele Date: Mon, 10 Aug 2026 09:55:39 +0300 Subject: [PATCH 1/2] feat(cli): add Kimi Code CLI (kimi) tool --- lua/sidekick/config.lua | 1 + sk/cli/kimi.lua | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 sk/cli/kimi.lua diff --git a/lua/sidekick/config.lua b/lua/sidekick/config.lua index d30e92e8..12e0fd45 100644 --- a/lua/sidekick/config.lua +++ b/lua/sidekick/config.lua @@ -113,6 +113,7 @@ local defaults = { cursor = {}, gemini = {}, grok = {}, + kimi = {}, opencode = {}, pi = {}, qwen = {}, diff --git a/sk/cli/kimi.lua b/sk/cli/kimi.lua new file mode 100644 index 00000000..4296ea77 --- /dev/null +++ b/sk/cli/kimi.lua @@ -0,0 +1,22 @@ +---@type sidekick.cli.Config +return { + cmd = { "kimi" }, + is_proc = "\\", + url = "https://github.com/MoonshotAI/kimi-code", + resume = { "--session" }, + continue = { "--continue" }, + format = function(text) + local Text = require("sidekick.text") + + Text.transform(text, function(str) + return str:find("[^%w/_%.%-]") and ('"' .. str .. '"') or str + end, "SidekickLocFile") + + local ret = Text.to_string(text) + + -- transform line ranges to a format that Kimi Code understands + ret = ret:gsub("@([^@]-) :L(%d+)%-L(%d+)", "@%1#L%2-%3") + + return ret + end, +} From 98c02973daaa8453dd27153f46c599f3ebd72443 Mon Sep 17 00:00:00 2001 From: Samuel Bekele Date: Mon, 10 Aug 2026 10:07:49 +0300 Subject: [PATCH 2/2] docs: add kimi to CLI tools table --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 675ee135..5f5c26de 100644 --- a/README.md +++ b/README.md @@ -342,6 +342,7 @@ local defaults = { cursor = {}, gemini = {}, grok = {}, + kimi = {}, opencode = {}, pi = {}, qwen = {}, @@ -725,6 +726,7 @@ Sidekick preconfigures popular AI CLIs. Run `:checkhealth sidekick` to see which | [`cursor`](https://cursor.com/cli) | Cursor CLI agent | See [Cursor docs](https://cursor.com/cli) | | [`gemini`](https://github.com/google-gemini/gemini-cli) | Google Gemini CLI | See [repo](https://github.com/google-gemini/gemini-cli) | | [`grok`](https://github.com/superagent-ai/grok-cli) | xAI Grok CLI | See [repo](https://github.com/superagent-ai/grok-cli) | +| [`kimi`](https://github.com/MoonshotAI/kimi-code) | Moonshot Kimi CLI | `npm install -g @moonshot-ai/kimi-code` | | [`opencode`](https://github.com/sst/opencode) | OpenCode CLI | `npm install -g opencode` | | [`qwen`](https://github.com/QwenLM/qwen-code) | Alibaba Qwen Code | See [repo](https://github.com/QwenLM/qwen-code) |