Skip to content
Kimi K2.7 Code: Build a Multi-File Refactor Agent — ContentBuffer guide

Kimi K2.7 Code: Build a Multi-File Refactor Agent

K
Kodetra Technologies··9 min read Intermediate

Summary

Drive Moonshot's open-weight coding model through a real tool-calling loop in Python.

Kimi K2.7 Code: Build a Multi-File Refactor Agent in Python

On June 12, 2026, Moonshot AI shipped Kimi K2.7 Code, an open-weight, coding-focused model built on the K2.6 1T-parameter Mixture-of-Experts backbone. It activates roughly 32B parameters per token, carries a 256K context window, and ships under a Modified MIT license with weights on Hugging Face. The headline that travelled fastest across r/LocalLLaMA and dev Twitter was not a chat-benchmark score. It was a single number about tool use: an early third-party read put K2.7 Code at 81.1% on MCPMark Verified, the suite that measures whether a model calls tools correctly through the Model Context Protocol. That edged out Claude Opus 4.8's 76.4% on the same test.

Keep reading — it's free

Enter your email to keep reading — plus the best of AI & tech, daily. Free, forever.

Also get
or

Already a member? Sign in

Comments

Subscribe to join the conversation...

Be the first to comment