Close Menu
NCIJ Network NCIJ Network
    What's Hot

    Best Dyson Vacuums (2026): V15 Detect, Gen5Detect, PencilVac

    July 31, 2026

    Google AI Uncovers 13-Year-Old Chrome Flaw Amid Record Patching Pace

    July 31, 2026

    Zcash fixed the flaw that nearly halved ZEC, and $926 million in leverage now tests the rebound

    July 31, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Best Dyson Vacuums (2026): V15 Detect, Gen5Detect, PencilVac
    • Google AI Uncovers 13-Year-Old Chrome Flaw Amid Record Patching Pace
    • Zcash fixed the flaw that nearly halved ZEC, and $926 million in leverage now tests the rebound
    • Floating wind turbine that will power UK gas platform ready for tow to offshore site
    • California Fails to Pass Teacher Misconduct Database Bill — ProPublica
    • A Surrogacy Scandal Reveals Germany Is Much More Socially Conservative Than You Think
    • What Tennessee school board’s 2025 policy change means for Pride flag displays
    • BP puts North Sea oil and gas business up for sale | BP
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Friday, July 31
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Artificial Intelligence

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

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKJuly 31, 2026 Artificial Intelligence No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    JetBrains Research Open-Sources KotlinLLM. KotlinLLM is an IntelliJ IDEA plugin for Kotlin/JVM projects that adds a language feature called Smart macros. A Smart macro is a regular Kotlin function call whose body is generated Kotlin code. The public API is deliberately small. asLlm(from, hint) converts an input of type F into a typed value T, such as a data class, enum, list, or primitive. mockLlm() generates a stateful implementation of an interface T, whose behavior depends on which methods are called on it.

    val issuesApiUrl: String = asLlm(repoInput, hint = "GitHub API URL: get all issues, including closed")
    val issues: List = asLlm(response, hint = "Return all beginner-friendly issues for this repository")

    The runtime loop

    When a project launches through the KotlinLLM run configuration, the plugin scans for asLlm and mockLlm calls, updates generated bootstrap/provider/parser/mock files, launches the run configuration under JDI, and registers breakpoints on generated regenerate hooks. If generated logic does not match a runtime scenario, execution reaches a hook. The plugin captures runtime values and type information from the suspended frame, the LLM agent submits a code update, and the plugin compiles it and redefines the loaded class before retrying the original call.

    KotlinLLM targets Kotlin/JVM specifically because the runtime evolution loop depends on JVM class redefinition through JDI.

    Explainer: how a Smart macro evolves

    The embed below walks the macro API, animates the nine-step runtime loop, and models why covered scenarios stop costing inference calls.

    Reported results

    On an adapted Spring Petclinic Kotlin project with 18 asLlm call sites, 24 of 24 application scenarios completed after Smart macro evolution, with a 100% hot-reload success rate and compilation/redefinition adding roughly 1% of total runtime overhead. A synthetic “GitHub Beginner Issue Radar” parsed real issue data across 20 repositories and 30k+ issues, reaching about 0.89 recall on ground-truth beginner labels.

    Setup requirements

    The plugin requires IntelliJ IDEA 2025.2.x, JDK 21, and an OpenAI API key stored in the target project’s .kotlinllm file via Tools > KotlinLLM Settings. It is released under the Apache License 2.0, with runnable examples, the thesis write-up, and the KotlinConf 2026 talk recording in the repository.

    Is it deployable?

    Not as a production runtime, at least not yet. JetBrains labels KotlinLLM a research prototype, and it is described it as an experimental IntelliJ IDEA plugin. The plugin is experimental, but its output is deployable. Once behavior has been generated, the target project can compile and run that behavior without another LLM request for the same scenario. You ship plain Kotlin, not a model dependency.

    • Company level: best fit today is R&D groups, platform teams at mid-size to large Kotlin/JVM entities, and startups with tolerance for prototype tooling. Regulated enterprises should treat generated sources as reviewable code, which is exactly how KotlinLLM stores them.
    • Industries: fintech and banking (heavy JVM/Kotlin estates), developer tooling, e-commerce, logistics, and any team parsing messy third-party API payloads.
    • Applications: normalizing semi-structured API responses into typed values, building evolving test doubles, adapting to upstream schema drift, and classification over noisy text fields.

    Key Takeaways

    • KotlinLLM is a JetBrains Research prototype, not a production runtime.
    • Smart macros generate Kotlin source that is committed, reviewed, and run without the plugin.
    • Covered scenarios trigger no further LLM call, so no added latency or cost.
    • Petclinic evaluation: 24/24 scenarios, 100% hot-reload, ~1% overhead.
    • Apache 2.0, Kotlin/JVM only, IntelliJ IDEA 2025.2.x plus JDK 21.

    Sources: JetBrains Research blog, the kotlinllm-plugin README, and InfoWorld


    Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.

    Code generate HotReload JDI JetBrains Kotlin KotlinLLM Macros OpenSources runtime Smart source
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    Nous Research Ships Three Integration Paths for Hermes Agent and Buzz, Block’s Open Source Nostr Workspace for Humans and Agents

    Govee’s portable smart lamp is down to one of its best prices to date

    JetBrains warns of critical TeamCity remote code execution flaw

    PolyAI Releases Dialog-RSN-1: An Audio-Native Dialog Model That Fuses Turn-Taking, Speech Recognition, Function Calling, And Response

    Alo Discount Code: Save on Activewear August 2026

    Building a Policy-Governed Multi-Agent Financial Research Workflow with Omnigent

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Best Dyson Vacuums (2026): V15 Detect, Gen5Detect, PencilVac

    July 31, 2026

    Google AI Uncovers 13-Year-Old Chrome Flaw Amid Record Patching Pace

    July 31, 2026

    Zcash fixed the flaw that nearly halved ZEC, and $926 million in leverage now tests the rebound

    July 31, 2026

    Floating wind turbine that will power UK gas platform ready for tow to offshore site

    July 31, 2026
    Latest Posts

    Advancing the next era of national science

    July 22, 2026

    Arcee, a US open source AI lab, says Chinese models are not inherently dangerous

    July 22, 2026

    Most bus fares in England to be capped at £2 from January

    July 22, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    Best Dyson Vacuums (2026): V15 Detect, Gen5Detect, PencilVac

    July 31, 2026

    Google AI Uncovers 13-Year-Old Chrome Flaw Amid Record Patching Pace

    July 31, 2026

    Zcash fixed the flaw that nearly halved ZEC, and $926 million in leverage now tests the rebound

    July 31, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.