Glean 拾遗
Daily /2026-06-17 / Kimi Code + K2.7 Code Hands-On: Can It Replace Claude Code?

Kimi Code + K2.7 Code Hands-On: Can It Replace Claude Code?

Source mp.weixin.qq.com Glean’d 2026-06-17 15:38 Read 1 min
AI summary

A hands-on evaluation of Kimi Code paired with the K2.7 Code model as a potential Claude Code replacement. Tests include using video understanding to replicate an ink-wash animation, using the /goal command to autonomously compress a 2.1MB image to below 120KB, and running a suite of web UI, game, and animation programming challenges. Kimi Code is found to be highly compatible with Claude Code's commands and permission system. The /goal command enables fully unattended task execution. The K2.7 model demonstrates stable code generation capability with a claimed 30% average reduction in reasoning token consumption. A unique built-in Datasource plugin allows querying real-time financial data, company records, and academic papers via natural language within the CLI.

Original · 1 min
mp.weixin.qq.com ↗
§ 1

Last week, the two biggest news stories were: Fable 5 (currently the strongest model) was taken offline, and SpaceX went public. Interestingly, both events involve the domestic large model Kimi. First, almost at the same time Fable 5 was taken offline, Kimi released its latest flagship model K2.7 Code[1], which possesses the strongest coding capabilities in this series. The coincidence in timing inevitably creates the impression that Kimi is filling the gap left by its predecessor. Second, SpaceX's listing means that Cursor, the coding agent it acquired for $60 billion, will also go public. One reason for Cursor's high valuation is that it has its own base model Composer, but we now know that the current Composer 2 was not independently developed but is based on Kimi K2.5. Interestingly, Kimi's own coding agent, Kimi Code[2], has also been undergoing intensive updates recently. It claims to be a rival to Claude Code, positioning itself as the best companion for K2.7 Code. These two things together made me very curious about Kimi's new model and coding agent. Although Kimi has never been a household name, it has always enjoyed a good reputation both domestically and internationally, with a considerable user base. The general consensus is that it is capable, affordable, and offers outstanding value for money. I wanted to know: can it really challenge Anthropic and replace Claude Code? So, I immediately got my hands on the Kimi Code + K2.7 Code combo to see how they actually perform.

上周有两条最大的新闻:目前最强的模型 Fable 5 下架,以及 SpaceX 公司上市。

奇妙的是,这两件事都牵涉到了国产大模型 Kimi。

首先,几乎在 Fable 5 下架的同一时间,Kimi 发布了最新的旗舰模型 K2.7 Code[1],拥有这个系列最强的代码能力。这个时间的巧合,难免给人留下一种印象:Kimi 在抢占前者留下的空位。

其次,SpaceX 的上市意味着,它花了600亿美元收购的编程代理 Cursor 也将连带上市。而 Cursor 的估值之所以这么高,一个原因是它有自己的基座模型 Composer,但我们已经知道,目前的 Composer 2 并不是独立研发的,而是基于 Kimi K2.5 模型。

有意思的是,Kimi 自己的编程代理 Kimi Code[2],最近也在密集更新。它号称对标 Claude Code,是 K2.7 Code 的最佳伴侣。

这两件事加在一起,不禁让我对 Kimi 的新模型 + 编程代理充满了兴趣。Kimi 虽然没有大红大紫过,但国内外口碑一向很好,用户数量并不少,普遍的评价是能力强,价格低,性价比突出。

我想知道的是,它真的能挑战 Anthropic 公司,替代 Claude Code 吗?

于是,我第一时间就上手测试了 Kimi Code + K2.7 Code 这个组合,看看它们到底表现如何。

§ 2

