Kimi K2.7-Code: Open-Source Coding Model with Better Token Efficiency

Moonshot AI has released Kimi K2.7-Code, an open-source coding model available on Hugging Face under the moonshotai/Kimi-K2.7-Code namespace. The model is tagged as image-text-to-text and uses the Transformers library. It positions itself as a token-efficient alternative for code generation and understanding tasks.
Key Features
- Inference providers: Novita offers the model with live status, tool calling support (
toolCalling: true), and structured output currently unavailable. Throughput measured at 36.1 tokens/second. - Model architecture: The model comes in 64 shards (safetensors format:
model-00001-of-000064.safetensors). - Token efficiency: The model uses a custom chat template that preserves reasoning content (
preserve_thinking: true) and optimizes token usage by separating history and suffix messages. The template includes special tokens like<|im_user|>,<|im_assistant|>, and<|im_system|>for role management, and<think>/</think>blocks to encapsulate chain-of-thought reasoning. - Tool calling: Native support for tool calls with structured argument formatting, using
<|tool_call_begin|>and<|tool_call_end|>markers. - Community engagement: 334 likes on Hugging Face, with 4 HN comments and 41 points as of publication.
Practical Implications
The template design explicitly avoids embedding reasoning tokens in history when preserve_thinking is false, reducing context overhead. For developers using AI coding agents, this means lower token consumption per interaction — especially beneficial for long agentic loops where reasoning chains are repeated. The tool calling format is JSON-aligned, making it straightforward to integrate with existing function-calling pipelines.
The model is available for immediate use via Novita, and the Hugging Face repository includes full tokenizer config and template source.
📖 Read the full source: HN AI Agents
👀 See Also

Anthropic Reverses Policy on Third-Party Agent SDK and claude-p, Cuts Effective Inference Value by 25-40x for Max Subscribers
Anthropic reversed its ban on third-party agents using subscription credentials but moved claude-p and the Agent SDK to a separate, non-rollover credit pool billed at API rates, reducing effective inference value by 25-40x for Max subscribers.

Claude Code source leak reveals autoDream memory system and multi-agent patterns
Anthropic accidentally shipped Claude Code's TypeScript source in npm source maps, revealing autoDream memory consolidation, modular system prompt architecture, and multi-agent coordinator patterns.

Weekly r/ClaudeAI Survival Guide: Opus 4.7, Billing Bug, and Database Deletion Incident
Wilson's weekly Survival Guide distills top r/ClaudeAI threads (50+ comments) into actionable lessons: Opus 4.7 discourse, a $200 billing bug triggered by git filename, an AI agent that deleted an entire database in 9 seconds, and Copilot's 9x price hike on Claude models.

AI Eats the World (Spring 2026) – A Comprehensive Market Analysis
An in-depth PDF report on AI industry trends, market sizes, and adoption metrics for Spring 2026, covering key technologies, players, and forecasts.