
GLM-5.2: Open Long-Horizon Agents at 1M Context
Z.ai's June 16 MIT release improves terminal, repository, tool-use, and long-running tasks through shared sparse indexing and controllable effort.
Read MoreZharfAI Research
Model release desk

Moonshot AI released Kimi K2.7 Code on June 12, 2026 as a coding-focused, open-weight agent model built on Kimi K2.6. The official model card reports about 30 percent fewer reasoning tokens and improvements across realistic software engineering and tool-use tests. The checkpoint uses a modified MIT license and forces thinking mode.
K2.7 Code is a one-trillion-parameter mixture of experts with 32 billion active parameters, 61 layers, 384 routed experts, eight selected experts plus one shared expert, 256K context, native vision through a 400M MoonViT encoder, and native INT4 quantization. The architecture is inherited from K2.6; the release is chiefly a post-training and agent-efficiency upgrade.
Moonshot targeted long-horizon completion rather than isolated code syntax. K2.7 Code improves program reimplementation, production incidents, MCP tool use, and persistent “claw” tasks. It also reduces thinking-token usage, which can lower latency and cost when output quality holds.
The model supports only thinking mode in the official usage guidance. That simplifies the product choice but prevents a direct instant-versus-reasoning comparison. Third-party serving must preserve the recommended temperature, top-p, chat template, and preserve_thinking behavior.
The weight release allows local deployment through vLLM, SGLang, or KTransformers. At one trillion total parameters, “open” does not mean easy to operate. Native INT4 reduces memory, but the model remains a distributed systems workload.

Moonshot publishes side-by-side values and methodology:
| Benchmark | Kimi K2.6 | Kimi K2.7 Code | Relative signal |
|---|---|---|---|
| Kimi Code Bench v2 | 50.9 | 62.0 | +11.1 points on internal production-shaped coding |
| Program Bench | 48.3 | 53.6 | Better black-box program reimplementation |
| MLS Bench Lite | 26.7 | 35.1 | Better machine-learning research engineering |
| Kimi Claw 24/7 | 42.9 | 46.9 | Better persistent professional-agent tasks |
| MCP Atlas | 69.4 | 76.0 | Better tool coordination |
| MCP Mark Verified | 72.8 | 81.1 | Better execution across five real server environments |
| Reasoning tokens | Baseline | About 30% fewer | Vendor average, workload dependent |
The card also compares GPT-5.5 and Claude Opus 4.8, but those models use Codex or Claude Code and different effort settings. The most defensible conclusion is improvement over K2.6 under Moonshot's matched conditions.
Program Bench gives an agent a compiled executable and documentation but no source, decompiler, or internet. It must recreate behavior and pass more than 248,000 fuzz-generated tests across 200 programs, from small tools to FFmpeg- and SQLite-scale systems.
K2.7 Code's 53.6 versus 48.3 indicates better inference about hidden behavior and implementation. This is relevant to compatibility engineering and migration. It is not permission to reverse engineer software contrary to license or policy.
Local evaluation can borrow the principle: hide reference implementation, expose contract and tests, and measure behavior. Require maintainable source and security review. Passing fuzz tests is strong evidence but may miss performance, undefined behavior, or undocumented edge cases.
MCP Atlas rises to 76.0 and MCP Mark Verified to 81.1. The latter covers Notion, GitHub, filesystem, Postgres, and Playwright servers with human-checked tasks. Moonshot uses a 100-step budget and 32K maximum tokens per step, averaging three runs.
Those settings are generous and must travel with the score. A production agent may have a smaller budget and stricter timeouts. Tool schema, authentication, rate limits, and environment state can dominate. Test the exact servers and permissions intended for deployment.
The model's ability to manipulate tools increases the need for authorization. Read-only, write, send, and delete scopes should be separate. Log arguments and results, use idempotency, and require confirmation for material actions.
Kimi Claw 24/7 is an internal benchmark with 17 professional scenarios and 610 evaluation points across software, ML research, recruiting, trading, and marketing. Tasks run through OpenClaw and are averaged across three runs.
The increase from 42.9 to 46.9 is modest but relevant. Persistent work is difficult, and internal cases may resemble the product more than static code tests. Because the benchmark is not yet a fully independent public standard, teams should reproduce its ideas rather than accept the number alone.
Use day-scale simulations with interruptions, changing constraints, and checkpoints. Track whether the agent maintains intent, records decisions, and stops when authority is unclear. Final completion without an auditable path is not enough.
Thirty percent fewer reasoning tokens can materially reduce cost and latency. It may also reflect shorter but riskier thinking on some tasks. The only safe measurement holds task and accepted result constant.
Record input, visible output, hidden or billed reasoning where available, tool calls, elapsed time, and reviewer corrections. Compare K2.6 and K2.7 under the same scaffold and context. A token reduction that lowers resolution is not efficiency.
Moonshot's table is valuable because it pairs capability increases with the efficiency claim. Still, internal prompt distributions determine the average. The inference latency guide provides a complete cost model.
Native INT4 makes a trillion-parameter checkpoint more practical, not small. Teams need multi-node storage and serving, compatible kernels, fast interconnect, and careful expert parallelism. Vision input adds preprocessing and memory. The 256K context increases cache needs.
The Kimi Code changelog is also necessary chronology evidence: it identifies June 12 as the product release rather than the date a model repository was later updated. Deployment records should preserve both the announcement date and the exact weight revision, because those answer different audit questions.
Pin model revision, custom code, tokenizer, quantization, and engine. Start with the official API or a trusted reference endpoint, then compare self-hosted output. Use a fixed regression set across code, tools, vision, and safety. The open-model operations guide covers supply-chain and rollout controls.
The modified MIT license must be reviewed rather than summarized as ordinary MIT. Record the exact license file with the deployed revision.
An acceptance run should include dependency failures, ambiguous specifications, large binary artifacts, and tools that return stale state. Track whether the model notices incomplete tests and whether it asks before broad rewrites. For MCP, rotate credentials and simulate expired sessions. Long-horizon competence is valuable only when the agent recovers safely instead of retrying destructive actions.
Kimi K2.7 Code is a major open coding release because it publishes a detailed matched comparison to K2.6, improves real tool benchmarks, and targets reasoning-token efficiency. Its strongest claim is not universal frontier leadership; it is a material same-family upgrade with downloadable weights.
The model fits organizations able to operate very large checkpoints and teams using Kimi Code or MCP-heavy agents. A controlled pilot should reproduce Program Bench-like behavior, real server tasks, and persistent workflows. For the architecture beyond this generation, see our Kimi K3 technical deep dive.
Keep a smaller baseline in the same evaluation. K2.7 earns its infrastructure only when the added completion rate or token efficiency outweighs distributed-serving complexity. That comparison prevents parameter scale from becoming a procurement goal by itself.

Z.ai's June 16 MIT release improves terminal, repository, tool-use, and long-running tasks through shared sparse indexing and controllable effort.
Read More
MiniMax combines sparse attention, native image and video input, computer use, and frontier coding in one open-weight model built for long-running work.
Read More
SpaceXAI's July 16 model posts 83.3% on Terminal-Bench 2.1 and 64.7% on SWE-bench Pro while averaging 15,954 output tokens per task.
Read MoreGet in touch with our team to discuss how we can help your business.