Coding agents are the most convenient way to use large models on the command line. Claude Code is the pioneer in this field and has the highest market share. Now, almost all large model companies have launched their own coding agents, and Kimi Code is one of them. My biggest impression after using it is that it really looks and feels very similar to Claude Code—they have an extremely high degree of similarity. The first image above shows the startup interface of Kimi Code, and the second shows Claude Code. They look quite alike, don't they? Their operation commands are also compatible. Almost all commands for Claude Code can be run on Kimi Code; I haven't encountered any unsupported ones yet. Even the 'permission approval' prompts during runtime are very similar, appearing with roughly the same frequency. The first image above shows a permission approval request from Kimi Code, and the second from Claude Code. Honestly, if you didn't know, just looking at the UI, you might not be able to tell them apart.

编程代理是命令行下使用大模型最方便的方法,Claude Code 是这个领域的先行者,市占率最高。

现在,几乎所有大模型公司都推出了自家的编程代理,Kimi Code 就是其中的一种。

我使用下来,最大感受就是,它跟 Claude Code 真的太像了,两者相似度极高。

上面第一张图是 Kimi Code 的启动界面,第二张是 Claude Code,是不是很像?

它们的操作命令也是兼容的,几乎所有 Claude Code 的命令,Kimi Code 都能跑,反正我还没遇到不支持的情况。

甚至运行过程中“权限批准”的提示都很相似,出现频率也差不多。

上面第一张图是 Kimi Code 的权限批准请求,第二张是 Claude Code。

说实话,如果不说,光看 UI 真有可能分不清谁是谁。

§ 3

A few days ago, when Fable 5 was released (before it was taken offline), a Japanese netizen used it to generate an ink wash effect[3], where ink naturally spreads, flows, and blends on paper. I found the demonstration very impressive. Since a key feature of Kimi Code is its ability to understand images and videos and generate code based on visual input, my first test was to have it produce this ink wash effect. I submitted this video to Kimi Code and asked K2.7 to generate a similar effect based on the video. I dragged the video into the dialog box and entered the prompt: 'Refer to this video and generate an effect of ink naturally spreading, flowing, and blending on paper.' Kimi Code then broke down the video into a series of screenshots, analyzed them one by one, and finally generated the result shown below[4]. As you can see, it completely replicated the UI from the video and created the ink flow effect. However, because the animation effect was copied from the video rather than generated by a pure algorithm, it is not as smooth as the original. If the video contained a static webpage, I believe it could replicate it exactly. I have posted the generated result online; you can check it here[5]. Kimi Code's visual capability has great practical value. Just think: you can send screenshots and screen recordings directly to the model, saving you the trouble of lengthy and imprecise language descriptions, making it easier to get the desired result.

前几天,Fable 5 发布的时候(没被下架前),一个日本网友用它生成了一个水墨效果[3],墨水在纸上自然晕染、流动和融合。

我觉得这个演示非常惊艳,正好 Kimi Code 的一大特色就是可以理解图像和视频,根据视觉来生成代码,所以我的第一个测试就让它生成这个水墨效果。

我把这段视频提交给 Kimi Code,让 K2.7 参照视频生成类似效果。

视频拖到对话框,输入提示词:“参照这段视频,生成墨水在纸上自然晕染、流动和融合的效果。”

Kimi Code 就把视频拆分成一系列截图,逐一进行分析,最后生成了下面的结果[4]。

可以看到,它完全复刻了视频里面的 UI,做出了墨汁流动的效果。不过,动画效果因为是复制视频的,不是纯粹的算法,所以不如原始视频流畅。

如果视频里面是一个静态网页,我相信可以一模一样复刻出来。我把生成结果放到网上,可以点击这里[5]查看。

Kimi Code 的这种视觉能力,具有极大的实用价值。想想看,只要把截图和录屏发给模型就行了,省却了冗长而不精确的语言描述,可以更容易地获取想要的结果。

§ 4

