首页›Kotlin Blog›文章

Kotlin Benchmark 2.0: How AI Coding Agents Handle Harder Tasks and Closed-Source Code

Alyona Chernyaeva · 2026年11月23日

AI 摘要 AI 生成,可能有误

JetBrains 发布了更新的 Kotlin Benchmark,其中包含更难的、需要多文件更改的仓库级任务,外加 30 个来自 JetBrains 私有仓库的闭源任务以对抗数据污染,并对开源任务限制了网络访问以防止奖励作弊。该排行榜现已纳入开放权重的 Kimi 和 DeepSeek 等新模型,并在解决率之外还报告每个任务的平均成本、token 数量和步骤数。在最新结果中,搭配 Opus 5.5 的 Claude Code 取得了最佳的全套基准解决率(75.3%),搭配 Fable 5.1 的 Claude Code 在开源任务上领先(86.2%),而搭配 Gemini 3.8 Flash 的 Antigravity CLI 则在闭源任务上表现最佳(60%)。

In July, we released the Kotlin Benchmark – a collection of 105 real repository-level tasks for evaluating AI coding agents’ work with Kotlin. Since then, we’ve updated it to be more representative of what Kotlin teams do, with more reliable results and more data to help you choose an agent-model configuration.

The new tasks require changes across multiple files, come from projects in different Kotlin domains, and include code from private repositories. To prevent reward hacking and improve the reliability of our results, we restricted network access when agents solve open-source tasks, so they can’t look up a fix that has already been published. We also set 30-minute-per-task resolution time limit for each configuration, balancing the additional time required to solve complex problems with the need for a manageable evaluation time.

See the latest Kotlin Benchmark results

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Kotlin Blog

Kotlin 2.5.0 Released

AI 摘要Kotlin 2.5.0 has been released, marking Kotlin/Wasm as stable and introducing highlights such as stable name-based destructuring, an unused return value checker, Java 28 support for Kotlin/JVM, Swift export in Beta for Kotlin/Native, and a new publication format for Kotlin Multiplatform libraries. The release is available through the latest versions of IntelliJ IDEA and Android Studio, via build script updates, or as a command-line compiler from GitHub. Additionally, the team launched a monthly Kotlin Security Newsletter covering security fixes across Kotlin and its ecosystem.

Value classes in Kotlin 2.5.0 and beyond

AI 摘要Kotlin 2.5.0 introduces full value classes in Alpha stage—immutable classes with an unrestricted number of primary properties that work on all platforms and JVM versions, with the option to compile to JVM value classes starting with JDK 28 to leverage Project Valhalla performance benefits. Unlike data classes, they generate only equals(), hashCode(), and toString(), use name-based destructuring instead of position-based, and will get ergonomic update syntax ('a better copy') expected in Kotlin 2.6.0, while existing inline value classes remain supported and become multiplatform with the inline modifier in Kotlin 2.5.20. Since these features are still Alpha and not production-ready, JetBrains encourages community experimentation and feedback before the final design is committed.

Compose Multiplatform 1.13.0 Released

AI 摘要Compose Multiplatform 1.13.0 has been released, bringing improvements to iOS, web, and desktop development. Key highlights include content-based sizing for Compose views embedded in SwiftUI and UIKit, an experimental WebGL interoperability API for rendering custom graphics and JavaScript content like three.js scenes, and faster desktop startup via AppCDS or AOT caching (with cold starts up to 4.8× faster in benchmarks). The release also incorporates updates from Jetpack Compose 1.13, such as the state-based BasicTextField and stabilized FlexBox, Grid, and LazyLayoutCacheWindow APIs.

Kodee’s Kotlin Roundup: Build Your Next App With One Prompt, a New Coroutines Course, and Kotlin on LinkedIn

AI 摘要This Kotlin roundup highlights a demo of building and publishing a multiplatform app from a single prompt using an AI coding agent, along with Kotlin Toolchain 0.14's new features like one-command iOS publishing, MCP/AGENTS.md agent setup, and over three times faster dependency resolution. It also announces a free 4-hour Kotlin Coroutines course, Kotlin's new LinkedIn page, a Kotlin Security Newsletter, Kotlin Benchmark 2.0 results for AI agents, and Kotlin 2.5.0-RC2 with name-based destructuring, an unused return value checker, and Java 28 support. Additional updates cover Exposed 1.6.0's What's New page with R2DBC support, Advent of Code 2026 for practicing Kotlin, and various community resources, videos, and contests.

Introducing the Kotlin Security Newsletter

AI 摘要The Kotlin team at JetBrains is launching the Kotlin Security Newsletter, a monthly digest that consolidates security fixes for Kotlin and its ecosystem (including the kotlinx libraries, Compose Multiplatform, Ktor, and Exposed), along with broader ecosystem security news affecting Android, server-side, and Kotlin Multiplatform development. The newsletter responds to a sharp rise in security updates—the team published 10 fixes this year versus one in each of the previous two years, mirroring an industry-wide trend accelerated by AI-assisted security research. Each digest will also occasionally announce community security events, and readers are asked to report vulnerabilities via the Kotlin issue tracker or security@jetbrains.com, following JetBrains' coordinated disclosure policy.