Kimi-Dev: Agentless Training as Skill Prior for SWE-agents

Zonghan Yang, Shengjie Wang, Kelin Fu, Wenyang He, Weimin Xiong, Yibo Liu, Yibo Miao, Bofei Gao, Yejie Wang, Yingwei Ma, Yanhao Li, Yue Liu, Zhenxing Hu, kaitai zhang, Shuyi Wang, Huarong Chen, Flood Sung, Yang Liu, Yang Gao, Zhilin Yang, Tianyu Liu

Introduction

In the rapidly evolving landscape of AI-driven software engineering (SWE), two dominant paradigms have emerged for solving complex bugs. Agentic Frameworks deploy models that act like human developers—interacting with a terminal, using tools, and iterating over multiple turns. While highly flexible, they are notoriously difficult to train due to sparse rewards, as success is only measurable at the end of a long sequence of actions. Conversely, Agentless Workflows follow a fixed, step-by-step pipeline (e.g., localize the file, write the fix, verify). These are easier to optimize but often lack the adaptability needed for non-linear debugging scenarios.

Rather than treating these approaches as mutually exclusive, recent research asks a pivotal question: Can the structured nature of Agentless workflows be used to train a model that eventually becomes a superior autonomous agent?

Kimi-Dev introduces a novel training philosophy that answers this question. By using structured workflows to bake essential skills into a model before deploying it in a flexible, multi-turn environment, Kimi-Dev achieves state-of-the-art performance and proves that rigid training can effectively induce strong "skill priors" for adaptable agents.

The Kimi-Dev Approach

Kimi-Dev is a 72B parameter model (built on the Qwen 2.5 architecture) trained using a multi-stage "Agentless" recipe designed to systematically build core software engineering competencies.

The Agentless workflow illustrating the interaction between BugFixer and TestWriter.

The training pipeline consists of several key phases:

  1. Mid-training: The model processes approximately 150 billion tokens of high-quality GitHub issues and PR commits. This phase teaches the model how human developers reason through code changes.
  2. Cold-Start (Long CoT): To activate deep analytical thinking, the model is fine-tuned on reasoning trajectories generated by DeepSeek-R1. This "bakes in" a long Chain-of-Thought (CoT) capability, forcing the model to thoroughly analyze problems before acting.
  3. Reinforcement Learning (RL): Utilizing a REINFORCE-based algorithm, the model is trained with verifiable rewards. It only receives a positive reward if its generated code patch passes actual unit tests. This stage hones the "code edit" skill using objective ground truth rather than subjective text-similarity metrics.
  4. Test-time Self-Play: During evaluation, the model generates multiple candidate patches (acting as a BugFixer) and multiple candidate tests (acting as a TestWriter). It then "plays" them against each other, scoring patches based on how many generated tests they pass to select the final, most robust answer.

Key Insights

The development of Kimi-Dev yields several critical insights into LLM training for coding tasks:

  • Agentless as a "Skill Prior": Training a model on a rigid workflow is not a limitation; it is a highly effective way to build foundational "muscles" such as file localization, precise editing, and self-reflection. These skills transfer seamlessly to complex, multi-turn agentic tasks.
  • Long CoT is Essential for SWE: Forcing the model to "think" via long-form reasoning before writing code drastically improves self-correction. The model frequently catches its own logical errors during the reasoning phase, long before a test is ever run.
  • Data Efficiency: Models equipped with strong Agentless skill priors require significantly less "agentic" training data to reach high performance compared to standard base models.

Results & Performance

Kimi-Dev was evaluated across rigorous benchmarks, including SWE-bench Verified, SWE-bench-live (a contamination-free dataset of recent issues), and SWE-bench Multilingual.

Pass rate scaling of Test-time Self-play compared to Pass@N across different numbers of generated patches.

The results establish Kimi-Dev as a state-of-the-art open-source solution:

  • Workflow SOTA: In its workflow mode, Kimi-Dev achieved a remarkable 60.4% on SWE-bench Verified. This is the highest score among all open-source workflow-based approaches, notably outperforming proprietary models like OpenAI-o1.
  • Agentic Adaptation: When the Kimi-Dev "prior" was fine-tuned on just 5,000 agentic trajectories, it successfully transitioned into a full multi-turn environment, reaching 48.6% pass@1. This performance is on par with the October 2024 version of Claude 3.5 Sonnet.

Limitations and Future Work

While Kimi-Dev bridges a crucial gap in SWE-agent training, challenges remain. The "TestWriter" component occasionally produces false positives—tests that pass for the wrong reasons—indicating that the model's "judge" capabilities need further refinement. Additionally, while the model demonstrates promise on multilingual benchmarks, its performance is currently heavily biased toward Python.

Future work will focus on expanding the high-quality training recipe to other programming languages and scaling reinforcement learning directly within the multi-turn agentic framework, leveraging the strong starting point Kimi-Dev provides.

Summary updated

BibTeX
@inproceedings{yang2026kimi,
  author = {Zonghan Yang and Shengjie Wang and Kelin Fu and Wenyang He and Weimin Xiong and Yibo Liu and Yibo Miao and Bofei Gao and Yejie Wang and YINGWEI MA and Yanhao Li and Yue Liu and Zhenxing Hu and kaitai zhang and Shuyi Wang and Huarong Chen and Flood Sung and Yang Liu and Yang Gao and Zhilin Yang and Tianyu Liu},
  title = {{Kimi-Dev: Agentless Training as Skill Prior for SWE-agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=tYppHuGhxJ},
}
Figure