Kimi Code recently also supports the /goal command. I think this is a very important feature, so I had to test it. The /goal command is used to set a specific goal for the large model. Once the goal is achieved, the model stops running immediately. The reason for introducing this command is that prompts are often too vague, just a general description, causing the model to overthink, initiate multiple rounds of cycles, and constantly ask for user confirmation, which is very time-consuming and costly. With the /goal command, the model has a clear goal and can theoretically run autonomously without user intervention, stopping automatically once the preset condition is met. My test was simple. I found a large image (shown below) with a resolution of 6629 × 5504 pixels and a file size of 2.1MB. Then, I entered the following prompt: '/goal Resize this image so that its file size is just under 120KB.' Note that the prompt starts with the /goal command, followed by a very specific goal. At this point, Kimi Code will ask you to confirm whether you allow it to run completely autonomously. Selecting the first option, 'Switch to Auto and start,' grants full authorization to Kimi Code. There are no operations requiring your approval; you can walk away and do other things. Below is the result. It resized the image to 948 × 787 pixels, resulting in a file size of 119.59KB, which just meets the 'less than 120KB' requirement. The entire process required no human intervention and was very smooth. If you need the large model to run a task for a long time, I highly recommend using the /goal command.

Kimi Code 最近还支持了/goal命令。我觉得,这是很重要的功能,一定要测一下。

所谓/goal命令,就是用来为大模型设置一个具体的目标,一旦实现该目标,模型就立即停止运行。

之所以要引入这个命令,是因为提示词很多时候过于模糊,只是一个笼统的描述,导致大模型反复思考,发起多轮循环,不停地要求用户确认,非常费事费时费钱。

有了/goal命令,大模型就有了明确目标,理论上可以自主运行,不需要用户介入,一旦满足了预设的条件就自动停止。

我的测试很简单。我找来一张体积很大的图片(下图),分辨率高达 6629 × 5504 像素,体积足足有 2.1MB。

然后,输入下面的提示词。

/goal 重新调整这张图片的尺寸,使其体积刚好小于 120KB。

注意,提示词的最前面是/goal命令,后面则是一个非常具体的目标。

这时,Kimi Code 会要你确认,是否允许它完全自主运行。

选择第一个选项“Switch to Auto and start”(完全自主运行),就会完全授权 Kimi Code,没有任何需要你来批准的操作,你完全可以走开干其他事情。

下面就是运行结果。

● 已完成图片尺寸调整。

• 原图:6629 × 5504 像素,约 2.1 MB • 调整后:948 × 787 像素,122457 字节(约 119.59 KB) • 文件路径:/Users/ruanyf/del-202606/demo.jpg

最终文件体积刚好小于 120KB,并通过 python3 读取文件大小进行了验证。

可以看到,它把图片分辨率缩小到 948 × 787 像素,体积为 119.59KB,刚好满足“小于 120KB”的要求。

整个过程完全不需要人工介入,非常丝滑。如果需要让大模型长时间运行某个任务,我强烈推荐使用/goal命令。

§ 5

Long-time readers know that I have created an AI test case repository[6], collecting some programming problems, mainly web programming, to test various large models. Running different models through these problems makes it easy to compare them. Below are the test results for K2.7. I have already published the generated results online; you can check them via the links below.

(1) Web UI Refactoring Test[7].

(2) Web 3D Animation Test 'Celestial Body Simulator'[8].

(3) Web Game Test 'Angry Birds'[9].

(4) Web 2D Animation Test 'Maxwell's Demon Experiment'[10].

(5) SVG Image Test 'Pelican Riding a Bicycle'[11].

From these tests, the web capabilities of Kimi K2.7 are solid, and all results are normal. I just feel that the UI could be a bit more refined.

老读者知道,我做过一个 AI 测试题库[6],收集了一些编程题,主要是网页编程,用来测试各种大模型。不同的模型都跑一下这些题目,便于比较。

下面就是 K2.7 的测试结果,我已经把生成结果发布到网上了,大家可以点击下面的链接查看。

(1)网页 UI 重构测试[7]。

(2)网页 3D 动画测试《天体模拟器》[8]。

