JetBrains开源KotlinLLM:智能宏运行时生成Kotlin代码并热重载

JetBrains Open-Sources KotlinLLM: Smart Macros That Generate Kotlin Source Code at Runtime and Hot-Reload It Through JDI

精选理由

JetBrains把KotlinLLM开源了,这个插件让LLM生成Kotlin代码直接跑,跑完就不再调模型,开销只有1%,挺有意思。

AI 摘要

JetBrains Research将KotlinLLM以Apache License 2.0协议开源。这款IntelliJ IDEA插件原型提供asLlm和mockLlm两个智能宏,其主体是生成的Kotlin源码而非实时模型调用。KotlinLLM通过JDI捕获运行时值,让LLM Agent生成窄范围代码更新,编译后重定义已加载类。在改造版Spring Petclinic项目上,24个场景全部完成,热重载成功率100%,运行时开销约1%。

图片来源 · marktechpost
原文 · marktechpost

JetBrains Open-Sources KotlinLLM: Smart Macros That Generate Kotlin Source Code at Runtime and Hot-Reload It Through JDI

JetBrains Research has open-sourced KotlinLLM under the Apache License 2.0. The IntelliJ IDEA plugin prototype adds Smart macros, asLlm and mockLlm, whose bodies are generated Kotlin source rather than live model calls. The plugin captures runtime values through JDI, asks an LLM agent for a narrow code update, compiles it, and redefines the loaded class. Covered scenarios then run as plain Kotlin with no further inference call. On an adapted Spring Petclinic project, 24 of 24 scenarios completed with a 100% hot-reload success rate and roughly 1% runtime overhead. The post JetBrains Open-Sources KotlinLLM: Smart Macros That Generate Kotlin Source Code at Runtime and Hot-Reload It Through JDI appeared first on MarkTechPost .

JetBrains开源KotlinLLM:智能宏运行时生成Kotlin代码并热重载 · AI 热点