ToolsThe story, in brief

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

JetBrains open-sources KotlinLLM: LLM-generated code compiles to static Kotlin, then runs with zero inference overhead.

Paper-cut illustration of a coral software window opening into a three-dimensional drafting space.
New tools for building and creating with AI.AI illustration by KeyNews
The KeyNews take

Why it matters

A practical tool for Kotlin developers that uses LLMs to generate code once at development time, compiles it into the running JVM, and eliminates runtime inference costs — changing how teams think about LLM-assisted development beyond simple API calls.

The key facts

11 to know
  1. JetBrains Research open-sources KotlinLLM under Apache 2.0

  2. IntelliJ IDEA plugin with Smart macros (asLlm, mockLlm)

  3. Captures runtime values via JDI, requests narrow code updates from LLM agent, compiles and hot-reloads via class redefinition

  4. 24/24 scenarios completed with 100% hot-reload success rate on adapted Spring Petclinic

  5. Approximately 1% runtime overhead after compilation

  6. Generated code runs as plain Kotlin with no further inference calls

  7. JetBrains Research open-sourced KotlinLLM under Apache 2.0

  8. LLM generates Kotlin source once; compiles and hot-reloads via JDI

  9. 24/24 scenarios completed on Spring Petclinic; 100% hot-reload success rate

  10. ~1% runtime overhead post-generation

  11. No inference calls after initial code generation

Go to the source

MarkTechPostmarktechpost.com

Publisher excerpt: 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…
Read original report
Back to today's editionMore tools news

Keep reading

Related stories

More from Tools