(3)网页游戏测试《愤怒的小鸟》[9]。

(4)网页 2D 动画测试《麦克斯韦小恶魔实验》[10]。

(5)SVG 图片测试《骑自行车的鹈鹕》[11]。

从这几个测试来看,Kimi K2.7 的网页能力没有问题,都是正常结果,我只是觉得 UI 似乎还可以更精致一些。

§ 6

Most of Kimi Code's features are the same as Claude Code's, but it also has some exclusive features. Among them, my favorite is the Kimi Datasource plugin[12]. Kimi Datasource is the official data plugin for Kimi Code. It supports querying financial market data, macroeconomic indicators, company registration records, academic literature, and Chinese laws and regulations using natural language—without the need to manually call APIs or register for data accounts. It is a data source plugin that connects to databases like Tonghuashun and Tianyancha, allowing you to query real-time stock prices, financial reports, academic papers, etc., for free. It's very practical. Installation is simple: enter /plugins, select Marketplace to enter Kimi's plugin marketplace, and choose kimi-datasource. Then, enter /reload to activate the plugin. When using it, enter /kimi-datasource [your question] to query papers, financial reports, and company information. Here are a few examples:

(1) /kimi-datasource Latest research on the side effects of weight loss drugs.

(2) /kimi-datasource The latest income statement of Kweichow Moutai.

(3) /kimi-datasource Who are the shareholders of ByteDance?

This plugin can bring in the latest data for large models and supports multiple data sources. I recommend using it.

Kimi Code 的大部分功能,都跟 Claude Code 相同,但也有一些独家功能。

其中,我最喜欢的一个功能就是 Kimi Datasource 插件[12]。

Kimi Datasource 是 Kimi Code 的官方数据插件。它支持以自然语言查询金融市场数据、宏观经济指标、公司注册记录、学术文献以及中国法律法规——无需手动调用 API 或注册数据账户。

它是一个数据源插件,连接了同花顺、天眼查等数据库,可以免费查询实时股票价格、财报、学术论文等,非常实用。

安装很简单,就是输入/plugins,选中 Marketplace 进入 Kimi 的插件市场,在里面选择 kimi-datasource。

然后,输入/reload激活插件。

使用时输入/kimi-datasource [你的问题],来查询论文、财报和公司信息,下面是几个例子。

(1)/kimi-datasource 减肥药副作用的最新研究

(2)/kimi-datasource 贵州茅台的最新利润表

(3)/kimi-datasource 字节跳动有哪些股东

这个插件可以为大模型引入最新数据,支持多种数据源,推荐使用。

§ 7

After these tests, I have a very good impression of Kimi Code. It is a very useful coding agent and can indeed replace Claude Code. As for the Kimi K2.7 Code model it is paired with, being a trillion-parameter model, it has strong coding capabilities, runs very smoothly, and successfully completed all tasks. What impressed me the most is that its Token consumption is relatively economical. After running all the tests above, only a small portion of my membership quota was consumed. According to the official introduction[13], this is because K2.7's reasoning capabilities have been 'slimmed down,' with Token consumption reduced by an average of 30% compared to the previous version. Kimi's strength has always been its high cost-performance ratio, and this time it has reinforced that advantage, making it worth watching.

经过这些测试,我对 Kimi Code 的印象很不错,非常好用的编程代理,确实可以替代 Claude Code。

至于它搭配的 Kimi K2.7 Code 模型,作为一个万亿参数级的模型,代码能力强,运行非常流畅,顺利完成了各种任务。

给我印象最深的是,它的 Token 消耗相对节省,上面这么多测试跑下来,只消耗了会员额度的一小部分。

官方介绍[13]说,这是因为 K2.7 的推理能力进行了“瘦身”,Token 消耗平均比上个版本减少30%。Kimi 的优势本来就是性价比高,这次又强化了这个优势,值得看好。

Open source ↗